*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}
html{
    scroll-behavior: smooth;
}

/* ------------------------------------------------------------ INDEX.HTML ------------------------------------------------------------ */
body{
    min-height:100vh;
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    background:linear-gradient(135deg,#ffffff,#d1f7ff,#ffffff);
}

/* ---------------- HEADER ---------------- */
header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    z-index:1000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 40px;
    background:rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    transition:all 0.3s ease;
}

/* --------------- CUANDO HACES SCROLL --------------- */
header.scrolled{
    background:rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    box-shadow:0 5px 20px rgba(0,0,0,0.3);
}
.logo{
    display:flex;
    align-items:center;
    gap: 10px;
}
.logo img{
    width: 60px;
}
.logo h1{
    color:white;
    font-size:2em;
}
nav{
    display:flex;
    gap:25px;
}
nav a{
    text-decoration:none;
    color:white;
    font-size:1.1em;
    position:relative;
    transition:.3s;
}
nav a:hover{
    color:#00c3ff;
}
nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background:#00c3ff;
    transition:.3s;
}
nav a:hover::after{
    width:100%;
}
.login{
    padding:8px 20px;
    border:none;
    border-radius:20px;
    background:#0077ff;
    color:white;
    cursor:pointer;
    transition:.3s;
    text-decoration:none;
}
.login:hover{
    background:#005fe0;
    transform:scale(1.05);
}

/* ---------------- PORTADA ---------------- */
.hero{
    position:relative;
    height:90vh;
    width:100%;
    background:url("imagenes/Contenedor\ emocional.jpg") no-repeat center center/cover;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:rgb(255, 255, 255);
}
.overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(112, 112, 112, 0.434);
}
.hero-content{
    position:relative;
    z-index:2;
    max-width:800px;
    padding:20px;
}
.hero-logo{
    width:100px;
    margin-bottom:15px;
}
.hero-content h2{
    font-size:3.5em;
    margin-bottom:15px;
}
.hero-content p{
    font-size:1.6em;
    margin-bottom:15px;
    line-height:1.5;
}
.btn-hero{
    display:inline-block;
    margin-top:15px;
    padding:12px 30px;
    border-radius:30px;
    background:#0077ff;
    color:white;
    text-decoration:none;
    font-size:1.1em;
    transition:.3s;
}
.btn-hero:hover{
    background:#005fe0;
    transform:scale(1.05);
}

/* ---------------- INFORMACIÓN DE TRATAMIENTO ---------------- */
.info{
    padding:100px 10%;
    background:linear-gradient(135deg,#f5f7fa,#e4ecf5);
}
.info-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    flex-wrap:wrap;
    background:#ffffff;
    padding:50px;
    border-radius:25px;
    border:1px solid rgba(0,0,0,0.08);
    box-shadow:0 25px 50px rgba(0, 0, 0, 0.438);
    position:relative;
}
.info-text{
    flex:1;
    min-width:300px;
}
.info-text h2{
    font-size:2.5em;
    margin-bottom:20px;
    color:#333;
}
.info-text p{
    font-size:1.1em;
    color:#555;
    margin-bottom:15px;
    line-height:1.6;
}
.info-img{
    flex:1;
    min-width:300px;
    text-align:center;
}
.info-img img{
    width:100%;
    max-width:300px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* ---------------- SECCIÓN SERVICIOS / CARRUSEL ---------------- */
.servicios{
    padding:70px 5%;
    background:#f8fafc;
    text-align:center;
}
.servicios-title{
    font-size:2.5em;
    margin-bottom:10px;
    color:#333;
}
.servicios-subtitle{
    font-size:1.1em;
    color:#666;
    margin-bottom:40px;
}

/* ------------------ CARRUSEL HORIZONTAL ------------------ */
.carrusel{
    display:flex;
    gap:30px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:10px 10%;
}

/* ------------------ SCROLL BONITO ------------------ */
.carrusel::-webkit-scrollbar{
    display:none;
}
.carrusel{
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.indicadores{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:25px;
}
.dot{
    width:15px;
    height:15px;
    border-radius:50%;
    background:#ffffff;
    transition:.3s;
}

/* ------------------ COLORES EMOCIONALES ------------------ */
.dot:nth-child(1){ background:#4caf50; } /* calma */
.dot:nth-child(2){ background:#2196f3; } /* control */
.dot:nth-child(3){ background:#ff9800; } /* aprendizaje */
.dot:nth-child(4){ background:#e91e63; } /* motivación */
.dot:nth-child(5){ background:#9c27b0; } /* apoyo */
.dot.active{
    transform:scale(1.8);
}

/* ------------------ TARJETAS ------------------ */
.card{
    flex:0 0 70%;
    min-height:350px; /* 🔥 más altura */
    background:white;
    padding:60px 40px;
    border-radius:25px;
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
    scroll-snap-align:center;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    transition:.3s;
}
.card:hover{
    transform:translateY(-10px);
}
.img-card{
    width:150px;
    margin-bottom:15px;
    filter: grayscale(100%) brightness(0.8);
    opacity:0.8;
    transition:0.4s ease;
}
.card:hover .img-card{
    filter: grayscale(0%) brightness(1);
    opacity:1;
    transform:scale(1.1);
}
.card h3{
    font-size:2em;
    margin-bottom:15px;
    color:#0077ff;
}
.card p{
    font-size:1.5em;
    color:#555;
    line-height:1.6;
}

/* ---------------- SECCIÓN ADICCIONES ---------------- */
.adicciones{
    padding:50px 6%;
    height:500vh;
    position:relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.6s ease-in-out;
}
.adicciones::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(255, 255, 255, 0.586); /* opacidad */
    z-index:0;
}

/* ------------------ CONTENEDOR FIJO ------------------ */
.adicciones-container{
    position:sticky;
    top:0;
    z-index:1;
    height:100vh;
    display:flex;
    align-items:center;
    gap:30px;
}

/* ------------------ IZQUIERDA ------------------ */
.adicciones-text{
    flex:1;
    max-width:500px;
}
.adicciones-text h2{
    font-size:2.5em;
    margin-bottom:20px;
}
.adicciones-text p{
    font-size:1.7em;
    color:#262626;
}

/* ------------------ DERECHA ------------------ */
.adicciones-scroll{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:70px;
}

/* ------------------ CONTENEDOR BASE ------------------ */
.adicciones-carrusel{
    height:350px;
    width:100%;
    max-width:500px;
    overflow:hidden;
    position:relative;
    border-radius:25px;
    transition:box-shadow 0.5s ease, transform 0.3s ease;
}

/* ------------------ COLORES DINÁMICOS ------------------ */
.adicciones-carrusel.green{
    box-shadow:0 0 80px rgba(76, 175, 79, 0.8);
}
.adicciones-carrusel.blue{
    box-shadow:0 0 80px rgba(33, 149, 243, 0.8);
}
.adicciones-carrusel.orange{
    box-shadow:0 0 80px rgba(255, 153, 0, 0.8);
}
.adicciones-carrusel.pink{
    box-shadow:0 0 80px rgba(233, 30, 99, 0.8);
}
.adicciones-carrusel.purple{
    box-shadow:0 0 80px rgba(156, 39, 176, 0.8);
}

/* ------------------ TRACK (EL QUE SE MUEVE) ------------------ */
.adicciones-track{
    display:flex;
    flex-direction:column;
    transition:transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------ TARJETAS ------------------ */
.adiccion-card{
    height:350px;
    min-height:350px;
    padding:40px;
    border-radius:25px;
    background:white;
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
    display:flex;
    flex-direction:column;
    justify-content:center;
    transition:transform 0.4s ease, box-shadow 0.4s ease;
}

/* ------------------ EFECTO LIGERO AL ESTAR CENTRADO ------------------ */
.adiccion-card:hover{
    transform:scale(1.03);
    box-shadow:0 20px 50px rgba(0,0,0,0.18);
}
.adiccion-card h3{
    color:#0077ff;
    font-size:2em;
    margin-bottom:15px;
}
.adiccion-card p{
    font-size:1.5em;
    color:#555;
}

/* ------------------ DOTS ------------------ */
.dots-vertical{
    display:flex;
    flex-direction:column;
    gap:15px;
}
.dot-v{
    width:15px;
    height:15px;
    border-radius:50%;
    background:#ccc;
    transition:.3s;
}

/* ------------------ COLORES ------------------ */
.dot-v:nth-child(1){ background:#4caf50; }
.dot-v:nth-child(2){ background:#2196f3; }
.dot-v:nth-child(3){ background:#ff9800; }
.dot-v:nth-child(4){ background:#e91e63; }
.dot-v:nth-child(5){ background:#9c27b0; }
.dot-v.active{
    transform:scale(1.8);
}

/* ------------------ CTA ------------------ */
.cta{
    position:relative;
    padding:200px 10%;
    text-align:center;
    color:white;
    background: url("imagenes/FondoCta.jpg") center/cover no-repeat;
    background-attachment: fixed;
}
.cta::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(151, 151, 151, 0.6); /* ajusta opacidad */
    z-index:0;
}
.cta-container{
    position:relative;
    z-index:1;
    max-width:800px;
    margin:auto;
}
.cta h2{
    font-size:3em;
    margin-bottom:20px;
}
.cta p{
    font-size:1.5em;
    margin-bottom:15px;
    line-height:1.6;
    opacity:0.95;
}

/* ------------------ BOTON CTA ------------------ */
.btn-cta{
    position:relative;
    display:inline-block;
    margin-top:20px;
    padding:14px 35px;
    border-radius:30px;
    background-color: white;
    color:#0077ff;
    text-decoration:none;
    font-size:1.1em;
    font-weight:bold;
    overflow:hidden;
    z-index:1;
    transition: color 0.7s ease;
}

/* ------------------ CAPA ANIMADA ------------------ */
.btn-cta::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:0%;
    height:100%;
    background:#0077ff;
    z-index:-1;
    transition: width 0.7s ease;
}

/* ------------------ HOVER ------------------ */
.btn-cta:hover{
    color:white;
    transform:scale(1.05);
}
.btn-cta:hover::before{
    width:100%;
}

/* ------------------------------------------------------------ LOGIN.PHP ------------------------------------------------------------ */
.center-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}
.back{
    position:fixed;
    top:40px;
    left:40px;
    display:flex;
    align-items:center;
    gap:10px;
    width:45px;
    height:45px;
    padding-left:14px;
    background:#0077ff;
    color:white;
    text-decoration:none;
    border-radius:50px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,0.2);
    transition:
        width .3s ease,
        box-shadow .3s ease,
        all 0.25s ease;
}
.back i{
    font-size:18px;
    min-width:20px;
    transition:transform .3s ease;
}
.back span{
    font-size:16px;
    white-space:nowrap;
    opacity:0;
    transform:translateX(-10px);
    transition:
        opacity .2s ease,
        transform .3s ease;
}
.back:hover{
    width:185px;
    box-shadow:0 6px 20px rgba(0,0,0,0.3);
}
.back:hover span{
    opacity:1;
    transform:translateX(0);
}
.back:hover i{
    transform:translateX(-3px);
}
.back:active{
    transform: scale(0.98);
}

/* --------------------- CONTENEDOR ---------------------*/
.login-container{
    text-align:center;
}

/* --------------------- LOGO ---------------------*/
.login-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    gap: 10px;
    margin-bottom: 20px;
}
.login-logo img{
    width: 100px;
}
.login-logo h1{
    color:rgb(0, 0, 0);
    font-size: 3em;
}

/* --------------------- TARJETA ---------------------*/
.login-card{
    background:rgba(255,255,255,0.9);
    backdrop-filter:blur(10px);
    padding:30px;
    border-radius:12px;
    width:360px;
    display:flex;
    flex-direction:column;
    gap:15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
}
#correo{
    margin-bottom: -8px;
}

/* --------------------- INPUTS ---------------------*/
.login-card input, select{
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:1em;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
}
.login-card input:focus{
    outline:none;
    border-color:#0077ff;
}

/* --------------------- BOTON ---------------------*/
.login-btn{
    padding:10px;
    border:none;
    border-radius:8px;
    background:#0077ff;
    color:white;
    cursor:pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    width: 100%;
}
.login-btn1{
    margin-top: 10px;
    margin-bottom: 15px
}
.login-btn:hover{
    background:#005fe0;
}
.login-btn:active{
    transform: scale(0.98);
}

/* --------------------- BOTON GOOGLE---------------------*/
.google-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
}
.google-btn:hover{
    background: #0077ff;
    border-color: #ccc;
    color: white;
}
.google-btn:active{
    transform: scale(0.98);
}
.google-btn img{
    width:18px;
    height:18px;
}

/* --------------------- TEXTO ---------------------*/
.login-card p{
    font-size:1em;
}
.login-card a{
    color:#0077ff;
    text-decoration:none;
}
.login-card a:hover{
    text-decoration:underline;
}

/* --------------------- FILAS DE INPUTS ---------------------*/
.fila{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
}

.fila input,
.fila select{
    width:100%;
}

.ocupa-2{
    grid-column: 1 / -1;
}

.fila1{
    display:grid;
    grid-template-columns: repeat(1, 1fr);
    gap:10px;
}
.fila1 input,
.fila1 select{
    width:100%;
}





.fila2{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
}
.fila2 input,
.fila2 select{
    width:100%;
}

/* --------------------- SELECT ---------------------*/
.login-card select{
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:1em;
}

/* ------------------------------------------------------------ REGISTRO.PHP ------------------------------------------------------------ */
.registro-card{
    width: 600px;
}
.registro-container{
    text-align:center;
    padding: 50px;
}
#form1 h4{
    color: #0000006b;
    margin: 10px;
}

/* -------------------- ALERTAS -------------------- */
.alerta-exito{
    background: #d4edda;
    color: #155724;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 14px;
}
.alerta-error{
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
}

/* -------------------- SELECCION DE IMAGEN -------------------- */
.custom-upload input{
    display:none;
}
.custom-upload{
    display:inline-block;
    padding:10px 15px;
    background:#0077ff;
    color:white;
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
    transition:0.2s;
}
.custom-upload:hover{
    background:#0054b4;
}
.preview-container{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:10px;
}
.preview-final{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:15px;
}
#previewImg{
    display:none;
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid #ccc;
}


/* ---------------- FOOTER ---------------- */
.footer{
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 0 30px;
}

/* ------------------ FONDO ------------------ */
.footer::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: url("imagenes/Ayuda2.jpg") center/cover no-repeat;
    z-index:-2;
}

/* ------------------ OVERLAY ------------------ */
.footer-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.78),
        rgba(8,25,40,0.78),
        rgba(15,50,75,0.72)
    );
    z-index:-1;
}

/* ------------------ CONTENEDOR ------------------ */
.footer-container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
    color: white;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s ease;
}

/* ------------------ ANIMACIÓN ------------------ */
.footer.show .footer-container{
    transform: translateY(0);
    opacity: 1;
}

/* ---------------- 3 COLUMNAS ---------------- */
.footer-top{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* ------------------ COLUMNAS ------------------ */
.footer-col{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ------------------ LOGO ------------------ */
.footer-logo{
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* ------------------ TEXTOS ------------------ */
.footer-col h2{
    font-size: 1.8em;
    color: #fff;
}
.footer-col h3{
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #fff;
}
.footer-col p{
    font-size: 0.95em;
    line-height: 1.6;
    color: #dddddd;
}

/* ------------------ LINKS ------------------ */
.footer-col a{
    color: #dddddd;
    text-decoration: none;
    font-size: 0.95em;
    transition: 0.3s ease;
}
.footer-col a:hover{
    color: #7ed8ff;
    transform: translateX(3px);
}

/* ------------------ BOTÓN ------------------ */
.btn-footer{
    display: inline-block;
    padding: 12px 26px;
    background: linear-gradient(135deg, #0a84ff, #0066d6);
    color: white;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    margin-top: 10px;
}
.btn-footer:hover{
    background: linear-gradient(135deg, #1a90ff, #005fcc);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.32);
}

/* ---------------- COPYRIGHT ---------------- */
.footer-bottom{
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
}
.footer-bottom p{
    font-size: 0.9em;
    color: #cfcfcf;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px){
    .footer{
        min-height: auto;
        padding: 60px 0 25px;
    }
}
@media (max-width: 900px){
    .footer-top{
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .btn-footer{
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 600px){
    .footer{
        padding: 50px 0 25px;
    }
    .footer-container{
        padding: 0 6%;
    }
    .footer-col h2{
        font-size: 1.6em;
    }
    .footer-col h3{
        font-size: 1.2em;
    }
    .footer-col p,
    .footer-col a{
        font-size: 0.9em;
    }
}