/* main.css */

/* Paleta de colores */
:root {
    --color-fondo: #fcf4ef;
    --color-header: #333;
    --color-texto: #fff;
    --color-enlace: #FF5733;
    --color-enlace-hover: #FF4500;
    --color-boton: #4CAF50;
    --color-boton-hover: #45a049;
    --color-titulo: #FF5733;
    --color-subtitulo: #FF4500;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-image: url('../images/ConfePortada.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-texto);
    padding: 10px 0;
    text-align: center;
}

.header-content {
    padding: 10px 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #000; /* Borde oscuro añadido */
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5), transparent);
    z-index: -1;
    transition: opacity 0.5s;
}

.logo-container:hover::before {
    opacity: 1;
}

/* Añadir animación a la logo-container */
@keyframes logoBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.logo-container:hover {
    animation: logoBounce 2s infinite;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: -20px;
    background-color: rgba(51, 51, 51, 0.856);
    height: 45px;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--color-texto);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--color-enlace-hover);
}

nav ul li a.donar-link {
    background-color: var(--color-enlace);
    font-weight: bold;
}

nav ul li a.donar-link:hover {
    background-color: var(--color-enlace-hover);
}

main {
    padding: 0px;
    text-align: center;
}

header img.logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

header img.titulo-logo {
    width: 300px;
    height: auto;
}

.contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-image: url('../images/Fondo-amarillo.jpeg');
}

#mapa {
    width: 30%;
    position: relative;
}

.lupa {
    position: absolute;
    display: none;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
}

.lupa img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#detalles {
    width: 65%;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

#equipoInfo {
    background-image: url('../images/Fondo-blanco.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#equipoInfo h3 {
    font-size: 1.8em;
    color: var(--color-titulo);
    margin-bottom: 20px;
}

#equipoInfo h4 {
    font-size: 1.2em;
    color: var(--color-titulo);
    margin-bottom: 10px;
}

#equipoInfo ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#equipoInfo li {
    margin-bottom: 20px;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    text-align: center;
    animation: bounceIn 0.5s ease-in-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#equipoInfo .foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

#equipoInfo .foto:hover {
    transform: scale(1.1);
}

#equipoInfo span {
    display: block;
    margin-top: 10px;
    color: var(--color-subtitulo);
}

@media (max-width: 1024px) {
    header img.titulo-logo {
        width: 240px;
    }

    nav ul {
        flex-wrap: wrap;
        height: auto;
        padding: 6px 8px;
    }

    .contenedor {
        flex-direction: column;
        align-items: stretch;
    }

    #mapa,
    #detalles {
        width: 100%;
        margin: 0;
    }

    #equipoInfo {
        margin: 16px 0;
    }

    #equipoInfo li {
        width: 45%;
    }
}

@media (max-width: 768px) {
    nav ul li {
        margin: 6px 10px;
    }

    header img.logo {
        width: 80px;
    }

    header img.titulo-logo {
        width: 200px;
    }

    #equipoInfo li {
        width: 100%;
    }
}

.donar-boton {
    background-color: var(--color-boton);
    color: var(--color-texto);
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.donar-boton:hover {
    background-color: var(--color-boton-hover);
}

footer {
    background-color: var(--color-header);
    color: var(--color-texto);
    text-align: center;
    padding: 6px 0;
    position: static;
    width: 100%;
}

.imagenes-interactivas {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagenes-interactivas img {
    width: 100%;
    transition: transform 0.5s, filter 0.5s;
    opacity: 0;
}

.imagenes-interactivas img.izquierda {
    transform: translateX(-100%);
}

.imagenes-interactivas img.derecha {
    transform: translateX(100%);
}

.imagenes-interactivas img:hover {
    filter: brightness(1.2);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.imagenes-interactivas img.izquierda {
    animation: slideInLeft 1s forwards;
}

.imagenes-interactivas img.derecha {
    animation: slideInRight 1s forwards;
}

.video-container {
    position: absolute;
    bottom: -810px;
    left: -150px;
    width: 100%;
    justify-content: center;
}

.video-overlay {
    position: absolute;
    bottom: -4280px;
    left: 100px;
    width: 0px;
}

/* Estilos para la página 'Sobre Nosotros' */
.sections-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.section {
    background-image: url('../images/Fondo-blanco.jpeg');
    margin-top: 5px;
    margin-bottom: 5px;
    width: 95%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(58, 0, 0);
    position: relative;
    text-align: justify;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.658);
}

.section .content {
    z-index: 1;
    padding: 20px;
}

.section h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    font-size: 3em; /* Incrementa el tamaño de los títulos */
}

.section p, .section ol, .section ul {
    font-size: 1.5em; /* Incrementa el tamaño del texto */
}

/* Estilos específicos para proyectos.html */
#proyectos-sidebar {
    width: 23%;
    background-color: var(--color-fondo);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-radius: 10px;
    margin: 20px;
    transition: transform 0.3s, background-color 0.3s;
}

#proyectos-sidebar ul {
    list-style: none;
    padding: 0;
}

#proyectos-sidebar ul li {
    margin-bottom: 10px;
}

#proyectos-sidebar ul li a {
    text-decoration: none;
    color: var(--color-header);
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

#proyectos-sidebar ul li a img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

#proyectos-sidebar ul li a:hover, #proyectos-sidebar ul li a.active {
    background-color: var(--color-enlace-hover);
    color: var(--color-texto);
    transform: scale(1.05);
}

#detalles-proyectos {
    background-image: url('../images/Fondo-blanco.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    width: 75%;
    padding: 20px;
    margin: 20px;
}

#proyectoInfo h3 {
    font-size: 1.8em;
    color: var(--color-titulo);
    margin-bottom: 20px;
}

#proyectoInfo h4 {
    font-size: 1.4em;
    color: var(--color-subtitulo);
    margin-bottom: 10px;
}

#proyectoInfo ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#proyectoInfo li {
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    text-align: center;
    animation: bounceIn 0.5s ease-in-out;
}

#proyectoInfo .foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

#proyectoInfo .foto:hover {
    transform: scale(1.1);
}

#proyectoInfo span {
    display: block;
    margin-top: 10px;
    color: var(--color-subtitulo);
}

/* Efecto de rebote */
@keyframes rebote {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.rebote {
    animation: rebote 1s;
}

/* Añadir al final del archivo */

.imagen-region-container {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.imagen-region {
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Estilos para la sección about-us */
.section.about-us {
    position: relative;
    background-image: url('../images/Brochure_EC3_page_1-2_complete_v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* Asegúrate de que el texto sea blanco para mejor contraste */
}

.section.about-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.9); /* Color plomo con transparencia */
    z-index: 1; /* Asegúrate de que esté debajo del contenido */
}

.section.about-us .content {
    position: relative;
    z-index: 2; /* Asegúrate de que el contenido esté por encima de la capa ploma */
}
