/* --- CONFIGURACIÓN Y RESET --- */
html {
    scroll-behavior: smooth;
}

:root {
    --azul-daxer: #01909d;
    --verde-agua: #01e441;
    --blanco: #ffffff;
    --texto-oscuro: #1c1c1c;
    --texto-gris: #555555;
    --gris-fondo: #f4f7f6;
    --borde-gris: #e1e1e1;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --degradado-logo: rgb(136, 234, 80);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--blanco); 
    color: var(--texto-oscuro); 
    line-height: 1.6;
}

/* --- NAVBAR (Diseño PC) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--azul-daxer);
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 3rem; /* Espacio después del logo */
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 2.5rem; 
}

.nav-links a { 
    text-decoration: none;
    font-family: 'Montserrat', sans-serif; 
    font-size: 16px;          
    font-weight: 600;         
    color: #ffffff;           
    transition: color 0.3s;  
}

.nav-links a:hover { color: var(--texto-oscuro); }

.nav-links .dropdown a { display: flex; align-items: center; gap: 5px; }

.nav-btns { display: flex; gap: 1rem; align-items: center; }

/* --- BOTÓN HAMBURGUESA (Oculto en PC) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--blanco);
    cursor: pointer;
    z-index: 1001;
}
/* --- BOTONES --- */
/* --- BOTONES UNIFICADOS DAXER --- */
.btn-primario, .btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    /* Forzamos que ambos tengan el mismo esquema de caja */
    border: 1px solid transparent; 
    height: 45px; /* Altura fija opcional para asegurar simetría total */
}

.btn-primario {
    background-color: var(--blanco);
    color: var(--azul-daxer);
    border-color: var(--azul-daxer); /* Borde del mismo color que el fondo */
}
.full-width {
    width: 100%;       /* Ocupa todo el ancho disponible */
    display: flex;     /* Activamos Flexbox */
    justify-content: center; /* Centra el texto horizontalmente */
    align-items: center;     /* Centra el texto verticalmente */
}
.btn-secundario {
    background-color: transparent;
    color: var(--blanco);
    border-color: var(--blanco); /* Borde visible */
}
.btn-entrar {
    background:var(--azul-daxer);
    color: var(--blanco);
    width: 100%;        /* Ambos ocupan el mismo ancho total */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;       /* Altura fija para que sean iguales */
    border-radius: 8px;
    font-size: 1rem;
    padding: 0;
}

/* Hovers para que mantengan el estilo */
.btn-primario:hover {
    background-color: #d5d5d5;
    
    transform: translateY(-2px);
}

.btn-secundario:hover {
    background-color: #ffffff9e;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--azul-daxer);
    padding: 0.7rem 1.8rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--borde-gris);
    border-radius: 5px;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    height: auto; /* Cambiamos de 100vh a auto para que el contenido fluya hacia abajo */
    display: flex;
    flex-direction: column; /* Apila video arriba y texto abajo */
    align-items: center;    /* Centra todo horizontalmente */
    text-align: center;     /* Centra el texto */
    padding: 120px 8% 60px 8%; /* Más espacio arriba por el navbar fijo */
}

.hero-content { flex: 1; padding-right: 5%; }



.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}



.highlight { color: var(--azul-daxer); }

.hero-content p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--texto-gris);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns { 
    display: flex; 
    gap: 1.5rem; /* Un poquito más de aire entre botones queda mejor */
    align-items: center; 
    
    /* ESTO ES LO QUE FALTA PARA CENTRARLOS */
    justify-content: center; 
    width: 100%; 
    margin-top: 2rem; /* Separación respecto al párrafo */
}
.hero-btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;           /* Altura fija para que sean iguales */
    min-width: 180px;       /* Ancho mínimo para consistencia visual */
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}



/* --- SECCIÓN PRECIOS --- */
.pricing-section {
    padding: 80px 8%;
    background:var(--blanco);
    text-align: center;
}

.pricing-header h2 { font-size: 2.5rem; color: var(--azul-daxer); margin-bottom: 10px; }
.pricing-header p { color: #666; margin-bottom: 50px; }

.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.price-card {
    background: #fff;
    border: 1px solid var(--borde-gris);
    border-radius: 15px;
    padding: 40px 30px;
    width: 350px;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.price-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 209, 178, 0.1); }

.price-card.featured { border: 2px solid var(--azul-daxer); transform: scale(1.05); }

.most-chosen {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--azul-daxer);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.price { font-size: 3rem; font-weight: 700; color: var(--azul-daxer); margin-bottom: 30px; }
.price sup { font-size: 1.5rem; }
.price span { font-size: 1rem; color: #999; }

.features { list-style: none; text-align: left; margin-bottom: 40px; }
.features li { margin-bottom: 15px; font-size: 0.9rem; color: #555; display: flex; align-items: center; gap: 10px; }
.features i { color: var(--azul-daxer); }

.btn-plan {
    padding: 12px;
    border: 1px solid var(--azul-daxer);
    border-radius: 8px;
    text-decoration: none;
    color: var(--azul-daxer);
    font-weight: bold;
    margin-top: auto;
    transition: 0.3s;
    text-align: center;
}

.featured-btn { background: var(--azul-daxer); color: #fff; }

/* --- SECCIÓN FAQ --- */
.faq-section {
    width: 100%;
    padding: 60px 20px; /* Ajustá el padding para dar aire, pero no exagerado */
    min-height: auto;   /* CAMBIÁ ESTO: Si tenías 100vh, ponelo en auto */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ocultamos todos los faq-item por defecto */
.faq-item {
    display: none;
}

/* Mostramos solo los primeros 3 */
.faq-item:nth-child(-n+3) {
    display: block;
}

/* Cuando el contenedor tenga la clase 'show-all', mostramos todos */
.faq-container.show-all .faq-item {
    display: block;
}

/* Estilo para el botón Ver Más */
.btn-ver-mas {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-ver-mas:hover {
    background-color: #219150;
    transform: scale(1.05);
}

.profesionales {
    padding: 100px 8%;
    position: relative;
    overflow: hidden;
    background:var(--blanco);
}

@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.faq-container { flex-direction:column; gap: 50px; align-items: flex-start; position: relative; z-index: 2; }

.faq-text h2 { font-size: 2.8rem; color: var(--azul-daxer); line-height: 1.2; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    /* ASEGURATE DE QUE NO TENGA HEIGHT FIJO */
    height: auto; 
    overflow: visible; 
}
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }

.faq-question {
    width: 100%; background: none; border: none; display: flex; justify-content: space-between;
    align-items: center; padding: 15px; cursor: pointer; font-size: 1.1rem; font-weight: 600;
    color: var(--azul-daxer); text-align: left; font-family: 'Poppins', sans-serif;
}
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease-out; padding: 0 15px; }
.faq-item.active .faq-answer { max-height: 200px; padding: 10px 15px 20px 15px; }
/* --- MODAL DE REGISTRO --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.registration-container {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: modalAppear 0.4s ease;
}
@keyframes modalAppear { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}
.close-modal:hover { color: var(--azul-daxer); }
/* --- ELEMENTOS DEL FORMULARIO --- */
.steps-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.step {
    height: 35px; width: 35px; background-color: #eee; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; color: #aaa;
}
.step.active { background-color: var(--azul-daxer); color: white; }
input, select {
    width: 100%; padding: 14px; margin: 10px 0; border: 1px solid var(--borde-gris);
    border-radius: 10px; font-family: 'Poppins', sans-serif; outline: none;
}
input:focus { border-color: var(--azul-daxer); }
.slug-preview { background: var(--gris-fondo); padding: 10px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 15px; }
#slugText { font-weight: bold; color: var(--azul-daxer); }
.form-navigation { display: flex; justify-content: space-between; margin-top: 30px; gap: 10px; }
#nextBtn { background-color: var(--azul-daxer); color: white; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; flex: 1; font-weight: 600; }
#prevBtn { background-color: #eee; color: #666; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; flex: 1; font-weight: 600; }
/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #52d069; /* Verde más vibrante como el de la imagen */
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(82, 208, 105, 0.3);
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}
.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(82, 208, 105, 0.4);
}
.wa-icon i {
    font-size: 2rem;
}
.wa-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.wa-title {
    font-weight: 700;
    font-size: 1rem;
}
.wa-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}
/* El globito azul de "Online" */
.wa-status {
    position: absolute;
    top: -10px;
    right: 0;
    background-color: #4480ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(68, 128, 255, 0.3);
}
.status-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
}
/* MODAL PARA INGRESO A CLIENTES */
.texto-modal-login{
    text-align:center;
}
.close-modal-login {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}
.login-container {
    max-width: 400px !important;
    text-align: center;
    
}
.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}
.login-footer {
    margin-top: 20px;
    font-size: 0.9rem;
}
.link-secundario {
    color: #666;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    text-align: center;
}
.link-verde {
    color: var(--azul-daxer);
    font-weight: bold;
    text-decoration: none;
}
.info-text{
    text-align: center;
}
/* Responsive: En celulares muy chicos achicamos un poco el botón */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        padding: 10px 20px;
    }
    .wa-sub { display: none; } /* Ocultamos el subtítulo en móviles mini para ahorrar espacio */
}
/* --- RESPONSIVE (Móviles) --- */
@media (max-width: 768px) {
    .navbar { height: 70px; padding: 0 5%; }
    .menu-toggle { display: block; }
    .nav-container {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 10%; /* Más padding lateral para que no toquen los bordes */
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;    /* Centra los bloques horizontalmente */
        justify-content: center; /* Centra el contenido verticalmente si hay espacio */
        gap: 2rem;
        overflow-y: auto;
        border-radius: 0 0 0 20px; /* Un toque de diseño para la esquina */
    }
    .nav-container.active { right: 0; }
    .nav-links {
        list-style: none;
        padding: 0;
        display: flex !important;
        flex-direction: column;
        align-items: center; /* Centra cada <li> */
        gap: 1.5rem;
        width: 100%;
    }
    .nav-links a {
        font-size: 1.1rem;
        color: var(--texto-oscuro);
        text-decoration: none;
        font-weight: 500;
    }
    .nav-btns {
        display: flex !important;
        flex-direction: column;
        width: 100%; /* Ocupa todo el ancho del contenedor blanco */
        gap: 1rem;
    }
    /* --- AQUÍ HACEMOS QUE LOS BOTONES SEAN IDÉNTICOS --- */
    .nav-btns .btn-primario{
        width: 100%;        /* Ambos ocupan el mismo ancho total */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;       /* Altura fija para que sean iguales */
        border-radius: 8px;
        font-size: 1rem;
        padding: 0;         /* Quitamos padding para que el height mande */
        background-color: var(--azul-daxer);
        color: var(--blanco);
    }
    

    .nav-btns .btn-secundario {
        width: 100%;        /* Ambos ocupan el mismo ancho total */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;       /* Altura fija para que sean iguales */
        border-radius: 8px;
        font-size: 1rem;
        padding: 0;         /* Quitamos padding para que el height mande */
        background-color: var(--blanco);
        color: var(--azul-daxer);
        border-color: var(--azul); /* Borde visible */
    }
    .nav-btns a { width: 100%; text-align: center; }
    .hero { flex-direction: column; text-align: center; padding: 120px 5% 50px 5%; height: auto; }  
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; width: 100%; }  
    .pricing-grid { gap: 20px; }
    .price-card { width: 100%; }
    .faq-container { flex-direction: column; }
}
.border-radius-20 {
    border-radius: 20px !important;
    border: none !important;
}
.btn-redondeado {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/*MODAL PARA LOS TERMINOS Y CONDICIONES*/
.terms-container {
    display: flex;           /* Alinea check y texto en una fila */
    align-items: center;     /* Los centra verticalmente entre sí */
    justify-content: center;  /* Los centra en el medio del modal */
    gap: 8px;               /* El espacio justo entre el cuadradito y el texto */
    margin: 15px 0;          /* Separación con los inputs y los botones */
    width: 100%;             /* Que ocupe todo el ancho disponible */
}

.terms-container a {
    color: #38a3a5;
    text-decoration: underline;
    font-weight: 600;
}

/* Estilo para el modal legal */
.modal-legal {
    position: fixed;
    z-index: 2000; /* Más alto que el registro modal */
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-legal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto; /* Para que si es largo puedas scrollear */
}

.texto-legal {
    text-align: left;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #555;
}

.btn-cerrar-legal {
    background: var(--azul-daxer);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.terms-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;               /* Quitamos márgenes raros que pone el navegador */
    cursor: pointer;
    accent-color: #38a3a5;   /* El color teal de tus botones */
}

/* Estilo para el texto */
.terms-container label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

/* Estilo cuando el botón está deshabilitado */
#nextBtn:disabled {
    background-color: #2d3436; /* Un gris oscuro o el color de fondo de tu app */
    opacity: 0.4;              /* Lo hace ver "apagado" / transparente */
    cursor: not-allowed;       /* Cambia el puntero por un círculo de prohibido */
    transform: scale(1);       /* Evita que haga el efecto de agrandarse si lo tenías */
    box-shadow: none;          /* Le quita cualquier sombra para que se vea plano */
}

/*TARJETAS DE LOS PROFESIONALES*/
.contenedor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-prof {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.tarjeta-prof:hover { transform: translateY(-5px); }

.foto-cont img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #74e332; /* Tu verde */
    margin-bottom: 10px;
}

.cat-tag {
    background: #f0f0f0;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    color: #555;
}

.btn-con { background-color: #25d366; color: white; text-decoration: none; display: block; padding: 10px; border-radius: 8px; margin-top: 15px; }
.btn-reg { background-color: #2d3436; color: white; border: none; width: 100%; padding: 10px; border-radius: 8px; margin-top: 15px; cursor: pointer; }

/*FILTROS PARA LAS TARJETAS*/
.filtros-index {
    padding: 20px;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
}
.buscador-caja {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 800px;
}
.buscador-caja input, .buscador-caja select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    flex: 1;
}

.tarjeta-prof p {
    height: 62px; /* Ajustado para 3 líneas aprox */
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;

    /* Corte de texto pro */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Número de líneas */
    line-clamp: 3;        /* Estándar futuro */
    overflow: hidden;
    text-overflow: ellipsis;
}