/* ==========================================================================
   1. VARIABLES DE MARCA (APPLE MINIMALIST + COLOR TOUCH)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-base: #FFFFFF;        /* Fondo Blanco Puro */
    --bg-light: #F5F5F7;       /* Gris Neutro Ultra-Claro */
    --text-dark: #1D1D1F;      /* Gris Carbón para textos estándar */
    --brand-blue: #0B1B3D;     /* Azul Zafiro Profundo Corporativo */
    --text-muted: #6E6E73;     /* Gris balanceado para descripciones secundarias */
    --accent: #00A804;         /* Verde Motor Activo (Para CTAs destacados) */
    --nav-height: 64px;        
    --radius-ios: 18px;        
}

/* ==========================================================================
   2. REINICIO TÉCNICO Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; 
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--nav-height); 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--brand-blue); 
    letter-spacing: -0.02em;
}

p {
    font-weight: 400; 
    color: var(--text-dark);
}

main {
    flex: 1; 
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0; 
}

.section-title { 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 50px; 
    text-transform: uppercase; 
}
.section-title span { 
    color: var(--text-muted); 
    font-weight: 300;
}

/* ==========================================================================
   3. NAVEGACIÓN STICKY TRANSLÚCIDA (APPLE UX)
   ========================================================================== */
nav {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(11, 27, 61, 0.06); 
    height: var(--nav-height);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transition: top 0.3s ease-in-out; 
}

.nav-logo {
    text-decoration: none;
    color: var(--brand-blue); 
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}
.nav-logo .light { font-weight: 300; }
.nav-logo .bold { font-weight: 800; }

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem; 
    font-weight: 500;   
    letter-spacing: -0.01em;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--accent); 
}

.btn-nav {
    background-color: var(--accent);
    color: var(--bg-base);
    padding: 10px 22px;
    border-radius: 22px; 
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-nav:hover {
    background-color: #008F03;
    transform: translateY(-1px);
}

/* ==========================================================================
   4. SECCIÓN DE PLANES Y PRECIOS (TARJETAS CLICABLES)
   ========================================================================== */
.bg-light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    align-items: stretch; 
    margin-top: 40px;
    width: 100%;
}

.pricing-card { 
    background: var(--bg-base); 
    border-radius: var(--radius-ios); 
    padding: 50px 35px; 
    text-align: center; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid rgba(11, 27, 61, 0.05); 
    box-shadow: 0 4px 14px rgba(11, 27, 61, 0.01);
    overflow: hidden; 
    text-decoration: none; /* Elimina líneas de enlace generales */
    cursor: pointer;       
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.pricing-card:hover { 
    transform: scale(1.08) !important; 
    box-shadow: 0 30px 60px rgba(11, 27, 61, 0.1) !important;
    z-index: 5; 
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.pack-featured-dark {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.pack-featured-dark h3, 
.pack-featured-dark .price-tag {
    color: var(--bg-base) !important;
}
.pack-featured-dark .price-tag span, 
.pack-featured-dark ul li {
    color: #FFFFFF !important; 
    opacity: 0.9;
}
.pack-featured-dark ul li i {
    color: var(--accent) !important; 
}

.badge-premium { 
    background: var(--accent); 
    color: var(--bg-base); 
    position: absolute; 
    top: 34px; 
    right: -42px; 
    transform: rotate(45deg); 
    padding: 6px 45px; 
    font-size: 0.65rem; 
    font-weight: 900; 
    letter-spacing: 0.8px; 
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.price-tag { 
    font-size: 3rem; 
    font-weight: 900; 
    color: var(--brand-blue); 
    margin: 15px 0; 
}
.price-tag span { 
    font-size: 1rem; 
    color: var(--text-muted); 
    font-weight: 400; 
}

.pricing-card ul { 
    list-style: none; 
    margin: 30px 0; 
    text-align: left; 
    flex-grow: 1; 
}
.pricing-card ul li { 
    margin-bottom: 14px; 
    display: flex; 
    align-items: center; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}
.pricing-card ul li i { 
    color: var(--accent); 
    margin-right: 12px; 
    font-size: 1.1rem; 
}

.price-note {
    margin-top: 35px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================================================
   5. ANTÍDOTO AL MIEDO (CRECIMIENTO AL 8%)
   ========================================================================== */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 24px; 
    margin-top: 48px; 
    width: 100%;
}

.apple-card {
    background-color: var(--bg-base); 
    border-radius: var(--radius-ios);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(11, 27, 61, 0.04);
    box-shadow: 0 4px 12px rgba(11, 27, 61, 0.01); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.apple-card:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 50px rgba(11, 27, 61, 0.08);
    z-index: 4;
}

.apple-card h3 { color: var(--brand-blue); }
.apple-card p { color: var(--text-muted); }

/* ==========================================================================
   6. BOTONES Y COMPONENTES DINÁMICOS
   ========================================================================== */
.btn-action {
    display: inline-block; 
    width: auto;           
    background-color: var(--accent);
    color: var(--bg-base);
    padding: 16px 36px;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    text-decoration: none; /* Regla base para prevenir subrayados nativos */
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0, 168, 4, 0.18);
}

/* CORRECCIÓN CRÍTICA: Fuerza la eliminación del subrayado heredado dentro de las tarjetas */
.pricing-card .btn-action {
    text-decoration: none !important; 
    color: var(--bg-base);
}

.pricing-card:hover .btn-action {
    background-color: #008F03;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 168, 4, 0.28);
}

.faq-box { max-width: 750px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(11, 27, 61, 0.08); padding: 8px 0; }
.faq-trigger { padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.1rem; color: var(--brand-blue); user-select: none; }
.faq-icon { font-weight: 300; font-size: 1.3rem; transition: transform 0.25s ease; color: var(--text-muted); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.faq-content p { padding-bottom: 24px; color: var(--text-muted); font-size: 0.95rem; text-align: justify; line-height: 1.6; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }

.form-step { display: none; }
.form-step.active { display: block; animation: stepFade 0.4s ease forwards; }
.step-indicator { display: flex; justify-content: space-between; margin-bottom: 30px; background: var(--bg-light); padding: 12px; border-radius: 6px; }
.step-dot { font-size: 0.8rem; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--text-muted); }
.step-dot.current { color: var(--accent); }
.form-navigation { display: flex; justify-content: space-between; margin-top: 25px; gap: 15px; }

@keyframes stepFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-element {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.success-interface { text-align: center; padding: 40px 20px; animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    background-color: var(--bg-light);
    padding: 50px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(11, 27, 61, 0.05);
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 1.8rem; }
    :root { --nav-height: 56px; }
}