/**************************************************************************************************************************************/
html {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita scroll horizontal */
}

.logo {
    width: 200px;
    height: auto;
    max-width: 100%;
}

.logo-esquina {
    position: absolute;
    top: 5px;
    left: 20px;
    width: 200px;
    height: auto;
    z-index: 10;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/**************************************************************************************************************************************/
/* Fuente de letra en todo el body */

/**************************************************************************************************************************************/
/* Contenedor general */
.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}
/**************************************************************************************************************************************/
/* Títulos principales */
.titulo {
    color: #000;
    font-size: 30px;
    text-align: center; 
    margin-bottom: 60px;
    font-family: 'Times New Roman', Times, serif;
    z-index: 1000;
}
/**************************************************************************************************************************************/
/* Encabezado 
header { 
    position: relative; 
    width: 100%; 
    height: 600px; 
    background: #8E2DE2; 
    background: linear-gradient(to left, #4b00e07f, #8d2de2b1), url(../img/Fondo_1.jpg); 
    background-size: cover; 
    background-attachment: fixed; 
}*/

header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto; /* Que crezca si necesita */
    padding-bottom: 40px; /* Espacio extra abajo */
    background:  url(../img/Fondo2.png); /* Imagen de Pexels en Pixabay */
    background-size: cover;
    background-attachment: fixed;
    opacity: 0; /* Inicialmente invisible */
    animation: fade-in 1.5s ease-in-out forwards;
}
@keyframes fade-in {
        from {
            opacity: 0; /* Empieza con opacidad 0 */
        }
        to {
            opacity: 1; /* Termina con opacidad 1 */
        }
    }




nav {
    text-align: right;
    padding: 30px 50px 0 0;
    font-family: 'Montserrat', sans-serif;
}

nav > a {
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 20px;
    
}

nav > a:hover {
    text-decoration: underline;
}

.textos-header {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente los 3 bloques */
    align-items: center;
    /* Centra verticalmente en el contenedor */
    gap: 60px;
    /* Espacio entre cada bloque */
    min-height: 100vh; 
    height: auto;
    /* Para que el header ocupe toda la pantalla */
    padding-top: 80px;
    padding: 100px 80px 0 80px;
    /* Baja todo un poco para que no choque con el nav */
    box-sizing: border-box;
    
}

.titulos {
    display: flex;
    flex-direction: column;
    /* apila los H1 verticalmente */
    gap: 0.25rem;
    flex: 1;
    /* ocupa el espacio disponible a la izquierda */
}

.titulos h1 {
    margin: 0;
    font-size: 50px;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    background-color: #ffed00;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px;
    
    
}




/* responsive: en pantallas pequeñas apilamos */
@media (max-width: 768px) {
    header {
        height: auto;
        padding-bottom: 40px;
        background-size: cover; 
        background-position: center center; 
        background-repeat: no-repeat;
        background-attachment: scroll;  
        background-attachment: fixed;
    }

    .textos-header {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px 0 20px;
        padding-top: 140px;
        gap: 20px;
        height: auto;
    }

    .titulos {
        align-items: center;
        text-align: center;
        margin-top: 80px;
    }

    .titulos h1 {
        font-size: 28px;
        padding: 6px 10px;
        line-height: 1.2;
        width: 100%;
        max-width: 300px;
    }
    

    .card-aportar {
        width: 100%;
        max-width: 350px;
        padding: 20px;
        font-size: 14px;
    }

    .card-aportar h3 {
        font-size: 18px;
        font-family: 'Times New Roman', Times, serif;
    }

    .card-aportar p {
        font-size: 14px;
        text-align: justify;
    }

    nav {
        padding: 20px;
        text-align: center;
    }

    .logo-esquina {
        top: 10px;
        left: 10px;
        width: 140px;
    }

    .logo-img {
        width: 140px;
    }

    .menu-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .voluntario h3 {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    margin-left: 35px;
    font-family: 'Times New Roman', Times, serif;}
    
    .image-vont {
    margin-left: 40px;}
    
    .form-row {
    margin-left: 20px;}

    .contacto-form {
        margin-left: 20px;
    }
    
}


.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-bottom: -1px; /*para que no ve vea la linea entre nosotros y wave*/
}
/**************************************************************************************************************************************/
/* Contenedor Sobre Nosotros */

.contenedor-sobre-nosotros {
    display: flex;
    justify-content: space-evenly;
    
}

.imagen-about-us {
    width: 48%;
    
}

.sobre-nosotros .contenido-texts {
    width: 48%;
}

.contenido-textos h3 {
    margin-bottom: 15px;
    font-family: 'Times New Roman', Times, serif;
}

.contenido-textos h3 span {
    background: #4E37C5;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
    margin-right: 5px;
    font-family: 'Times New Roman', Times, serif;
}

.contenido-textos p {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
    font-family: 'Times New Roman', Times, serif;
}
/**************************************************************************************************************************************/
/* Contenedor voluntario */

.contenedor-sobre-nosotros {
    display: flex;
    justify-content: space-evenly;
    
}

.imagen-about-us {
    width: 48%;
}
.image-vont {
    width: 48%;
    margin-right: 40px;
}
.sobre-nosotros .contenido-texts {
    width: 48%;
    font-family: 'Times New Roman', Times, serif;
}

.contenido-textos h3 {
    margin-bottom: 15px;
    font-family: 'Times New Roman', Times, serif;
}

.contenido-textos h3 span {
    background: #ffed00;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
    margin-right: 5px;
    font-family: 'Times New Roman', Times, serif;
}

.contenido-textos p {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
    font-family: 'Times New Roman', Times, serif;
}

.voluntario h3 {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}
/**************************************************************************************************************************************/
/* Servicios */
.about-services {
    background: #ffffff;
    padding-bottom: 30px;
}

.servicio-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-ind {
    width: 28%;
    text-align: center;
}

.servicio-ind img {
    width: 90%;
}

.servicio-ind h3 {
    margin: 10px 0;
}

.servicio-ind p {
    font-weight: 300;
    text-align: justify;
}

/* Propuestas */
.hoja-ruta {
  background: linear-gradient(to left, rgba(207, 207, 209, 0.7), rgba(0, 237, 237, 0.7)), url(../img/libreria.jpg); /* Imagen de Pexels en Pixabay */
    background-size: cover;
    background-attachment: fixed;
    background-size: cover;
    background-attachment: fixed;
    height: auto; 
    overflow: visible;
  
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  
}

.hoja-ruta .container-ruta {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
}

.imagenM {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.imagenM img {
  width: 80%;
  max-width: 400px;
  object-fit: cover;
  overflow: visible;
}

.content {
  flex: 1 1 60%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
}

.badge {
  background-color: #D0383F;
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

.hoja-ruta h1 {
  font-size: 2rem;
  margin: 0;
  color: #000;
  font-family: 'Times New Roman', Times, serif;
  font-weight:bold;
  overflow: visible;
}

.hoja-ruta h2 {
  font-size: 1.3rem;
  font-weight:bold;
  margin-top: 0.3rem;
  margin-bottom: 2rem;
  color: #000;
  font-family: 'Times New Roman', Times, serif;
  overflow: visible;
}

.accordion .item {
  margin-bottom: 0.7rem;
}

.accordion button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  overflow: visible;
}

.item.verde button { background-color: #ffed00; 
                     color: #000;
                     font-family: 'Times New Roman', Times, serif;}
.item.azul button { background-color: #fff; 
                    color: #000;
                    font-family: 'Times New Roman', Times, serif;}
.item.rojo button { background-color: #ffed00; 
                    color: #000;
                    font-family: 'Times New Roman', Times, serif;}
.item.amarillo button { background-color: #fff;
                        color: #000;
                        font-family: 'Times New Roman', Times, serif; }

.accordion .contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #e7e7e7;
  padding: 0 1rem;
}

.accordion .contenido p {
  margin: 1rem 0;
  font-family: 'Raleway', sans-serif;
  font-weight:bold;
}

/* Cuando está activo */
.accordion .item.activo .contenido {
  max-height: 1000px; /* Ajustable */
  padding: 1rem;
}

.btn {
  display: inline-block;
  background-color: #230069;
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  font-weight: bold;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  overflow: visible;
}

/**************************************************************************************************************************************/
/* RESPONSIVIDAD DE LA PAGINA */
/**************************************************************************************************************************************/

@media (max-width: 768px) {
    header {
        height: 400px;
    }

    nav {
        text-align: center;
        padding: 20px 0;
    }

    nav > a {
        display: block;
        margin: 10px 0;
    }

    header .textos-header h1 {
        font-size: 36px;
    }

    header .textos-header h2 {
        font-size: 24px;
    }

    .contenedor-sobre-nosotros {
        flex-direction: column;
        align-items: center;
    }

    .imagen-about-us {
        width: 90%; /* Ajusta el ancho de la imagen */
        margin-bottom: 30px; /* Añade margen inferior para separar la imagen del texto */
    }
    .contenido-textos {
        width: 90%; /* Ajusta el ancho del texto */
    }

    .galeria-port {
        flex-direction: column;
        align-items: center;
    }

    .imagen-port {
        width: 90%;
    }

    .servicio-cont {
        flex-direction: column;
        gap: 20px;
    }

    .servicio-ind {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 20px;
    }

    .btn-enviar {
        padding: 8px 16px;
    }

    footer .contenedor-footer {
        flex-direction: column;
        gap: 20px;
    }

    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        line-height: 40px;
    }

}
/**************************************************************************************************************************************/
/* carta de apoyo servel */
.card-aportar {
  max-width: 400px;
    margin: 0;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #1abc9c, #3498db);
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    flex: 0 0 350px;
    /* ancho fijo aproximado para mantenerla a la derecha */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.card-aportar h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-aportar p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #e6e6e6; /* gris claro */
  text-align: justify;
}

.btn-aportar {
  display: inline-block;
  background-color: #ffed00; /* azul oscuro */
  color: #000;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-aportar:hover {
  background-color: #9bd9d8;
}

.voluntario h3 {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
  
    margin-right: 40px;
    font-family: 'Times New Roman', Times, serif;}
/**************************************************************************************************************************************/



.portafolio {
    position: relative;
    width: 100%;
    min-height: 400px; 
    height: auto; 
    background:  url(../img/fondocar.png); /* Imagen de Pexels en Pixabay */
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;  /* no se repite */
    background-attachment: fixed;
    padding: 20px 0; 
}

.titulo_P {
    color: #000;
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px; 
    font-family: 'Times New Roman', Times, serif;
}

.carrusel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 650px; 
    margin: 0 auto; 
}


.carrusel-contenedor {
    width: 95%;
    overflow: hidden; 
    border-radius: 10px;
    margin: 0 auto;
    height: 400px;
}


.carrusel-imagenes {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}


.carrusel-imagenes img {
    width: 100%; 
    height: 100%;
    flex: 0 0 100%; 
    object-fit: contain;
}


.carrusel-btn {
    background: none; 
    border: none; 
    color: #000; 
    cursor: pointer;
    font-size: 24px; 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0; 
    margin: 0; 
    z-index: 10; 
}

#prevBtn {
    left: -20px;
}

#nextBtn {
    right: -20px; 
}


@media (max-width: 768px) {
    .portafolio {
        min-height: 300px; 
        padding: 10px 0;
    }

    .titulo_P {
        font-size: 24px; 
        margin-bottom: 20px; 
    }

    .carrusel {
        max-width: 90%; 
    }

    .carrusel-btn {
        font-size: 20px; 
    }

    .carrusel-contenedor {
        border-radius: 5px; 
    }

    .carrusel-imagenes img {
        width: 100%; 
    }
}
/* CONTENEDOR (viewport) */
.carrusel-textos {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    overflow: hidden;
    text-align: center;
}

/* INNER (el que se mueve) */
.carrusel-textos-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* TEXTOS */
.texto {
    flex: 0 0 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: 'Times New Roman', Times, serif;
}


.seccion-cultura {
    display: flex;
    gap: 3rem;
    padding: 4rem;
    background: #f5f5f5;
    align-items: flex-start;
}

/* Columnas */
.col {
    flex: 1;
}

/* IZQUIERDA */
.izquierda h1 {
    font-size: 3rem;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
}

.linea {
    width: 60px;
    height: 2px;
    background: #ffed00;
}

/* IMÁGENES */
.card-img {
    overflow: hidden;
    border-radius: 5px;
}

.card-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

/* EFECTO HOVER */
.card-img:hover img {
    transform: scale(1.1);
}

/* TEXTO */
p {
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 1.2rem;
    color: #222;
    font-family: 'Times New Roman', Times, serif;
}

/* DERECHA separación */
.derecha p {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {

    /* ===== GENERAL ===== */
    .contenedor {
        width: 95%;
        padding: 40px 0;
    }

    /* ===== HEADER ===== */
    .textos-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 120px 20px 40px 20px;
        min-height: auto;
    }

    .titulos {
        align-items: center;
    }

    .titulos h1 {
        font-size: 26px;
        width: auto;
        max-width: 90%;
    }

    /* CARD */
    .card-aportar {
        width: 100%;
        max-width: 320px;
    }

    /* ===== CARRUSEL ===== */
    .carrusel {
        max-width: 100%;
    }

    .carrusel-contenedor {
        width: 90%; /* más grande en móvil */
    }

    .carrusel-btn {
        font-size: 18px;
    }

    /* TEXTOS CARRUSEL */
    .texto {
        font-size: 1rem;
        padding: 0.5rem;
        max-width: 100%;
        
        text-align: left; /* lo que querías antes */
    }

    /* ===== SECCIÓN CULTURA ===== */
    .seccion-cultura {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .col {
        width: 100%;
    }

    .izquierda h1 {
        font-size: 2rem;
        text-align: center;
    }

    /* ===== IMÁGENES ===== */
    .card-img img {
        width: 100%;
        height: auto;
    }

    /* ===== FONDO PORTAFOLIO ===== */
    .portafolio {
        background-attachment: scroll; /*  clave para móviles */
        background-position: center;
    }

    /* ===== TEXTOS GENERALES ===== */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

}


/* ===== GALERÍA ===== */
.galeria {
    padding: 60px 0;
    background: #fff;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.img-galeria {
    width: 100%;
    height: 250px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-galeria {
    text-align: center;
}

.item-galeria p3 {
    text-align: center;
    text-decoration: none;
    color: black;
    background: #ffed00;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 300;
    
}

.texto-galeria {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
    
}

.img-galeria:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===== MODAL ===== */
.modal-galeria {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-img {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.cerrar-galeria {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .img-galeria {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .grid-galeria {
        grid-template-columns: 1fr;
    }
}


.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 40px;
}

/* CARD */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 15px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 👈 evita deformación */
    display: none;
}

.carousel img.active {
    display: block;
}

/* BOTONES */
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel button:hover {
    background: rgba(0,0,0,0.8);
}

/* TEXTO */
.product-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.specs {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #e60023;
}

