/* 📱 Portal de Clientes MásGigas · Estilo Oficial Grandes Operadores (O2 / Simyo / Movistar) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
    --bg-canvas: #F8FAFC;
    --surface-card: #FFFFFF;
    --surface-border: #E2E8F0;
    --surface-border-subtle: #F1F5F9;
    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --brand-navy: #0B2265;
    --brand-blue: #0284C7;
    --brand-blue-hover: #0369A1;
    --brand-blue-light: #F0F9FF;
    --brand-orange: #FF6B00;
    --brand-orange-light: #FFF7ED;
    --success-green: #16A34A;
    --success-bg: #DCFCE7;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.011em;
}

/* Header */
.app-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.brand-badge {
    background: var(--brand-orange);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: -0.03em;
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-btn {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    background: var(--surface-border-subtle);
    border-color: #CBD5E1;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-blue-light);
    border: 1px solid #BAE6FD;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-blue-hover);
    transition: all 0.15s ease;
}

.user-pill:hover {
    background: #E0F2FE;
}

/* Main Container */
.main-content {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
    display: block;
    text-transform: uppercase;
}

/* Selector Card */
.selector-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-card);
}

.line-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    display: block;
}

.line-plan {
    font-size: 0.82rem;
    color: var(--brand-blue);
    font-weight: 600;
    margin-top: 0.1rem;
    display: block;
}

.pill-btn {
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.pill-btn:hover {
    background: #E2E8F0;
}

/* Consumption Card (O2 / Simyo Solid Minimalist Dial) */
.consumption-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.card-header-clean h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.cycle-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: block;
}

.donut-wrapper {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 1.25rem auto 0.75rem auto;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 14;
}

.donut-progress {
    fill: none;
    stroke: var(--brand-blue);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 603;
    stroke-dashoffset: 170;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.donut-center-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.remaining-gb {
    font-family: var(--font-display);
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: -0.04em;
}

.unit-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

.total-consumed {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.4rem;
    background: var(--surface-border-subtle);
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
}

.quick-line-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.action-card-btn {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.action-card-btn:hover {
    background: var(--surface-border-subtle);
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.action-card-btn:active {
    transform: scale(0.98);
}

/* Tarjeta de Voz y Llamadas (Estilo Grandes Operadores) */
.voice-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.voice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.voice-title-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.voice-icon-pill {
    width: 36px;
    height: 36px;
    background: var(--brand-blue-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.voice-title-box h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.voice-plan-tag {
    font-size: 0.75rem;
    color: var(--brand-blue);
    font-weight: 600;
}

.voice-detail-btn {
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    color: var(--brand-blue-hover);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.voice-detail-btn:hover {
    background: var(--brand-blue-light);
    border-color: #BAE6FD;
}

.voice-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    background: var(--surface-border-subtle);
    border-radius: 12px;
    padding: 0.85rem 0.6rem;
    text-align: center;
    margin-bottom: 0.85rem;
}

.voice-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.cdr-notice-pill {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.45rem 0;
    line-height: 1.35;
    margin-top: 0.5rem;
}

.cdr-info-box {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.65rem;
}

.call-item-row {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.call-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.call-icon {
    font-size: 1.1rem;
}

.call-target {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.call-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.call-right {
    text-align: right;
}

.call-duration {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-main);
}

.call-cost {
    font-size: 0.72rem;
    color: var(--success-green);
    font-weight: 700;
}

/* ── Selector de Periodo CDR (select nativo estilizado) ── */
.cdr-period-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--surface-card);
    border: 1.5px solid var(--surface-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    transition: border-color 0.15s ease;
}

.cdr-period-select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}

/* Resumen del periodo: minutos + llamadas en una fila compacta */
.cdr-period-summary {
    display: flex;
    gap: 0.5rem;
    background: var(--surface-border-subtle);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
}

.cdr-summary-stat {
    flex: 1;
    text-align: center;
}

.cdr-summary-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.cdr-summary-lbl {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.cdr-divider {
    width: 1px;
    background: var(--surface-border);
    align-self: stretch;
}

/* Estado vacío cuando no hay llamadas en ese mes */
.cdr-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cdr-empty-state .cdr-empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Gestiones Rápidas (Grandes Operadores) */
.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.quick-ops-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.op-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-card);
}

.op-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.op-card:active {
    transform: scale(0.99);
}

.op-icon {
    width: 38px;
    height: 38px;
    background: var(--surface-border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.op-text {
    flex: 1;
}

.op-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}

.op-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.op-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Servicios Contratados */
.service-item-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.55rem;
    box-shadow: var(--shadow-card);
    transition: all 0.15s ease;
}

.service-item-card:hover {
    border-color: #CBD5E1;
}

.service-item-active {
    border-color: var(--brand-blue) !important;
    background: var(--brand-blue-light) !important;
}

.service-icon-box {
    width: 38px;
    height: 38px;
    background: var(--surface-border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-details {
    flex: 1;
}

.service-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}

.service-details p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: var(--success-bg);
    color: var(--success-green);
}

/* Facturas */
.invoices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.up-to-date-badge {
    font-size: 0.75rem;
    color: var(--success-green);
    font-weight: 700;
    background: var(--success-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.invoice-row {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-card);
}

.inv-left {
    display: flex;
    flex-direction: column;
}

.inv-date {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
}

.inv-num {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.inv-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inv-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--text-main);
}

.download-pdf-btn {
    background: var(--brand-blue-light);
    border: 1px solid #BAE6FD;
    color: var(--brand-blue-hover);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.download-pdf-btn:hover {
    background: #E0F2FE;
}

/* Modales */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

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

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.2rem;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.sec-box {
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    padding: 0.85rem;
    border-radius: 10px;
    text-align: center;
}

.sec-box label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
    text-transform: uppercase;
}

.sec-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-blue-hover);
    letter-spacing: 0.05em;
    margin: 0.2rem 0;
    display: block;
}

.iccid-box {
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    padding: 0.85rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.iccid-box label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.iccid-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.03em;
}

.copy-tiny-btn {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    color: var(--brand-blue-hover);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.copy-tiny-btn:hover {
    background: var(--brand-blue-hover);
    color: #FFFFFF;
    border-color: var(--brand-blue-hover);
}

.primary-modal-btn {
    width: 100%;
    background: var(--brand-blue);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.primary-modal-btn:hover {
    background: var(--brand-blue-hover);
}

.form-select, .form-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s ease;
}

.form-select:focus, .form-input:focus {
    border-color: var(--brand-blue);
}

/* Selector de Líneas en Modal */
.line-select-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    margin-bottom: 0.6rem;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.line-select-card:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
    transform: translateY(-1px);
}

.line-select-card-active {
    border: 2px solid var(--brand-blue) !important;
    background: var(--brand-blue-light) !important;
}

.line-icon-badge {
    width: 40px;
    height: 40px;
    background: var(--surface-border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.line-select-info {
    flex: 1;
    text-align: left;
}

.line-select-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.line-select-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.1rem;
}

.selected-pill {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--brand-blue);
    color: #FFFFFF;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.select-arrow-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-blue-hover);
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* Botones Directos de Contacto y Tienda */
.contact-actions-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0;
}

.contact-btn-wa {
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s ease;
}

.contact-btn-wa:hover {
    background: #20BA5A;
}

.contact-btn-call {
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.contact-btn-call:hover {
    background: #E2E8F0;
}

.store-info-box {
    background: var(--brand-orange-light);
    border: 1px solid #FED7AA;
    border-radius: 10px;
    padding: 0.85rem;
    font-size: 0.82rem;
    color: #9A3412;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Toast */
.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-main);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.app-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--surface-border);
    background: #FFFFFF;
    margin-top: auto;
}

.app-footer p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.legal-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.logout-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.65rem;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================================================
   📱 PANTALLA DE LOGIN NATIVA DE GRAN OPERADOR (O2 / Simyo / DIGI)
   ========================================================================== */
.login-page-body {
    background-color: #F8FAFC;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.login-hero-wrapper {
    background: linear-gradient(170deg, #0B2265 0%, #0F172A 100%);
    padding: 2.5rem 1.25rem 3.5rem 1.25rem;
    text-align: center;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 10px 25px -5px rgba(11, 34, 101, 0.2);
    position: relative;
    overflow: hidden;
}

.login-hero-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
    pointer-events: none;
}

.login-hero-content {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-logo-card {
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    margin-bottom: 1.2rem;
}

.login-hero-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.login-hero-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.login-hero-sub {
    font-size: 0.86rem;
    color: #CBD5E1;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.hero-feature-pills {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #F1F5F9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.login-card-container {
    max-width: 440px;
    width: 100%;
    margin: -1.75rem auto 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-main-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
}

.step-badge {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.step-badge-green {
    background: #DCFCE7 !important;
    color: #16A34A !important;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.field-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.phone-control-box {
    display: flex;
    align-items: center;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: all 0.15s ease;
}

.phone-control-box:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.country-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #F8FAFC;
    border-right: 2px solid #E2E8F0;
    padding: 0.85rem 0.9rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}

.phone-control-box input {
    border: none;
    outline: none;
    padding: 0.85rem 1rem;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.02em;
    font-family: var(--font-sans);
}

.btn-login-primary {
    width: 100%;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.15s ease;
}

.btn-login-primary:hover {
    background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

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

.btn-login-success {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}

.btn-login-success:hover {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%) !important;
}

.test-helper-badge {
    background: var(--surface-border-subtle);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.35;
}

/* 6 Digits OTP */
.otp-boxes-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.otp-digit {
    width: 100%;
    height: 52px;
    border: 2px solid #CBD5E1;
    border-radius: 10px;
    background: #F8FAFC;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-main);
    outline: none;
    transition: all 0.15s ease;
}

.otp-digit:focus {
    border-color: var(--brand-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.otp-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0;
    text-decoration: underline;
}

.btn-text-link:hover {
    color: var(--brand-blue-hover);
}

.card-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
    margin-top: 1.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Soporte Chip */
.login-support-chip {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.support-avatar {
    width: 38px;
    height: 38px;
    background: #DCFCE7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.support-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.support-info a {
    color: #16A34A;
    font-weight: 700;
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

.login-legal-copy {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

