/* Estilos reutilizables para los textos */
@font-face {
    font-family: 'Gill Sans';
    src: url('/data/Gill Sans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.section-title {
    color: #4caf50;
    font-size: 2rem;
    margin-bottom: 20px;
}


/* Estilo para los títulos dentro de 'Líneas de Investigación' */
#research-lines .section-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Borde negro alrededor de las letras */
  }
  
  /* Estilo para los párrafos dentro de 'Líneas de Investigación' */
  #research-lines .section-paragraph {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    font-family: 'Gill Sans', sans-serif;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Borde negro alrededor de las letras */
  }
  
  /* Estilo para la lista dentro de 'Líneas de Investigación' */
  #research-lines ul {
    color: white;
    font-size: 18px;
    list-style-position: inside;
    margin-left: 20px;
    padding-left: 10px;
  }
  
  #research-lines ul li {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Borde negro alrededor de las letras */
  }

.section-paragraph {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    font-family: 'Gill Sans', sans-serif;
    text-align: justify;
}

/* Estilos para botones */
button {
    background-color: #388e3c;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #33691e;
    transform: scale(1.05);
}

.prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }

/* Ocultar secciones por defecto */
.hidden {
    display: none;
}

/* Estilos para la sección */
.section-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.section-text {
    flex: 1;
    max-width: 50%;
}

.section-image {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 600px;
}

/* Animación para el carrusel */
@keyframes slideInFromRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .carousel-item {
    animation: slideInFromRight 0.5s ease-in-out;
  }
  
  /* Responsive */
  @media screen and (max-width: 768px) {
    .section-content {
      flex-direction: column;
      align-items: center;
    }
  
    .section-text, .section-image {
      max-width: 100%;
    }
  }
  
  /* Efecto hover en imágenes (aplicable si ya existe) */
  .carousel-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
/* Animación para la imagen de la sección 'Líneas de Investigación' */
@keyframes slideInFromBottom {
    from {
      transform: translateY(20px); /* Empuja la imagen hacia abajo */
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  

/* Animaciones de desplazamiento */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Aplicar animaciones */
.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .section-content {
        flex-direction: column;
        align-items: center;
    }

    .section-text, .section-image {
        max-width: 100%;
    }
}

/* Efecto hover en imágenes */
img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Asegurar que las secciones no sean tapadas por el navbar */
.interactive-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    position: relative;
    scroll-margin-top: 100px; /* Ajuste de margen superior en el scroll */
}

/* Animación para la imagen */
@keyframes fadeInImage {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .section-image img {
    opacity: 0; /* Inicialmente invisible */
    animation: fadeInImage 2s ease-out forwards; /* Aparece en 2 segundos */
  }

/* Estilo para la imagen de líneas de investigación */
#research-lines .section-image img {
    opacity: 0; /* Inicialmente invisible */
    animation: slideInFromBottom 1.5s ease-out forwards; /* Desliza la imagen desde abajo */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Mantener el hover */
  }
  
  #research-lines .section-image img:hover {
    transform: scale(1.05); /* Aumenta el tamaño al pasar el cursor */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Añade sombra */
  }


  /* Estilos generales para la sección */
#collaborators {
    text-align: center;
    padding: 50px 20px;
    background-color: #f1f1f1; /* Fondo gris para toda la sección */
    margin: 0 auto;
    border-radius: 10px; /* Opcional, para redondear las esquinas de la sección */
}
#collaborators .section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */

}

#collaborators .section-title {
    color: #388e3c;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Contenedor para el carrusel con fondo blanco */
.carousel-wrapper {
    background-color: white; /* Fondo blanco para el carrusel */
    border-radius: 10px; /* Bordes redondeados */
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra suave para destacar el carrusel */
    width: 100%; /* Asegura que ocupe el ancho del contenedor */
    max-width: 1000px; /* Limita el ancho máximo del carrusel */
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    max-height: 800px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #388e3c; /* Borde sólido alrededor del círculo */
    margin-bottom: 20px;
    
}

.carousel-img:hover {
    transform: scale(1.2); /* Aumenta el tamaño sin ser cortada */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Asegura que la imagen quede por encima de otros elementos */
}

.carousel h3 {
    font-size: 1.5rem;
    color: #388e3c;
    margin-bottom: 10px;
}

.carousel p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 40px;
}

button {
    background-color: #388e3c;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #33691e;
    transform: scale(1.05);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;

/* Responsive */
@media screen and (max-width: 768px) {
    .section-content {
        flex-direction: column;
        align-items: center;
    }

    .section-text, .section-image {
        max-width: 100%;
    }
}
}
/*botón login*/
.admin-login {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
}

.admin-login p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
    font-weight: bold;
}

.admin-button {
    display: inline-block;
    background-color: #388e3c;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.admin-button:hover {
    background-color: #33691e;
    color: #232255;
    transform: scale(1.05);
}


#contexto {
    background-image: url('/img/seccion9.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
        background-attachment: fixed; /* Efecto de fondo fijo */
        animation: fadeInImage 2s ease-out forwards;


}


#contexto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Coloca el blur detrás del contenido */
}

#contexto .section-content {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté por encima de la imagen borrosa */
}

#contexto .section-text{
    background-color: rgba(6, 41, 13, 0.726); /* Fondo semitransparente negro */
    padding: 20px; /* Espaciado alrededor del texto */
    border-radius: 10px; /* Esquinas redondeadas opcionales */
}

#contexto .section-paragraph {
    color: rgba(255, 255, 255, 0.932); /* Cambia el color del texto a blanco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra de texto para mejor contraste */
}

#contexto h2 {
    font-size: 2em; /* Tamaño grande para el encabezado */
    font-family: 'Gill Sans', sans-serif;
    margin-bottom: 25px; /* Espaciado debajo del encabezado */
    text-align: center; /* Centrar el texto */
    color: rgba(255, 255, 255, 0.932); /* Cambia el color del texto a blanco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra de texto para mejor contraste */

}

/* Estilos específicos para la sección 'Conceptos' */
#conceptos .section-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#conceptos .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

#conceptos .subtema {
    flex: 1;
    max-width: 30%;
}

#conceptos .subtema-title {
    font-size: 1.5rem;
    color: #388e3c;
    margin-bottom: 15px;
}

#conceptos .subtema-paragraph {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

#conceptos .image {
    flex: 1;
    max-width: 35%;
    text-align: center;
}

#conceptos .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 250px;
}

/* Estilo para el título de la sección 'Conceptos' */
#conceptos .section-title {
    font-size: 2.5rem;
    color: #4caf50;
    text-align: center;
    margin-bottom: 0px;
}

/* Imagen redonda, pequeña y con efecto hover */
.concept-image {
    width: 300px; /* Tamaño pequeño */
    height: 100px;
    border-radius: 50%; /* Hace la imagen completamente redonda */
    display: block;
    margin: 0 auto 20px; /* Centrada y con separación */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para la sección Dimensiones */
.dimension-section {
    background-image: url('/img/seccion7.jpg'); /* Imagen de fondo */
    background-size: cover; /* Cubrir toda la sección */
    background-position: center; /* Centrar la imagen */
    background-attachment: fixed; /* Efecto de fondo fijo */
    color: white; /* Texto en blanco para mejor contraste */
    text-align: center; /* Centrar el contenido */
    padding: 80px 20px; /* Espaciado alrededor del contenido */

}


/* Título de la sección */
.dimension-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Lista de dimensiones */
.dimension-list {
    list-style: none;
    padding: 0;
    
}

.dimension-list li {
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: justify;
    margin-left: 30px;
}
#dimensiones .section-paragraph {
    font-size: 1.3em;
    color: white;
}

#dimensiones .section-content {
    margin: 0 auto; /* Eliminamos el margen superior e inferior y centramos los lados */
    padding: 20px; /* Mantén el padding si lo necesitas */
    max-width: 80%; /* Limita el ancho máximo a 80% del contenedor principal */
}

/* Contenido centrado */
.dimension-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(3, 29, 9, 0.712); /* Capa oscura para mejorar legibilidad */
    padding: 40px;
    border-radius: 10px; /* Bordes redondeados */
}

/* Estilos generales para la sección de normatividad */
.normativity-section {
    background-color: white;
    padding: 40px 20px;
}

/* Contenedor principal de la sección */
.normativity-section .section-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px; /* Aumentamos el ancho máximo del contenedor */
    margin: 0 auto;
}

/* Estilos para la imagen y su contenedor */
.normativity-section .image-container {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.normativity-section .section-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0px;
    min-width: 450px; /* Añadí un ancho mínimo */
}

/* Contenedor del texto */
.normativity-section .text-container {
    flex: 1;
}

/* Título de la sección */
.normativity-section .section-title {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 15px;
    text-align: left; /* Alinea el título a la izquierda */
}

/* Párrafos y lista */
.normativity-section .section-paragraph {
    font-size: 1.1rem;
    color: black;
    line-height: 1.6;
    margin-bottom: 20px;
}

.normativity-section .normativity-list {
    list-style: none;
    padding-left: 0;
}

.normativity-section .normativity-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    margin-left: 40px;
    text-align: justify;
    list-style: disc; /* Esto muestra los puntos de la lista */

}

body{
    font-family: 'Gill Sans', sans-serif;
}


/*Estilos para el login*/

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    gap: 40px;
}
.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 400px;
    width: 100%;
}
.login-box h2 {
    margin-bottom: 20px;
    color: #388e3c;
    text-align: center;
}
.login-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-box button {
    background-color: #388e3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
.login-box button:hover {
    background-color: #33691e;
}
.login-box p {
    margin-top: 10px;
}
.login-box a {
    color: #388e3c;
    text-decoration: none;
}
.login-box a:hover {
    text-decoration: underline;
}
.login-image-container {
    text-align: center;
    margin-left: 100px;
}
.login-image {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}
.welcome-text {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #103012;
    text-align: center;
}

 /* Estilos específicos para Perspectivas */
        #blog-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 50px 20px;
        }

        .blog-post {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            padding: 40px;
        }

        /* Header con foto a la izquierda y título a la derecha */
        .blog-top-section {
            display: flex;
            gap: 40px;
            align-items: center;
            justify-content: flex-start;
            margin-bottom: 40px;
            padding-bottom: 30px;
            border-bottom: 3px solid #2e7d32;
        }

        .blog-author-info {
            flex: 0 0 250px;
            text-align: center;
            border-right: 3px solid #2e7d32;
            padding-right: 40px;
        }

        .blog-author-info img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid #2e7d32;
            margin-bottom: 15px;
        }

        .blog-author-info h3 {
            margin: 0 0 10px 0;
            font-size: 1.3rem;
            color: #1b5e20;
        }

        .blog-author-info p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.4;
        }

        .author-email {
            font-size: 0.9rem;
            color: #2e7d32;
            font-weight: 500;
            margin-top: 12px;
        }
        
        .blog-title-section {
            flex: 0 1 auto;
            max-width: 700px;
        }

        .blog-title {
            font-size: 2.6rem;
            font-family: 'Georgia', serif;
            color: #1b1b1b;
            line-height: 1.3;
            margin: 0;
        }

        /* Contenido en dos columnas */
        .blog-content {
            text-align: justify;
            column-count: 2;
            column-gap: 40px;
            font-size: 1.05rem;
            color: #222;
            line-height: 1.8;
            font-family: 'Georgia', serif;
        }

        .blog-content h4 {
            color: #2e7d32;
            font-size: 1.3rem;
            border-left: 5px solid #2e7d32;
            padding-left: 10px;
            margin-top: 25px;
            margin-bottom: 15px;
            break-after: avoid;
        }

        .blog-content p {
            margin-bottom: 15px;
        }

        .blog-content ul {
            margin-left: 20px;
            padding-left: 10px;
            margin-bottom: 15px;
        }

        .blog-content li {
            margin-bottom: 10px;
        }

        /* Responsive */
        @media screen and (max-width: 900px) {
            .blog-content {
                column-count: 1;
            }

            .blog-top-section {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .blog-author-info {
                flex: none;
            }

            .blog-title {
                font-size: 1.8rem;
                text-align: center;
            }
        }

        /* Botón de volver */
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #2e7d32;
            text-decoration: none;
            font-size: 1rem;
            margin-bottom: 30px;
            padding: 10px 20px;
            border: 2px solid #2e7d32;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-family: 'Georgia', serif;
        }

        .back-button:hover {
            background-color: #2e7d32;
            color: white;
        }

        .back-button::before {
            content: '←';
            font-size: 1.2rem;
        }

        /* Sección de artículos relacionados */
        .related-articles {
            margin-top: 60px;
            padding-top: 40px;
            border-top: 2px solid #e0e0e0;
        }

        .related-title {
            font-size: 2rem;
            color: #2e7d32;
            font-family: 'Georgia', serif;
            margin-bottom: 30px;
            text-align: center;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }

        .related-card {
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }

        .related-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .related-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .related-card-title {
            font-size: 1.1rem;
            color: #1b1b1b;
            line-height: 1.3;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .related-author {
            font-size: 0.9rem;
            color: #2e7d32;
            margin-bottom: 8px;
        }

        .related-date {
            font-size: 0.85rem;
            color: #999;
            margin-top: auto;
        }

        /* Responsive */
        @media screen and (max-width: 900px) {
            .related-grid {
                grid-template-columns: 1fr;
            }
        }