body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Estilo general para secciones */
.seccion {
  padding: 40px;
  text-align: center;
  color: white;
}

/* Colores distintos para diferenciarlas */
.seccion-1 {
  background: #0066cc;
}

.seccion-2 {
  background: #0066cc;
}

/* Sección principal */
.principal {
  background:  rgba(15, 62, 129);
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: small;
  margin-top: 0;
  padding: 0;
}

/* Contenedor de tarjetas */
.contenedor2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

/* Elimina margen superior del título */
h1 {
  margin-top: 0;
}

/* Elimina margen superior del párrafo */
p {
  margin-top: 0;
}

/* Tarjetas */
.tarjeta1 {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: relative;
  color: black;
}

.tarjeta1 img {
  width: 100%;
  border-radius: 8px;
}

/* Párrafo con ancho limitado */
.parrafo {
  max-width: 800px;   /* ancho máximo */
  margin: 0 auto;     /* centra el bloque */
  text-align: justify; /* opcional: justificar texto */
  font-size: 18px;
  line-height: 1.6;
}
/* Descripción con animación automática */
.descripcion {
  max-height: 60px;          /* altura inicial */
  overflow: hidden;
  transition: max-height 0.6s ease;
  text-align: justify;
}

.extra {
  display: inline;
}

/* Ocultar checkbox */
.tarjeta1 input {
  display: none;
}

/* Botón leer más/menos */
.leer-mas-btn {
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
  color: #0066cc;
  font-weight: bold;
}

.leer-mas-btn::after {
  content: "Leer más";
}

/* Expandir suavemente con altura automática simulada */
#leer1:checked ~ .descripcion,
#leer2:checked ~ .descripcion,
#leer3:checked ~ .descripcion,
#leer4:checked ~ .descripcion {
  max-height: 1000px;  /* valor grande para que quepa todo */
}

#leer1:checked ~ .leer-mas-btn::after,
#leer2:checked ~ .leer-mas-btn::after,
#leer3:checked ~ .leer-mas-btn::after,
#leer4:checked ~ .leer-mas-btn::after {
  content: "Leer menos";
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .contenedor2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contenedor2 {
    grid-template-columns: 1fr;
  }
}

/*footer*/
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
}
.footer-row{
    display: flex;
    flex-wrap: nowrap;
}

.footer-links ul li a{
 font-size: 40px;
 text-decoration: none;
 color: #f4f8ff;
 display: block;
 margin-top: 15px;
}

.footer-icon{
    display: inline-block;
    min-height: 40px;
    margin: 10 10px 10px  20;
    text-align: center;
    line-height: 100px;
    color: #f4f8ff;
}