/* ==========================================================================
   DataRetail POS SaaS — Landing Page Comercial, Escenario 3D & Login Ejecutivo
   Estándares Mandatorios:
   - Cero fondos grises en letras y badges (Alto contraste garantizado)
   - Cero elementos cuadrados (Pills 50rem y superficies curvas 20px-28px)
   - Motor 3D CSS Acelerado por Hardware (preserve-3d + capas volumétricas)
   - 100% Responsive (Cero desbordamientos en Navbar, Móvil, Tablet y Desktop)
   ========================================================================== */

:root {
    --dr-bg-dark: #0f172a;
    --dr-bg-dark-elevated: #1e293b;
    --dr-bg-light: #f8fafc;
    --dr-surface: #ffffff;
    --dr-primary: #2563eb;
    --dr-primary-vivid: #3b82f6;
    --dr-primary-deep: #1d4ed8;
    --dr-primary-soft: #eff6ff;
    --dr-primary-border: #bfdbfe;
    --dr-success: #059669;
    --dr-success-vivid: #10b981;
    --dr-success-soft: #ecfdf5;
    --dr-success-border: #a7f3d0;
    --dr-warning: #d97706;
    --dr-warning-vivid: #f59e0b;
    --dr-warning-soft: #fef3c7;
    --dr-warning-border: #fde68a;
    --dr-danger: #dc2626;
    --dr-danger-soft: #fef2f2;
    --dr-info: #0284c7;
    --dr-info-soft: #f0f9ff;
    --dr-text-dark: #0f172a;
    --dr-text-slate: #1e293b;
    --dr-text-cobalt: #1e3a8a;
    --dr-text-white: #f8fafc;
    --dr-text-sky: #dbeafe;
    --dr-border-light: #dbeafe;
    --dr-border-dark: #334155;
    --phone-rx: 8deg;
    --phone-ry: -22deg;
    --phone-rz: 0deg;
    --glare-x: 35%;
    --glare-y: 25%;
}

/* Superficies del navegador personalizadas (Craft Floor) */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.dr-landing-body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dr-bg-light);
    color: var(--dr-text-dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--dr-primary);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dr-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dr-primary);
    border-radius: 50rem;
    border: 2px solid var(--dr-bg-dark);
}

.dr-tabular {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   1. Navbar Flotante Ejecutiva (Cero Desbordamiento en Cualquier Pantalla)
   ========================================================================== */
.dr-navbar-wrap {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 0 14px;
    pointer-events: none;
}

.dr-navbar-shell {
    pointer-events: auto;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(59, 130, 246, 0.42);
    border-radius: 50rem;
    padding: 8px 14px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.55);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.dr-navbar-shell.has-drawer-open {
    border-radius: 26px;
}

.dr-navbar-shell.is-scrolled {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.72);
}

.dr-navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.dr-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0;
    white-space: nowrap;
}

.dr-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50rem;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    border: 2px solid var(--dr-primary-vivid);
    flex-shrink: 0;
}

.dr-brand-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.dr-brand-title span {
    color: #60a5fa;
}

/* Enlaces Centrales de Escritorio: 100% rectos en 1 sola línea */
.dr-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
    min-width: 0;
}

.dr-nav-links li {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.dr-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: #dbeafe;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    padding: 9px 13px;
    border-radius: 50rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dr-nav-link i {
    font-size: 0.84rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.dr-nav-link:hover,
.dr-nav-link:focus-visible {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.dr-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Botón de acceso dentro del Navbar ajustado para no desbordar jamás */
.dr-navbar-actions .btn-dr {
    padding: 0.46rem 1.05rem;
    font-size: 0.82rem;
    max-width: 100%;
}

/* Botón Hamburguesa Móvil/Tablet */
.dr-mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50rem;
    background: rgba(37, 99, 235, 0.25);
    border: 1.5px solid rgba(96, 165, 250, 0.55);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dr-mobile-toggle:hover {
    background: #2563eb;
    border-color: #93c5fd;
}

/* Menú Desplegable Móvil/Tablet */
.dr-mobile-drawer {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1.5px solid rgba(59, 130, 246, 0.28);
}

.dr-mobile-drawer.is-open {
    display: block;
}

.dr-mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dr-mobile-nav-grid .dr-nav-link {
    width: 100%;
    justify-content: flex-start;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.28);
    padding: 10px 13px;
}

/* Badges de Alto Contraste (Cero Grises) */
.dr-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dr-pill-primary {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #bfdbfe;
}

.dr-pill-primary-dark {
    background: rgba(37, 99, 235, 0.24);
    color: #93c5fd;
    border: 1.5px solid rgba(96, 165, 250, 0.45);
}

.dr-pill-success {
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #a7f3d0;
}

.dr-pill-success-dark {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1.5px solid rgba(52, 211, 153, 0.45);
}

.dr-pill-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fde68a;
}

.dr-pill-warning-dark {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
    border: 1.5px solid rgba(251, 191, 36, 0.45);
}

.dr-pill-info {
    background: #f0f9ff;
    color: #0369a1;
    border: 1.5px solid #bae6fd;
}

/* ==========================================================================
   2. Hero Principal Oscuro Ejecutivo + Escenario 3D
   ========================================================================== */
.dr-hero-section {
    position: relative;
    background: radial-gradient(circle at 75% 32%, rgba(37, 99, 235, 0.32) 0%, rgba(15, 23, 42, 0) 52%),
                radial-gradient(circle at 18% 80%, rgba(5, 150, 105, 0.18) 0%, rgba(15, 23, 42, 0) 45%),
                linear-gradient(180deg, #0f172a 0%, #172554 55%, #0f172a 100%);
    color: #ffffff;
    padding: 108px 0 64px;
    overflow: hidden;
}

.dr-hero-headline {
    font-size: clamp(1.95rem, 3.6vw, 3.45rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 16px;
}

.dr-hero-lead {
    font-size: clamp(0.96rem, 1.15vw, 1.12rem);
    line-height: 1.6;
    color: #dbeafe;
    max-width: 58ch;
    margin-bottom: 24px;
    font-weight: 400;
}

.dr-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Métricas en grilla de 3 columnas (incluso en móvil para no alargar la pantalla) */
.dr-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.dr-hero-metric-card {
    background: rgba(30, 41, 59, 0.88);
    border: 1.5px solid rgba(96, 165, 250, 0.34);
    border-radius: 18px;
    padding: 12px 14px;
}

.dr-hero-metric-value {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 3px;
    white-space: nowrap;
}

.dr-hero-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    margin: 0;
    line-height: 1.25;
}

/* ==========================================================================
   3. Escenario del Smartphone 3D Volumétrico
   ========================================================================== */
.dr-stage-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.phone-3d-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    user-select: none;
    cursor: grab;
    margin: 0 auto;
}

.phone-3d-stage:active {
    cursor: grabbing;
}

.phone-3d-floor-glow {
    position: absolute;
    bottom: 18px;
    width: 250px;
    height: 36px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.58) 0%, rgba(16, 185, 129, 0.22) 48%, rgba(15, 23, 42, 0) 75%);
    border-radius: 50rem;
    filter: blur(12px);
    transform: rotateX(75deg);
    pointer-events: none;
}

.phone-3d-rig {
    position: relative;
    width: 282px;
    height: 542px;
    transform-style: preserve-3d;
    transform: rotateX(var(--phone-rx)) rotateY(var(--phone-ry)) rotateZ(var(--phone-rz));
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.phone-3d-rig.is-orbiting {
    animation: drPhoneOrbit360 16s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.phone-3d-stage.is-interacting .phone-3d-rig {
    animation-play-state: paused;
    transition: transform 0.12s ease-out;
}

.phone-3d-rig.view-front {
    animation: none;
    transform: rotateX(4deg) rotateY(-8deg) rotateZ(0deg);
}

.phone-3d-rig.view-back {
    animation: none;
    transform: rotateX(6deg) rotateY(164deg) rotateZ(0deg);
}

.phone-3d-rig.view-exploded {
    animation: none;
    transform: rotateX(14deg) rotateY(-32deg) rotateZ(2deg);
}

@keyframes drPhoneOrbit360 {
    0% {
        transform: rotateX(8deg) rotateY(-24deg) rotateZ(-1deg) translateY(0px);
    }
    25% {
        transform: rotateX(4deg) rotateY(22deg) rotateZ(1deg) translateY(-8px);
    }
    50% {
        transform: rotateX(10deg) rotateY(168deg) rotateZ(0deg) translateY(-4px);
    }
    75% {
        transform: rotateX(6deg) rotateY(205deg) rotateZ(-1deg) translateY(-8px);
    }
    100% {
        transform: rotateX(8deg) rotateY(336deg) rotateZ(-1deg) translateY(0px);
    }
}

.phone-chassis-slice {
    position: absolute;
    inset: 0;
    border-radius: 46px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 35%, #172554 70%, #60a5fa 100%);
    border: 2px solid #93c5fd;
    pointer-events: none;
}

.phone-slice-1 { transform: translateZ(-12px); }
.phone-slice-2 { transform: translateZ(-9px); }
.phone-slice-3 { transform: translateZ(-6px); }
.phone-slice-4 { transform: translateZ(-3px); }
.phone-slice-5 { transform: translateZ(0px); }
.phone-slice-6 { transform: translateZ(3px); }
.phone-slice-7 { transform: translateZ(6px); }
.phone-slice-8 { transform: translateZ(9px); }
.phone-slice-9 { transform: translateZ(12px); }

.phone-hw-btn {
    position: absolute;
    width: 6px;
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
    border-radius: 50rem;
    transform: translateZ(0px);
}

.phone-hw-btn-power {
    right: -4px;
    top: 145px;
    height: 64px;
}

.phone-hw-btn-vol-up {
    left: -4px;
    top: 120px;
    height: 44px;
}

.phone-hw-btn-vol-down {
    left: -4px;
    top: 174px;
    height: 44px;
}

/* Cara Frontal */
.phone-face-front {
    position: absolute;
    inset: 0;
    border-radius: 46px;
    background: #090d16;
    padding: 10px;
    transform: translateZ(14px);
    border: 2.5px solid #60a5fa;
    box-shadow: inset 0 0 0 2px #1e293b;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.phone-screen-viewport {
    position: relative;
    flex: 1;
    background: #f8fafc;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #0f172a;
}

.phone-screen-glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
    z-index: 15;
}

.phone-status-bar {
    background: #0f172a;
    color: #ffffff;
    padding: 9px 15px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
}

.phone-dynamic-island {
    background: #020617;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 50rem;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6ee7b7;
    font-size: 0.62rem;
    white-space: nowrap;
}

.phone-island-dot {
    width: 6px;
    height: 6px;
    border-radius: 50rem;
    background: #10b981;
    flex-shrink: 0;
}

.phone-app-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.phone-app-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
}

.phone-mini-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.phone-mini-kpi {
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 13px;
    padding: 7px 8px;
}

.phone-mini-kpi-label {
    font-size: 0.61rem;
    font-weight: 700;
    color: #1e40af;
    display: block;
}

.phone-mini-kpi-val {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.phone-pos-item-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-pos-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    gap: 6px;
}

.phone-pos-item-title {
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.phone-pos-item-meta {
    font-size: 0.61rem;
    color: #1d4ed8;
    font-weight: 600;
}

.phone-pos-item-price {
    font-weight: 800;
    color: #059669;
    font-size: 0.76rem;
    white-space: nowrap;
}

.phone-pos-summary-box {
    margin-top: auto;
    background: #0f172a;
    color: #ffffff;
    border-radius: 15px;
    padding: 9px 10px;
}

.phone-pos-cta-pill {
    margin-top: 6px;
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    border-radius: 50rem;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.phone-pos-cta-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

/* Cara Trasera */
.phone-face-back {
    position: absolute;
    inset: 0;
    border-radius: 46px;
    background: linear-gradient(155deg, #172554 0%, #1e3a8a 42%, #0f172a 100%);
    border: 2.5px solid #93c5fd;
    transform: rotateY(180deg) translateZ(14px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.phone-camera-island {
    width: 106px;
    height: 106px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid #60a5fa;
    border-radius: 24px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.65);
}

.phone-camera-lens {
    width: 36px;
    height: 36px;
    border-radius: 50rem;
    background: radial-gradient(circle at 35% 35%, #60a5fa 0%, #1e3a8a 35%, #020617 75%);
    border: 2.5px solid #93c5fd;
    box-shadow: inset 0 0 6px #3b82f6;
}

.phone-camera-flash {
    width: 18px;
    height: 18px;
    border-radius: 50rem;
    background: radial-gradient(circle, #fef3c7 0%, #f59e0b 80%);
    border: 2px solid #fde68a;
    align-self: center;
    justify-self: center;
}

.phone-back-brand-center {
    text-align: center;
    margin: auto 0;
}

.phone-back-emblem {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 7px;
    margin: 0 auto 10px;
    border: 2px solid #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-back-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tarjetas Satelitales Flotando en el Eje Z */
.phone-float-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid #60a5fa;
    border-radius: 18px;
    padding: 9px 12px;
    color: #ffffff;
    box-shadow: 0 18px 36px -8px rgba(2, 6, 23, 0.72);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    width: 190px;
}

.phone-float-card-1 {
    top: 36px;
    left: -90px;
    transform: translateZ(68px);
    border-color: #34d399;
}

.phone-float-card-2 {
    bottom: 128px;
    right: -92px;
    transform: translateZ(86px);
    border-color: #60a5fa;
}

.phone-float-card-3 {
    bottom: 22px;
    left: -80px;
    transform: translateZ(56px);
    border-color: #fbbf24;
}

.phone-3d-rig.view-exploded .phone-float-card-1 {
    transform: translateZ(126px) translateX(-12px);
}

.phone-3d-rig.view-exploded .phone-float-card-2 {
    transform: translateZ(142px) translateX(12px);
}

.phone-3d-rig.view-exploded .phone-float-card-3 {
    transform: translateZ(106px) translateY(8px);
}

.phone-3d-rig.view-exploded .phone-face-front {
    transform: translateZ(42px);
}

.phone-3d-rig.view-exploded .phone-face-back {
    transform: rotateY(180deg) translateZ(42px);
}

/* Barra de Controles de Cámara 3D */
.dr-camera-Dock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    background: rgba(15, 23, 42, 0.88);
    border: 1.5px solid rgba(96, 165, 250, 0.38);
    border-radius: 24px;
    padding: 6px 8px;
    max-width: 100%;
}

.dr-cam-btn {
    background: transparent;
    color: #dbeafe;
    border: 1.5px solid transparent;
    border-radius: 50rem;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dr-cam-btn:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
}

.dr-cam-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.dr-screen-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    max-width: 100%;
}

.dr-screen-pill {
    background: rgba(30, 41, 59, 0.9);
    color: #93c5fd;
    border: 1.5px solid rgba(96, 165, 250, 0.32);
    border-radius: 50rem;
    padding: 6px 13px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dr-screen-pill:hover,
.dr-screen-pill.active {
    background: #ecfdf5;
    color: #047857;
    border-color: #34d399;
}

/* ==========================================================================
   4. Secciones Compactas y Ejecutivas (Cero Scroll Eterno)
   ========================================================================== */
.dr-section-light {
    padding: 64px 0;
    background: #f8fafc;
}

.dr-section-white {
    padding: 64px 0;
    background: #ffffff;
}

.dr-section-dark {
    padding: 64px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}

.dr-section-heading {
    font-size: clamp(1.65rem, 2.7vw, 2.45rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 12px;
}

.dr-section-dark .dr-section-heading {
    color: #ffffff;
}

.dr-section-subtitle {
    font-size: 1rem;
    line-height: 1.58;
    color: #1e3a8a;
    max-width: 66ch;
}

.dr-section-dark .dr-section-subtitle {
    color: #dbeafe;
}

/* Simulador POS en Vivo */
.dr-pos-simulator-shell {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    border-radius: 24px;
    box-shadow: 0 24px 60px -18px rgba(30, 58, 138, 0.14);
    overflow: hidden;
}

.dr-sim-catalog-panel {
    padding: 26px;
    background: #f8fafc;
    border-right: 1.5px solid #dbeafe;
    height: 100%;
}

.dr-sim-product-btn {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dr-sim-product-btn:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.25);
}

.dr-sim-product-btn.is-selected {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.25);
}

.dr-sim-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50rem;
    background: #dbeafe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dr-sim-product-btn.is-selected .dr-sim-icon-box {
    background: #2563eb;
    color: #ffffff;
}

.dr-sim-invoice-panel {
    padding: 26px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dr-invoice-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    border: 1.5px solid #334155;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dr-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
    font-size: 0.86rem;
}

.dr-rate-input-pill {
    border-radius: 50rem;
    border: 1.5px solid #93c5fd;
    height: 40px;
    padding: 0 14px;
    font-weight: 800;
    color: #0f172a;
    background: #ffffff;
    width: 118px;
    text-align: center;
}

.dr-rate-input-pill:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   5. Tarjetas Ejecutivas Compactas (Bento Value Cards)
   ========================================================================== */
.dr-module-card {
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dr-module-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 18px 34px -15px rgba(37, 99, 235, 0.2);
}

.dr-module-icon-capsule {
    width: 44px;
    height: 44px;
    border-radius: 50rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    box-shadow: 0 8px 16px -6px rgba(37, 99, 235, 0.45);
    flex-shrink: 0;
}

.dr-module-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 6px;
}

.dr-module-desc {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.52;
    margin-bottom: 0;
}

.dr-tenant-card {
    background: rgba(30, 41, 59, 0.92);
    border: 1.5px solid rgba(96, 165, 250, 0.35);
    border-radius: 20px;
    padding: 22px;
    height: 100%;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.dr-tenant-card:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
}

.dr-cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 38px 34px;
    color: #ffffff;
    border: 2px solid #93c5fd;
    box-shadow: 0 24px 52px -18px rgba(37, 99, 235, 0.45);
}

.dr-footer {
    background: #0f172a;
    color: #dbeafe;
    padding: 38px 0 28px;
    border-top: 1.5px solid #1e293b;
}

/* ==========================================================================
   6. Vista de Login Ejecutivo (/login) — Cohesión Total con Landing 3D
   ========================================================================== */
.dr-auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at 18% 22%, rgba(37, 99, 235, 0.32) 0%, rgba(15, 23, 42, 0) 48%),
                radial-gradient(circle at 82% 80%, rgba(5, 150, 105, 0.2) 0%, rgba(15, 23, 42, 0) 45%),
                linear-gradient(135deg, #0f172a 0%, #172554 55%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.dr-auth-container {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: auto;
}

.dr-auth-container.is-wide {
    max-width: 1080px;
}

.dr-auth-nav-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4px;
}

/* Botón Superior Flotante Oficial: Volver al Inicio */
.dr-btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px 8px 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(96, 165, 250, 0.52);
    border-radius: 50rem;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dr-btn-nav-back:hover {
    background: #2563eb;
    border-color: #93c5fd;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.dr-btn-nav-back-icon {
    width: 30px;
    height: 30px;
    border-radius: 50rem;
    background: #2563eb;
    border: 1.5px solid rgba(147, 197, 253, 0.6);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dr-btn-nav-back:hover .dr-btn-nav-back-icon {
    background: #ffffff;
    color: #1d4ed8;
    transform: translateX(-3px);
}

.dr-auth-shell {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 26px;
    border: 2px solid rgba(96, 165, 250, 0.48);
    box-shadow: 0 28px 64px -16px rgba(2, 6, 23, 0.72);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.06fr 1fr;
}

.dr-auth-shell.dr-auth-shell-wide {
    max-width: 1060px;
    grid-template-columns: 0.95fr 1.15fr;
}

.dr-auth-showcase {
    background: radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.28) 0%, rgba(15, 23, 42, 0) 52%),
                linear-gradient(155deg, #0f172a 0%, #1e3a8a 62%, #1d4ed8 100%);
    color: #ffffff;
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    border-right: 1.5px solid rgba(96, 165, 250, 0.28);
}

.dr-auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.dr-auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(15, 23, 42, 0.52);
    border: 1.5px solid rgba(96, 165, 250, 0.32);
    border-radius: 18px;
    padding: 13px 15px;
}

.dr-auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dr-auth-feature-icon.is-emerald {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border: 1.5px solid rgba(52, 211, 153, 0.48);
}

.dr-auth-feature-icon.is-primary {
    background: rgba(37, 99, 235, 0.28);
    color: #93c5fd;
    border: 1.5px solid rgba(96, 165, 250, 0.52);
}

.dr-auth-form-panel {
    padding: 38px 36px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dr-auth-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.dr-auth-subtitle {
    font-size: 0.9rem;
    color: #1e3a8a;
    line-height: 1.5;
    margin-bottom: 0;
}

.dr-auth-label {
    display: flex;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 7px;
    height: 22px;
    line-height: 1;
}

.dr-auth-input {
    width: 100%;
    height: 46px;
    border-radius: 50rem !important;
    border: 1.5px solid #93c5fd !important;
    padding: 0 18px;
    font-size: 0.94rem;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dr-auth-input::placeholder {
    color: #3b82f6;
    opacity: 0.65;
}

.dr-auth-input:focus {
    background: #ffffff;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16) !important;
    outline: none;
}

.dr-auth-input.is-invalid {
    border-color: #dc2626 !important;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

/* Cápsula de Selector de Prefijo (RIF, Cédula, Teléfono) 100% Equilibrada y Centrada */
.dr-prefix-pill {
    position: relative;
    width: 64px;
    height: 46px;
    border-radius: 50rem !important;
    border: 1.5px solid #93c5fd;
    background-color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dr-prefix-pill:focus-within {
    border-color: #2563eb !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.dr-prefix-select {
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none !important;
    background: transparent !important;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    padding: 0 16px 0 0 !important;
    outline: none !important;
    z-index: 2;
}

.dr-prefix-select option {
    font-weight: 700;
    color: #0f172a;
    background-color: #ffffff;
}

.dr-prefix-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #2563eb;
    pointer-events: none;
    z-index: 1;
}

.dr-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.dr-password-wrap .dr-auth-input {
    padding-right: 52px;
}

.dr-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50rem;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.dr-password-toggle:hover,
.dr-password-toggle:focus-visible {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    outline: none;
}

.dr-auth-form-panel .btn-dr {
    width: 100%;
    justify-content: center;
}

.dr-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
}

.dr-auth-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid #2563eb;
    accent-color: #2563eb;
    cursor: pointer;
    margin: 0;
}

@media (max-width: 991.98px) {
    .dr-auth-container {
        max-width: 580px;
    }

    .dr-auth-shell {
        grid-template-columns: 1fr;
        max-width: 100%;
        border-radius: 22px;
    }

    .dr-auth-shell.dr-auth-shell-wide {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .dr-auth-showcase {
        border-right: none;
        border-bottom: 1.5px solid rgba(96, 165, 250, 0.28);
        padding: 24px 22px;
        gap: 16px;
    }

    .dr-auth-showcase h1 {
        font-size: 1.25rem !important;
        margin-bottom: 6px !important;
    }

    .dr-auth-feature-list {
        display: none;
    }

    .dr-auth-form-panel {
        padding: 28px 24px;
    }
}

@media (max-width: 575.98px) {
    .dr-auth-page {
        padding: 12px 10px;
        align-items: flex-start;
    }

    .dr-auth-container {
        gap: 10px;
    }

    .dr-auth-nav-header {
        padding: 0 2px;
        flex-wrap: wrap;
    }

    .dr-btn-nav-back {
        padding: 6px 14px 6px 8px;
        font-size: 0.82rem;
    }

    .dr-btn-nav-back-icon {
        width: 26px;
        height: 26px;
        font-size: 0.74rem;
    }

    .dr-btn-nav-back-text {
        font-size: 0.82rem;
    }

    .dr-auth-shell {
        border-radius: 20px;
    }

    .dr-auth-showcase {
        padding: 18px 16px;
    }

    .dr-auth-form-panel {
        padding: 20px 14px;
    }

    .dr-auth-title {
        font-size: 1.25rem;
    }

    .dr-auth-subtitle {
        font-size: 0.84rem;
    }

    .dr-auth-input {
        height: 44px;
        font-size: 0.9rem;
        padding: 0 14px;
    }
}

/* ==========================================================================
   7. Responsividad Completa Sincronizada con FreeDash-lite (lg = 1170px)
   ========================================================================== */
@media (max-width: 1169.98px) {
    .dr-nav-links-desktop {
        display: none !important;
    }

    .dr-mobile-toggle {
        display: inline-flex;
    }

    .dr-hero-section {
        padding: 96px 0 48px;
    }

    .dr-sim-catalog-panel {
        border-right: none;
        border-bottom: 1.5px solid #dbeafe;
    }
}

@media (max-width: 767.98px) {
    .dr-navbar-wrap {
        top: 8px;
        padding: 0 10px;
    }

    .dr-navbar-shell {
        padding: 7px 11px;
        border-radius: 50rem;
    }

    .dr-brand-logo {
        width: 32px;
        height: 32px;
    }

    .dr-brand-title {
        font-size: 1.06rem;
    }

    .dr-navbar-actions .btn-dr {
        padding: 0.38rem 0.82rem;
        font-size: 0.76rem;
    }

    /* En móvil las 3 métricas se mantienen en 1 fila de 3 columnas compactas */
    .dr-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 20px;
    }

    .dr-hero-metric-card {
        padding: 10px 8px;
        border-radius: 14px;
        text-align: center;
    }

    .dr-hero-metric-value {
        font-size: 0.92rem;
    }

    .dr-hero-metric-label {
        font-size: 0.68rem;
    }

    .phone-3d-stage {
        height: 430px;
    }

    .phone-3d-rig {
        zoom: 0.78;
    }

    .phone-float-card-1 {
        left: -34px;
        top: 24px;
    }

    .phone-float-card-2 {
        right: -34px;
        bottom: 112px;
    }

    .phone-float-card-3 {
        left: -28px;
        bottom: 16px;
    }

    .dr-section-light,
    .dr-section-white,
    .dr-section-dark {
        padding: 44px 0;
    }

    .dr-sim-catalog-panel,
    .dr-sim-invoice-panel {
        padding: 18px;
    }

    .dr-cta-banner {
        padding: 26px 20px;
    }

    .dr-auth-form-panel,
    .dr-auth-showcase {
        padding: 26px 22px;
    }
}

@media (max-width: 479.98px) {
    .dr-mobile-nav-grid {
        grid-template-columns: 1fr;
    }

    .dr-hero-cta-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dr-hero-cta-group .btn-dr {
        width: 100%;
        padding: 0.56rem 0.75rem;
        font-size: 0.8rem;
    }

    .phone-3d-stage {
        height: 390px;
    }

    .phone-3d-rig {
        zoom: 0.7;
    }

    .phone-float-card {
        width: 168px;
        padding: 7px 9px;
    }

    .phone-float-card-1 {
        left: -14px;
    }

    .phone-float-card-2 {
        right: -14px;
    }

    .phone-float-card-3 {
        left: -12px;
    }

    .dr-camera-Dock,
    .dr-screen-switcher {
        gap: 5px;
    }

    .dr-cam-btn,
    .dr-screen-pill {
        font-size: 0.71rem;
        padding: 5px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phone-3d-rig.is-orbiting {
        animation: none;
    }

    .phone-3d-rig,
    .phone-float-card,
    .dr-module-card,
    .dr-sim-product-btn {
        transition: none;
    }
}
