/* VARIABLES DE MARCA */
:root {
    --azul-marino: #002147;
    --dorado-sol: #D4A017;
    --crema-fondo: #fffaf1;
    --texto-oscuro: #334155;
    --blanco: #ffffff;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', sans-serif;
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVEGACIÓN */
header {
    background-color: var(--blanco);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ESTILOS BASE DEL MENÚ (PC) --- */
.menu-toggle {
    display: none; /* Oculto en PC */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--azul-marino);
    transition: all 0.3s ease-in-out;
}

/* --- AJUSTES PARA CELULAR (Dentro del @media max-width: 768px) --- */
@media (max-width: 768px) {
    header nav {
        flex-direction: row; /* Logo y hamburguesa en la misma línea */
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        z-index: 1000; 
        position: relative;
    }
	
	body.menu-open {
        overflow: hidden;
    }

    /* El menú ahora es un panel que baja */
    .nav-links {
        position: fixed; /* Cambiado de absolute a fixed para que no dependa del scroll */
        top: 0;
        right: -100%; /* Empieza totalmente fuera de la pantalla a la derecha */
        width: 100%;
        height: 100vh; /* Ocupa todo el alto del celular */
        background-color: var(--blanco);
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra los links verticalmente */
        align-items: center;
        transition: 0.5s ease;
        z-index: 999; /* Por debajo de la hamburguesa pero sobre el resto */
    }

    .nav-links.active {
        right: 0; /* Entra a la pantalla */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Animación de las barritas a una "X" */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo span {
    font-family: 'Azeret Mono', monospace;
    font-weight: 700;
    color: var(--azul-marino);
    font-size: 1.2rem;
}


.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-marino);
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--dorado-sol);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--azul-marino) 0%, #003366 100%);
    padding: 100px 0;
    color: var(--blanco);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.badge {
    font-family: 'Azeret Mono', monospace;
    color: var(--dorado-sol);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* BOTONES */
.btn-primary {
    background-color: var(--dorado-sol);
    color: var(--blanco);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
    display: inline-block;
}

.btn-secondary {
    border: 2px solid var(--dorado-sol);
    color: var(--dorado-sol);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 15px;
    transition: background 0.3s;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

/* SECCIONES COMUNES */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--azul-marino);
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--dorado-sol);
}

.section-title.center {
    text-align: center;
    border-left: none;
    padding-left: 0;
}

/* NOSOTROS */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--dorado-sol);
}

.quote {
    margin-top: 30px;
    font-style: italic;
    color: var(--dorado-sol);
    font-size: 1.3rem;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* SERVICIOS */
.services {
    background-color: var(--crema-fondo);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--blanco);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--azul-marino);
    margin-bottom: 20px;
}

/* TABLA DE PLANES */
.table-container {
    overflow-x: auto;
}

/* AJUSTES ADICIONALES */
.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: var(--texto-oscuro);
    opacity: 0.8;
}

/* PRICING CARDS */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: var(--blanco);
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.price-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.price-card.featured {
    border: 2px solid var(--dorado-sol);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dorado-sol);
    color: var(--blanco);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-header h3 {
    color: var(--azul-marino);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- ESTILOS DE PRECIOS Y OFERTAS --- */
.price-container {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.old-price {
    font-size: 1rem;
    color: #a0a0a0;
    text-decoration: line-through; /* Esto tacha el precio antiguo */
    margin-bottom: 5px;
    font-weight: bold;
}

.price {
    font-family: 'Azeret Mono', monospace;
    color: var(--dorado-sol);
    font-size: 2.2rem; /* Tamaño más grande para el precio nuevo */
    font-weight: 700;
    line-height: 1;
}

.price span {
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    margin-left: 5px;
}

.discount-badge {
    display: inline-block;
    background-color: #ff4757; /* Color rojo/coral atractivo para ofertas */
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(255, 71, 87, 0.2);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li.disabled {
    opacity: 0.4;
}

.btn-outline {
    border: 1px solid var(--azul-marino);
    color: var(--azul-marino);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    display: block;
}

/* CTA & CONTACT SECTION */
.cta-contact {
    background: linear-gradient(rgba(0,33,71,0.95), rgba(0,33,71,0.95)), url('fondo_textura.jpg');
    background-size: cover;
    color: var(--blanco);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-text h2 {
    color: var(--blanco);
    font-size: 3rem;
    margin: 20px 0;
}

.contact-methods {
    margin-top: 40px;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.method i {
    background: rgba(212, 160, 23, 0.2);
    color: var(--dorado-sol);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* FORMULARIO */
.contact-form-container {
    background: var(--blanco);
    padding: 40px;
    border-radius: 20px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.full-width {
    width: 100%;
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .price-card.featured {
        transform: scale(1);
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background:
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #FFF;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.4);
}

/* Ajuste de tamaño para teléfonos móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 32px;
    }
}

/* =========================================
   DISEÑO RESPONSIVO (CELULARES Y TABLETS)
   ========================================= */

@media (max-width: 768px) {
    /* Ajustes generales de espaciado y tipografía */
    section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    .section-subtitle {
        margin-bottom: 30px;
    }

    /* Cabecera / Navegación */
    header nav {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 0.9rem;
    }

    /* Sección Inicio (Hero) */
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .btn-secondary {
        margin-left: 0;
    }

    /* Sección Nuestra Esencia (2 columnas a 1 columna) */
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .about-image img {
        box-shadow: 10px 10px 0 var(--dorado-sol); /* Sombra más pequeña en móvil */
    }
    .quote {
        font-size: 1.1rem;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr; /* Apila las tarjetas una sobre otra */
    }

    /* Planes de Acompañamiento */
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    .price-card {
        max-width: 100%; /* Toma todo el ancho disponible */
    }
    .price-card.featured {
        transform: scale(1); /* Evita que la tarjeta central se salga de la pantalla */
        margin-top: 15px;
    }

    /* Sección Contacto / CTA */
    .cta-grid {
        grid-template-columns: 1fr; /* Apila el texto y el formulario */
        gap: 40px;
        text-align: center;
    }
    .cta-text h2 {
        font-size: 2.2rem;
    }
    .method {
        justify-content: center; /* Centra los iconos de contacto */
        text-align: left;
    }
    .contact-form-container {
        padding: 25px; /* Menos espacio interior para que quepa bien */
    }
}

/* =========================================
   REDISEÑO DE FOOTER DEFINITIVO (PORCENTAJES EXACTOS)
   ========================================= */
footer {
    background-color: var(--azul-marino) !important;
    color: #f8fafc !important;
    padding: 60px 0 0 0 !important;
    font-size: 0.95rem;
    border-top: 4px solid var(--dorado-sol);
    width: 100% !important;
    display: block !important;
    clear: both;
}

/* Contenedor forzado a estirarse */
footer .container.footer-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Evita que se caigan las columnas en PC */
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-bottom: 40px !important;
}

/* Cajas con ancho inamovible */
.footer-col {
    flex: 0 0 28% !important; /* Toma exactamente el 28% de la pantalla */
    max-width: 28% !important;
    width: 28% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.footer-col.brand-info {
    flex: 0 0 35% !important; /* La columna del logo toma el 35% */
    max-width: 35% !important;
    width: 35% !important;
}

.footer-col h3 {
    color: var(--dorado-sol) !important;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 700;
    text-align: left !important;
    width: 100%;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0 !important;
    width: 40px;
    height: 2px;
    background-color: var(--dorado-sol) !important;
}

.brand-info p {
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    text-align: left !important;
}

.footer-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dorado-sol);
}

.footer-logo span {
    font-family: 'Azeret Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blanco) !important;
    letter-spacing: 1px;
}

.footer-links, .footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.footer-links li, .footer-contact li {
    margin-bottom: 14px !important;
    text-align: left !important;
}

.footer-links a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.footer-links i {
    font-size: 0.75rem;
    color: var(--dorado-sol);
}

.footer-links a:hover {
    color: var(--dorado-sol) !important;
    padding-left: 5px;
}

.footer-contact li {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    opacity: 0.9;
}

.footer-contact i {
    color: var(--dorado-sol);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Barra Inferior */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3) !important;
    padding: 20px 0 !important;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100% !important;
    display: block !important;
}

.footer-bottom-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    color: #94a3b8 !important;
    font-size: 0.85rem;
}

.footer-bottom-content p {
    margin: 0 !important;
}

.footer-bottom .credits a {
    color: var(--dorado-sol) !important;
    text-decoration: none !important;
    font-weight: bold;
}

.footer-bottom .credits a:hover {
    color: var(--blanco) !important;
    text-decoration: underline !important;
}

/* =========================================
   ADAPTACIÓN MÓVIL (1/3 PANTALLA)
   ========================================= */
@media (max-width: 768px) {
    footer .container.footer-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
    }

    /* En celular, las columnas vuelven a ocupar el 100% para apilarse */
    .footer-col, .footer-col.brand-info {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
    }

    .brand-info p, .footer-links li, .footer-contact li {
        text-align: center !important;
    }

    .footer-logo {
        justify-content: center !important;
    }

    .footer-col h3 {
        text-align: center !important;
    }

    .footer-col h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-contact li {
        justify-content: center !important;
    }

    .footer-bottom-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px;
    }
}

/* Ajuste adicional para pantallas MUY pequeñas (ej. iPhone SE antiguo) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* --- PAGINA DE CONTACTO ESPECIFICO --- */
.hero-mini {
    background: var(--azul-marino);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.metodo-contacto {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--crema-fondo);
    padding: 20px;
    border-radius: 10px;
}

.metodo-contacto i {
    font-size: 1.5rem;
    color: var(--dorado-sol);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--azul-marino);
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}
/* --- PAGINA DE AGENDAMIENTO --- */
.agendamiento-page {
    padding: 60px 0;
    background-color: var(--crema-fondo);
}

.calendarios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.asesor-card {
    background: var(--blanco);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    border-top: 5px solid var(--dorado-sol);
}

.asesor-info {
    text-align: center;
    padding: 30px 20px 10px;
}

.asesor-info i {
    font-size: 3rem;
    color: var(--azul-marino);
    margin-bottom: 15px;
}

.asesor-info h3 {
    color: var(--azul-marino);
    font-size: 1.5rem;
}

.asesor-info p {
    color: var(--texto-oscuro);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ajuste para Celulares */
@media (max-width: 768px) {
    .calendarios-grid {
        grid-template-columns: 1fr;
    }
}
/* --- BOTÓN DE PAGO EN AGENDAMIENTO --- */
.payment-box {
    background-color: rgba(212, 160, 23, 0.08); /* Fondo dorado muy suave */
    border: 1px dashed var(--dorado-sol);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0 25px 0;
    text-align: center;
}

.payment-text {
    font-size: 0.9rem !important;
    color: var(--azul-marino);
    margin-bottom: 10px !important;
    font-weight: 700;
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2ecc71; /* Verde esmeralda (asociado a éxito y pagos seguros) */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
    width: 100%;
    max-width: 280px;
}

.btn-pay:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
    color: white;
}

.btn-pay i {
    font-size: 1.1rem;
}

.nav-links li:first-child a {
    font-size: 1.1rem; /* Hace el icono de la casa un poco más visible */
    margin-right: 5px;
}