/* ==========================================================================
   SDS PARTNERS - GLOBAL STYLESHEET (CONSOLIDADO ÚNICO)
   100% CSS3 Nativo - Cero Dependencias Externas - Cero CDNs
   Optimizado para Desktop, Tablet y Móvil
   ========================================================================== */

:root {
    /* ======================================================================
       PALETA IMPERIAL PARAGUAYA - 100% LIGHT MODE INSTITUCIONAL (OBLIGATORIO)
       ====================================================================== */
    --bg-base: #FFFFFF;
    --bg-surface: #F8FAFC;
    --text-main: #0033A0;
    --action-red: #D52B1E;
    --gold-accent: #D4AF37;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 20px rgba(0, 51, 160, 0.05);

    /* Variables auxiliares derivadas del modo claro Imperial */
    --bg-dark: #F8FAFC;
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --border-light: rgba(212, 175, 55, 0.35);

    /* Textos Institucionales de Alta Autoridad */
    --text-dark: #0F172A;
    --text-muted: #475569;
    --text-dim: #64748B;
    --text-inverse: #FFFFFF;

    /* Acentos Patrios & Conversión Inmediata */
    --red-hover: #B71C1C;
    --gold: #D4AF37;
    --gold-light: #F6E05E;
    --gold-hover: #B78D1A;
    --gold-glow: rgba(212, 175, 55, 0.2);
    --gold-subtle: rgba(212, 175, 55, 0.1);

    --accent: #0033A0;
    --accent-hover: #002270;
    --accent-glow: rgba(0, 51, 160, 0.12);

    --whatsapp: #25D366;
    --accent-whatsapp: #25D366;
    --whatsapp-dark: #1EBE5D;
    --whatsapp-glow: rgba(37, 211, 102, 0.25);

    --danger: #D52B1E;
    --danger-subtle: rgba(213, 43, 30, 0.08);
    --success: #10B981;

    --border-radius: 8px;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --shadow-card: var(--card-shadow);
    --shadow-glow: 0 4px 20px rgba(212, 175, 55, 0.15);
    --header-bg: rgba(255, 255, 255, 0.96);
    --input-bg: #FFFFFF;

    /* Tipografía Imperial de Alcurnia */
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Transiciones */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   Reset y Reglas Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-base);
    color: var(--text-dark);
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.sim-step-title,
.calc-header h2,
.panel-header h3,
.modal-header h3,
.process-step-card h4,
.pillar-card h3,
.expertise-banner h3,
.form-title {
    font-family: var(--font-serif);
    color: var(--text-main);
    letter-spacing: -0.01em;
}

/* ==========================================================================
   TEXTURA AO PO'I Y CARDS INSTITUCIONALES (ALCURNIA & IDENTIDAD PARAGUAYA)
   ========================================================================== */
.wizard-card,
.sim-proc-card,
.sim-proc-card-6,
.card-premium,
.regime-card,
.tramite-card,
.sim-card-panel,
.sim-quote-box,
.sim-legal-box,
.wizard-nationality-card,
.wizard-step-panel,
.stat-card,
.pillar-card,
.service-card {
    position: relative;
    background-color: var(--bg-base);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.wizard-card::after,
.sim-proc-card::after,
.sim-proc-card-6::after,
.wizard-nationality-card::after,
.sim-quote-box::after,
.sim-legal-box::after,
.card-premium::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='%230033A0' fill-opacity='0.03'%3E%3Cpath d='M22 0L44 22L22 44L0 22Z M22 5L39 22L22 39L5 22Z' fill='none' stroke='%230033A0' stroke-width='1' stroke-opacity='0.03'/%3E%3Ccircle cx='22' cy='22' r='2'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='44' cy='0' r='2'/%3E%3Ccircle cx='0' cy='44' r='2'/%3E%3Ccircle cx='44' cy='44' r='2'/%3E%3Cpath d='M0 22h44M22 0v44' stroke='%230033A0' stroke-width='0.5' stroke-opacity='0.03' stroke-dasharray='2,2'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.wizard-card > *,
.sim-proc-card > *,
.sim-proc-card-6 > *,
.wizard-nationality-card > *,
.sim-quote-box > *,
.sim-legal-box > * {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}


/* ==========================================================================
   Contenedores Fluidos y Arquitectura Modular
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Vistas Modulares B2C / B2B */
.app-view {
    display: none;
    opacity: 0;
}

.app-view.view-active {
    display: block;
    opacity: 1;
    animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ==========================================================================
   Header & Navegación Principal Enterprise (100% Light Mode Imperial)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 1.25rem;
    box-sizing: border-box;
    box-shadow: var(--card-shadow);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 0.75rem;
    box-sizing: border-box;
}

.brand-link,
.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
}

.brand-link:hover,
.header-brand:hover {
    opacity: 0.92;
}

.brand-link img,
.header-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
}

.header-nav-center {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.header-nav a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-nav a:hover, .header-nav a.active {
    color: var(--text-main);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold-accent);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.header-nav a:hover::after, .header-nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   Segmented Control Ejecutivo (Pill Switch Minimalista)
   ========================================================================== */
.audience-segmented-control,
.audience-switch {
    display: inline-flex;
    align-items: center;
    background-color: #F1F5F9;
    padding: 3px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 51, 160, 0.08);
    gap: 2px;
    flex-shrink: 0;
}

.segment-btn,
.audience-switch button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    outline: none;
}

.segment-btn .segment-icon {
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.segment-btn:hover,
.audience-switch button:hover {
    color: var(--text-main);
}

.segment-btn:hover .segment-icon {
    transform: scale(1.08);
}

.segment-btn.active,
.audience-switch button.active {
    background-color: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 51, 160, 0.08);
}

.segment-btn.active .segment-icon {
    stroke: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.lang-select-dropdown {
    background: var(--bg-base);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.lang-select-dropdown:hover, .lang-select-dropdown:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   Botón WhatsApp VIP Ejecutivo
   ========================================================================== */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #FFFFFF;
    color: #15803D !important;
    border: 1px solid rgba(37, 211, 102, 0.45);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(37, 211, 102, 0.12);
}

.header-cta-btn .cta-wapp-icon {
    fill: #25D366;
    flex-shrink: 0;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.header-cta-btn:hover {
    background: #25D366;
    color: #FFFFFF !important;
    border-color: #25D366;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.header-cta-btn:hover .cta-wapp-icon {
    fill: #FFFFFF;
    transform: scale(1.08);
}

/* ==========================================================================
   Hero Section & Escasez Subconsciente
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #070A12; /* Base de contraste para que el video destaque */
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 0 80px;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.04); /* Escala 1.04 adicional para ocultar cualquier margen */
    object-fit: cover;
    object-position: center;
    filter: brightness(0.68) contrast(1.1) saturate(1.1);
}

/* Overlay para que los títulos y botones institucionales tengan legibilidad suprema */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(0, 51, 160, 0.18) 0%, rgba(7, 10, 18, 0.75) 60%, rgba(7, 10, 18, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Titular del hero sobre el video: Blanco puro con sombra de texto sutil para máxima autoridad */
.hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-sub {
    color: #E2E8F0 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .hero-video-wrapper {
        background: #070A12;
    }
}

.badge-urgent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-subtle);
    border: 1px solid var(--gold);
    color: #996515;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 22px;
    box-shadow: var(--card-shadow);
}

.hero-title {
    font-size: clamp(2.1rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ==========================================================================
   Botones de Conversión Primaria
   ========================================================================== */
.btn-primary {
    background: var(--action-red);
    color: #FFFFFF;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-size: 1.02rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(213, 43, 30, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.35);
}

.btn-whatsapp-hero {
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
    color: #FFF;
    font-weight: 700;
    padding: 15px 28px;
    border-radius: var(--radius-md);
    font-size: 1.02rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--text-main);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Grilla de Certeza y Ventajas Tributarias
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 55px;
}

.stat-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ==========================================================================
   Cotizador / Simulador Multi-Paso (Efecto Zeigarnik)
   ========================================================================== */
.section-calculator {
    padding: 75px 0 60px;
    background: var(--bg-base);
}

.calc-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    position: relative;
}

.calc-header {
    text-align: center;
    margin-bottom: 30px;
}

.calc-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.calc-header p {
    color: var(--text-muted);
    font-size: 0.96rem;
    max-width: 650px;
    margin: 0 auto;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.opt-card {
    border: 2px solid var(--border-color);
    background: var(--bg-base);
    padding: 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    user-select: none;
    box-shadow: var(--card-shadow);
}

.opt-card:hover {
    border-color: var(--gold);
    background: var(--bg-surface);
    transform: translateY(-2px);
}

.opt-card.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
    box-shadow: var(--card-shadow);
}

.opt-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.opt-card.selected h3 {
    color: var(--text-main);
}

.opt-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.opt-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all var(--transition-fast);
}

.opt-card.selected .opt-check {
    border-color: var(--gold);
    background: var(--gold);
    color: #FFFFFF;
}

/* Pre-vista de Cotización Dinámica */
.quote-preview {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.quote-preview-item {
    display: flex;
    flex-direction: column;
}

.quote-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.quote-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.quote-val.total {
    color: var(--gold);
    font-size: 1.45rem;
}

/* ==========================================================================
   Formulario Único "Todo en Uno" de Alta Conversión
   ========================================================================== */
.section-form {
    padding: 80px 0 100px;
    background: var(--bg-surface);
}

.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-sub {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.98rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
}

.microcopy-trust {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.45;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ==========================================================================
   Elementos Flotantes de Conversión (WhatsApp y WebChat)
   ========================================================================== */
.float-triggers {
    position: fixed;
    bottom: 26px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    position: relative;
}

.btn-float:hover {
    transform: scale(1.1);
}

.btn-float-wapp {
    background-color: var(--whatsapp);
    animation: pulseWapp 2.8s infinite;
}

.btn-float-chat {
    background-color: var(--text-main);
    box-shadow: var(--card-shadow);
}

.btn-float svg {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* ==========================================================================
   Ventana Emergente del WebChat Autónomo
   ========================================================================== */
.chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 390px;
    height: 560px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.open {
    display: flex;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-header {
    background: linear-gradient(135deg, #002266 0%, #0033A0 100%);
    color: #FFFFFF;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid var(--gold);
    position: relative;
    gap: 8px;
}

.chat-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.chat-header-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 3px;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    object-fit: contain;
}

.chat-online-pulse {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background: #25D366;
    border: 2px solid #002266;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.chat-header-info {
    min-width: 0;
    flex: 1;
}

.chat-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-header-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

.chat-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid var(--gold);
    color: #FFE58F;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.chat-subtitle-text {
    font-size: 0.73rem;
    color: #E2E8F0;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-btn-wapp-escalate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.chat-btn-wapp-escalate:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
    color: #FFFFFF;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.18s ease;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.chat-window.minimized {
    height: auto !important;
}

.chat-window.minimized .chat-messages,
.chat-window.minimized .chat-footer {
    display: none !important;
}

.chat-messages {
    flex: 1;
    padding: 16px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F8FAFC;
    scroll-behavior: smooth;
}

.chat-bubble {
    max-width: 86%;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    font-size: 0.90rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-bubble.ai {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-bubble.client {
    background: var(--text-main);
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 51, 160, 0.15);
}

.chat-quick-prompts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 4px;
    animation: fadeIn 0.3s ease;
}

.chat-prompt-chip {
    background: #FFFFFF;
    border: 1px solid rgba(0, 51, 160, 0.18);
    color: var(--text-main);
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 51, 160, 0.04);
}

.chat-prompt-chip:hover {
    background: rgba(0, 51, 160, 0.06);
    border-color: var(--text-main);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 51, 160, 0.1);
}

.chat-bubble.typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    min-width: 54px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; background: var(--gold); }
}

.chat-fallback-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-fallback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chat-fallback-btn:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    color: #FFFFFF;
}

.chat-wapp-transition-bar {
    padding: 6px 12px;
    background: #F8FAFC;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.chat-continue-wapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid #25D366;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.chat-continue-wapp-btn:hover {
    background: #25D366;
    color: #FFFFFF;
    border-color: #25D366;
}

.chat-footer {
    padding: 12px 14px;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: #F8FAFC;
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.90rem;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: var(--gold);
    background: #FFFFFF;
}

/* ==========================================================================
   Footer Institucional
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    background: var(--bg-surface);
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
   MÓDULO ADMIN & INBOX OMNICANAL (/admin)
   ========================================================================== */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-surface);
    padding: 20px;
}

.login-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--card-shadow);
}

.admin-layout {
    background: var(--bg-surface);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.badge-gold {
    background: var(--gold-subtle);
    color: #996515;
    border: 1px solid var(--gold);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}

.admin-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    overflow-x: hidden;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.kpi-title { font-size: 0.85rem; color: var(--text-muted); }
.kpi-value { font-size: 2.3rem; font-weight: 800; margin: 0.4rem 0; color: var(--text-main); }
.kpi-foot { font-size: 0.78rem; color: var(--text-dim); }

.admin-panel {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

/* Submenú de Pestañas (Settings / Configuración) */
.settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0 2rem 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.admin-tab-btn,
.settings-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-tab-btn svg,
.settings-tab-btn svg {
    transition: stroke 0.2s ease;
}

.admin-tab-btn:hover,
.settings-tab-btn:hover {
    border-color: var(--gold-accent);
    color: var(--text-main);
}

.admin-tab-btn.active,
.settings-tab-btn.active {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 51, 160, 0.15);
}

.admin-tab-btn.active svg,
.settings-tab-btn.active svg {
    stroke: #FFFFFF;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 12px;
}

.table-search {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
    min-width: 250px;
}

.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    color: var(--text-main);
    background: var(--bg-surface);
    font-weight: 700;
}

.flag-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-select {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.85rem;
    outline: none;
}

.btn-toggle-bot {
    cursor: pointer;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.bot-on { background: rgba(37, 211, 102, 0.15); color: #16A34A; border: 1px solid #25d366; }
.bot-off { background: rgba(239, 68, 68, 0.12); color: #DC2626; border: 1px solid #ef4444; }

/* Inbox Split Screen */
.inbox-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 65px);
}

.inbox-sidebar {
    background: var(--bg-base);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: auto;
}

.inbox-chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-surface);
}

.inbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.msg-bubble {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    line-height: 1.45;
}

.msg-user { align-self: flex-start; background: var(--bg-base); border: 1px solid var(--border-color); }
.msg-ai { align-self: flex-end; background: rgba(212, 175, 55, 0.12); border: 1px solid var(--gold); }
.msg-human { align-self: flex-end; background: rgba(37, 211, 102, 0.12); border: 1px solid var(--whatsapp); }

.msg-header {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: var(--text-dim);
}

.inbox-compose {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
}

.inbox-compose textarea {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
    resize: none;
    outline: none;
}

.alert-error {
    background: var(--danger-subtle);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   Widget de Cotización Legal Paraguaya (Ley 6984 / Visas / DNM)
   ========================================================================== */
.calc-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.legal-badge-card {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin: 20px 0;
    text-align: left;
    box-shadow: var(--card-shadow);
}

.badge-law {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    color: #996515;
    border: 1px solid var(--gold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}

.calc-summary-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

.calc-summary-box h4 {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.calc-list li strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.calc-total {
    padding: 16px 18px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.calc-total strong {
    color: var(--text-main);
    font-size: 1.45rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
    color: #FFF;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   Sección Institucional: Expertise, Misión y Visión
   ========================================================================== */
.section-institutional {
    padding: 85px 0 60px;
    background: var(--bg-surface);
    position: relative;
}

.expertise-banner {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 45px;
    box-shadow: var(--card-shadow);
}

.expertise-banner h3 {
    color: var(--text-main);
    font-size: 1.45rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-banner p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mv-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.mv-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.mv-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ==========================================================================
   Grilla de Servicios Corporativos Integrales (Legal, Payroll, Contable)
   ========================================================================== */
.section-services {
    padding: 85px 0 60px;
    background: var(--bg-base);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: inline-block;
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}

.service-cta-link {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.service-card:hover .service-cta-link {
    gap: 10px;
}

/* ==========================================================================
   Módulo de Impacto Corporativo (+8 empresas, +400 colaboradores)
   ========================================================================== */
.section-impact {
    padding: 70px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.impact-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px 18px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast);
}

.impact-card:hover {
    transform: scale(1.03);
    border-color: var(--gold);
}

.impact-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.impact-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Cotizador B2B / PyG (Payroll & Contabilidad)
   ========================================================================== */
.section-b2b-calc {
    padding: 85px 0 60px;
}

.b2b-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.range-control-group {
    margin: 24px 0;
}

.range-label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-surface);
    outline: none;
    accent-color: var(--gold);
    cursor: pointer;
}

/* ==========================================================================
   Módulo Déjanos tu CV (Portal de Candidatos & PDF Upload)
   ========================================================================== */
.section-cv {
    padding: 85px 0 100px;
    background: var(--bg-surface);
}

.cv-wrapper {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--card-shadow);
}

.gender-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gender-label-card {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.gender-label-card:hover {
    border-color: var(--gold);
}

.gender-label-card input[type="radio"]:checked + span {
    color: var(--text-main);
    font-weight: 700;
}

.file-dropzone {
    border: 2px dashed var(--border-color);
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    position: relative;
}

.file-dropzone:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
}

.file-dropzone-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--gold);
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ Accordion)
   ========================================================================== */
.section-faq {
    padding: 85px 0 60px;
    background: var(--bg-base);
}

.faq-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: var(--text-main);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px 24px;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
    padding-top: 16px;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   Animaciones Nativas
   ========================================================================== */
@keyframes pulseWapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

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



/* ==========================================================================
   Infografía Visual Horizontal: Proceso en 4 Pasos
   ========================================================================== */
.section-process {
    padding: 70px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.process-step-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.process-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.step-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-subtle);
    color: #996515;
    font-weight: 800;
    font-size: 1.1rem;
    border: 1px solid var(--gold);
    margin-bottom: 14px;
}

.process-step-card h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.process-step-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* ==========================================================================
   Separador Visual Contextual (Transición B2C -> B2B)
   ========================================================================== */
.divider-transition-banner {
    padding: 60px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.divider-transition-banner h2 {
    font-size: 2.1rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 12px auto;
}

.divider-transition-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 20px;
}

/* ==========================================================================
   3 Grandes Pilares Corporativos B2B
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.pillar-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    border-color: var(--text-main);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.pillar-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 51, 160, 0.08);
    color: var(--text-main);
    margin-bottom: 14px;
    width: fit-content;
}

.pillar-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.pillar-features {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-features li {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: bold;
}

/* ==========================================================================
   Testimonios con Prueba Social Específica
   ========================================================================== */
.section-testimonials {
    padding: 70px 0;
    background: var(--bg-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.testimonial-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
    border-color: var(--gold);
}

.testimonial-quote {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    font-size: 1.8rem;
}

.testimonial-info strong {
    display: block;
    color: var(--text-main);
    font-size: 0.92rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Pestañas Segmentadas de FAQ
   ========================================================================== */
.faq-tab-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px auto 36px;
    max-width: 650px;
}

.faq-tab-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-base);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--gold);
}

.faq-tab-btn.active {
    background: var(--text-main);
    color: #FFFFFF;
    border-color: var(--text-main);
    box-shadow: var(--card-shadow);
}

.faq-tab-pane {
    display: none;
}

.faq-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   Modal del Lead Magnet (Descarga de Guía Oficial PDF)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-content-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 520px;
    width: 100%;
    padding: 36px 30px;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Responsividad (Tablets y Móviles)
   ========================================================================== */
@media (max-width: 992px) {
    .header-nav { display: none; }
    .site-header { padding: 0.65rem 1rem; }
    .header-inner { gap: 1rem; }
    .inbox-container { grid-template-columns: 1fr; }
    .inbox-sidebar { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .process-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; justify-content: space-between; }
    .header-nav-center { order: 3; width: 100%; margin-top: 6px; }
    .audience-segmented-control, .audience-switch { width: 100%; justify-content: center; }
    .segment-btn, .audience-switch button { flex: 1; justify-content: center; text-align: center; padding: 6px 6px; font-size: 0.75rem; }
    .header-cta-btn { padding: 6px 10px; font-size: 0.78rem; }
    .hero-section { padding: 150px 0 50px; }
    .process-steps-grid { grid-template-columns: 1fr; }
    .chat-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 84px;
        height: 75vh;
    }
    .form-wrapper { padding: 24px; }
    .calc-box { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .divider-transition-banner h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .badge-urgent {
        font-size: 0.72rem;
        padding: 5px 12px;
        letter-spacing: 0.02em;
        line-height: 1.35;
    }
    .hero-title {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   Icono de Ayuda Contextual (ℹ️), Modal Emergente y Tabla Comparativa
   ========================================================================== */
.help-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  color: #996515;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.help-btn img,
.help-btn .help-btn-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.help-btn:hover {
  background: var(--gold);
  color: #FFFFFF;
  transform: scale(1.08);
}

/* ==============================================================================
   SIMULADOR VISUAL INTEGRAL (100% LIGHT MODE IMPERIAL)
   ============================================================================== */
.sim-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.sim-card-panel {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.sim-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
@media (min-width: 640px) {
  .sim-panel-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sim-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  color: #996515;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.sim-step-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.sim-regime-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 51, 160, 0.08);
  border: 1px solid rgba(0, 51, 160, 0.25);
  color: var(--text-main);
  align-self: flex-start;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .sim-regime-badge {
    align-self: center;
  }
}

/* ==========================================================================
   SELECTOR DE RÉGIMEN POR CATEGORÍAS (5 CARDS CON BANDERAS EN ÓRBITA)
   ========================================================================== */
.regime-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 1.25rem;
}
@media (max-width: 1280px) {
  .regime-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .regime-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .regime-selector-grid {
    grid-template-columns: 1fr;
  }
}

.regime-card {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  min-height: 154px;
  box-shadow: var(--card-shadow);
}

.regime-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
  background: var(--bg-surface);
}

.regime-card.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: var(--card-shadow);
}

.regime-card.active::after {
  content: "\2713";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.regime-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.65rem;
}

.regime-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.3;
}

.regime-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #996515;
  font-weight: 600;
  white-space: nowrap;
}

.regime-badge.badge-warning {
  background: rgba(213, 43, 30, 0.1);
  border-color: rgba(213, 43, 30, 0.25);
  color: var(--action-red);
}

/* Efecto de banderas en órbita continua */
.flag-orbit-container {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  padding: 0.35rem 0;
  margin-bottom: 0.65rem;
}

.flag-orbit-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: orbitScroll 14s linear infinite;
}

.track-fast {
  animation-duration: 20s;
}

.regime-card:hover .flag-orbit-track {
  animation-play-state: paused;
}

@keyframes orbitScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.flag-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.74rem;
  white-space: nowrap;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flag-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--text-main);
  transform: scale(1.05);
}

.flag-pill.selected {
  background: var(--text-main);
  color: #FFFFFF;
  font-weight: 700;
  border-color: var(--text-main);
}

.regime-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Card Resto del Mundo */
.world-orbit-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.5rem 0;
  margin-bottom: 0.65rem;
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  transition: all 0.2s;
}

.regime-card:hover .world-orbit-box {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.world-rotating-icon {
  font-size: 1.4rem;
  display: inline-block;
  animation: spinWorld 18s linear infinite;
}

@keyframes spinWorld {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.world-label {
  font-size: 0.8rem;
  color: #996515;
  font-weight: 600;
}

/* Modal Selector Resto del Mundo */
.world-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.world-modal-backdrop.open {
  display: flex;
}

.world-modal-content {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.world-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.world-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.world-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.world-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.world-search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s;
}

.world-search-input:focus {
  border-color: var(--gold);
  background: var(--bg-base);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.world-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.world-tag-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.world-tag-btn:hover, .world-tag-btn.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #FFFFFF;
  font-weight: 700;
}

.world-countries-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.world-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.world-country-item:hover {
  background: rgba(0, 51, 160, 0.06);
  border-color: var(--text-main);
  transform: translateX(2px);
}

.world-country-item.selected {
  background: rgba(0, 51, 160, 0.1);
  border-color: var(--text-main);
}

.world-modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Grid de Trámites (3x2) */
.sim-procedures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.25rem;
}
@media (min-width: 680px) {
  .sim-procedures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sim-procedures-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sim-proc-card {
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.sim-proc-card:hover {
  border-color: var(--gold);
  background: var(--bg-surface);
}
.sim-proc-card.selected {
  background: var(--bg-surface);
  border-color: var(--text-main);
  box-shadow: var(--card-shadow);
}
.sim-proc-card.disabled {
  opacity: 0.45;
  filter: grayscale(1);
  background: #F1F5F9;
  border-color: var(--border-color);
  cursor: not-allowed;
  user-select: none;
}

.sim-proc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.sim-proc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-proc-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}
.sim-proc-card.selected .sim-proc-title {
  color: var(--text-main);
}

.sim-proc-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.sim-proc-card.selected .sim-proc-radio {
  background: var(--text-main);
  color: #FFFFFF;
}
.sim-proc-card:not(.selected) .sim-proc-radio {
  border: 1px solid #CBD5E1;
}

.sim-proc-law {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}
.sim-proc-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 6px;
}

.sim-proc-footer {
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sim-proc-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.sim-proc-card.selected .sim-proc-badge {
  background: rgba(0, 51, 160, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(0, 51, 160, 0.2);
}
.sim-proc-card:not(.selected) .sim-proc-badge {
  background: #F1F5F9;
  color: var(--text-muted);
}
.sim-proc-badge.danger {
  background: rgba(213, 43, 30, 0.1);
  color: var(--action-red);
  border: 1px solid rgba(213, 43, 30, 0.25);
}

.sim-proc-fee {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Banner de Compatibilidad */
.sim-compat-banner {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 1.25rem;
  line-height: 1.5;
}
.sim-compat-banner.mercosur {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065F46;
}
.sim-compat-banner.extramercosur {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400E;
}
.sim-compat-banner.restricted {
  background: rgba(213, 43, 30, 0.08);
  border-color: rgba(213, 43, 30, 0.3);
  color: var(--action-red);
}

/* Sección 3: Resultados en 2 Columnas */
.sim-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .sim-results-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.sim-legal-box {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.sim-csj-notice {
  background: var(--bg-surface);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sim-csj-icon {
  background: rgba(212, 175, 55, 0.12);
  color: #996515;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-quote-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.sim-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.sim-fee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.sim-total-card {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-total-usd {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  font-family: 'Cinzel', serif, system-ui;
  line-height: 1;
}

.sim-wapp-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--action-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(213, 43, 30, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.sim-wapp-btn:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 22px rgba(213, 43, 30, 0.35);
  transform: translateY(-2px);
}

.sim-crypto-btn {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: rgba(38, 161, 123, 0.08);
  border: 1px solid #26A17B;
  color: #26A17B;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin-top: 10px;
}
.sim-crypto-btn:hover {
  background: #26A17B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

/* ==============================================================================
   VENTANAS MODALES EJECUTIVAS: COMPARATIVA DE VISADOS, PAGO USDT Y AYUDA LEGAL
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.25rem;
}
.modal-overlay.active {
  display: flex !important;
}

.modal-window {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-window.modal-xl {
  max-width: 1100px;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}
.modal-title-group h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
.badge-legal-tag {
  font-size: 0.78rem;
  color: #996515;
  background: rgba(212, 175, 55, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--text-dark);
}
.modal-table-wrapper {
  overflow-x: auto;
}
.modal-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.modal-data-table th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.modal-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.82rem;
}
.modal-data-table tr:hover td {
  background: var(--bg-surface);
}
.tag-free {
  color: #16A34A;
  font-weight: 600;
}
.btn-select-tramite {
  background: rgba(0, 51, 160, 0.08);
  border: 1px solid var(--text-main);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-select-tramite:hover {
  background: var(--text-main);
  color: #FFFFFF;
}
.btn-compare-modal {
  background: rgba(0, 51, 160, 0.06);
  border: 1px solid rgba(0, 51, 160, 0.25);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn-compare-modal:hover {
  background: var(--text-main);
  color: #FFFFFF;
}

/* Botón de Pago Cripto y Wallet USDT */
.btn-crypto-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #FFFFFF;
    color: #0F766E;
    border: 1.5px solid #14B8A6;
    border-radius: var(--radius-md, 8px);
    padding: 13px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-crypto-pay:hover {
    background: rgba(20, 184, 166, 0.08);
    border-color: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
}

.btn-copy-wallet {
    background: var(--text-main);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-copy-wallet:hover {
    background: #002270;
}

/* Modal Flotante de Ayuda Contextual */
.help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 1rem;
}
.help-modal-overlay.active {
  display: flex !important;
}
.help-modal-box {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  color: var(--text-dark);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.help-modal-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}
.close-help-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.close-help-btn:hover {
  color: var(--text-main);
}
.help-meta-badge {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-main);
  background: rgba(0, 51, 160, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 51, 160, 0.18);
  font-weight: 600;
}

/* ==============================================================================
   FOOTER CORPORATIVO Y TARJETA QR DE CONVERSIÓN WHATSAPP
   ============================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 1.5rem 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.footer-col.brand-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-legal-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #996515;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-title {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--text-main);
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .footer-links li a:hover {
    transform: none;
  }
  .footer-links {
    align-items: center;
  }
}

/* Tarjeta QR WhatsApp */
.footer-qr-card {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  max-width: 360px;
  margin: 0 auto;
}

.footer-qr-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
  text-align: left;
}

.qr-wapp-icon {
  font-size: 1.8rem;
}

.qr-image-wrapper {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.qr-image-wrapper:hover {
  transform: scale(1.02);
}

.qr-code-img {
  width: 140px;
  height: 140px;
  display: block;
}

.qr-instructions {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.qr-phone-number {
  display: inline-block;
  margin-top: 0.4rem;
  color: #16A34A;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  font-family: monospace;
}

/* Barra inferior */
.footer-bottom {
  max-width: 1280px;
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   WIZARD IMPERIAL PARAGUAYO (EMBUDO DE ALTA AUTORIDAD & LEY DE HICK)
   ========================================================================== */
#simuladorWizard,
.wizard-container {
    width: 100%;
    margin-top: 1.5rem;
}

.wizard-steps-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wizard-nav-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.wizard-nav-step.active {
    color: var(--text-main);
}

.wizard-nav-step.completed {
    color: #10B981;
}

.wizard-nav-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.wizard-nav-step.active .wizard-nav-circle {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.25);
}

.wizard-nav-step.completed .wizard-nav-circle {
    background: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
}

.wizard-step {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.wizard-step.wizard-active {
    display: block !important;
    animation: wizardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.hidden {
    display: none !important;
}

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

/* PASO 1: 2 Tarjetas Masivas de Nacionalidad (Efecto Von Restorff & Aislamiento) */
.wizard-nationality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 820px) {
    .wizard-nationality-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-nationality-card {
    cursor: pointer;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
    background: var(--bg-base);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.wizard-nationality-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-hover);
}

.wizard-nationality-card.active {
    border-color: var(--action-red);
    box-shadow: var(--card-shadow);
}

/* Tarjeta Highlight: Brasil (Borde Rojo Carmesí) */
.wizard-nationality-card.card-brazil {
    border: 2.5px solid var(--action-red);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    transform: scale(1.02);
}

.wizard-nationality-card.card-brazil:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: var(--action-red);
    box-shadow: var(--shadow-hover);
}

.wizard-nationality-card.card-brazil.active {
    border-color: var(--action-red);
}

.nat-flag-large {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.nat-card-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.nat-card-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

.nat-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.nat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 51, 160, 0.05);
    border: 1px solid rgba(0, 51, 160, 0.12);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.nat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 51, 160, 0.12);
    border-color: var(--text-main);
}

.nat-badge.highlight-red {
    background: rgba(213, 43, 30, 0.07);
    border-color: rgba(213, 43, 30, 0.2);
    color: var(--action-red);
}

.nat-badge.highlight-red:hover {
    box-shadow: 0 4px 10px rgba(213, 43, 30, 0.18);
    border-color: var(--action-red);
}

.nat-badge.highlight-gold {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #996515;
}

.nat-badge.highlight-gold:hover {
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.22);
    border-color: var(--gold-accent);
}

/* ==========================================================================
   SMART COUNTRY SELECTOR & MINI MAPA SVG INTERACTIVO
   ========================================================================== */
.smart-country-selector {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 1.15rem;
    pointer-events: none;
    color: var(--text-dim);
}

.country-search-box {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.98rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.country-search-box:focus {
    border-color: var(--gold-accent);
    border-bottom: 2.5px solid var(--gold-accent);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.country-selector-body {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 1.25rem;
    min-height: 380px;
    align-items: start;
}

@media (max-width: 992px) {
    .country-selector-body {
        grid-template-columns: 1fr;
    }
}

.country-matrix-wrapper {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.country-matrix-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.country-matrix-wrapper::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}
.country-matrix-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

.country-matrix-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.country-matrix-table thead th {
    position: sticky;
    top: 0;
    background: #556270; /* Slate Gray formal idéntico al documento oficial de Migraciones */
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 10px 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-right: 1.5px solid rgba(255, 255, 255, 0.25);
    z-index: 5;
    vertical-align: middle;
    line-height: 1.3;
}
.country-matrix-table thead th:last-child {
    border-right: none;
}

.country-matrix-table tbody tr {
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.15s ease;
}

.country-matrix-table tbody tr:hover {
    background-color: rgba(0, 51, 160, 0.05);
}

.country-matrix-table tbody tr.selected {
    background-color: rgba(0, 51, 160, 0.09) !important;
}

.country-matrix-table td {
    padding: 8px 10px;
    vertical-align: middle;
    color: var(--text-dark);
    line-height: 1.35;
    border-right: 1px solid #F1F5F9;
    font-size: 0.8rem;
}
.country-matrix-table td:last-child {
    border-right: none;
}

.country-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.country-item-flag {
    font-size: 1.25rem;
    line-height: 1;
}
.country-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}
.country-item-code-pill {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #F1F5F9;
    padding: 1px 5px;
    border-radius: 4px;
}

/* Badges oficiales de la Matriz Migraciones */
.matrix-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: normal;
    line-height: 1.25;
}

.matrix-badge.badge-mercosur {
    background: rgba(0, 51, 160, 0.08);
    color: #0033A0;
    border: 1px solid rgba(0, 51, 160, 0.2);
}

.matrix-badge.badge-extramercosur {
    background: rgba(71, 85, 105, 0.08);
    color: #475569;
    border: 1px solid rgba(71, 85, 105, 0.2);
}

.matrix-badge.badge-arrival {
    background: rgba(217, 119, 6, 0.1);
    color: #B45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.matrix-badge.badge-consular {
    background: rgba(220, 38, 38, 0.08);
    color: #B91C1C;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.matrix-badge.badge-free {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.matrix-residence-text {
    font-size: 0.76rem;
    color: #334155;
    font-weight: 600;
}

.mini-map-container {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mini-map-svg {
    width: 100%;
    height: auto;
    max-height: 210px;
}

.map-region {
    cursor: pointer;
}

.map-region path {
    fill: #CBD5E1;
    stroke: #FFFFFF;
    stroke-width: 1.5;
    transition: fill 0.2s ease, filter 0.2s ease;
}

.map-region:hover path,
.map-region.active path {
    fill: var(--text-main);
    filter: drop-shadow(0 3px 6px rgba(0, 51, 160, 0.35));
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.map-legend span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.map-legend span:hover,
.map-legend span.active {
    color: var(--text-main);
    background: rgba(0, 51, 160, 0.08);
    font-weight: 700;
}

/* ==========================================================================
   PSICOLOGÍA OSCURA: GATILLOS, BADGES DE AUTORIDAD Y CIERRE ROJO BANDERA
   ========================================================================== */
.authority-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px 0;
}

.authority-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(0, 51, 160, 0.05);
    border: 1px solid rgba(0, 51, 160, 0.15);
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.authority-badge.badge-urgent {
    background: rgba(213, 43, 30, 0.06);
    border-color: rgba(213, 43, 30, 0.2);
    color: var(--action-red);
}

.btn-cta-imperial,
.sim-wapp-btn {
    background: var(--action-red) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 16px 26px !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 22px rgba(213, 43, 30, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: none;
    letter-spacing: 0.01em;
    width: 100%;
}

.btn-cta-imperial:hover,
.sim-wapp-btn:hover {
    background: var(--red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(213, 43, 30, 0.45) !important;
}

/* ==========================================================================
   CRM VISUAL KANBAN EN PANEL ADMIN (admin/kanban.php)
   ========================================================================== */
.kanban-container {
    width: 100%;
    padding: 1.5rem 0;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 1.5rem;
}

.kanban-column {
    background: #F1F5F9;
    border-radius: var(--border-radius);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    min-height: 540px;
    max-height: calc(100vh - 200px);
}

.kanban-column-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid transparent;
}

.kanban-column[data-status="nuevo"] .kanban-column-header { border-color: #3B82F6; }
.kanban-column[data-status="cotizado"] .kanban-column-header { border-color: var(--gold-accent); }
.kanban-column[data-status="pago_pendiente"] .kanban-column-header { border-color: #F97316; }
.kanban-column[data-status="en_tramite"] .kanban-column-header { border-color: var(--text-main); }
.kanban-column[data-status="finalizado"] .kanban-column-header { border-color: #10B981; }

.kanban-column-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-count-pill {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.kanban-cards-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    min-height: 220px;
    transition: background-color 0.2s ease;
}

.kanban-cards-list.drag-over {
    background: rgba(0, 51, 160, 0.05);
    border-radius: 6px;
}

.kanban-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(0, 51, 160, 0.05);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    position: relative;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.4;
    transform: scale(0.97);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.1);
    border-color: var(--border-light);
}

.kanban-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.kanban-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.kanban-card-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #F1F5F9;
    color: var(--text-dark);
}

.kanban-token-link {
    font-size: 0.72rem;
    color: var(--gold-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.kanban-token-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PORTAL PRIVADO DE TRACKING DEL CLIENTE (tracking.php)
   ========================================================================== */
.tracking-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.tracking-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tracking-header h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
}

.tracking-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-container {
    position: relative;
    padding: 1.5rem 0 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 20px;
    width: 3px;
    background: #E2E8F0;
    border-radius: 2px;
}

.timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-bullet {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #64748B;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Paso completado: Azul Marino con checkmark */
.timeline-node.node-completed .timeline-bullet {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #FFFFFF;
}

.timeline-node.node-completed h4 {
    color: var(--text-main);
    font-weight: 700;
}

/* Paso actual: Oro con pulso animado */
.timeline-node.node-active .timeline-bullet {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: #FFFFFF;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.timeline-node.node-active h4 {
    color: #996515;
    font-weight: 800;
}

/* Zona de Subida Rápida de Documentos */
.doc-upload-card {
    background: #FFFFFF;
    border: 2px solid var(--action-red);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    margin-top: 2.25rem;
    box-shadow: 0 10px 25px rgba(213, 43, 30, 0.08);
}

.doc-upload-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.doc-upload-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--action-red);
}

.doc-dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: 8px;
    padding: 1.75rem;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doc-dropzone:hover,
.doc-dropzone.dragover {
    border-color: var(--action-red);
    background: rgba(213, 43, 30, 0.03);
}

.uploaded-docs-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uploaded-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}

.doc-check-icon {
    color: #25D366;
    font-size: 1.15rem;
    font-weight: 800;
}

/* ==========================================================================
   WIZARD DE 4 PASOS, CAPTURA DE LEADS Y EXPEDIENTE PDF (cotizador)
   ========================================================================== */
.wizard-nationality-card.card-brazil {
    border: 2.5px solid var(--action-red) !important;
}

.wizard-nationality-card.card-world {
    border: 2.5px solid var(--text-main) !important;
}

/* Grilla de 6 opciones exactas de visados en Paso 2 */
.sim-procedures-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .sim-procedures-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sim-procedures-grid-6 {
        grid-template-columns: 1fr;
    }
}

.sim-proc-card-6 {
    background: var(--bg-base);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* Orden jerárquico dinámico según filtrado de país */
#procCard_mercosur_express { order: 1; }
#procCard_temporal_general { order: 1; }
#procCard_inversionista_suace { order: 2; }
#procCard_sociedad_eas { order: 3; }
#procCard_visa_estudiante { order: 4; }
#procCard_permanente_definitiva { order: 5; }

.sim-proc-card-6:hover {
    transform: translateY(-3px);
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-hover);
}

.sim-proc-card-6.selected {
    border-color: var(--text-main);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    box-shadow: var(--card-shadow);
}

.sim-proc-card-6.selected::before {
    content: 'SELECCIONADO';
    position: absolute;
    top: 10px;
    right: 14px;
    background: var(--text-main);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.proc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.proc-badge-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 51, 160, 0.08);
    color: var(--text-main);
    letter-spacing: 0.3px;
}

.proc-badge-pill.highlight-red {
    background: rgba(213, 43, 30, 0.09);
    color: var(--action-red);
}

.proc-badge-pill.highlight-gold {
    background: rgba(212, 175, 55, 0.15);
    color: #996515;
}

.proc-card-title {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.proc-card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 1rem 0;
}

.proc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-accent);
}

/* Botón Volver entre pasos del Wizard */
.btn-wizard-back {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: #64748B;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-wizard-back:hover {
    background: #F1F5F9;
    color: var(--text-main);
    border-color: #94A3B8;
}

.wizard-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1E40AF;
}

/* PASO 4: Formulario de Captura de Datos y Emisión PDF */
.lead-capture-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.25rem 2rem;
    box-shadow: 0 12px 36px rgba(0, 51, 160, 0.06);
    max-width: 780px;
    margin: 0 auto;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.lead-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.lead-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-input {
    width: 100%;
    padding: 13px 16px;
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.lead-input:focus {
    background: #FFFFFF;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.lead-summary-pill-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.privacy-guarantee-note {
    background: rgba(0, 51, 160, 0.04);
    border: 1px solid rgba(0, 51, 160, 0.12);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
    margin: 1.25rem 0;
}

/* Spinner animado para envío */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   Admin Topbar Enterprise (Unificada en /admin/)
   ========================================================================== */
/* Corrección de la barra superior administrativa */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 12px;
}

.admin-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.admin-role-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #996515;
}

/* Segmented Navigation Central */
.admin-segmented-nav {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
    overflow-x: visible; /* Elimina la barra de desplazamiento interna */
}

.admin-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-nav-item svg {
    stroke: var(--text-muted);
    transition: stroke 0.2s ease;
}

.admin-nav-item:hover {
    color: var(--text-main);
}

.admin-nav-item:hover svg {
    stroke: var(--text-main);
}

.admin-nav-item.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 51, 160, 0.08);
}

.admin-nav-item.active svg {
    stroke: var(--text-main);
}

/* Acciones de Operador & Logout */
.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0F172A;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 5px 12px;
    border-radius: 9999px;
}

.user-avatar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
}

.btn-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0033A0;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-admin-action:hover {
    border-color: #0033A0;
    background: rgba(0, 51, 160, 0.04);
}

.btn-admin-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #D52B1E;
    background: #FFFFFF;
    border: 1px solid rgba(213, 43, 30, 0.3);
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-admin-logout:hover {
    background: #D52B1E;
    color: #FFFFFF;
}

/* ==========================================================================
   Kanban Mejorado: Tarjetas VIP, Micro-Control y Modal Comanda Interna
   ========================================================================== */
.kanban-card.card-vip {
    border: 2px solid #D4AF37 !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF5 100%) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.18) !important;
}

.kanban-card-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #D4AF37;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.kanban-step-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1F5F9;
    padding: 4px 6px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 0.74rem;
}

.kanban-step-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: var(--text-main);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kanban-step-btn:hover {
    background: var(--text-main);
    color: #FFFFFF;
}

.kanban-step-pill-indicator {
    font-weight: 700;
    color: #0F172A;
}

.kanban-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #047857;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Modal de Comanda Interna */
.comanda-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.comanda-modal-overlay.active {
    display: flex;
}

.comanda-modal-container {
    background: #FFFFFF;
    border-radius: 12px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.comanda-modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
}

.comanda-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0033A0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comanda-close-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.comanda-close-btn:hover {
    color: #D52B1E;
}

.comanda-tabs {
    display: flex;
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
    padding: 4px 1.5rem 0;
    gap: 4px;
    overflow-x: auto;
}

.comanda-tab-btn {
    background: transparent;
    border: none;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.comanda-tab-btn:hover {
    color: #0033A0;
}

.comanda-tab-btn.active {
    background: #FFFFFF;
    color: #0033A0;
    font-weight: 700;
    border: 1px solid #E2E8F0;
    border-bottom-color: #FFFFFF;
}

.comanda-modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.comanda-modal-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    flex-shrink: 0;
}

.comanda-tab-panel {
    display: none;
}

.comanda-tab-panel.active {
    display: block;
}

.comanda-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 10px;
}

.comanda-table th {
    background: #F8FAFC;
    color: #475569;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #CBD5E1;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.comanda-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

/* ==========================================================================
   Módulo Trampa VIP: Viabilidad Pasaporte & Naturalización (CSJ)
   ========================================================================== */
.section-passport-vip {
    padding: 70px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.passport-card-container {
    background: #FFFFFF;
    border: 2px solid var(--gold-accent);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .passport-card-container {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 1.75rem;
    }
}

.passport-visual-box {
    background: linear-gradient(135deg, #001845 0%, #0033A0 100%);
    border-radius: 12px;
    padding: 2rem;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 51, 160, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.passport-visual-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.passport-badge-legal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.quiz-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.quiz-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quiz-radio-label:hover {
    border-color: #0033A0;
    background: #FFFFFF;
}

.quiz-radio-label input[type="radio"]:checked + span {
    font-weight: 700;
    color: #0033A0;
}

/* ==========================================================================
   Card Flotante VIP: Naturalización & Pasaporte Paraguayo
   ========================================================================== */
.naturalizacion-card {
    background: #FFFFFF;
    border: 2px solid var(--gold-accent);
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2.2rem;
    box-shadow: 0 12px 35px rgba(0, 51, 160, 0.07);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .naturalizacion-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.naturalizacion-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    position: relative;
}

.passport-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-accent);
    color: #996515;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.passport-mockup-img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 51, 160, 0.2));
    transition: transform 0.3s ease;
}

.passport-mockup-img:hover {
    transform: scale(1.04) rotate(-1deg);
}

.passport-caption {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nat-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    color: #B45309;
}

.nat-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.25;
}

.nat-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.nat-quiz-box {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 1.4rem;
}

.nat-quiz-item {
    margin-bottom: 10px;
}

.nat-quiz-item:last-child {
    margin-bottom: 0;
}

.nat-quiz-item label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.nat-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-quiz-opt {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quiz-opt:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-quiz-opt.selected {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #FFFFFF;
}

.nat-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-wapp-outline {
    padding: 11px 18px;
    border-radius: 6px;
    border: 1.5px solid #25D366;
    background: #FFFFFF;
    color: #15803D;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-wapp-outline:hover {
    background: #25D366;
    color: #FFFFFF;
}

/* ==========================================================================
   Librería Universal de Iconos SVG Institucionales (Trazo Fino 1.8)
   ========================================================================== */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.svg-icon-xs { width: 0.75rem; height: 0.75rem; }
.svg-icon-sm { width: 0.85rem; height: 0.85rem; }
.svg-icon-md { width: 1.15rem; height: 1.15rem; }
.svg-icon-lg { width: 1.4rem; height: 1.4rem; }
.svg-icon-xl { width: 1.8rem; height: 1.8rem; }

.icon-navy { stroke: var(--text-main, #0033A0); color: var(--text-main, #0033A0); }
.icon-gold { stroke: var(--gold-accent, #D4AF37); color: var(--gold-accent, #D4AF37); }
.icon-red  { stroke: var(--action-red, #D52B1E); color: var(--action-red, #D52B1E); }
.icon-wapp { stroke: #25D366; color: #25D366; }
.icon-muted { stroke: var(--text-muted, #64748B); color: var(--text-muted, #64748B); }
.icon-white { stroke: #FFFFFF; color: #FFFFFF; }

/* ==========================================================================
   Soporte Dinámico Right-to-Left (RTL - Árabe VIP y Hebreo Empresarial)
   ========================================================================== */
html[dir="rtl"] body {
    text-align: right;
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", "Rubik", "Alef", "Cairo", "Almarai", Tahoma, Arial, sans-serif;
}

html[lang="he"] body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", "Rubik", "Alef", Arial, sans-serif;
}

html[dir="rtl"] .header-nav,
html[dir="rtl"] .audience-segmented-control {
    flex-direction: row-reverse;
}

html[dir="rtl"] .admin-user-pill,
html[dir="rtl"] .btn-admin-action,
html[dir="rtl"] .btn-cta-imperial,
html[dir="rtl"] .btn-whatsapp,
html[dir="rtl"] .btn-crypto-pay {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lead-input-group,
html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] .modal-header,
html[dir="rtl"] .modal-footer {
    flex-direction: row-reverse;
}

html[dir="rtl"] .trust-badge-item svg,
html[dir="rtl"] .btn-cta-imperial svg,
html[dir="rtl"] .btn-primary svg {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .proc-card-footer {
    flex-direction: row-reverse;
}

html[dir="rtl"] .card-detail-item {
    text-align: right;
}

html[dir="rtl"] .pillar-features li,
html[dir="rtl"] .footer-links li {
    text-align: right;
}

html[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-actions {
    justify-content: flex-start;
}

html[dir="rtl"] .footer-col {
    text-align: right;
}

/* ==============================================================================
   BLOQUEO VISUAL DE COMANDA BLACK SERVICE Y COSTOS PAGADOS
   ============================================================================== */
.row-locked {
    background-color: #F8FAFC !important;
}
.row-locked td {
    color: #475569 !important;
}
.badge-paid-locked {
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.12);
    border: 1px solid #A7F3D0;
}

/* ==============================================================================
   ANIMACIONES IMPERIALES (ESTILO JURÍDICO CORPORATIVO)
   ============================================================================== */

/* 1. Entrada Escalonada de Autoridad para Tarjetas y Paneles */
.card-premium, .regime-card, .sim-proc-card, .wizard-nationality-card {
    animation: imperialFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* Retrasos escalonados para que no aparezcan de golpe */
.regime-card:nth-child(1) { animation-delay: 0.1s; }
.regime-card:nth-child(2) { animation-delay: 0.2s; }
.regime-card:nth-child(3) { animation-delay: 0.3s; }
.regime-card:nth-child(4) { animation-delay: 0.4s; }
.regime-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes imperialFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Subrayado Dorado Institucional para Títulos Principales */
.nat-title, .section-title, .calc-header h2 {
    position: relative;
    display: inline-block;
}

.nat-title::after, .section-title::after, .calc-header h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width var(--transition-smooth);
}

.nat-title:hover::after, .section-title:hover::after, .calc-header h2:hover::after {
    width: 100%;
}

/* 3. Pulso Ejecutivo (Glow Sutil) para Botones de Acción Principales */
.btn-whatsapp {
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.btn-whatsapp:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Mejora del Hover existente en Tarjetas VIP para dar un efecto de "Levitación Jurídica" */
.wizard-nationality-card:hover, .card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--gold-subtle), 0 5px 15px rgba(0, 51, 160, 0.05);
}




