/**************************************************************************************************************************************/
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: Arial, Helvetica, sans-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/fondos.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: Arial, Helvetica, 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: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px;
    background:linear-gradient(90deg,#7c5cff,#46b6ff,#44d07d);
    
}




/* responsive: en pantallas pequeñas apilamos */
@media (max-width: 768px) {
    header {
        height: auto;
        padding-bottom: 40px;
        background-size: cover; 
        background-position: right; 
        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: right;
        text-align: right;
        margin-top: 80px;
        width: 60%;
        margin-left: auto;
        
    }

    .titulos h1 {
        font-size: 20px;
        padding: 6px 10px;
        line-height: 1.2;
        width: 40%;
        max-width: 300px;
        margin-left: auto;
        
    }
    

    .card-aportar {
        width: 100%;
        max-width: 350px;
        padding: 20px;
        font-size: 14px;
    }

    .card-aportar h3 {
        font-size: 18px;
        font-family: Arial, Helvetica, sans-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: Arial, Helvetica, sans-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: Arial, Helvetica, sans-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: Arial, Helvetica, sans-serif;
}

.contenido-textos p {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
    font-family: Arial, Helvetica, sans-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: Arial, Helvetica, sans-serif;
}

.contenido-textos h3 {
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.contenido-textos h3 span {
    background: #3498db;
    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: Arial, Helvetica, sans-serif;
}

.contenido-textos p {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
    font-family: Arial, Helvetica, sans-serif;
}

.voluntario h3 {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: center;
    font-family: Arial, Helvetica, sans-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;}
/**************************************************************************************************************************************/

.servicios{

    padding:120px 8%;
    background:#070b16;
    color:white;

}

.titulo-servicios{

    text-align:center;
    max-width:900px;
    margin:auto;

}

.subtitulo{

    color:#8b5cf6;
    letter-spacing:4px;
    font-weight:bold;
    font-size:.9rem;

}

.titulo-servicios h2{

    margin-top:20px;
    font-size:3.3rem;
    line-height:1.2;

}

.titulo-servicios h2 span{

    display:block;

    background:linear-gradient(90deg,#7c5cff,#46b6ff,#44d07d);

    -webkit-background-clip:text;
    color:transparent;

}

.titulo-servicios p{

    margin-top:25px;
    color:#b9c0d0;
    font-size:1.15rem;

}

/*======================*/

.cards-servicios{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;

    margin-top:70px;

}

/*======================*/

.card{

    background:#121827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:35px;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:3px;

    background:linear-gradient(90deg,#7c5cff,#00d4ff,#44d07d);

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 20px 45px rgba(0,0,0,.45);

    border-color:#3b82f6;

}

/*======================*/

.icono{

    width:75px;
    height:75px;

    border-radius:18px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#1f2440;

    font-size:2rem;

    margin-bottom:25px;

}

.verde{

    background:#183622;

}

.azul{

    background:#14283d;

}

/*======================*/

.card h3{

    font-size:1.6rem;

    margin-bottom:20px;

}

.card p{

    color:#bcc6d8;

    line-height:1.8;

}

/*======================*/

.tecnologias{

    display:flex;
    flex-wrap:wrap;

    gap:12px;

    margin-top:30px;

}

.tecnologias span{

    padding:8px 16px;

    border-radius:30px;

    background:#1c2335;

    color:#7fc4ff;

    font-size:.9rem;

}

/*======================*/

.beneficios{

    margin-top:90px;

    background:#111827;

    border-radius:20px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:40px;

    padding:45px;

}

.beneficio{

    text-align:center;

}

.beneficio{

    font-size:1.1rem;

}

.beneficio h4{

    margin:15px 0;

    font-size:1.2rem;

}

.beneficio p{

    color:#b8c2d6;

    line-height:1.7;

}

/*======================*/

@media(max-width:900px){

.titulo-servicios h2{

font-size:2.3rem;

}

}

.testimonios{

    background:#060B16;

    padding:120px 8%;

    color:white;

}

/************************/

.titulo-testimonios{

    text-align:center;

    max-width:900px;

    margin:auto;

}

.titulo-testimonios span{

    color:#8B5CF6;

    letter-spacing:4px;

    font-weight:bold;

}

.titulo-testimonios h2{

    font-size:3.4rem;

    margin:20px 0;

}

.titulo-testimonios h2 span{

    display:block;

    background:linear-gradient(90deg,#7C5CFF,#3BA8FF,#44D07D);

    -webkit-background-clip:text;

    color:transparent;

}

.titulo-testimonios p{

    color:#B7C2D4;

    font-size:1.1rem;

}

/************************/

.contenedor-testimonios{

    margin-top:70px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));

    gap:35px;

}

/************************/

.testimonio{

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:35px;

    transition:.35s;

    position:relative;

}

.testimonio:hover{

    transform:translateY(-10px);

    border-color:#5F8CFF;

    box-shadow:0 15px 40px rgba(0,0,0,.45);

}

.destacado{

    border:1px solid #6D4BFF;

}

/************************/

.cabecera{

    display:flex;

    align-items:center;

    gap:18px;

}

.cabecera img{

    width:65px;

    height:65px;

    border-radius:50%;

    object-fit:cover;

}

.cabecera h3{

    margin-bottom:5px;

}

.cabecera small{

    color:#8FA3C8;

}

/************************/

.comillas{

    font-size:4rem;

    color:#7C5CFF;

    margin-top:25px;

    line-height:1;

}

/************************/

.testimonio p{

    margin-top:15px;

    line-height:1.9;

    color:#C4CEDF;

}

/************************/

.estrellas{

    margin-top:25px;

    color:#FFD93D;

    font-size:1.2rem;

}

/************************/

.estadisticas{

    margin-top:90px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:1px;

    background:#252F45;

    border-radius:20px;

    overflow:hidden;

}

.dato{

    background:#111827;

    padding:40px;

    text-align:center;

}

.dato h3{

    font-size:3rem;

    color:white;

}

.dato p{

    color:#AAB8CF;

    margin-top:10px;

}

.proyectos{

    background:#060B16;
    color:white;

    padding:120px 8%;

}

/********************/

.titulo-proyectos{

    text-align:center;
    max-width:900px;

    margin:auto;

}

.subtitulo{

    color:#8B5CF6;

    letter-spacing:4px;

    font-weight:bold;

}

.titulo-proyectos h2{

    margin-top:20px;

    font-size:3.5rem;

}

.titulo-proyectos h2 span{

    display:block;

    background:linear-gradient(90deg,#7C5CFF,#3BA8FF,#44D07D);

    -webkit-background-clip:text;

    color:transparent;

}

.titulo-proyectos p{

    color:#B7C2D4;

    margin-top:20px;

}

/********************/

.filtros{

    margin-top:60px;

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}

.filtros button{

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    color:white;

    padding:12px 24px;

    border-radius:40px;

    cursor:pointer;

    transition:.3s;

}

.filtros button:hover,
.filtros .activo{

    background:#6D4BFF;

}

/********************/

.grid-proyectos{

    margin-top:60px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:35px;

}

/********************/

.proyecto{

    background:#111827;

    border-radius:20px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

.proyecto:hover{

    transform:translateY(-10px);

    border-color:#6D4BFF;

    box-shadow:0 20px 45px rgba(0,0,0,.45);

}

.proyecto img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.contenido{

    padding:30px;

}

.categoria{

    display:inline-block;

    padding:8px 16px;

    border-radius:30px;

    font-size:.85rem;

    margin-bottom:20px;

}

.web{

    background:#32215A;

    color:#B9A3FF;

}

.seguridad{

    background:#193622;

    color:#73FFAA;

}

.app{

    background:#163252;

    color:#5EB7FF;

}

.contenido h3{

    margin-bottom:15px;

}

.contenido p{

    color:#B8C4D7;

    line-height:1.8;

}

/********************/

.stack{

    margin-top:25px;

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.stack span{

    background:#1C2335;

    padding:8px 14px;

    border-radius:30px;

    color:#8EC7FF;

    font-size:.85rem;

}

/********************/

.acciones{

    margin-top:30px;

    display:flex;

    justify-content:space-between;

}

.acciones a{

    color:white;

    text-decoration:none;

    transition:.3s;

}

.acciones a:hover{

    color:#7C5CFF;

}

.contacto{

    padding:120px 8%;

    background:#070B16;

    color:white;

}

/******************/

.titulo-contacto{

    text-align:center;

    max-width:850px;

    margin:auto;

}

.subtitulo{

    color:#8B5CF6;

    letter-spacing:4px;

    font-weight:bold;

}

.titulo-contacto h2{

    font-size:3.5rem;

    margin:20px 0;

}

.titulo-contacto h2 span{

    display:block;

    background:linear-gradient(90deg,#7C5CFF,#3BA8FF,#44D07D);

    -webkit-background-clip:text;

    color:transparent;

}

.titulo-contacto p{

    color:#B6C2D6;

    line-height:1.8;

}

/******************/

.contacto-grid{

    margin-top:70px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

/******************/

.card-contacto{

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:35px;

    color:white;

    text-decoration:none;

    transition:.35s;

    position:relative;

}

.card-contacto:hover{

    transform:translateY(-8px);

    border-color:#6D4BFF;

    box-shadow:0 20px 40px rgba(0,0,0,.45);

}

.card-contacto span{

    position:absolute;

    bottom:25px;

    right:25px;

    font-size:1.4rem;

    color:#8B5CF6;

}

.card-contacto h3{

    margin:25px 0 10px;

}

.card-contacto p{

    color:#C5CFDF;

}

.card-contacto small{

    color:#9AAAC5;

}

/******************/

.icono{

    width:80px;
    height:80px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

}

.icono img{

    width:38px;
    height:38px;

    object-fit:contain;

}

.morado{

    background:rgba(124,92,255,.15);

    color:#8B5CF6;

}

.azul{

    background:rgba(43,137,255,.15);

    color:#4AA3FF;

}

.verde{

    background:rgba(46,204,113,.15);

    color:#46D37A;

}

/******************/

.redes{

    margin-top:35px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}

.redes a{

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:15px;

    padding:22px;

    color:white;

    text-decoration:none;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    transition:.3s;

}

.redes img{

    width:38px;
    height:38px;

    object-fit:contain;

}

.redes a:hover{

    border-color:#7C5CFF;

    color:#7C5CFF;

}

/******************/

.cta-contacto{

    margin-top:45px;

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:45px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

}

.texto{

    display:flex;

    align-items:center;

    gap:25px;

}

.cohete{

    width:90px;

    height:90px;

    border-radius:50%;

    background:linear-gradient(135deg,#7C5CFF,#39C7FF);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:2.3rem;

}

.texto h3{

    font-size:2rem;

}

.texto p{

    margin-top:10px;

    color:#B6C2D6;

    line-height:1.7;

}

/******************/

.btn-contacto{

    padding:18px 50px;

    border-radius:14px;

    background:linear-gradient(90deg,#7C5CFF,#39C7FF,#44D07D);

    color:white;

    text-decoration:none;

    font-weight:bold;

    transition:.35s;

}

.btn-contacto:hover{

    transform:scale(1.05);

}

.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: #3498db;
}

/* 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;
}

