/* Reseteo de márgenes y rellenos para tener un diseño limpio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo general de la página */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

/**/
header {
    background-color: #333;
    padding: 10px 0;
    width: 100%;
}

/* ====== Menú en computadoras ====== */
.desktop-nav {
    background-color: #333;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 180px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: #9ccc65;
}

/* ====== Menú en móviles ====== */
.mobile-header {
    display: none; /* Se oculta en computadoras */
}

/* ====== Menú móvil con logo centrado ====== */
@media (max-width: 768px) {
    /* Oculta el menú de escritorio */
    .desktop-nav {
        display: none;
    }

    /* Contenedor del logo y menú en móviles */
    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #333;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    /* Estilos del logo */
    .mobile-header .logo img {
        height: 60px;
    }

    /* Menú móvil debajo del logo */
    .mobile-nav ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 10px 0;
    }

    .mobile-nav li {
        list-style: none;
        text-align: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        text-decoration: none;
        font-size: 0.9em;
    }

    .mobile-nav a:hover {
        color: #9ccc65;
    }

    /* Ajuste del espacio para que el contenido no quede tapado */
    body {
        padding-top: 100px;
    }
}

/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 80px; /* Agrega un pequeño espacio debajo de la sección */
}

/**/
.contenedor {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    color: #137547;
    font-size: 2em;
    margin-bottom: 10px;
}

.fecha {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.imagen {
    text-align: center;
}

.imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

figure {
      margin: 20px 0;
      text-align: center;
    }
figure img {
      max-width: 100%;
      height: auto;
      border-radius: 5px;
    }
figcaption {
      font-size: 0.85em;
      color: #555;
      margin-top: 5px;
    }

.pie-foto {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 30px;
}

.contenido p {
    line-height: 1.6;
    margin: 0 auto 20px auto;
    text-align: justify;
    max-width: 2000px;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 600px) {
    .contenedor {
        padding: 20px 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .contenido p {
        font-size: 0.95em;
    }

    .pie-foto {
        font-size: 0.8em;
    }
}

/*Lado derecho*/

.contenedor-texto {
  max-width: 800px;
  margin: auto;
  font-family: Arial, sans-serif;
  line-height: 1;
  text-align: justify;
}

.imagen-izquierda {
  float: left;
  width: 200px;
  margin: 0 20px 20px 0;
  border-radius: 10px;
}

/* Contenedor que agrupa imagen + pie de imagen */
.contenedor-imagen-texto {
  width: 200px;
  float: left;
  margin: 0 20px 20px 0;
  text-align: center;
}

.contenedor-imagen-texto img {
  width: 100%;
  border-radius: 10px;
  /*box-shadow: 0 4px 8px rgba(0,0,0,0.2);*/
}

.pie-imagen {
  font-size: 0.6rem;
  color: #00000;
  margin-top: 2px;
  font-style: arial;
}

p {
  margin-bottom: 5px;
}

/* Limpia el float */
.clear {
  clear: both;
}

/* --- ✅ RESPONSIVE: Adaptable para pantallas pequeñas --- */
@media screen and (max-width: 600px) {
  .imagen-derecha,
  .imagen-izquierda,
  .contenedor-imagen-texto {
    float: none;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
  }

  .contenedor-imagen-texto img {
    width: 80%;
  }

  .contenedor-texto {
    padding: 0 15px;
  }
}

/*Lado izquierdo*/

.bloque-texto {
  max-width: 800px;
  margin: auto;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  text-align: justify;
  padding: 0 15px;
}

.imagen-lateral {
  width: 300px;
  float: right;
  margin: 0 0 20px 20px;
  text-align: center;
}

.imagen-lateral img {
  width: 100%;
  border-radius: 10px;
}

.descripcion-imagen {
  font-size: 0.6rem;
  color: #333;
  margin-top: 5px;
  font-style:arial;
}

p {
  margin-bottom: 10px;
}

.limpiar {
  clear: both;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .imagen-lateral {
    float: none;
    width: 100%;
    margin: 0 auto 20px auto;
  }

  .imagen-lateral img {
    width: 80%;
  }
}

/* Video */
.video-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 25px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/*Imagenes*/

/* Responsividad */
@media (max-width: 1024px) {
    .titulo {
        font-size: 40px;
    }
    .titulo::after {
        width: 80px;
        height: 4px;
    }
    .text {
        font-size: 18px;
    }
    .info-section {
        padding: 30px;
        margin: 15px;
    }
    .video-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .titulo {
        font-size: 32px;
    }
    .titulo::after {
        width: 60px;
        height: 3px;
    }
    .text {
        font-size: 15px;
        padding: 0 20px;
    }
    .info-section {
        padding: 25px;
        margin: 10px;
    }
    .video-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 28px;
    }
    .titulo::after {
        width: 50px;
        height: 3px;
    }
    .text {
        font-size: 16px;
        padding: 0 15px;
    }
    .info-section {
        padding: 20px;
        margin: 10px;
    }
    .video-container {
        padding: 5px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a, #2a6041);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.footer-heading {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.social-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.social-link svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}
.footer-text {
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-heading {
        font-size: 1.5rem;
    }
    
    .social-container {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link svg {
        width: 25px;
        height: 25px;
    }
}
