/* ==========================================
   SMSGate Verify - Design Token System
   ========================================== */
:root {
    /* Fondos */
    --bg-base: hsl(220, 24%, 6%);
    --bg-card: rgba(21, 27, 41, 0.65);
    --bg-card-hover: rgba(25, 33, 50, 0.8);
    --bg-console: #02040a;
    
    /* Colores de Acento y Marca */
    --primary: hsl(260, 85%, 65%);     /* Electric Violet */
    --accent: hsl(190, 90%, 55%);      /* Electric Cyan */
    --primary-glow: rgba(139, 92, 246, 0.25);
    --accent-glow: rgba(6, 182, 212, 0.25);
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    
    /* Estados */
    --success: hsl(150, 80%, 45%);
    --success-glow: rgba(16, 185, 129, 0.2);
    --warning: hsl(35, 90%, 55%);
    --danger: hsl(0, 85%, 60%);
    
    /* Textos */
    --text-main: hsl(210, 20%, 98%);
    --text-muted: hsl(215, 15%, 70%);
    --text-inactive: hsl(215, 10%, 45%);
    
    /* Bordes y Líneas */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.35);
    --border-focus: rgba(139, 92, 246, 0.5);
}

/* Reset y Estilos Globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Mesh Gradient Background (Sutil y no-genérico) */
.mesh-gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    background: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.02) 0px, transparent 40%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   Header & Navegación (Pill Style, Max Height 72px)
   ========================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 72px;
    background: rgba(10, 13, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

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

.nav-links {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-inactive);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

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

.nav-btn:hover i {
    transform: translateY(-1px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header Right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-greeting i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.status-dot.online::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--success);
    opacity: 0.5;
    animation: status-pulse 2s infinite ease-in-out;
}

.status-dot.offline {
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.status-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   Contenedor Principal y Layout Base
   ========================================== */
.app-content {
    flex: 1;
    max-width: 1300px;
    width: 100%;
    margin: 40px auto;
    padding: 0 30px;
}

.tab-pane {
    display: none;
    animation: tabFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-pane.active {
    display: block;
}

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

/* ==========================================
   Tarjetas Premium (Glassmorphism Avanzado)
   ========================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(6, 182, 212, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================
   PESTAÑA 1: LANDING PAGE
   ========================================== */

/* Hero Asimétrico (50/50 Desktop) */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin: 40px auto 90px auto;
}

@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
}

.hero-info h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, hsl(215, 20%, 80%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-info .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 55ch;
}

@media (max-width: 960px) {
    .hero-info .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.badge {
    background: rgba(139, 92, 246, 0.08);
    color: hsl(250, 100%, 80%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.05);
}

.badge i {
    width: 14px;
    height: 14px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Visual del Hero: Consola Interactiva */
.hero-visual {
    width: 100%;
}

.hero-console {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bg-console) !important;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.55);
}

.console-header {
    background: #0d0f17;
    height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

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

.console-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.console-title {
    color: var(--text-inactive);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-left: 20px;
}

.console-screen {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.console-line {
    margin-bottom: 6px;
}

.c-accent { color: var(--accent); }
.c-muted { color: var(--text-inactive); }
.c-highlight { color: #f43f5e; font-weight: 700; }
.c-green { color: #10b981; }

.console-status-text {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.console-status-text.online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.console-status-text.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.console-pulse-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: consolePulse 1.5s infinite alternate ease-in-out;
}

.pulse-text {
    font-size: 0.72rem;
    color: var(--text-inactive);
}

@keyframes consolePulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* ==========================================
   Bento Grid (Layout Asimétrico)
   ========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 90px;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1 !important;
    }
    .flex-row-desktop {
        flex-direction: column !important;
    }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.col-span-2 {
    grid-column: span 2;
}

.flex-row-desktop {
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.4),
        0 0 15px rgba(6, 182, 212, 0.04);
}

.bento-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

.bento-card-content {
    flex: 1;
}

/* Gráfico de la Tarjeta SIM */
.bento-visual-preview {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sim-chip-graphic {
    width: 140px;
    height: 180px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    overflow: hidden;
}

/* Notch del chip sim en la esquina */
.sim-chip-graphic::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--bg-base);
    transform: rotate(45deg);
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.sim-gold-contacts {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 48px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
    padding: 2px;
}

.sim-gold-contacts::after {
    content: '';
    grid-column: span 3;
    border-top: 1.5px solid rgba(0,0,0,0.2);
}

.sim-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sim-network {
    font-size: 0.55rem;
    color: var(--text-inactive);
    text-transform: uppercase;
    font-weight: 500;
}

/* ==========================================
   Sección de Tarifas (Pricing Cards)
   ========================================== */
.pricing-section {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

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

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.price-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px) scale(1.01);
    border-color: var(--border-hover);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 15px rgba(6, 182, 212, 0.04);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-icon {
    font-size: 1.8rem;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1;
}

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.price-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.price-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ==========================================
   Botones de Acción (Spring / Feedback Táctil)
   ========================================== */
.btn {
    font-family: inherit;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 0.95rem;
}

.btn-md {
    padding: 9px 22px;
    font-size: 0.88rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

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

.btn-primary {
    background: var(--gradient-brand);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   PESTAÑA 2: DASHBOARD LAYOUT
   ========================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.panel-left {
    width: 100%;
}

.panel-right {
    width: 100%;
}

.services-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.service-item-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.service-item-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.service-item-btn:active {
    transform: translateY(0) scale(0.98);
}

.service-item-btn.selected {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--border-focus);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-item-icon {
    font-size: 1.8rem;
    transition: transform 0.25s ease;
    line-height: 1;
}

.service-item-btn:hover .service-item-icon {
    transform: scale(1.15);
}

.service-item-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.service-item-price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

/* Tarjeta de Número Asignado */
.number-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%), var(--bg-card);
    margin-bottom: 25px;
    border-color: rgba(139, 92, 246, 0.15);
}

.number-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-inactive);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}

.display-number {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

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

/* Marcadores de posición del estado (Placeholders) */
.status-placeholder {
    text-align: center;
    padding: 35px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-placeholder-icon-lucide {
    width: 40px;
    height: 40px;
    color: var(--text-inactive);
    margin-bottom: 16px;
}

.status-placeholder h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.status-placeholder p {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 320px;
    line-height: 1.45;
}

/* Proceso Activo con Spinner y Transiciones */
.process-active {
    text-align: center;
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.process-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Spinner Moderno */
.spinner-container {
    margin: 25px auto;
    position: relative;
    width: 64px;
    height: 64px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.04);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border-left-color: var(--primary);
    border-right-color: var(--accent);
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-pulse {
    position: absolute;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    top: 8px;
    left: 8px;
    animation: spinnerPulseScale 1.2s infinite alternate ease-in-out;
}

@keyframes spinnerPulseScale {
    0% { transform: scale(0.85); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.process-active p.waiting-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.process-active p.instructions-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 25px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

/* Caja de Código Recibido (Exitoso) */
.code-received-container {
    animation: codeScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes codeScaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.code-box {
    background: rgba(16, 185, 129, 0.05);
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.code-label {
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.code-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.06em;
    text-shadow: 0 0 15px var(--success-glow);
    margin-bottom: 16px;
}

.sms-preview-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    text-align: left;
    margin-bottom: 20px;
}

.sms-sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-inactive);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sms-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* ==========================================
   PESTAÑA 3: SIMULADOR LAYOUT & CONSOLA
   ========================================== */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .simulator-layout {
        grid-template-columns: 1fr;
    }
}

.badge-dev {
    background: rgba(245, 158, 11, 0.08);
    color: hsl(35, 100%, 80%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header-with-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

textarea.form-control {
    resize: none;
}

/* Consola de logs en vivo */
.console-card {
    display: flex;
    flex-direction: column;
    height: 480px;
    padding: 0 !important;
    background: var(--bg-console) !important;
}

.console-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.log-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.log-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.log-time {
    color: var(--text-inactive);
    font-size: 0.7rem;
}

.log-json {
    color: var(--success);
    white-space: pre-wrap;
    margin-top: 6px;
    background: rgba(255,255,255,0.01);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
}

/* ==========================================
   Modales & Pasarelas
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #0c0f1a;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 420px;
    max-width: 90%;
    padding: 28px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transform: scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-inactive);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.checkout-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.checkout-summary p {
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.checkout-summary p:last-child {
    margin-bottom: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    margin-top: 6px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.col {
    flex: 1;
}

.card-input-wrapper {
    position: relative;
}

.card-brand-icon-lucide {
    position: absolute;
    right: 12px;
    top: 11px;
    width: 16px;
    height: 16px;
    color: var(--text-inactive);
}

/* ==========================================
   Historial y Tablas Premium
   ========================================== */
.history-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.history-header-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-top: 2px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
}

.history-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-inactive);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    vertical-align: middle;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-main);
}

/* Badges de Historial */
.badge-success {
    background: rgba(16, 185, 129, 0.08) !important;
    color: var(--success) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.badge-error {
    background: rgba(239, 68, 68, 0.08) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    color: var(--warning) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.badge-info {
    background: rgba(6, 182, 212, 0.08) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
}

/* Clases Útiles */
.text-center {
    text-align: center;
}

.text-highlight {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.small-text {
    font-size: 0.75rem;
    color: var(--text-inactive);
}

.text-truncate {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-error-message {
    color: var(--danger);
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.82rem;
}

.auth-switch-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-inactive);
    margin-top: 18px;
}

.auth-switch-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-switch-text a:hover {
    color: var(--accent);
}

/* ==========================================
   Secciones de SEO Adicionales (Landing Page)
   ========================================== */

/* Guía de Pasos "¿Cómo funciona?" */
.how-it-works-section {
    margin: 80px 0 50px 0;
    text-align: center;
}

.how-it-works-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

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

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 28px;
    text-align: left;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.step-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.step-num {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    margin-bottom: 15px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Tabla Comparativa VoIP vs Real SIM */
.comparison-section {
    margin: 80px 0;
    text-align: center;
}

.comparison-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 18px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.c-green {
    color: #34d399 !important;
}

.c-red {
    color: #f87171 !important;
}

/* Preguntas Frecuentes Accordion */
.faq-section {
    margin: 80px 0 100px 0;
    text-align: center;
}

.faq-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Suficiente para el contenido */
    padding: 0 24px 20px 24px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* Botón de Sincronización de Conexión */
.btn-sync {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-sync:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sync:active {
    transform: scale(0.9);
}

.btn-sync i,
.btn-sync svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-sync.spinning i,
.btn-sync.spinning svg {
    animation: spin-sync 1s linear infinite;
}

@keyframes spin-sync {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
