*{
    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);
}

/* ---------------- MENÚ HAMBURGUESA MODERNO ---------------- */

.menu-toggle{
    display:none;
    width:45px;
    height:45px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,0.15);
    color:white;
    font-size:1.8em;
    cursor:pointer;
    backdrop-filter:blur(10px);
    transition:.3s ease;
}

.menu-toggle:hover{
    background:#0077ff;
    transform:scale(1.05);
}

.login-mobile{
    display:none;
}

@media(max-width:768px){

    header{
        flex-direction:row;
        padding:12px 18px;
    }

    .logo img{
        width:48px;
    }

    .logo h1{
        font-size:1.5em;
    }

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        z-index:1002;
    }

    header nav{
        position:absolute;
        top:110%;
        left:50%;
        transform:translateX(-50%) translateY(-15px);
        width:90%;
        max-width:420px;

        display:flex;
        flex-direction:column;
        gap:12px;

        padding:18px;
        border-radius:24px;

        background:rgba(10, 25, 45, 0.88);
        backdrop-filter:blur(18px);
        box-shadow:0 20px 50px rgba(0,0,0,0.35);

        opacity:0;
        pointer-events:none;
        transition:.35s ease;
    }

    header nav.active{
        opacity:1;
        pointer-events:auto;
        transform:translateX(-50%) translateY(0);
    }

    header nav a{
        width:100%;
        padding:14px 18px;
        border-radius:16px;

        background:rgba(255,255,255,0.10);
        color:white;
        text-align:center;
        font-size:1em;
        font-weight:500;

        box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08);
        transition:.3s ease;
    }

    header nav a:hover{
        background:#0077ff;
        color:white;
        transform:translateY(-2px) scale(1.02);
        box-shadow:0 8px 20px rgba(0,119,255,0.35);
    }

    header nav a::after{
        display:none;
    }

    .login{
        display:none;
    }

    .login-mobile{
        display:block;
        background:linear-gradient(135deg,#0077ff,#00c3ff);
        font-weight:bold;
        box-shadow:0 10px 25px rgba(0,119,255,0.35);
    }
}

/* ---------------- 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;
}

/* --------------------- INICIO RECORDADO ---------------------*/

.remember-profile {
    position: relative;
    margin-left: 25px;
    text-align: center;
}

.remember-user {
    text-decoration: none;
    color: #222;
    display: block;
}

.remember-user img {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    transition: transform 0.3s ease;
}

.remember-user img:hover {
    transform: scale(1.05);
}

.remember-user p {
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: 700;
}

.remember-user span {
    font-size: 0.85rem;
    color: #555;
}

.forget-user {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e63946;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
    line-height: 26px;
    font-weight: bold;
    z-index: 2;
}

@media (max-width: 768px) {
    .remember-profile {
        margin-left: 0;
        margin-top: 25px;
    }
}

/* ------------------------------------------------------------ REGISTRO.PHP ------------------------------------------------------------ */
.legal-registro-box{
    margin-top:18px;
    padding:16px;
    background:#f9fafb;
    border:1px solid #e5e7eb;
    border-radius:14px;
}

.legal-registro-box a{
    font-weight:700;
}

.legal-mensaje-pendiente,
.legal-mensaje-ok{
    display:block;
    margin-top:10px;
    font-size:13px;
    line-height:1.4;
}

.legal-mensaje-pendiente{
    color:#d97706;
}

.legal-mensaje-ok{
    color:#1f9d55;
    font-weight:700;
}

.terminos-label input:disabled{
    cursor:not-allowed;
}






.legal-mensaje {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    line-height: 1.4;
}










.registro-card{
    width: 600px;
}
.registro-container{
    text-align:center;
    padding: 50px;
}
#form1 h4{
    color: #0000006b;
    margin: 10px;
}
/*-------------------------------- Advertencias --------------------------------*/
.email-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #7a5a00;

    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;

    overflow: hidden;

    opacity: 0;
    max-height: 0;

    padding: 0 14px;
    margin: 0;

    pointer-events: none;
    transition: all .25s ease;
}

.email-warning.show {
    opacity: 1;
    max-height: 100px;

    padding: 12px 14px;
    margin-top: 10px;
    margin-bottom: 14px;

    pointer-events: auto;
}

.email-warning i {
    margin-top: 3px;
    color: #f0a500;
}

/*-------------------------------- Seguridad de Contrasena --------------------------------*/
.password-strength {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: .3s ease;
}

.password-strength small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

/*-------------------------------- Visualizar contrasena --------------------------------*/

.password-box{
    position: relative;
    width: 100%;
}

.password-box input{
    width:100%;
    padding-right:45px;
}

.toggle-password{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);

    border:none;
    background:transparent;
    cursor:pointer;
    color:#777;
    font-size:16px;
    padding:0;

    opacity:0;
    visibility:hidden;
    transition:.2s;
}

.toggle-password.visible{
    opacity:1;
    visibility:visible;
}

.toggle-password:hover{
    color:#2e7d32;
}

/*-------------------------------- Terminos y condiciones --------------------------------*/
.terminos-box {
    width: 100%;
    margin: 16px 0 20px;
}

.terminos-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.terminos-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    padding: 0;
    accent-color: #0a84ff;
    cursor: pointer;
}

.terminos-label span {
    flex: 1;
}

.terminos-label a {
    color: #0a84ff;
    text-decoration: none;
    font-weight: 500;
}

.terminos-label a:hover {
    text-decoration: underline;
}
/* -------------------- 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;
    }
}


/* ================= RESPONSIVE LOGIN MODERNO ================= */

@media (max-width: 768px){

    .center-wrapper{
        min-height:100vh;
        padding:90px 18px 35px;
        align-items:flex-start;
    }

    .login-container{
        width:100%;
        max-width:430px;
    }

    .login-logo{
        margin-bottom:18px;
    }

    .login-logo img{
        width:75px;
    }

    .login-logo h1{
        font-size:2.3em;
    }

    .login-card{
        width:100%;
        padding:28px 22px;
        border-radius:22px;
        gap:14px;
        background:rgba(255,255,255,0.92);
        box-shadow:0 18px 45px rgba(0,0,0,0.22);
    }

    .login-card h2{
        font-size:1.6em;
        margin-bottom:5px;
    }

    .login-card input{
        padding:13px 14px;
        font-size:0.95em;
        border-radius:12px;
    }

    .login-btn,
    .google-btn{
        min-height:45px;
        border-radius:12px;
        font-size:0.95em;
    }

    .google-btn{
        margin-top:4px;
    }

    .login-card p{
        font-size:0.95em;
        line-height:1.5;
    }

    .forgot-password a{
        display:inline-block;
        font-size:0.95em;
        margin-top:2px;
    }

    .back{
        top:18px;
        left:18px;
        width:45px;
        height:45px;
        padding-left:14px;
        z-index:1000;
    }

    .back:hover{
        width:45px;
    }

    .back span{
        display:none;
    }
}

@media (max-width: 480px){

    .center-wrapper{
        padding:85px 14px 25px;
    }

    .login-logo img{
        width:65px;
    }

    .login-logo h1{
        font-size:2em;
    }

    .login-card{
        padding:24px 18px;
        border-radius:20px;
    }

    .login-card h2{
        font-size:1.45em;
    }

    .login-card input{
        padding:12px 13px;
    }

    .alerta-error,
    .alerta-exito{
        font-size:13px;
        padding:10px;
    }
}
@media (max-width: 768px){
    body{
        background:
            radial-gradient(circle at top, rgba(0,119,255,0.25), transparent 35%),
            linear-gradient(135deg,#ffffff,#d1f7ff,#ffffff);
    }

    .login-card{
        border:1px solid rgba(255,255,255,0.7);
        backdrop-filter:blur(14px);
    }
}


/* ================= RESPONSIVE GENERAL ================= */

@media (max-width: 1024px){
    header{
        padding:10px 25px;
    }

    nav{
        gap:15px;
    }

    .hero-content h2{
        font-size:2.8em;
    }

    .hero-content p{
        font-size:1.3em;
    }

    .info{
        padding:70px 6%;
    }

    .info-container{
        padding:35px;
    }

    .card{
        flex:0 0 85%;
    }

    .adicciones-container{
        gap:20px;
    }

    .adicciones-text h2{
        font-size:2.1em;
    }

    .adicciones-text p,
    .adiccion-card p{
        font-size:1.25em;
    }
}

@media (max-width: 768px){
    header{
        flex-direction:column;
        gap:12px;
        padding:12px 20px;
    }

    .logo img{
        width:45px;
    }

    .logo h1{
        font-size:1.6em;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    nav a{
        font-size:0.95em;
    }

    .login{
        padding:7px 16px;
    }

    .hero{
        height:80vh;
        padding-top:120px;
    }

    .hero-content h2{
        font-size:2.2em;
    }

    .hero-content p{
        font-size:1.1em;
    }

    .info-container{
        flex-direction:column;
        text-align:center;
        padding:30px 20px;
    }

    .info-text,
    .info-img{
        min-width:100%;
    }

    .servicios-title{
        font-size:2em;
    }

    .carrusel{
        padding:10px 3%;
    }

    .card{
        flex:0 0 90%;
        padding:40px 25px;
    }

    .card h3{
        font-size:1.6em;
    }

    .card p{
        font-size:1.15em;
    }

.adicciones{
    height:500vh;
    padding:50px 6%;
    background-attachment:scroll;
}

.adicciones-container{
    position:sticky;
    top:80px;
    height:calc(100vh - 80px);
    flex-direction:column;
    text-align:center;
    justify-content:center;
}

.adicciones-scroll{
    flex-direction:column;
    gap:25px;
    width:100%;
}

.adicciones-carrusel{
    max-width:100%;
    height:350px;
    overflow:hidden;
}

.adicciones-track{
    gap:0;
}

.adiccion-card{
    height:350px;
    min-height:350px;
    padding:30px 22px;
}

.dots-vertical{
    flex-direction:row;
}


    .cta{
        padding:120px 6%;
        background-attachment:scroll;
    }

    .cta h2{
        font-size:2.2em;
    }

    .cta p{
        font-size:1.15em;
    }

    .login-card,
    .registro-card{
        width:100%;
        max-width:420px;
    }

    .registro-container{
        padding:25px 15px;
    }

    .fila,
    .fila2{
        grid-template-columns:1fr;
    }

    .back{
        top:20px;
        left:20px;
    }
}

@media (max-width: 480px){
    header{
        padding:10px 12px;
    }

    nav a{
        font-size:0.85em;
    }

    .hero-logo{
        width:75px;
    }

    .hero-content h2{
        font-size:1.8em;
    }

    .hero-content p{
        font-size:1em;
    }

    .btn-hero,
    .btn-cta{
        width:100%;
        padding:12px 20px;
    }

    .info-text h2,
    .servicios-title,
    .adicciones-text h2{
        font-size:1.7em;
    }

    .info-text p,
    .adicciones-text p,
    .adiccion-card p{
        font-size:1em;
    }

    .img-card{
        width:110px;
    }

    .card{
        padding:35px 18px;
    }

    .card h3,
    .adiccion-card h3{
        font-size:1.4em;
    }

    .cta h2{
        font-size:1.8em;
    }

    .login-logo img{
        width:75px;
    }

    .login-logo h1{
        font-size:2.2em;
    }

    .login-card{
        padding:22px;
    }

    .footer-top{
        text-align:center;
    }

    .footer-col{
        align-items:center;
    }
}

/* ================= RESPONSIVE REGISTRO MODERNO ================= */

@media (max-width: 768px){

    .registro-container{
        width:100%;
        padding:0;
    }

    .registro-card{
        width:100%;
        max-width:460px;
        padding:28px 22px;
        border-radius:24px;
        gap:14px;
    }

    #form1 h1,
    #form2 h2{
        font-size:1.8em;
        margin-bottom:5px;
    }

    #form1 h4{
        margin:18px 0 10px;
        font-size:0.95em;
        text-align:left;
        color:#0077ff;
        letter-spacing:0.3px;
    }

    .fila,
    .fila2,
    .fila1{
        grid-template-columns:1fr;
        gap:8px;
    }

    .login-card input,
    .login-card select{
        min-height:44px;
        padding:12px 14px;
        border-radius:13px;
        font-size:0.95em;
    }

    .email-warning{
        font-size:12.5px;
        border-radius:14px;
    }

    .email-warning.show{
        max-height:160px;
    }

    .password-strength{
        margin-top:4px;
        margin-bottom:14px;
    }

    .terminos-box{
        margin:14px 0 18px;
        padding:12px;
        border-radius:16px;
        background:rgba(0,119,255,0.06);
        border:1px solid rgba(0,119,255,0.12);
    }

    .terminos-label{
        font-size:13px;
    }

    .login-btn{
        min-height:45px;
        border-radius:13px;
        font-size:0.95em;
    }

    .custom-upload{
        width:100%;
        padding:13px;
        border-radius:13px;
        text-align:center;
        margin-top:10px;
    }

    .preview-container{
        max-height:330px;
        overflow:hidden;
        border-radius:18px;
        background:#f1f5f9;
    }

    #image{
        max-height:300px;
        object-fit:contain;
    }

    #previewImg{
        width:125px;
        height:125px;
    }
}

@media (max-width: 480px){

    .center-wrapper{
        padding:85px 14px 25px;
    }

    .registro-card{
        max-width:100%;
        padding:24px 18px;
        border-radius:22px;
    }

    #form1 h1,
    #form2 h2{
        font-size:1.6em;
    }

    #form1 h4{
        font-size:0.9em;
    }

    .login-card input,
    .login-card select{
        font-size:0.9em;
        min-height:42px;
    }

    .terminos-label{
        font-size:12.5px;
    }

    .password-strength small{
        font-size:12px;
    }
}

@media (max-width: 768px){
    .registro-card{
        border:1px solid rgba(255,255,255,0.7);
        box-shadow:0 20px 50px rgba(0,0,0,0.22);
        background:rgba(255,255,255,0.94);
        backdrop-filter:blur(14px);
    }

    #form1 h4{
        padding-left:10px;
        border-left:4px solid #0077ff;
    }
}

/* ================= RESPONSIVE RESTABLECER PASSWORD ================= */

@media (max-width: 768px){

    .center-wrapper{
        min-height:100vh;
        padding:85px 18px 35px;
        align-items:flex-start;
    }

    .login-container{
        width:100%;
        max-width:430px;
    }

    .login-logo{
        margin-bottom:18px;
    }

    .login-logo img{
        width:75px;
    }

    .login-logo h1{
        font-size:2.3em;
    }

    .login-card{
        width:100%;
        padding:28px 22px;
        border-radius:22px;
        gap:14px;
        background:rgba(255,255,255,0.94);
        border:1px solid rgba(255,255,255,0.7);
        backdrop-filter:blur(14px);
        box-shadow:0 18px 45px rgba(0,0,0,0.22);
    }

    .login-card h2{
        font-size:1.55em;
        margin-bottom:5px;
    }

    .login-card input{
        min-height:44px;
        padding:12px 14px;
        border-radius:13px;
        font-size:0.95em;
    }

    .password-strength{
        margin-top:4px;
        margin-bottom:14px;
    }

    .password-strength small{
        font-size:12.5px;
    }

    .login-btn{
        min-height:45px;
        border-radius:13px;
        font-size:0.95em;
    }

    .alerta-error,
    .alerta-exito{
        font-size:13px;
        padding:10px;
        border-radius:12px;
    }
}

@media (max-width: 480px){

    .center-wrapper{
        padding:80px 14px 25px;
    }

    .login-logo img{
        width:65px;
    }

    .login-logo h1{
        font-size:2em;
    }

    .login-card{
        padding:24px 18px;
        border-radius:20px;
    }

    .login-card h2{
        font-size:1.35em;
    }

    .login-card input{
        min-height:42px;
        font-size:0.9em;
    }

    .login-btn{
        font-size:0.9em;
    }
}