/* ==========================================================================
   CSS DIRECTORY: SYSTEM & TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #3A6073;        /* Steel Blue (Azul Acero) */
    --color-primary-light: #5fa8d3;  /* Bright Steel Blue */
    --color-primary-dark: #223c4a;   /* Deep Navy Steel */
    --color-accent: #70A1FF;         /* Light Blue (Azul Claro) */
    --color-accent-light: #E1EDFF;   /* Soft Ice Blue */
    --color-bg-light: #F4F7F9;       /* Ultra Soft Blue-Grey */
    --color-light-steel: #DCE5EC;    /* Light Steel Blue (Azul Acero Claro) */
    --color-steel-dark: #1E293B;     /* Slate Dark (Modern Dashboard Base) */
    --color-steel-deep: #0F172A;     /* Slate Deep (SaaS Background) */
    
    --color-text: #334155;           /* Charcoal */
    --color-text-light: #64748B;     /* Slate Muted */
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    
    /* Semantic Status */
    --color-success: #10B981;        /* Emerald Active */
    --color-success-light: #ECFDF5;
    --color-danger: #EF4444;         /* Rose Inactive */
    --color-danger-light: #FEF2F2;
    --color-warning: #F59E0B;        /* Amber Alert */
    --color-warning-light: #FFFBEB;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Borders */
    --shadow-sm: 0 2px 8px rgba(58, 96, 115, 0.05);
    --shadow-md: 0 10px 25px rgba(58, 96, 115, 0.08);
    --shadow-lg: 0 20px 40px rgba(58, 96, 115, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Guarantee no horizontal scroll at root level */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.section-padding {
    padding: 7rem 0;
}

.section-padding-small {
    padding: 3.5rem 0;
}

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

/* Gradients and Typography Highlights */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 96, 115, 0.2);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-success {
    background-color: #25D366; /* WhatsApp Green */
    color: var(--color-white);
}

.btn-success:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-danger {
    background-color: var(--color-danger);
    color: var(--color-white);
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger-outline {
    background-color: transparent;
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-danger-outline:hover {
    background-color: var(--color-danger);
    color: var(--color-white);
}

.btn-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    border: 1px solid var(--color-light-steel);
}

.btn-pill.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.w-full {
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.logo {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transform: scale(1.2); /* Helps enlarge it if the PNG has internal transparent padding */
    transform-origin: left center;
}

.footer-brand-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Force white for dark footer if it's black/transparent */
    transform: scale(1.3);
    transform-origin: left center;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    transform: scale(1.3);
}

.preloader-bar-container {
    width: 200px;
    height: 4px;
    background-color: var(--color-light-steel);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 10px;
    transition: width 0.1s ease;
}

.preloader-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-primary-light);
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   MOBILE DRAWER NAVIGATION
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-light-steel);
    padding-bottom: 1rem;
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.drawer-link:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid rgba(58, 96, 115, 0.06);
    transition: var(--transition-smooth);
    min-width: 0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-glass);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   HERO / INICIO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, rgba(220, 229, 236, 0.4) 0%, rgba(255,255,255,1) 100%);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--color-light-steel) 1.5px, transparent 1.5px), 
        radial-gradient(var(--color-light-steel) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.25;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--color-primary-dark);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2.25rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--color-light-steel);
    padding-top: 1.75rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-primary);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.optical-illustration {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 420px;
}

/* 3D Convex Mirror Sphere simulation on Pure CSS */
.mirror-sphere-container {
    position: absolute;
    width: 320px;
    height: 320px;
    left: 50px;
    top: 30px;
    perspective: 1000px;
}

.mirror-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('images/warehouse_reflection.png');
    background-size: 120%; /* Slight zoom for parallax */
    background-position: center;
    box-shadow: 
        inset -20px -20px 40px rgba(0,0,0,0.5),
        inset 15px 15px 30px rgba(255,255,255,0.8),
        0 15px 35px rgba(58, 96, 115, 0.3),
        0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 8px solid var(--color-white);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.mirror-sphere-container:not(:hover) .mirror-sphere {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: rotateX(0deg) rotateY(0deg) !important;
}

.mirror-reflection {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 120%, transparent 60%, rgba(255,255,255,0.4) 100%);
    z-index: 2;
}

.mirror-inner-glow {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    box-shadow: inset 10px 10px 20px rgba(255,255,255,0.6);
    filter: blur(2px);
    z-index: 1;
}

.mirror-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
        radial-gradient(circle, transparent 20%, rgba(58, 96, 115, 0.05) 21%, transparent 22%),
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    z-index: 3;
    opacity: 0.7;
}

/* Make grid lines curved to simulate optical convex effect */
.mirror-grid-overlay::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    transform: scale(0.8);
}

.mirror-highlight {
    position: absolute;
    top: 15%;
    left: 18%;
    width: 50px;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    transform: rotate(-35deg);
    z-index: 4;
}

.mirror-support-arm {
    position: absolute;
    bottom: -15px;
    left: 200px;
    width: 25px;
    height: 100px;
    background: linear-gradient(90deg, #95a5a6 0%, #d5dbdb 50%, #7f8c8d 100%);
    border-radius: 4px;
    z-index: -1;
    transform: rotate(35deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
}

.floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    z-index: 10;
    border: 1px solid var(--color-light-steel);
    animation: float 4s ease-in-out infinite;
}

.badge-top-right {
    top: 20px;
    right: 0px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 40px;
    left: -10px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ==========================================================================
   PORTAFOLIO & PRODUCTS SECTION
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio-tab-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.portfolio-tab-btn:hover, .portfolio-tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-visual-wrapper {
    position: relative;
    height: 220px;
    background: radial-gradient(circle at center, #ECEFF1 0%, #CFD8DC 100%);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    z-index: 5;
}

.product-badge.vigilancia { background-color: var(--color-primary); }
.product-badge.automotriz { background-color: var(--color-accent); }
.product-badge.servicios { background-color: var(--color-steel-dark); }

.product-interactive-demo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Baston flashlight visual */
.baston-illustration {
    width: 25px;
    height: 120px;
    background: linear-gradient(90deg, #555, #888, #333);
    border-radius: 4px;
    position: relative;
}
.baston-mirror {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #e2f4f8, var(--color-primary-light));
    border: 3px solid #333;
    position: absolute;
    top: -15px;
    left: -17px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.baston-flashlight-cone {
    position: absolute;
    bottom: -100px;
    left: -187px;
    width: 400px;
    height: 150px;
    background: radial-gradient(circle at top, rgba(255, 241, 118, 0.45) 0%, rgba(255, 241, 118, 0) 70%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: none;
    z-index: 3;
}
.baston-flashlight-cone.active {
    display: block;
}

.flashlight-switch-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--color-white);
    border: 1px solid var(--color-light-steel);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
}

.product-diameter-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.diameter-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--color-light-steel);
    border-radius: 4px;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    cursor: pointer;
}

.diameter-pill.active {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-primary-light);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-prices-pactados {
    background-color: var(--color-accent-light);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.prices-header {
    font-weight: 700;
    color: var(--color-primary-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.product-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-bg-light);
    padding-top: 1rem;
}

.product-price-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-price-label span {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* ==========================================================================
   CURVATURE COMPARATOR
   ========================================================================== */
.curvature-card {
    background: linear-gradient(135deg, rgba(220, 229, 236, 0.2) 0%, rgba(255,255,255,0.7) 100%);
}

.curvature-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.curvature-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.curvature-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.curvature-specifications {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin-top: 1.5rem;
}

.spec-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
}

.curvature-demo-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.road-scene {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 200px;
    background: #111;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mirror-overlay-frame {
    position: absolute;
    width: 220px;
    height: 130px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    border: 4px solid #333;
    left: 50px;
    top: 35px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.5);
    background-color: #2c3e50;
    z-index: 10;
}

.reflection-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom, #2b3a4a 0%, #151e26 100%);
    transition: var(--transition-smooth);
}

.approaching-truck {
    position: absolute;
    width: 50px;
    height: 40px;
    background: #e74c3c;
    border-radius: 4px;
    left: 85px;
    top: 45px;
    box-shadow: 0 0 8px #f1c40f;
    transition: var(--transition-smooth);
}

.approaching-truck::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f1c40f;
    border-radius: 50%;
    left: 5px;
    bottom: -2px;
    box-shadow: 0 0 10px #f1c40f;
}
.approaching-truck::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f1c40f;
    border-radius: 50%;
    right: 5px;
    bottom: -2px;
    box-shadow: 0 0 10px #f1c40f;
}

.mirror-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.visual-indicator {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ==========================================================================
   COTIZADOR EXPRESS SECTION
   ========================================================================== */
.cotizador-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.quote-card {
    border-top: 5px solid var(--color-primary);
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: var(--color-light-steel);
    margin: 2rem 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-light-steel);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group select {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(95, 168, 211, 0.15);
}

.quote-products-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-section-header h4 {
    font-size: 1.1rem;
}

.quote-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-item-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.6fr 0.8fr auto;
    gap: 0.75rem;
    align-items: center;
    background-color: var(--color-bg-light);
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(58, 96, 115, 0.08);
}

.quote-item-row input,
.quote-item-row select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-light-steel);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.quote-item-row select {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.quote-item-row input:focus,
.quote-item-row select:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(95, 168, 211, 0.15);
}

.quote-item-row input:disabled,
.quote-item-row select:disabled {
    background-color: rgba(220, 229, 236, 0.3);
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-remove-row {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
}

.btn-remove-row:hover {
    background-color: var(--color-danger-light);
}

.margin-top-large {
    margin-top: 1.5rem;
}

.margin-top-small {
    margin-top: 0.5rem;
}

/* Quote Receipt Preview Style */
.quote-preview-card {
    border-top: 5px solid var(--color-accent);
}

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

.preview-header h4 {
    font-size: 1.15rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success { background-color: var(--color-success-light); color: var(--color-success); }
.badge-warning { background-color: var(--color-warning-light); color: var(--color-warning); }
.badge-danger { background-color: var(--color-danger-light); color: var(--color-danger); }
.badge-primary-light { background-color: var(--color-accent-light); color: var(--color-primary); }

.preview-receipt {
    background-color: #FAFBFD;
    border: 1px dashed var(--color-light-steel);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.receipt-row span:first-child,
.receipt-item-line span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.receipt-row span:last-child,
.receipt-row strong:last-child,
.receipt-item-line span:last-child {
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.receipt-row.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.receipt-divider {
    border-bottom: 1px dashed var(--color-light-steel);
    margin: 1rem 0;
}

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

.receipt-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.receipt-items-list::-webkit-scrollbar {
    width: 6px;
}
.receipt-items-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 3px;
}
.receipt-items-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
.receipt-items-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.empty-receipt-msg {
    text-align: center;
    color: var(--color-text-light);
    padding: 1.5rem 0;
}

.receipt-item-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.8rem;
}

.receipt-row.subtotal, .receipt-row.tax {
    font-size: 0.9rem;
}

.receipt-row.total {
    font-size: 1.15rem;
    font-weight: 700;
}

.quote-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    text-align: center;
}

/* ==========================================================================
   NOSOTROS / ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 480px;
}

.about-img-main {
    position: absolute;
    width: 80%;
    height: 380px;
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=800') no-repeat center;
    background-size: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    top: 0;
    left: 0;
    overflow: hidden;
}

.industrial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 96, 115, 0.4) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.about-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    z-index: 5;
}

.lens-effect {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    top: 25%;
    left: 30%;
    box-shadow: 0 0 20px rgba(255,255,255,0.2), inset 0 0 15px rgba(255,255,255,0.3);
    z-index: 4;
}

.about-img-sub {
    position: absolute;
    width: 60%;
    height: 250px;
    background: url('https://images.unsplash.com/photo-1617400324478-f6d2240c3587?auto=format&fit=crop&q=80&w=800') no-repeat center;
    background-size: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    bottom: 0;
    right: 0;
    border: 6px solid var(--color-white);
    overflow: hidden;
}

.precision-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 15px 15px;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-card {
    display: flex;
    gap: 1.25rem;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.value-text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.about-focus-box {
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.focus-title {
    font-weight: 700;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.focus-body {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.bg-steel-dark {
    background-color: var(--color-steel-dark);
}

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

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

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-light-steel);
    margin-bottom: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--color-accent);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-panel-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(58, 96, 115, 0.05);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.channel-icon.whatsapp { background-color: #25D366; }
.channel-icon.phone { background-color: var(--color-primary); }
.channel-icon.email { background-color: var(--color-accent); }
.channel-icon.clock { background-color: var(--color-steel-dark); }

.channel-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.channel-name {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.channel-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    word-break: break-word;
}

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

.channel-value {
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

.time-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    margin-top: 0.25rem;
    width: fit-content;
}

.time-status-badge.open {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.time-status-badge.closed {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

.time-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.time-status-badge.open .status-dot { background-color: var(--color-success); }
.time-status-badge.closed .status-dot { background-color: var(--color-danger); }

.location-box {
    border-top: 1px solid var(--color-light-steel);
    padding-top: 1.5rem;
}

.location-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.location-box p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.contact-form-card {
    border-top: 5px solid var(--color-primary);
}

/* ==========================================================================
   ADMINISTRATIVE DASHBOARD
   ========================================================================== */
.admin-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F1F5F9; /* Clean slate-100 background */
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    color: var(--color-text); /* Charcoal color for high contrast */
    font-size: 1.05rem; /* Larger base font size for seniors */
}

.admin-portal.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-header {
    background-color: var(--color-white);
    border-bottom: 2px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 1002;
    padding: 1.25rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.admin-brand-icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

.admin-brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem; /* Bigger, clear title */
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-primary-dark);
    display: block;
}

.admin-brand-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-weight: 700;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Responsive styles for Admin Header & Stats */
@media (max-width: 992px) {
    .admin-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .admin-brand {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .admin-brand-title {
        font-size: 1.25rem;
    }
    
    .admin-header-actions {
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .admin-header-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 135px;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .admin-brand-title {
        font-size: 1.15rem;
        word-break: break-word;
    }
    
    .admin-brand-subtitle {
        font-size: 0.75rem;
    }
    
    .admin-header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .admin-header-actions .btn {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        padding: 0.7rem 1.2rem;
    }
    
    .admin-stats-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Access actions buttons inside Admin */
.admin-portal .btn-light {
    background-color: #F1F5F9;
    color: var(--color-text);
    border: 2px solid #CBD5E1;
    font-weight: 700;
}

.admin-portal .btn-light:hover {
    background-color: #E2E8F0;
    border-color: #94A3B8;
}

.admin-portal .admin-tabs {
    border-bottom: 2px solid #CBD5E1 !important;
}

.admin-portal .admin-tab-btn {
    background-color: #E2E8F0;
    color: var(--color-text-light);
    border: 2px solid #CBD5E1;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    border-bottom: none;
    margin-right: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-portal .admin-tab-btn:hover {
    background-color: #CBD5E1;
    color: var(--color-primary-dark);
}

.admin-portal .admin-tab-btn.active {
    background-color: var(--color-white) !important;
    color: var(--color-primary-dark) !important;
    border: 2px solid #CBD5E1 !important;
    border-bottom: 2px solid var(--color-white) !important;
    position: relative;
    top: 2px;
    z-index: 5;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.02);
}

.admin-main {
    padding: 2.5rem 0;
}

.admin-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.admin-stat-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    background: var(--color-white);
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-icon.bg-primary-light { background-color: #E1EDFF; color: var(--color-primary); }
.stat-card-icon.bg-success-light { background-color: #ECFDF5; color: var(--color-success); }
.stat-card-icon.bg-danger-light { background-color: #FEF2F2; color: var(--color-danger); }
.stat-card-icon.bg-warning-light { background-color: #FFFBEB; color: var(--color-warning); }

.stat-card-data {
    display: flex;
    flex-direction: column;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.stat-card-value {
    font-family: var(--font-heading);
    font-size: 1.85rem; /* Larger font size for older users' readability */
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 0.15rem 0;
}

.stat-card-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
    align-items: start;
}

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

.admin-card {
    background: var(--color-white);
    border: 2px solid #E2E8F0;
    color: var(--color-text);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md);
    padding: 2rem;
}

.admin-card-title {
    color: var(--color-primary-dark);
    font-size: 1.45rem; /* Larger title for accessibility */
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-subtitle {
    font-size: 0.95rem; /* Larger subtitles */
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.search-predictive-group {
    position: relative;
}

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

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--color-text-light);
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem !important; /* Larger click/touch targets */
    background-color: #F8FAFC !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: var(--border-radius-sm);
    color: var(--color-text) !important;
    font-family: var(--font-body);
    font-size: 1.15rem !important; /* Larger text inputs */
    outline: none;
    transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
    background-color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(58, 96, 115, 0.2);
}

.clear-search-btn {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border: 2px solid #CBD5E1;
    border-radius: var(--border-radius-sm);
    z-index: 1005;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.search-suggestions-dropdown.open {
    display: block;
}

.suggestion-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover {
    background-color: #F1F5F9;
}

.suggestion-name {
    font-weight: 700;
    color: var(--color-primary-dark);
    display: block;
    font-size: 1.05rem;
}

.suggestion-nit {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.suggestion-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

/* Client Detail Layout */
.client-detail-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.client-detail-empty .empty-icon {
    font-size: 3rem;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    color: var(--color-primary);
}

.client-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.client-info-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar-text {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 800;
}

.client-profile-name {
    color: var(--color-primary-dark);
    font-size: 1.65rem;
    font-weight: 800;
}

.client-profile-nit {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 600;
    display: block;
    margin-top: 0.15rem;
}

.client-status-pills {
    display: flex;
    gap: 0.5rem;
}

.client-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .client-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .client-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.meta-item {
    background-color: #F8FAFC;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid #E2E8F0;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.meta-item strong {
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

/* Alert Recompra Box (Bright contrast) */
.client-alert-box {
    display: flex;
    gap: 1rem;
    background-color: #FFFBEB;
    border: 2px solid #F59E0B;
    border-radius: var(--border-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

@media (max-width: 480px) {
    .client-alert-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .client-alert-box button {
        width: 100%;
    }
}

.client-alert-box .alert-icon {
    font-size: 1.75rem;
    color: #D97706;
}

.client-alert-box .alert-text {
    flex-grow: 1;
}

.client-alert-box .alert-text strong {
    color: #92400E;
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.client-alert-box .alert-text p {
    font-size: 0.9rem;
    color: #B45309;
    font-weight: 600;
}

/* Profiles Tabs Sections */
.profile-tabs-section {
    border-top: 2px solid #E2E8F0;
    padding-top: 1.5rem;
}

.profile-section-title {
    color: var(--color-primary-dark);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-section-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* Tables Admin (Light & Accessible) */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem; /* Larger font size */
    text-align: left;
}

.admin-table th {
    padding: 0.9rem 1.25rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    background-color: #F1F5F9;
    border-bottom: 2px solid #CBD5E1;
}

.admin-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    color: var(--color-text);
}

.admin-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Sidebar lists (alerts, inactives) */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    background-color: var(--color-white);
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sidebar-item:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
}

.sidebar-item-desc {
    display: flex;
    flex-direction: column;
}

.sidebar-item-name {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1rem; /* Larger size */
}

.sidebar-item-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.accent-warning { border-left: 5px solid var(--color-warning) !important; }
.accent-danger { border-left: 5px solid var(--color-danger) !important; }

/* Accessible input overrides for the entire admin portal */
.admin-portal input, 
.admin-portal select, 
.admin-portal textarea {
    background-color: var(--color-white) !important;
    border: 2px solid #CBD5E1 !important;
    color: var(--color-text) !important;
    font-size: 1.05rem !important; /* Larger text */
    padding: 0.75rem !important; /* Larger touch targets */
    border-radius: var(--border-radius-sm) !important;
}

.admin-portal input::placeholder, 
.admin-portal textarea::placeholder {
    color: #94A3B8 !important;
    font-weight: 500;
}

.admin-portal label {
    color: var(--color-text) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    display: block;
}

/* Modal style override for add-product-modal inside dark inline styles fallback */
#add-product-modal .modal-card {
    background-color: var(--color-white) !important;
    border: 2px solid #CBD5E1 !important;
    color: var(--color-text) !important;
    box-shadow: var(--shadow-lg) !important;
}

#add-product-modal .modal-header {
    border-bottom: 2px solid #E2E8F0 !important;
}

#add-product-modal .modal-header h3 {
    color: var(--color-primary-dark) !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
}

#add-product-modal .modal-close {
    color: var(--color-text-light) !important;
}

#add-product-modal p {
    color: var(--color-text-light) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

#add-product-modal .btn-light {
    background-color: #F1F5F9 !important;
    color: var(--color-text) !important;
    border: 2px solid #CBD5E1 !important;
}

#add-product-modal .btn-light:hover {
    background-color: #E2E8F0 !important;
}

/* Quick styles for virtual numpad inside login dialog to make it high contrast */
.admin-portal .login-card {
    background-color: var(--color-white) !important;
    border: 2px solid #CBD5E1 !important;
    color: var(--color-text) !important;
}

.admin-portal .login-header h3 {
    color: var(--color-primary-dark) !important;
    font-size: 1.25rem;
    font-weight: 800;
}

.admin-portal .login-header p {
    color: var(--color-text-light) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-portal .numpad-btn {
    background-color: #F1F5F9 !important;
    color: var(--color-primary-dark) !important;
    border: 2px solid #CBD5E1 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    border-radius: var(--border-radius-sm) !important;
}

.admin-portal .numpad-btn:hover {
    background-color: #E2E8F0 !important;
}

.admin-portal .numpad-btn-action {
    background-color: #E2E8F0 !important;
    color: var(--color-text) !important;
}

.admin-portal .pin-dot {
    border: 2px solid #CBD5E1 !important;
    background-color: transparent !important;
}

.admin-portal .pin-dot.active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* ==========================================================================
   TOAST & MODALS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 205000 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: var(--color-steel-dark);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--color-primary-light);
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    z-index: 200000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto; /* Enable outer overlay scroll for small heights */
}

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

.modal-card {
    width: 100%;
    max-width: 600px;
    max-height: 90vh; /* Constrain max vertical height */
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-md);
    background-color: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden; /* Prevent visual overflow */
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-light-steel);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Sticky header, never shrink */
}

.modal-tabs {
    flex-shrink: 0; /* Sticky tabs, never shrink */
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto; /* Internal scrolling for fields/lists */
    padding-right: 0.5rem;
    min-height: 0; /* CRITICAL FIX: allow flex child to shrink and scroll! */
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1.25rem;
}

.backup-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.backup-option-box {
    border: 1px solid var(--color-light-steel);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--color-bg-light);
}

.backup-option-box h5 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.backup-option-box p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    flex-grow: 1;
}

.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background-color: var(--color-danger-light);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.danger-zone h5 {
    color: var(--color-danger);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.danger-zone p {
    font-size: 0.8rem;
    color: #78281F;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-steel-dark);
    color: var(--color-white);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 4rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--color-light-steel);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
}

.footer-links-col h4, .footer-contact-col h4 {
    font-size: 1.15rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    font-size: 0.875rem;
    color: var(--color-light-steel);
}

.footer-links-col a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact-col p {
    font-size: 0.875rem;
    color: var(--color-light-steel);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-access-footer .admin-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
}

.admin-access-footer .admin-footer-link:hover {
    color: var(--color-white);
}

.footer-copyright {
    padding: 2rem 0;
    font-size: 0.75rem;
    color: #94A3B8;
}

.copyright-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-grid, .contact-grid, .cotizador-layout, .admin-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden; /* Prevent horizontal scroll bypass */
    }
    
    .card {
        padding: 1rem;
    }
    
    .channel-card {
        padding: 0.85rem;
        gap: 0.85rem;
    }
    
    .contact-grid, .contact-info-panel, .contact-form-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-row, .backup-options-grid {
        grid-template-columns: 1fr;
    }
    
    .client-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quote-item-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .quote-item-row select.quote-product-select {
        grid-column: span 2;
    }
    
    .quote-item-row button.btn-remove-row {
        grid-column: span 2;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .quote-item-row input, .quote-item-row select {
        font-size: 0.85rem;
        width: 100%;
        min-width: 0;
    }

    /* Curvature Simulator Mobile Responsiveness */
    .curvature-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .curvature-text {
        text-align: center !important;
    }
    
    .curvature-selectors {
        justify-content: center !important;
    }
    
    .curvature-specifications {
        border-left: none !important;
        border-top: 3px solid var(--color-primary) !important;
        padding-left: 0 !important;
        padding-top: 1rem !important;
    }
}

/* ==========================================================================
   ADD CLIENT MODAL & OCR SCANNER STYLES
   ========================================================================== */
.add-client-modal-card {
    max-width: 680px !important;
    width: 90%;
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--color-light-steel);
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.modal-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-tab-btn:hover {
    color: var(--color-primary);
}

.modal-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Agreed Prices Builder inside Creator */
.agreed-prices-builder-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-light-steel);
    border-radius: var(--border-radius-sm);
}

.section-desc-mini {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.agreed-price-row-inputs {
    display: grid;
    grid-template-columns: 2fr 1.2fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .agreed-price-row-inputs {
        grid-template-columns: 1fr;
    }
}

.builder-prices-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
}

.builder-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-light-steel);
    font-size: 0.85rem;
}

.btn-remove-price {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

/* OCR Drag & Drop Zone */
.ocr-drag-drop-zone {
    border: 2px dashed var(--color-primary-light);
    background-color: rgba(95, 168, 211, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ocr-drag-drop-zone:hover, .ocr-drag-drop-zone.dragover {
    border-color: var(--color-primary);
    background-color: rgba(95, 168, 211, 0.08);
    box-shadow: 0 0 15px rgba(95, 168, 211, 0.15);
}

.ocr-zone-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* OCR Scanning Visual Panel */
.ocr-processing-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 1rem;
}

.ocr-visual-scanner {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: #0b131a;
    border: 1px solid var(--color-light-steel);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    max-height: 350px;
}

.ocr-visual-scanner img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    opacity: 0.75;
}

.ocr-laser-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 0) 0%, #2ecc71 50%, rgba(46, 204, 113, 0) 100%);
    box-shadow: 0 0 15px #2ecc71, 0 0 5px #2ecc71;
    z-index: 10;
    top: 0;
    animation: laserScan 2.5s ease-in-out infinite;
}

@keyframes laserScan {
    0% { top: 0%; }
    50% { top: 98%; }
    100% { top: 0%; }
}

/* OCR Scanner Logs */
.ocr-logs-container {
    display: flex;
    flex-direction: column;
    background-color: #0d1620;
    border: 1px solid #1a2c3a;
    border-radius: var(--border-radius-sm);
    padding: 1.25rem;
    color: #39e680;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 350px;
    overflow-y: auto;
}

.ocr-progress-bar-wrapper {
    background-color: #172430;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ocr-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    transition: width 0.3s ease;
}

.ocr-logs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ocr-log-item {
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0.9;
    animation: logFadeIn 0.3s ease forwards;
}

@keyframes logFadeIn {
    from { opacity: 0; transform: translateX(5px); }
    to { opacity: 0.9; transform: translateX(0); }
}

.ocr-log-time {
    color: #88cfa4;
}

.ocr-log-info {
    color: #e2fef0;
}

/* Input highlights from OCR completion */
.input-ocr-highlight {
    animation: ocrHighlightGlow 2.5s ease;
}

@keyframes ocrHighlightGlow {
    0% {
        border-color: var(--color-light-steel);
        box-shadow: none;
    }
    10% {
        border-color: #2ecc71;
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
        background-color: rgba(46, 204, 113, 0.05);
    }
    90% {
        border-color: #2ecc71;
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
        background-color: rgba(46, 204, 113, 0.02);
    }
    100% {
        border-color: var(--color-light-steel);
        box-shadow: none;
        background-color: transparent;
    }
}

@media (max-width: 580px) {
    .ocr-processing-panel {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MAINTENANCE MODE OVERLAY STYLES
   ========================================================================== */
.admin-portal {
    z-index: 100000 !important; /* Ensure the admin panel sits above the maintenance screen */
}

.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(15, 23, 31, 0.99) 0%, rgba(7, 12, 17, 1) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99998; /* Just below the secure admin panel */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.maintenance-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.maintenance-card {
    max-width: 620px;
    width: 90%;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: maintenanceFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.maintenance-prism-spinner {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-prism {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-primary-light);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: rotatePrism 5s linear infinite;
}

.gear-cog {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 3px dashed var(--color-warning);
    border-radius: 50%;
    animation: rotateCog 10s linear infinite reverse;
}

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

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

.maintenance-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.maintenance-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: -0.75rem 0 0.25rem 0;
}

.maintenance-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.maintenance-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
    margin: 0.25rem 0;
}

.maintenance-channels {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maintenance-channels p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.channels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.channel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.channel-btn.whatsapp {
    background-color: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.channel-btn.whatsapp:hover {
    background-color: rgba(46, 204, 113, 0.2);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

.channel-btn.email {
    background-color: rgba(95, 168, 211, 0.12);
    color: var(--color-primary-light);
    border: 1px solid rgba(95, 168, 211, 0.25);
}

.channel-btn.email:hover {
    background-color: rgba(95, 168, 211, 0.2);
    box-shadow: 0 0 10px rgba(95, 168, 211, 0.15);
}

.maintenance-footer-text {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.5rem 0 0 0;
}

/* Bypass floating trigger */
.btn-maintenance-admin-bypass {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-primary-light);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 99999;
}

.btn-maintenance-admin-bypass:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 168, 211, 0.4);
}

.btn-maintenance-admin-bypass i,
.btn-maintenance-admin-bypass svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .btn-maintenance-admin-bypass {
        bottom: 20px;
        right: 20px;
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    .maintenance-card {
        padding: 2.5rem 1.5rem;
    }
}

/* ==========================================================================
   SECURITY PIN LOGIN DIALOG STYLES
   ========================================================================== */
.login-card {
    max-width: 380px !important;
    padding: 2.5rem 2rem !important;
    text-align: center;
    background: var(--color-white) !important; /* Premium light white background */
    border: 2px solid #CBD5E1 !important; /* Clear Slate border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    color: var(--color-text) !important; /* Force charcoal text */
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-shield-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 0 4px rgba(58, 96, 115, 0.15));
    animation: shieldPulse 2s infinite ease-in-out;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(58, 96, 115, 0.15)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(58, 96, 115, 0.3)); }
}

.login-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary-dark) !important; /* Pure brand primary dark */
}

.login-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light) !important; /* Readable paragraph */
    line-height: 1.4;
}

/* PIN Indicators */
.pin-indicators-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0;
    width: 100%;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #CBD5E1 !important; /* High contrast border so empty dots are visible */
    background-color: transparent;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-dot.active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 10px rgba(58, 96, 115, 0.3);
    transform: scale(1.2);
}

.pin-dot.error {
    background-color: var(--color-danger) !important;
    border-color: var(--color-danger) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    transform: scale(1.2);
}

.pin-indicators-container.shake {
    animation: pinShake 0.35s ease-in-out;
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Numeric Numpad */
.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem auto;
    width: 250px;
}

.numpad-btn {
    background: #F1F5F9 !important; /* Soft light grey background */
    border: 2px solid #CBD5E1 !important; /* Clear border */
    color: var(--color-primary-dark) !important; /* Highly readable numbers */
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    padding: 0;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.numpad-btn:hover {
    background: #E2E8F0 !important;
    border-color: var(--color-primary) !important;
    transform: scale(1.08);
}

.numpad-btn:active {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    transform: scale(0.92);
}

.numpad-btn-action {
    background: #E2E8F0 !important;
    border-color: #CBD5E1 !important;
    color: var(--color-text) !important;
}

.numpad-btn-action:hover {
    color: var(--color-primary-dark) !important;
    background: #CBD5E1 !important;
    border-color: #94A3B8 !important;
}

.numpad-btn-action svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.pin-hint {
    font-size: 0.85rem;
    color: var(--color-text-light) !important;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.pin-hint strong {
    color: var(--color-primary) !important;
}

/* ==========================================================================
   ADMIN PRODUCTS CATALOG STYLES
   ========================================================================== */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-tabs .btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tabs .btn.active {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
}

#product-options-builder-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

#product-options-builder-list li button {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

#product-options-builder-list li button:hover {
    color: #f87171;
}

.product-img-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0d151c;
}

/* ==========================================================================
   MOBILE DRAGGABLE BOTTOM SHEET FOR ADMIN MAIN
   ========================================================================== */
.bottom-sheet-handle-wrapper {
    display: none;
}

@media (max-width: 768px) {
    /* Prevent vertical scrolling of admin portal to let the sheet do the scrolling */
    .admin-portal.active {
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
    }

    .admin-header {
        position: relative !important;
        flex-shrink: 0;
    }

    .admin-main {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        height: 85vh;
        background-color: #F1F5F9 !important; /* Consistent Light Slate background */
        border-top: 2px solid #CBD5E1 !important; /* Higher contrast border */
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        z-index: 1005 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important; /* Soft shadow for light mode */
        /* Default state is collapsed Y dynamically via JS, fallback here: */
        transform: translateY(calc(85vh - 110px));
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        will-change: transform;
    }

    .admin-main.expanded {
        transform: translateY(0) !important;
    }

    .admin-main.collapsed {
        transform: translateY(calc(85vh - 110px)) !important;
    }

    .bottom-sheet-handle-wrapper {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 28px;
        width: 100%;
        cursor: grab;
        user-select: none;
        touch-action: none;
        flex-shrink: 0;
        background-color: transparent;
        z-index: 110;
        padding-top: 4px;
    }

    .bottom-sheet-handle-wrapper:active {
        cursor: grabbing;
    }

    .bottom-sheet-handle-bar {
        width: 50px;
        height: 5px;
        border-radius: 3px;
        background-color: rgba(0, 0, 0, 0.2) !important; /* Dark handle bar for light background */
        transition: background-color 0.2s ease;
    }

    .bottom-sheet-handle-wrapper:hover .bottom-sheet-handle-bar,
    .bottom-sheet-handle-wrapper:active .bottom-sheet-handle-bar {
        background-color: var(--color-primary);
        box-shadow: 0 0 8px rgba(58, 96, 115, 0.3);
    }

    /* Container scrolls dynamically inside the bottom sheet */
    .admin-main .admin-container {
        flex: 1;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 1.25rem 2.5rem 1.25rem !important;
        gap: 1.5rem !important;
        display: block !important;
    }

    /* Keep the tabs sticky at the top of the scrolling area inside the sheet */
    .admin-main .admin-tabs {
        position: sticky !important;
        top: 0 !important;
        background-color: #F1F5F9 !important; /* Light background matching mobile container */
        z-index: 99 !important;
        padding: 0.5rem 0 1rem 0 !important;
        margin-bottom: 1.25rem !important;
        border-bottom: 2px solid #CBD5E1 !important; /* High contrast border */
    }

    /* Adjust modal content scroll offset if admin portal is fixed */
    .modal-overlay {
        z-index: 200005 !important;
    }
}

/* Custom Pulse Animation for product highlighting */
@keyframes highlightPulse {
    0% { box-shadow: var(--shadow-md); transform: translateY(0); border-color: rgba(58, 96, 115, 0.06); }
    30% { box-shadow: 0 0 0 4px rgba(95, 168, 211, 0.4), var(--shadow-lg); transform: translateY(-8px); border-color: var(--color-primary-light); }
    70% { box-shadow: 0 0 0 4px rgba(95, 168, 211, 0.4), var(--shadow-lg); transform: translateY(-8px); border-color: var(--color-primary-light); }
    100% { box-shadow: var(--shadow-md); transform: translateY(0); border-color: rgba(58, 96, 115, 0.06); }
}

.product-card.highlight-pulse {
    animation: highlightPulse 2.5s ease-in-out;
}

/* Product Page detail links hover */
.product-title-link {
    transition: color 0.2s ease-in-out;
}
.product-title-link:hover {
    color: var(--color-primary-light) !important;
}
.product-visual-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    overflow: hidden;
}
.product-real-image {
    transition: transform 0.3s ease-in-out;
}
.product-visual-link:hover .product-real-image {
    transform: scale(1.04);
}

/* Accessible Light Mode Modals & Overrides */
#add-product-modal div[style*="border"],
#add-client-modal div[style*="border"],
.agreed-prices-builder-box {
    border: 2px solid #CBD5E1 !important;
    background-color: #F8FAFC !important;
    color: var(--color-text) !important;
}

#add-product-modal div[style*="border"] label,
#add-client-modal div[style*="border"] label {
    color: var(--color-text) !important;
}

#add-product-modal div[style*="border"] p,
#add-client-modal div[style*="border"] p {
    color: var(--color-text-light) !important;
}

/* Ensure placeholder and option texts in dropdowns are dark and visible */
.admin-portal option, 
#add-product-modal option,
#add-client-modal option {
    color: var(--color-text) !important;
    background-color: var(--color-white) !important;
}

/* Table border contrast and readable typography */
.admin-portal td, 
.admin-portal th {
    font-size: 1rem !important; /* Extremely readable font size for seniors */
}

/* High contrast text for labels inside product/client creation modals */
#add-product-modal label,
#add-client-modal label,
#backup-modal label {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--color-primary-dark) !important;
}

/* Backup modal styling */
#backup-modal .modal-card {
    background-color: var(--color-white) !important;
    border: 2px solid #CBD5E1 !important;
    color: var(--color-text) !important;
}

#backup-modal .backup-option-box {
    border: 2px solid #CBD5E1 !important;
    background-color: #F8FAFC !important;
}

#backup-modal .backup-option-box h5 {
    color: var(--color-primary-dark) !important;
    font-weight: 700;
}

#backup-modal .danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.4) !important;
    background-color: #FEF2F2 !important;
}

#backup-modal .danger-zone h5 {
    color: var(--color-danger) !important;
    font-weight: 700;
}

#backup-modal .danger-zone p {
    color: #991B1B !important;
    font-weight: 500;
}

/* High contrast inputs focus ring */
.admin-portal input:focus, 
.admin-portal select:focus, 
.admin-portal textarea:focus,
#add-product-modal input:focus,
#add-client-modal input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(58, 96, 115, 0.25) !important;
}

/* OCR file upload zone styling in light mode */
.ocr-drag-drop-zone {
    border: 2.5px dashed #CBD5E1 !important;
    background-color: #F8FAFC !important;
    color: var(--color-text) !important;
    padding: 2.5rem !important;
    border-radius: var(--border-radius-md) !important;
    text-align: center;
    transition: all 0.2s;
}

.ocr-drag-drop-zone:hover {
    border-color: var(--color-primary) !important;
    background-color: #F1F5F9 !important;
}

.ocr-drag-drop-zone h5 {
    color: var(--color-primary-dark) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem;
}

.ocr-drag-drop-zone p {
    color: var(--color-text-light) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem;
}

