/* ==========================================================================
   SISTEMA DE DISEÑO Y VARIABLES (Tokens SEO-IAT)
   ========================================================================== */
:root {
    /* Paleta de Colores Corporativos (AI & Tech Theme) */
    --color-bg-dark: #070a13;          /* Deep space dark */
    --color-bg-secondary: #0c101e;     /* Section accent */
    --color-surface-glass: rgba(17, 23, 41, 0.75);    /* Card glassmorphism */
    --color-text-light: #f8fafc;       /* Main white */
    --color-text-muted: #94a3b8;       /* Slate grey */
    
    /* Accents & Signals */
    --color-primary-green: #10b981;    /* Emerald Green */
    --color-accent-cyan: #06b6d4;      /* Electric Cyan */
    --color-gradient-brand: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --color-border-glass: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(16, 185, 129, 0.25);
    
    --color-error: #ef4444;
    --color-success: #10b981;
    
    /* Tipografías */
    --font-headings: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Espaciados */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;
    
    /* Bordes y Sombras */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.15);
}

/* ==========================================================================
   RESET Y ESTILOS GENERALES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--color-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-text {
    color: var(--color-success);
}

.error-text {
    color: var(--color-error);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--color-text-light);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   COMPONENTES DE BOTONES Y BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--color-gradient-brand);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--color-surface-glass);
    color: var(--color-text-light);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text-light);
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.glow-border {
    position: relative;
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   HEADER Y ESTRUCTURA DE SECCIONES
   ========================================================================== */
.header, .navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-glass);
    transition: var(--transition-smooth);
}

.header-container, .navbar-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    text-decoration: none;
}

.navbar-brand::before {
    content: '';
    display: none; /* Ocultado para usar logotipo de imagen */
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.navbar-brand .highlight {
    color: var(--color-primary-green);
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
    }
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav a:hover,
.nav li.active > a {
    color: var(--color-text-light);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.nav .btn {
    padding: 8px 16px;
    min-height: auto;
    margin-left: 16px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    min-height: 48px;
    min-width: 48px;
}

/* Estilos de Menú Móvil Desplegable */
@media (max-width: 767px) {
    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--color-border-glass);
        border-radius: var(--border-radius-sm);
        color: var(--color-text-light);
        font-size: 1.25rem;
        cursor: pointer;
        transition: var(--transition-smooth);
        z-index: 1001;
    }
    
    .navbar-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--color-primary-green);
        border-color: rgba(16, 185, 129, 0.3);
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(7, 10, 19, 0.96);
        border-bottom: 1px solid var(--color-border-glass);
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg) var(--spacing-md);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
        z-index: 999;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        gap: var(--spacing-sm);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .nav ul li {
        width: 100%;
        text-align: center;
    }
    
    .nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .nav ul li a.btn {
        border-bottom: none;
        margin-top: var(--spacing-xs);
        width: 100%;
        padding: 12px 28px;
        min-height: 48px;
    }
    
    .nav .btn {
        margin-left: 0;
        margin-top: var(--spacing-xs);
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }

    /* --- MOBILE DROPDOWN STYLES --- */
    .nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.02) !important;
        width: 100% !important;
        padding: 0 !important;
        margin-top: 5px !important;
        border-radius: var(--border-radius-sm) !important;
        display: none;
    }

    .nav li.dropdown.active-mobile .dropdown-menu {
        display: block !important;
    }
    
    .nav .dropdown-menu a {
        text-align: center !important;
        padding: 12px 0 !important;
        font-size: 1rem !important;
        color: var(--color-text-muted) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.01) !important;
    }
    
    .nav .dropdown-menu li:last-child a {
        border-bottom: none !important;
    }
}

/* --- DROPDOWN SERVICES MENU --- */
.nav li.dropdown {
    position: relative;
}

.nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(7, 10, 19, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    min-width: 180px;
    padding: 8px 0;
    z-index: 1002;
    list-style: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav .dropdown-menu li {
    width: 100%;
}

.nav .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted) !important;
    text-align: left;
    text-decoration: none !important;
    border-bottom: none !important;
    white-space: nowrap;
    text-shadow: none !important;
    transition: var(--transition-smooth);
}

.nav .dropdown-menu a:hover {
    color: var(--color-text-light) !important;
    background: rgba(255, 255, 255, 0.04);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

@media (min-width: 769px) {
    .nav li.dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeInDropdown 0.2s forwards;
    }
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* --- BOTÓN CALCULAR TARIFA LLAMATIVO --- */
.nav-btn-calctarifa {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
    color: #070a13 !important;
    border-radius: 50px !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
    transition: var(--transition-smooth) !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-calctarifa:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
    color: #070a13 !important;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary-green);
}

.section {
    padding: var(--spacing-lg) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}

.bg-secondary {
    background-color: var(--color-bg-secondary);
}

.section-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
}

.section-subtitle {
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: var(--spacing-lg);
    background-image: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding-bottom: var(--spacing-xl);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    max-width: 650px;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* Hero card detail */
.hero-card {
    border-color: rgba(16, 185, 129, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--color-border-glass);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.card-title {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-left: var(--spacing-xs);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.stat-value {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
}

.stat-divider {
    height: 1px;
    background-color: var(--color-border-glass);
    margin: var(--spacing-sm) 0;
}

.card-note {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   SECCIÓN CALCULADORA
   ========================================================================== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.calc-card, .calc-result-card {
    padding: var(--spacing-lg);
}

.input-desc {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.tier-selector {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 576px) {
    .tier-selector {
        flex-direction: row;
    }
}

.tier-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-md);
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.tier-btn i {
    font-size: 1.75rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.tier-btn-text {
    display: flex;
    flex-direction: column;
}

.tier-name {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 700;
}

.tier-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.tier-btn:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.04);
}

.tier-btn.active {
    background-color: rgba(16, 185, 129, 0.06);
    border-color: var(--color-primary-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.tier-btn.active i {
    color: var(--color-primary-green);
}

.slider-container {
    margin-top: var(--spacing-md);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.badge-position {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 700;
}

.badge-none {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-top3 {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--color-accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-top2 {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-primary-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-top1 {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-primary-green);
    border: 1px solid var(--color-primary-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* Selector de posiciones en formato botones */
.position-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .position-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pos-btn {
    padding: 14px 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.pos-btn:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    background-color: rgba(255, 255, 255, 0.04);
}

.pos-btn.active {
    background-color: rgba(6, 182, 212, 0.08);
    border-color: var(--color-accent-cyan);
    color: var(--color-text-light);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

/* Calc Results Panel */
.result-header {
    border-bottom: 1px solid var(--color-border-glass);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.result-label {
    max-width: 65%;
}

.result-label strong {
    display: block;
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.result-label span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    display: block;
}

.result-price {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-light);
    white-space: nowrap;
    text-align: right;
}

.result-price .currency {
    font-size: 1.25rem;
    margin-left: 2px;
}

.success-highlight {
    color: var(--color-primary-green);
}

.result-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.result-features li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: 12px;
}

/* ==========================================================================
   PLAYBOOK LINEA DE TIEMPO
   ========================================================================== */
.playbook-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.timeline-phase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 992px) {
    .timeline-phase {
        grid-template-columns: 0.25fr 0.75fr;
    }
}

.phase-indicator {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (min-width: 992px) {
    .phase-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 991px) {
    .phase-indicator {
        position: sticky;
        top: 70px;
        background-color: rgba(7, 10, 19, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 16px 24px;
        margin: 0 -24px var(--spacing-sm) -24px;
        width: calc(100% + 48px);
        box-sizing: border-box;
        border-bottom: 1px solid var(--color-border-glass);
        z-index: 10;
    }
}

.phase-number {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent-cyan);
    line-height: 1;
}

.phase-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.phase-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 576px) {
    .phase-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .phase-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Estilo de tarjetas de paso */
.step-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--color-accent-cyan);
    background-color: rgba(6, 182, 212, 0.02);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

.step-card.bg-highlight {
    border-color: rgba(6, 182, 212, 0.18);
    background-color: rgba(6, 182, 212, 0.01);
}

.step-num {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.step-card.bg-highlight .step-num {
    color: var(--color-accent-cyan);
}

.step-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--color-accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    text-transform: none;
    font-weight: 600;
}

.step-card h4 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
}

.step-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ==========================================================================
   SIMULADOR DE CHAT DE IA (Consola Semántica Elegante)
   ========================================================================== */
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .section-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.section-info {
    max-width: 500px;
}

.chat-console-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Estilo Consola sin marco de móvil (integrado y elegante) */
.chat-console {
    width: 100%;
    max-width: 550px;
    background-color: #0c101e;
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow-cyan), 0 20px 45px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glow-border-cyan {
    border-color: rgba(6, 182, 212, 0.25);
}

.console-header {
    background-color: rgba(13, 18, 34, 0.9);
    border-bottom: 1px solid var(--color-border-glass);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-title {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-title i {
    color: var(--color-accent-cyan);
}

.console-body {
    padding: 24px;
    background-color: #070a13;
    height: 320px;
    overflow-y: auto;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    max-width: 85%;
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-msg {
    background-color: #1e293b;
    color: var(--color-text-light);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-msg {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-glass);
    align-self: flex-start;
    border-top-left-radius: 4px;
    display: flex;
    gap: 12px;
    max-width: 90%;
}

.ai-avatar {
    width: 28px;
    height: 28px;
    background: var(--color-gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-dark);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ai-text {
    color: var(--color-text-light);
}

.ai-text strong {
    color: var(--color-primary-green);
    font-weight: 700;
}

.ai-text a {
    color: var(--color-accent-cyan);
    text-decoration: underline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: var(--color-primary-green);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.console-input-bar {
    background-color: #0c101e;
    border-top: 1px solid var(--color-border-glass);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-input-bar .input-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.console-input-bar .input-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-muted);
}

.console-input-bar .input-actions i.fa-circle-arrow-up {
    color: var(--color-primary-green);
    font-size: 1.25rem;
}

/* ==========================================================================
   SECCIÓN GARANTÍAS Y FORMULARIO
   ========================================================================== */
.guarantees-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .guarantees-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.guarantee-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(6, 182, 212, 0.08);
    color: var(--color-accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md) auto;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.guarantee-card h3 {
    margin-bottom: var(--spacing-xs);
}

.guarantee-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Formulario */
.form-container {
    max-width: 750px;
    margin: var(--spacing-lg) auto 0 auto;
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.form-container input, .form-container textarea, .form-container select {
    width: 100%;
    padding: 14px;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-container input:focus, .form-container textarea:focus, .form-container select:focus {
    outline: none;
    border-color: var(--color-primary-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.form-feedback-container {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.form-feedback-container i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.form-feedback-container p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 550px;
    margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--color-border-glass);
    padding: var(--spacing-md) 0;
    background-color: var(--color-bg-dark);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

@media (min-width: 576px) {
    .footer-container {
        flex-direction: row;
        gap: 0;
    }
}

.footer p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary-green);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR THE CALCULATOR (MOBILE OVERRIDES)
   ========================================================================== */
@media (max-width: 767px) {
    .calc-card, .calc-result-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .tier-selector {
        gap: 12px;
    }
    
    .tier-btn {
        padding: 14px;
        align-items: flex-start;
    }
    
    .tier-btn i {
        font-size: 1.5rem;
    }
    
    .tier-name {
        font-size: 0.95rem;
    }
    
    .tier-desc {
        font-size: 0.75rem;
    }
    
    .slider-header {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .slider-header h3 {
        font-size: 1.25rem;
    }
    
    .position-selector {
        gap: 8px;
    }
    
    .pos-btn {
        padding: 12px 6px;
        font-size: 0.85rem;
    }
    
    .result-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: var(--spacing-md);
        border-bottom: 1px dashed var(--color-border-glass);
        padding-bottom: var(--spacing-md);
    }
    
    .result-label {
        max-width: 100%;
    }
    
    .result-label strong {
        font-size: 1.1rem;
    }
    
    .result-price {
        font-size: 2rem;
        text-align: center;
        width: 100%;
        justify-content: center;
        display: flex;
    }
    
    .result-features {
        margin-bottom: var(--spacing-md);
    }
    
    .result-features li {
        font-size: 0.85rem;
        gap: 8px;
    }
}
