/* ============================================
   SOLUTION NET - PREMIUM DESIGN SYSTEM v2.0
   ============================================ */

/* --- 1. VARIABLES Y TOKENS DE DISEÑO --- */
:root {
    --color-primario: #2563EB;
    --color-secundario: #FFFFFF;
    --color-dark: #1a1a2e;
    --color-dark-light: #16213e;
    --color-surface: #f8f9fc;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;

    /* Sombras Premium */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 14px 44px rgba(0, 0, 0, 0.15);

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;

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

/* --- 2. BASE Y TIPOGRAFÍA --- */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-text);
    background-color: #ffffff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* --- 3. ENLACES Y BOTONES --- */
a, .btn-link {
    color: var(--color-primario);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: color-mix(in srgb, var(--color-primario) 80%, black);
}

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-smooth);
    border-radius: var(--radius-pill);
}

.btn-primary {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
    color: #fff;
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--color-primario) 85%, black);
    border-color: color-mix(in srgb, var(--color-primario) 85%, black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primario) 40%, transparent);
}

.btn-principal {
    background-color: var(--color-primario);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--color-primario) 35%, transparent);
    color: #ffffff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--color-primario) 25%, transparent);
}

/* --- 4. NAVBAR PREMIUM GLASSMORPHISM --- */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.75rem 0;
    transition: all var(--transition-smooth);
    background: var(--color-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-premium.scrolled {
    background: rgba(26, 26, 46, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0;
}

.navbar-premium .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-premium .navbar-brand img {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.navbar-premium .navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-premium .brand-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

/* Nav links with animated underline */
.navbar-premium .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-premium .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-secundario, #ffffff);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: center;
}

.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
    color: #ffffff !important;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    color: #fff !important;
}

/* Hamburger */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* --- 5. HERO SPLIT --- */
.hero-split {
    display: flex;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    margin-top: 68px; /* Altura del navbar fijo */
}

.hero-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 3rem;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos sutiles */
.hero-content::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-primario) 12%, transparent) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.hero-content::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-primario) 8%, transparent) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hero-content .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback cuando no hay imagen (degradado con color primario) */
.hero-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primario) 80%, var(--color-dark)) 0%,
        var(--color-primario) 50%,
        color-mix(in srgb, var(--color-primario) 60%, #ffffff) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-fallback i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-content {
        flex: none;
        min-height: 60vh;
        padding: 7rem 2rem 3rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        flex: none;
        height: 40vh;
    }
}

/* --- 6. SECTION TITLES --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--section-text, var(--color-text));
}

.section-header p {
    font-size: 1.1rem;
    color: var(--section-text, var(--color-text-muted));
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--color-primario);
    border-radius: 4px;
    margin: 1rem auto 0;
}

/* --- 7. TARJETAS PREMIUM (PRODUCTOS) --- */
.card-premium {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

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

.card-premium .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-premium .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-premium:hover .card-img-top {
    transform: scale(1.08);
}

.card-premium .card-body {
    padding: 1.5rem;
}

.card-premium .product-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.card-premium .product-desc {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-premium .product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primario);
}

.card-premium .btn-details {
    border: 1.5px solid color-mix(in srgb, var(--color-primario) 30%, transparent);
    color: var(--color-primario);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    background: transparent;
}

.card-premium .btn-details:hover {
    background: var(--color-primario);
    color: #fff;
    border-color: var(--color-primario);
}

/* --- 8. GALERÍA / INSTALACIONES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* --- 9. SUCURSALES --- */
.branch-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border-left: 5px solid var(--color-primario);
    height: 100%;
}

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

.branch-card h5 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.branch-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.branch-info-item i {
    font-size: 1.2rem;
    color: var(--color-primario);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.branch-info-item span {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.badge-principal {
    background: color-mix(in srgb, var(--color-primario) 12%, transparent);
    color: var(--color-primario);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--color-primario) 8%, transparent);
    color: var(--color-primario);
    border: 1.5px solid color-mix(in srgb, var(--color-primario) 20%, transparent);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.btn-map:hover {
    background: var(--color-primario);
    color: #fff;
    border-color: var(--color-primario);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primario) 30%, transparent);
}

/* --- 10. FOOTER PREMIUM --- */
.footer-premium {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-premium h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-premium a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.footer-premium a:hover {
    color: #ffffff;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- 11. GLASSMORPHISM --- */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

/* --- 12. ANIMACIONES Y SCROLL REVEAL --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.7s ease both; }
.animate-fade-in    { animation: fadeIn 0.5s ease both; }
.animate-slide-right { animation: slideInRight 0.5s ease both; }
.animate-slide-left  { animation: slideInLeft 0.6s ease both; }

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* --- SCROLL REVEAL SYSTEM --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.92); }

.reveal.reveal-visible {
    opacity: 1;
    transform: none;
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-primario) 50%, transparent);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primario);
}

/* --- 13. SETUP WIZARD (ENTERPRISE SAAS DESIGN) --- */
.setup-split {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.setup-brand {
    flex: 0 0 42%;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
}

.setup-brand::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.setup-brand::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.setup-brand-content {
    position: relative;
    z-index: 2;
}

.setup-feature-pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.25s ease;
}

.setup-feature-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.setup-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4.5rem;
    background: #ffffff;
    overflow-y: auto;
}

@media (max-width: 992px) {
    .setup-split { flex-direction: column; }
    .setup-brand { flex: none; min-height: 260px; padding: 2rem; }
    .setup-form { padding: 2rem 1.5rem; }
}

/* Stepper UI */
.setup-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.setup-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
}

.setup-step-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.setup-step-item.active .setup-step-node {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18), 0 8px 16px -4px rgba(79, 70, 229, 0.3);
    transform: scale(1.08);
}

.setup-step-item.completed .setup-step-node {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.setup-step-label {
    font-size: 0.76rem;
    font-weight: 600;
    margin-top: 0.45rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.setup-step-item.active .setup-step-label {
    color: #4f46e5;
}

.setup-step-item.completed .setup-step-label {
    color: #10b981;
}

.setup-stepper-line {
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.setup-stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #4f46e5);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mockup Card Live Preview */
.live-mockup-card {
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.live-mockup-header {
    padding: 1.25rem 1.5rem;
    color: white;
    position: relative;
    transition: background 0.3s ease;
}

.color-preset-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.color-preset-pill:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.color-preset-pill.active {
    box-shadow: 0 0 0 3px #4f46e5, 0 4px 10px rgba(0,0,0,0.25);
    transform: scale(1.15);
}

/* Industry Select Card */
.industry-select-card {
    border: 2px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.industry-select-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0,0,0,0.05);
}

.industry-select-card.selected {
    border-color: #4f46e5;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 8px 20px -4px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.industry-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Lockout Banner */
.lockout-banner {
    background: #fef2f2;
    border: 1.5px solid #f87171;
    border-radius: 1rem;
    padding: 1.25rem;
    color: #991b1b;
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.15);
    animation: pulse 2s infinite;
}

.form-floating > .form-control {
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-floating > .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* --- 14. UTILIDADES --- */
.content {
    padding-top: 0;
}

/* Evitar que la primera sección se esconda bajo el Navbar fijo (Reforzado) */
.content > section:first-of-type,
.content > div:first-of-type section,
.content > div:first-child section {
    padding-top: 140px !important;
    padding-bottom: 80px !important; /* También le damos aire abajo */
}

h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred." }

.darker-border-checkbox.form-check-input { border-color: #929292; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- 15. SOBRE NOSOTROS (ABOUT US SPLIT) --- */
.about-section {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 0 0 45%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-fallback {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primario), color-mix(in srgb, var(--color-primario) 60%, var(--color-dark)));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.about-image-fallback i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.15);
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 991px) {
    .about-section {
        flex-direction: column;
        gap: 2rem;
    }
    .about-image {
        flex: none;
        width: 100%;
    }
    .about-image img {
        height: 280px;
    }
}

/* --- 16. TESTIMONIOS (REVIEW CARDS) --- */
.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 6rem;
    color: color-mix(in srgb, var(--color-primario) 10%, transparent);
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 1rem;
}

.testimonial-stars i.empty {
    color: #e2e8f0;
}

.testimonial-comment {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--color-primario) 20%, transparent);
}

.testimonial-avatar-fallback {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primario), color-mix(in srgb, var(--color-primario) 70%, var(--color-dark)));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: color-mix(in srgb, #22c55e 12%, transparent);
    color: #16a34a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

.btn-write-review {
    background: transparent;
    border: 2px solid var(--color-primario);
    color: var(--color-primario);
    padding: 0.7rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-write-review:hover {
    background: var(--color-primario);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primario) 30%, transparent);
}

/* --- 17. FORMULARIO DE CONTACTO --- */
.contact-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.contact-form-card .form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.contact-form-card .form-control:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primario) 12%, transparent);
}

.contact-info-side {
    background: var(--section-card, var(--color-dark));
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 1.4rem;
    color: var(--color-primario);
    margin-top: 0.1rem;
}

.contact-info-item span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- 18. CTA BANNER --- */
.cta-banner {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Subtle effect if background is dark */
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.btn-cta-light {
    background: #ffffff;
    color: var(--color-primario);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--color-primario);
}

/* --- 19. SOCIAL HUB --- */
.social-hub {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-icon-link {
    width: auto;
    min-width: 100px;
    height: auto;
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
    text-decoration: none;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.social-icon-link i {
    font-size: 1.4rem;
}

.social-icon-link .social-name {
    font-size: 1rem;
    line-height: 1;
}

.social-icon-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.social-icon-link.facebook:hover { background: #1877F2; }
.social-icon-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-link.twitter:hover, .social-icon-link.x:hover { background: #000000; }
.social-icon-link.tiktok:hover { background: #010101; }
.social-icon-link.youtube:hover { background: #FF0000; }
.social-icon-link.linkedin:hover { background: #0A66C2; }
.social-icon-link.whatsapp:hover { background: #25D366; }

/* --- 20. SERVICES / ICON BOX --- */
.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-primario);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--color-primario) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--color-primario);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--color-primario);
    transition: color var(--transition-fast);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- 21. MODAL TESTIMONIO OTP --- */
.modal-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-otp-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.4s ease;
    position: relative;
}

.modal-otp-card .modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.otp-input {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.8rem;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
}

.star-rating {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.star-rating i {
    font-size: 2rem;
    cursor: pointer;
    color: #e2e8f0;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.star-rating i.active {
    color: #f59e0b;
}

.star-rating i:hover {
    transform: scale(1.2);
}

/* --- 21. CARRITO DE COMPRAS --- */
.btn-cart-add {
    border: 1.5px solid color-mix(in srgb, var(--color-primario) 30%, transparent);
    color: var(--color-primario);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.btn-cart-add:hover {
    background: var(--color-primario);
    color: #fff;
    border-color: var(--color-primario);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primario) 30%, transparent);
}

.cart-floating-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primario);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--color-primario) 45%, transparent);
    transition: all var(--transition-smooth);
    z-index: 1050;
    animation: fadeInUp 0.4s ease both;
}

.cart-floating-badge:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--color-primario) 55%, transparent);
}

.cart-floating-badge .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.modal-cart {
    max-width: 500px;
    width: 95%;
}

/* --- 22. ADMIN PANEL --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-surface);
}

.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: -0.01em;
}

.sidebar-brand i {
    font-size: 1.4rem;
    color: #60a5fa;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(96,165,250,0.15);
    color: #60a5fa;
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.75rem 0;
}

.sidebar-section-label {
    padding: 0.6rem 1.15rem 0.25rem;
    font-size: 0.62rem;
    font-weight: 800;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100vw;
}

.admin-header {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

/* Modo Full Height para Punto de Venta */
.admin-layout:has(.pos-container) .admin-content {
    padding: 0 !important;
    overflow: hidden !important;
    height: calc(100vh - 65px) !important;
    max-height: calc(100vh - 65px) !important;
    display: flex !important;
    flex-direction: column !important;
}
.admin-layout:has(.pos-container) .admin-main {
    overflow: hidden !important;
    height: 100vh !important;
}

.admin-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.metric-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1;
}

/* Admin Login */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
}

.admin-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: #fff;
}

/* Sidebar Collapsed State (Desktop) */
@media (min-width: 769px) {
    .sidebar-collapsed .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 10px 0 30px rgba(0,0,0,0.25);
    }
    .sidebar-collapsed .admin-main {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    .sidebar-collapsed.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .sidebar-collapsed.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 10px 0 30px rgba(0,0,0,0.25);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-header {
        padding: 0.75rem 1rem;
    }
    .admin-content {
        padding: 1rem;
    }
    .sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }
}

/* --- Admin Mobile-First Refinements --- */
@media (max-width: 576px) {
    .admin-content {
        padding: 0.75rem !important;
    }
    .admin-card {
        padding: 1rem !important;
    }
    
    /* Control de Modales en Móvil */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem) !important;
    }
    .modal-body {
        padding: 1.25rem !important;
    }
    .modal-header, .modal-footer {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Accordion & Card Refinements */
.admin-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.cursor-pointer:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.sticky-bottom {
    position: sticky;
    bottom: -1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.border-primary-subtle {
    border-color: var(--color-primario) !important;
    border-width: 1.5px;
}
/* --- SELECTOR DE UBICACION (MAP PICKER) --- */
.map-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.map-picker-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#map-container {
    flex: 1;
    width: 100%;
    background: #f0f0f0;
}

.map-picker-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 10000;
}

.btn-confirm-map {
    background: var(--color-primario);
    color: white;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: none;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-confirm-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Ajustes para Leaflet */
.leaflet-control-zoom {
    display: none !important;
}

@media (min-width: 768px) {
    .leaflet-control-zoom {
        display: block !important;
    }
}

/* --- BRANCH CARDS PREMIUM --- */
.branch-card-premium {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.branch-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.branch-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
}

.branch-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primario), color-mix(in srgb, var(--color-primario) 70%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.branch-card-body {
    padding: 0 1.5rem 1rem;
    flex: 1;
}

.branch-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.branch-info-row i {
    margin-top: 3px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.branch-card-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.015);
}

.btn-branch-map {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-primario);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1.5px solid var(--color-primario);
    transition: all 0.25s ease;
    background: transparent;
}

.btn-branch-map:hover {
    background: var(--color-primario);
    color: #fff;
}

/* --- SERVICE CARDS PREMIUM --- */
.service-card-premium {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.service-card-visual {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.service-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.service-card-premium:hover .service-card-visual img {
    transform: scale(1.06);
}

.service-icon-hero {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primario), color-mix(in srgb, var(--color-primario) 60%, #000));
}

.service-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-service-action {
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-service-action:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

/* Detail modal carousel */
.service-detail-carousel {
    background: #0f172a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.service-detail-carousel img {
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* --- PREMIUM NAVBAR STYLES --- */
.navbar-premium .nav-item {
    position: relative;
    padding: 0 0.2rem;
}

.navbar-premium .nav-link {
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
    padding-bottom: 0.2rem !important;
}

/* Animated Underline for Links */
.navbar-premium .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
    opacity: 0.8;
}

.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* Modern WhatsApp Button */
.btn-whatsapp-modern {
    background-color: #25D366;
    color: white !important;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-whatsapp-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Modern Admin Button */
.btn-admin-modern {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-width: 1.5px !important;
}

.btn-admin-modern:hover {
    background-color: currentColor;
    color: var(--bs-body-bg) !important;
    transform: scale(1.05);
}

/* ==========================================================================
   SISTEMA RESPONSIVO PREMIUM - SECCIONES FLEXIBLES & MENU NAVBAR COLLAPSE
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Menú desplegable premium móvil tipo "Drawer Dropdown" flotante */
    .navbar-premium .navbar-collapse {
        background-color: var(--nav-bg, #ffffff) !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1.5rem 2rem !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        border-radius: 0 0 20px 20px !important;
        z-index: 1000 !important;
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.25rem !important;
    }

    /* Mostrar con flex cuando Bootstrap abra la clase .show */
    .navbar-premium .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-premium .navbar-nav {
        width: 100% !important;
        text-align: center !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .navbar-premium .nav-link {
        font-size: 1.1rem !important;
        padding: 0.5rem 0 !important;
        display: block !important;
    }

    /* WhatsApp Button centrado y adaptado en móvil */
    .navbar-premium .btn-whatsapp-modern {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.75rem 1.5rem !important;
        justify-content: center !important;
        margin: 0.5rem 0 0 0 !important;
    }

    /* Botón de login circular centrado sin márgenes extraños */
    .navbar-premium .btn-admin-modern {
        margin: 0.5rem 0 0 0 !important;
    }
}

/* Premium Social Widget Link Hover Effects */
.social-widget-link:hover {
    transform: scale(1.15) translateY(-2px);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Hide scrollbars for sucursales horizontal slider */
.sucursales-scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- MODALES FLOTANTES GLOBALES (AGENDA, ESPECIALISTAS, POS, CLÍNICA) --- */
.pos-cobro-overlay, .admin-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    overflow-y: auto !important;
    animation: modalFadeIn 0.2s ease-out forwards;
}

.pos-cobro-modal, .admin-modal-content {
    background: #ffffff !important;
    border-radius: 20px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: auto !important;
}

.pos-cobro-modal .modal-header-pos {
    padding: 1.2rem 1.5rem !important;
    background: #0f172a !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
}

.pos-cobro-modal .modal-body-pos {
    padding: 1.5rem !important;
    overflow-y: auto !important;
    flex-grow: 1 !important;
}

.pos-cobro-modal .modal-footer-pos {
    padding: 1rem 1.5rem !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8fafc !important;
    flex-shrink: 0 !important;
}

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

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

/* ============================================================================
   ADMIN LAUNCHPAD HUB (PORTAL MODULAR DE CARTAS)
   ============================================================================ */
.launchpad-wrapper {
    max-width: 1420px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
    animation: modalFadeIn 0.3s ease-out;
}

.launchpad-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 2.2rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.25);
    margin-bottom: 2.2rem;
}

.launchpad-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.6rem;
}

@media (max-width: 768px) {
    .launchpad-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .launchpad-hero {
        padding: 1.5rem;
    }
}

.launchpad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.launchpad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: #cbd5e1;
}

.launchpad-card-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5px;
}

.launchpad-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.launchpad-card:hover .launchpad-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.launchpad-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.launchpad-pill:hover {
    background: var(--color-primario, #2563eb);
    color: #ffffff !important;
    border-color: var(--color-primario, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}


/* ============================================================================
   ESTILOS PUNTO DE VENTA (POS) - ESCRITORIO Y CELULARES (TEMU STYLE)
   ============================================================================ */

.pos-container { display: flex; gap: 0; height: calc(100vh - 65px); max-height: calc(100vh - 65px); overflow: hidden; background: #f8fafc; }
.pos-products-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #f8fafc; }
.pos-cart-panel { width: 480px; min-width: 440px; max-width: 520px; height: 100%; max-height: 100%; background: #ffffff; border-left: 1px solid #cbd5e1; display: flex; flex-direction: column; box-shadow: -4px 0 25px rgba(0,0,0,0.07); z-index: 5; overflow: hidden; }

.pos-header-bar { padding: 0.85rem 1.25rem; background: #ffffff; border-bottom: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.pos-header-bar input { width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 0.92rem; transition: all 0.2s; font-weight: 500; }
.pos-header-bar input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

.pos-categories-strip { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.2rem; scrollbar-width: none; }
.pos-categories-strip::-webkit-scrollbar { display: none; }

.pos-filter-pill { padding: 0.38rem 0.9rem; border-radius: 20px; border: 1px solid #cbd5e1; background: #fff; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; color: #475569; display: flex; align-items: center; gap: 0.3rem; }
.pos-filter-pill:hover { background: #f1f5f9; color: #1e293b; border-color: #94a3b8; }
.pos-filter-pill.active { background: #6366f1; color: #fff; border-color: #6366f1; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }

/* Estilos Filtrador Pro (Adidas Style) */
.pos-pro-filter-wrap { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.pos-filter-main-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; width: 100%; }
.pos-type-toggle { display: inline-flex; background: #f1f5f9; padding: 0.2rem; border-radius: 12px; gap: 0.2rem; flex-shrink: 0; border: 1px solid #e2e8f0; }
.pos-type-btn { border: none; background: transparent; font-size: 0.76rem; font-weight: 700; color: #64748b; padding: 0.32rem 0.7rem; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.pos-type-btn:hover { color: #1e293b; background: rgba(255,255,255,0.5); }
.pos-type-btn.active { background: #ffffff; color: #4f46e5; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Dropdown Categoría Selector */
.pos-cat-dropdown-container { position: relative; flex-shrink: 0; }
.pos-cat-dropdown-btn { display: flex; align-items: center; gap: 0.4rem; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 0.42rem 0.85rem; font-size: 0.82rem; font-weight: 700; color: #1e293b; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.pos-cat-dropdown-btn:hover, .pos-cat-dropdown-btn.active { border-color: #4f46e5; background: #f8fafc; color: #4f46e5; }
.pos-cat-dropdown-btn.has-cat { border-color: #4f46e5; background: #eef2ff; color: #4338ca; }
.pos-cat-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; width: 320px; background: #ffffff; border: 1.5px solid #4f46e5; border-radius: 14px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); padding: 0.75rem; z-index: 1060; display: flex; flex-direction: column; gap: 0.5rem; animation: fadeInCat 0.15s ease-out; }
@keyframes fadeInCat { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.pos-cat-search-input { width: 100%; padding: 0.45rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.82rem; }
.pos-cat-search-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15); }
.pos-cat-list { max-height: 230px; overflow-y: auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.pos-cat-item { padding: 0.45rem 0.65rem; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: #334155; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.15s; }
.pos-cat-item:hover { background: #f1f5f9; color: #1e293b; }
.pos-cat-item.selected { background: #e0e7ff; color: #3730a3; font-weight: 700; }

/* Carrusel de Categorías Rápidas */
.pos-carousel-wrapper { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.25rem; position: relative; }
.pos-carousel-nav-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cbd5e1; background: #ffffff; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
.pos-carousel-nav-btn:hover { background: #f1f5f9; color: #1e293b; border-color: #94a3b8; }
.pos-carousel-track { flex: 1; display: flex; gap: 0.4rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 0.1rem 0; }
.pos-carousel-track::-webkit-scrollbar { display: none; }

/* Botón Filtros Avanzados (Adidas Style) */
.pos-adv-filter-btn { display: flex; align-items: center; gap: 0.35rem; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 0.42rem 0.85rem; font-size: 0.82rem; font-weight: 700; color: #334155; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.pos-adv-filter-btn:hover { border-color: #4f46e5; color: #4f46e5; background: #f8fafc; }
.pos-adv-filter-btn.has-filters { background: #4f46e5; color: #ffffff; border-color: #4f46e5; box-shadow: 0 2px 8px rgba(79,70,229,0.3); }

/* Chips Activos */
.pos-active-chips-bar { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.pos-filter-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 20px; padding: 0.2rem 0.65rem; font-size: 0.74rem; font-weight: 600; color: #1e293b; }
.pos-filter-chip-remove { cursor: pointer; opacity: 0.6; transition: opacity 0.15s; }
.pos-filter-chip-remove:hover { opacity: 1; color: #ef4444; }

.btn-white { background: #ffffff !important; }
.active-view-btn { border-color: #6366f1 !important; color: #4f46e5 !important; background: #ffffff !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; }

/* Vista 1: Cuadrícula */
.pos-products-grid { flex: 1; overflow-y: auto; padding: 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 1rem; align-content: start; }
.pos-product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 0.85rem; cursor: pointer; transition: all 0.22s ease-in-out; text-align: left; position: relative; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.pos-product-card:hover { border-color: #818cf8; transform: translateY(-4px); box-shadow: 0 12px 25px rgba(99,102,241,0.14); }
.pos-product-card.sin-stock { opacity: 0.65; }

.pos-card-img-container { width: 100%; height: 125px; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 0.65rem; border: 1px solid #f1f5f9; }
.pos-card-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 0.4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04)); transition: transform 0.25s; }
.pos-product-card:hover .pos-card-img-container img { transform: scale(1.06); }

.pos-type-badge { position: absolute; top: 6px; left: 6px; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; backdrop-filter: blur(4px); }
.pos-stock-badge { position: absolute; top: 6px; right: 6px; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 20px; backdrop-filter: blur(4px); }

.pos-card-title { font-size: 0.85rem; font-weight: 700; color: #1e293b; line-height: 1.3; margin-bottom: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2rem; }
.pos-card-meta { font-size: 0.72rem; color: #64748b; margin-bottom: 0.35rem; }
.pos-card-price-row { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 0.35rem; border-top: 1px dashed #f1f5f9; }
.pos-card-price { font-size: 1.05rem; font-weight: 800; color: #4f46e5; }
.pos-card-price-old { font-size: 0.72rem; text-decoration: line-through; color: #94a3b8; margin-right: 0.3rem; }
.pos-add-btn { transition: all 0.2s; }
.pos-product-card:hover .pos-add-btn { transform: scale(1.1); background: #4f46e5 !important; }

/* Vista 2: Detalle (Tarjetas Horizontales) */
.pos-products-detail-grid { flex: 1; overflow-y: auto; padding: 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.9rem; align-content: start; }
.pos-detail-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0.85rem; cursor: pointer; transition: all 0.2s; display: flex; gap: 0.85rem; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.pos-detail-card:hover { border-color: #818cf8; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.12); }
.pos-detail-card.sin-stock { opacity: 0.65; }
.pos-detail-img { width: 85px; height: 85px; background: #f8fafc; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #f1f5f9; overflow: hidden; position: relative; }
.pos-detail-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 0.2rem; }
.pos-detail-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.pos-detail-title { font-size: 0.86rem; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vista 3: Lista / Tabla Compacta */
.pos-products-table-wrap { flex: 1; overflow-y: auto; padding: 1.25rem; }
.pos-products-table-wrap table { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.03); }

/* Panel del Carrito / Caja */
.pos-cart-header { padding: 0.85rem 1.25rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #ffffff; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 0.25rem 0; }
.pos-cart-item { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.pos-cart-item:hover { background: #f8fafc; }
.pos-cart-item .item-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.65rem; width: 100%; }
.pos-cart-item .item-thumb { width: 38px; height: 38px; background: #f8fafc; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; flex-shrink: 0; overflow: hidden; }
.pos-cart-item .item-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pos-cart-item .item-title-col { flex: 1; min-width: 0; }
.pos-cart-item .item-name { font-size: 0.86rem; font-weight: 700; color: #1e293b; word-break: break-word; white-space: normal; line-height: 1.3; display: block; }
.pos-cart-item .item-price-actions { display: flex; align-items: center; gap: 0.4rem; }
.pos-cart-item .item-subtotal { font-weight: 800; color: #0f172a; font-size: 0.95rem; text-align: right; }
.pos-cart-item .item-remove-btn { opacity: 0.65; transition: opacity 0.15s; }
.pos-cart-item .item-remove-btn:hover { opacity: 1; color: #dc2626 !important; }

.pos-cart-item .item-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; width: 100%; }
.pos-cart-item .item-meta { font-size: 0.70rem; color: #64748b; display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }

.pos-cart-item .qty-controls { display: flex; align-items: center; gap: 0.2rem; background: #f1f5f9; padding: 2px; border-radius: 8px; border: 1px solid #e2e8f0; }
.pos-cart-item .qty-controls button { width: 24px; height: 24px; border: none; border-radius: 6px; background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 700; color: #334155; transition: all 0.15s; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.pos-cart-item .qty-controls button:hover { background: #6366f1; color: #fff; }
.pos-cart-item .qty-controls span { min-width: 22px; text-align: center; font-weight: 800; font-size: 0.82rem; color: #1e293b; }

.pos-cart-footer { border-top: 2px solid #e2e8f0; padding: 0.75rem 1.15rem; background: #ffffff; flex-shrink: 0; }
.pos-totals .total-row { display: flex; justify-content: space-between; align-items: center; padding: 0.15rem 0; font-size: 0.84rem; color: #64748b; }
.pos-totals .total-row.grand-total { font-size: 1.45rem; font-weight: 800; color: #0f172a; padding-top: 0.35rem; border-top: 2px dashed #cbd5e1; margin-top: 0.25rem; }

.pos-btn-cobrar { width: 100%; padding: 0.75rem; font-size: 1.05rem; font-weight: 800; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(99,102,241,0.25); margin-bottom: 0.45rem; }
.pos-btn-cobrar:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.4); }
.pos-btn-cobrar:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; box-shadow: none; }

/* Modales */
.pos-cobro-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 1050; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.pos-cobro-modal { background: #fff; border-radius: 24px; width: 580px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.3); border: 1px solid #e2e8f0; }
.pos-cobro-modal .modal-header-pos { padding: 1.25rem 1.5rem; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.pos-cobro-modal .modal-body-pos { padding: 1.5rem; }
.pos-cobro-modal .modal-footer-pos { padding: 1.1rem 1.5rem; border-top: 1px solid #e2e8f0; display: flex; gap: 0.75rem; justify-content: flex-end; background: #f8fafc; }

.metodo-pago-btn { padding: 0.7rem 0.9rem; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; transition: all 0.2s; font-weight: 700; font-size: 0.85rem; color: #475569; }
.metodo-pago-btn.selected { border-color: #6366f1; background: #eef2ff; color: #4338ca; box-shadow: 0 2px 8px rgba(99,102,241,0.15); }

.variant-chip-card { border: 2px solid #e2e8f0; border-radius: 14px; padding: 0.85rem; background: #fff; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; }
.variant-chip-card:hover { border-color: #6366f1; background: #f8fafc; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.12); }

/* Ticket Impresión SRI */
.ticket-print { display: none; }
@media print {
    body * { visibility: hidden; }
    .ticket-print, .ticket-print * { visibility: visible; }
    .ticket-print { display: block !important; position: fixed; left: 0; top: 0; width: 80mm; font-family: 'Courier New', monospace; font-size: 10px; line-height: 1.35; color: #000; padding: 4mm; }
    .ticket-print .ticket-header { text-align: center; border-bottom: 1px dashed #000; padding-bottom: 3mm; margin-bottom: 3mm; }
    .ticket-print .ticket-totals { border-top: 1px dashed #000; margin-top: 3mm; padding-top: 2mm; text-align: right; }
}

/* ============================================================================
   ESTILOS RESPONSIVOS TEMU STYLE (SOLO CELULARES Y TABLETS <= 991px)
   ============================================================================ */
.pos-mobile-floating-cart { display: none !important; }
.pos-mobile-cart-top-bar { display: none !important; }

@media (max-width: 991.98px) {
    .pos-container { 
        height: calc(100vh - 65px) !important; 
        max-height: calc(100vh - 65px) !important; 
        position: relative !important; 
        width: 100% !important; 
        display: flex !important; 
        flex-direction: column !important; 
        overflow: hidden !important; 
    }

    /* Vista Catálogo en Celulares */
    .pos-container.mobile-tab-catalogo .pos-products-panel { 
        display: flex !important; 
        width: 100% !important; 
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important; 
        position: relative !important;
    }
    .pos-container.mobile-tab-catalogo .pos-products-grid,
    .pos-container.mobile-tab-catalogo .pos-products-detail-grid,
    .pos-container.mobile-tab-catalogo .pos-products-table-wrap {
        padding-bottom: 90px !important;
    }
    .pos-container.mobile-tab-catalogo .pos-cart-panel { 
        display: none !important; 
    }

    /* Vista Carrito en Celulares */
    .pos-container.mobile-tab-carrito .pos-products-panel { 
        display: none !important; 
    }
    .pos-container.mobile-tab-carrito .pos-cart-panel { 
        display: flex !important; 
        width: 100% !important; 
        min-width: 100% !important; 
        max-width: 100% !important; 
        height: 100% !important; 
        border-left: none !important; 
        box-shadow: none !important; 
    }
    .pos-mobile-cart-top-bar { 
        display: flex !important; 
    }

    /* Grid 2 Columnas Táctil Temu */
    .pos-products-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 0.6rem !important; 
        padding: 0.6rem !important; 
    }
    .pos-product-card {
        padding: 0.6rem !important;
        border-radius: 12px !important;
    }
    .pos-card-img-container { 
        height: 105px !important; 
        margin-bottom: 0.45rem !important;
    }
    .pos-card-title { 
        font-size: 0.78rem !important; 
        min-height: 2rem !important; 
        line-height: 1.2 !important;
    }
    .pos-card-meta {
        font-size: 0.68rem !important;
        margin-bottom: 0.2rem !important;
    }
    .pos-card-price { 
        font-size: 0.95rem !important; 
    }
    .pos-card-price-row {
        padding-top: 0.25rem !important;
    }
    .pos-add-btn {
        width: 28px !important;
        height: 28px !important;
    }

    /* Header en Filas Móviles */
    .pos-header-bar { 
        padding: 0.5rem 0.65rem !important; 
        gap: 0.4rem !important; 
    }
    .pos-header-row {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }
    .pos-header-row-between {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }
    .pos-type-toggle {
        display: flex !important;
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.15rem !important;
        gap: 0.15rem !important;
    }
    .pos-type-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 0.25rem 0.35rem !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }
    .pos-view-btn-group .btn {
        padding: 0.25rem 0.55rem !important;
        font-size: 0.75rem !important;
    }
    .pos-cat-dropdown-btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
    }
    .pos-carousel-wrapper {
        flex: 1 !important;
        min-width: 0 !important;
    }
    .pos-carousel-track {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .pos-filter-pill {
        padding: 0.28rem 0.65rem !important;
        font-size: 0.72rem !important;
    }
    .pos-adv-filter-btn {
        padding: 0.42rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
    .pos-header-bar input { 
        padding: 0.45rem 0.7rem 0.45rem 2.1rem !important; 
        font-size: 0.82rem !important; 
        border-radius: 10px !important; 
    }

    /* Botón Flotante Temu Style */
    .pos-mobile-floating-cart {
        position: fixed !important;
        bottom: 16px !important;
        left: 12px !important;
        right: 12px !important;
        background: linear-gradient(135deg, #1e1b4b, #4338ca) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
        box-shadow: 0 12px 30px rgba(67, 56, 202, 0.45) !important;
        border-radius: 50px !important;
        padding: 0.65rem 1.15rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 1045 !important;
        cursor: pointer !important;
        animation: slideUpMobileCart 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        transition: transform 0.15s, box-shadow 0.15s !important;
    }
    .pos-mobile-floating-cart:active {
        transform: scale(0.97) !important;
    }
    .pos-mobile-cart-icon-wrap {
        position: relative;
    }
    .pos-mobile-cart-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pos-mobile-cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ef4444;
        color: #ffffff;
        border-radius: 50%;
        font-size: 0.68rem;
        font-weight: 800;
        min-width: 20px;
        height: 20px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #1e1b4b;
    }

    /* Modales en Móvil */
    .pos-cobro-modal {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
}

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


/* ============================================================================
   ESTILOS HISTORIAL DE DOCUMENTOS (SRI & COMPROBANTES) - DUAL VIEW RESPONSIVE
   ============================================================================ */
.hist-container { padding: 1.5rem; max-width: 1600px; margin: 0 auto; }
.hist-header { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.25rem; }
.hist-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.hist-title i { color: #6366f1; }

.hist-filters-bar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hist-date-box { border: 1.5px solid #cbd5e1 !important; }
.hist-types-carousel { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0.2rem; }
.hist-types-carousel::-webkit-scrollbar { display: none; }

.hist-filter-pill { padding: 0.4rem 0.95rem; border-radius: 20px; border: 1.5px solid #cbd5e1; background: #fff; font-size: 0.80rem; font-weight: 700; cursor: pointer; transition: all 0.15s; white-space: nowrap; color: #475569; }
.hist-filter-pill:hover { background: #f1f5f9; color: #0f172a; }
.hist-filter-pill.active { background: #4f46e5; color: #fff; border-color: #4f46e5; box-shadow: 0 2px 8px rgba(79,70,229,0.3); }

/* Stats Grid */
.hist-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; margin-bottom: 1.25rem; }
.hist-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0.9rem 1.1rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.hist-stat-card .stat-value { font-size: 1.4rem; font-weight: 800; }
.hist-stat-card .stat-label { font-size: 0.72rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-top: 0.15rem; }
.hist-stat-card.stat-card-highlight { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }

/* Tabla Escritorio */
.hist-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.hist-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.hist-table thead th { background: #f8fafc; padding: 0.8rem 1rem; text-align: left; font-weight: 700; color: #475569; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.hist-table tbody td { padding: 0.7rem 1rem; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.hist-table tbody tr:hover { background: #f8fafc; }
.hist-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge-tipo { padding: 0.3rem 0.65rem; border-radius: 8px; font-weight: 700; font-size: 0.70rem; letter-spacing: 0.3px; }
.badge-nv { background: #dbeafe; color: #1d4ed8; }
.badge-01 { background: #fef3c7; color: #b45309; }
.badge-04 { background: #fce7f3; color: #be185d; }
.badge-pr { background: #f3e8ff; color: #7c3aed; }
.badge-rc { background: #e0f2fe; color: #0369a1; }

.badge-estado { padding: 0.28rem 0.65rem; border-radius: 8px; font-weight: 700; font-size: 0.70rem; }
.badge-local { background: #e2e8f0; color: #475569; }
.badge-pendiente { background: #fef3c7; color: #b45309; }
.badge-autorizado { background: #dcfce7; color: #16a34a; }
.badge-devuelta { background: #fee2e2; color: #dc2626; }
.badge-anulada { background: #fee2e2; color: #991b1b; }

/* Smart Mobile Cards */
.hist-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hist-mobile-card:active {
    background: #f8fafc;
}
.hist-mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #f1f5f9;
}
.hist-mobile-doc-num {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e293b;
}
.hist-mobile-client-name {
    font-weight: 700;
    font-size: 0.90rem;
    color: #0f172a;
}
.hist-mobile-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
}
.hist-mobile-card-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Modal Detalle Responsive */
.detail-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); z-index: 1050; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.detail-modal { background: #fff; border-radius: 18px; width: 95%; max-width: 680px; max-height: 88vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.3); animation: fadeInCat 0.2s ease; }
.detail-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.detail-body { padding: 1.25rem 1.4rem; }
.detail-footer { padding: 0.9rem 1.4rem; border-top: 1px solid #e2e8f0; text-align: right; background: #f8fafc; }

@media (max-width: 768px) {
    .hist-container { padding: 0.75rem 0.65rem; }
    .hist-title { font-size: 1.25rem; }
    .hist-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .hist-stat-card { padding: 0.65rem 0.75rem; }
    .hist-stat-card .stat-value { font-size: 1.15rem; }
    .hist-date-box { width: 100%; justify-content: space-between; }
    .hist-presets-btn-group { width: 100%; display: flex; }
    .hist-presets-btn-group .btn { flex: 1; font-size: 0.74rem; padding: 0.35rem 0.2rem; }
    .detail-modal { width: 100% !important; max-width: 100vw !important; height: 100vh !important; max-height: 100vh !important; border-radius: 0 !important; }
}


/* ============================================================================
   ESTILOS CUENTAS POR COBRAR - DUAL VIEW RESPONSIVE
   ============================================================================ */
.cpc-mobile-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cpc-mobile-card.is-paid {
    opacity: 0.9;
    border-color: #d1fae5;
    background: #f0fdf4;
}
.cpc-mobile-card:active {
    background: #f8fafc;
}
.cpc-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #f1f5f9;
}
.cpc-patient-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #0f172a;
}
.cpc-mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.cpc-mobile-card-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}


/* ============================================================================
   ESTILOS GESTIÓN CLIENTES & PROVEEDORES - DUAL VIEW RESPONSIVE
   ============================================================================ */
.cliente-stat-card, .prov-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cliente-stat-card:hover, .prov-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}
.cliente-filter-pill, .prov-filter-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.cliente-filter-pill:hover, .prov-filter-pill:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}
.cliente-filter-pill.active, .prov-filter-pill.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.cliente-mobile-card, .prov-mobile-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cliente-mobile-card:active, .prov-mobile-card:active {
    background: #f8fafc;
}
.cliente-mobile-card-header, .prov-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #f1f5f9;
}
.cliente-mobile-name, .prov-mobile-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #0f172a;
}
.cliente-mobile-card-body, .prov-mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.cliente-mobile-card-footer, .prov-mobile-card-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Modales Clientes / Proveedores Responsive */
.cliente-modal-overlay, .prov-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.15s ease-out;
}
.cliente-modal-dialog, .prov-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 680px;
    max-width: 96vw;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.cliente-modal-header, .prov-modal-header {
    padding: 1.15rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
}
.cliente-modal-body, .prov-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}
.cliente-modal-footer, .prov-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-bottom-left-radius: 19px;
    border-bottom-right-radius: 19px;
}
.nacionalidad-toggle-btn {
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nacionalidad-toggle-btn.active-ecu {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 2px 8px rgba(34,197,94,0.18);
}
.nacionalidad-toggle-btn.active-ext {
    border-color: #0ea5e9;
    background: #f0f9ff;
    color: #0369a1;
    box-shadow: 0 2px 8px rgba(14,165,233,0.18);
}

@media (max-width: 768px) {
    .cliente-modal-dialog, .prov-modal-dialog {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    .cliente-modal-header, .prov-modal-header {
        border-radius: 0 !important;
    }
    .cliente-modal-footer, .prov-modal-footer {
        border-radius: 0 !important;
    }
}


/* ============================================================================
   ESTILOS KARDEX DE INVENTARIO - DUAL VIEW RESPONSIVE
   ============================================================================ */
.kardex-stat-card {
    border-radius: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
}
.kardex-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.kardex-stat-card.clickable {
    cursor: pointer;
}
.kardex-stat-card.clickable:active {
    transform: scale(0.99);
}
.kardex-filter-pill {
    padding: 0.38rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.kardex-filter-pill:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}
.kardex-filter-pill.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

/* Smart Inventory Cards (Móvil) */
.kardex-mov-card, .kardex-stock-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.kardex-mov-card:active, .kardex-stock-card:active {
    background: #f8fafc;
}
.kardex-mov-card-header, .kardex-stock-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #f1f5f9;
}
.kardex-item-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #0f172a;
}
.kardex-mov-card-body, .kardex-stock-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.kardex-mov-card-footer, .kardex-stock-card-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Modales Kardex Responsive */
.kardex-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.15s ease-out;
}
.kardex-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 720px;
    max-width: 96vw;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.kardex-modal-header {
    padding: 1.15rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
}
.kardex-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}
.kardex-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-bottom-left-radius: 19px;
    border-bottom-right-radius: 19px;
}

@media (max-width: 768px) {
    .kardex-modal-dialog {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    .kardex-modal-header {
        border-radius: 0 !important;
    }
    .kardex-modal-footer {
        border-radius: 0 !important;
    }
}

/* ============================================================================
   ESTILOS LAUNCHPAD HUB / DASHBOARD ADMIN (INDEX.RAZOR)
   ============================================================================ */
.hub-canvas {
    min-height: calc(100vh - 70px);
    background-color: #f8fafc;
    padding: 2.5rem 1.5rem 4rem 1.5rem;
}
.hub-container {
    max-width: 1180px;
    margin: 0 auto;
}
.hub-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.hub-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}
.hub-subtitle {
    font-size: 0.95rem;
    color: #64748b;
}
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.hub-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 0 0 2px var(--card-accent, #6366f1);
}
.hub-card:active {
    transform: translateY(-2px);
}
.hub-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: transform 0.25s ease;
}
.hub-card:hover .hub-card-icon {
    transform: scale(1.1) rotate(4deg);
}
.hub-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hub-card-desc {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.hub-card-subitems {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.hub-subitem-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.hub-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--card-accent, #6366f1);
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.hub-card:hover .hub-card-action i {
    transform: translateX(4px);
}
.hub-card-action i {
    transition: transform 0.2s ease;
}

/* RESPONSIVE HUB PARA CELULARES (<= 576px) */
@media (max-width: 576px) {
    .hub-canvas {
        padding: 1.25rem 0.75rem 3rem 0.75rem !important;
    }
    .hub-header {
        margin-bottom: 1.5rem !important;
    }
    .hub-title {
        font-size: 1.45rem !important;
    }
    .hub-subtitle {
        font-size: 0.84rem !important;
    }
    .hub-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .hub-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    .hub-card-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.45rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.85rem !important;
    }
    .hub-card-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.35rem !important;
    }
    .hub-card-desc {
        font-size: 0.82rem !important;
        margin-bottom: 0.85rem !important;
    }
    .hub-card-subitems {
        gap: 0.35rem !important;
        margin-bottom: 0.85rem !important;
    }
    .hub-card-action {
        padding-top: 0.75rem !important;
        font-size: 0.82rem !important;
    }
}






/* ESTILOS DE FLEXIBLE BLOCK (MOVIL / TABLET / DESKTOP) */


    /* ===== DESKTOP (>= 992px): Canvas absoluto con coordenadas exactas ===== */
    .flexible-block-container .flex-desktop-canvas {
        position: relative;
        display: block !important;
        width: 100%;
    }
    .flexible-block-container .flex-desktop-canvas .flexible-element-wrapper {
        position: absolute;
    }
    .flexible-block-container .flex-mobile-canvas {
        display: none !important;
    }

    /* ===== MOBILE (< 992px): Canvas móvil 1:1 idéntico al constructor ===== */
    @media (max-width: 991.98px) {
        .flexible-block-container .flex-desktop-canvas {
            display: none !important;
        }
        .flexible-block-container .flex-mobile-canvas {
            display: block !important;
            position: relative;
            width: 100%;
            margin: 0 auto;
        }
        .flexible-block-container .flex-mobile-canvas .flexible-element-wrapper-mobile {
            position: absolute;
        }
        .flexible-block-container .flex-mobile-canvas .flex-mobile-item h1,
        .flexible-block-container .flex-mobile-canvas .flex-mobile-item h2,
        .flexible-block-container .flex-mobile-canvas .flex-mobile-item p {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        .flexible-block-container .flex-mobile-canvas .flex-mobile-item img {
            max-width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    /* ===== DESKTOP (>= 992px): Asegurar visualización de canvas absoluto ===== */
    @media (min-width: 992px) {
        .flexible-block-container .flex-desktop-canvas {
            display: block !important;
        }
        .flexible-block-container .flex-mobile-canvas {
            display: none !important;
        }
    }
    /* ===== WIDGET CONSULTA / AGENDAMIENTO PRO & EXECUTIVE (RESPONSIVE & FLUID) ===== */
    .widget-consulta-card {
        background: var(--wc-bg, #ffffff);
        border-radius: 16px;
        box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        width: 100%;
        height: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: var(--wc-text, #1e293b);
        font-family: inherit;
    }
    .widget-consulta-card:hover {
        box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px var(--wc-accent, rgba(59, 130, 246, 0.4));
    }
    .widget-consulta-header {
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
        padding: 0.65rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        flex-shrink: 0;
    }
    .widget-consulta-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: var(--wc-icon-bg, linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%));
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
        flex-shrink: 0;
    }
    .widget-consulta-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--wc-title, #0f172a);
        margin: 0;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
    .widget-consulta-subtitle {
        font-size: 0.7rem;
        color: var(--wc-sub, #64748b);
        margin: 0;
        line-height: 1.2;
    }
    .widget-consulta-badge {
        background: rgba(37, 99, 235, 0.08);
        color: var(--wc-accent, #2563eb);
        border: 1px solid rgba(37, 99, 235, 0.2);
        padding: 2px 7px;
        border-radius: 9999px;
        font-size: 0.65rem;
        font-weight: 600;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }
    .widget-consulta-body {
        padding: 0.75rem 1rem;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        min-height: 0;
    }
    .widget-consulta-body::-webkit-scrollbar {
        width: 4px;
    }
    .widget-consulta-body::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 4px;
    }

    /* Fluid Auto-Fit Grid for Appointment Form */
    .widget-consulta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.45rem 0.6rem;
        margin-bottom: 0.35rem;
    }
    .widget-consulta-grid.grid-full {
        grid-template-columns: 1fr;
    }

    .widget-consulta-label {
        font-size: 0.74rem;
        font-weight: 600;
        color: var(--wc-label, #334155);
        margin-bottom: 0.2rem;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .widget-consulta-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 0.45rem;
    }
    .widget-consulta-input-wrap i.input-icon {
        position: absolute;
        left: 9px;
        color: #94a3b8;
        font-size: 0.85rem;
        pointer-events: none;
        z-index: 3;
        transition: color 0.2s ease;
    }
    .widget-consulta-field {
        width: 100%;
        min-height: 38px;
        padding: 0.4rem 0.65rem 0.4rem 2rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--wc-input-text, #1e293b);
        background: var(--wc-input-bg, #f8fafc);
        border: 1.5px solid var(--wc-input-border, #e2e8f0);
        border-radius: 8px;
        transition: all 0.2s ease;
        outline: none;
    }
    .widget-consulta-field:focus {
        background: #ffffff;
        border-color: var(--wc-accent, #3b82f6);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }
    .widget-consulta-field:focus ~ i.input-icon,
    .widget-consulta-input-wrap:focus-within i.input-icon {
        color: var(--wc-accent, #2563eb);
    }

    /* Slots scroller */
    .widget-consulta-slots-scroll {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.35rem;
        padding: 0.2rem 0.1rem;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        -webkit-overflow-scrolling: touch;
    }
    .widget-consulta-slots-scroll::-webkit-scrollbar {
        height: 3px;
    }
    .widget-consulta-slots-scroll::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 3px;
    }

    .widget-consulta-slot-badge {
        font-size: 0.72rem;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 6px;
        border: 1.5px solid var(--wc-slot-border, #e2e8f0);
        background: var(--wc-slot-bg, #f8fafc);
        color: var(--wc-slot-text, #334155);
        cursor: pointer;
        transition: all 0.15s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .widget-consulta-slot-badge:hover {
        border-color: var(--wc-accent, #93c5fd);
        background: rgba(59, 130, 246, 0.08);
        color: var(--wc-accent, #1d4ed8);
    }
    .widget-consulta-slot-badge.selected {
        border-color: var(--wc-accent, #2563eb);
        background: var(--wc-accent, #2563eb);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    }

    /* Stepper mini progress */
    .widget-consulta-stepper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.6rem;
        padding: 0.3rem 0.5rem;
        background: var(--wc-step-bg, rgba(241, 245, 249, 0.7));
        border-radius: 8px;
        font-size: 0.68rem;
        font-weight: 600;
    }
    .widget-consulta-step-item {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #94a3b8;
        transition: color 0.2s ease;
    }
    .widget-consulta-step-item.active {
        color: var(--wc-accent, #2563eb);
        font-weight: 700;
    }
    .widget-consulta-step-item.completed {
        color: #16a34a;
    }
    .widget-consulta-step-num {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #e2e8f0;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.62rem;
    }
    .widget-consulta-step-item.active .widget-consulta-step-num {
        background: var(--wc-accent, #2563eb);
        color: #ffffff;
    }
    .widget-consulta-step-item.completed .widget-consulta-step-num {
        background: #16a34a;
        color: #ffffff;
    }

    .widget-consulta-btn-cta {
        background: var(--wc-btn-bg, linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%));
        color: var(--wc-btn-text, #ffffff) !important;
        border: none;
        border-radius: 10px;
        padding: 0.52rem 1.1rem;
        font-size: 0.82rem;
        font-weight: 600;
        min-height: 40px;
        box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.35);
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        cursor: pointer;
        text-decoration: none;
    }
    .widget-consulta-btn-cta:hover:not(:disabled) {
        filter: brightness(1.08);
        box-shadow: 0 8px 18px -3px rgba(37, 99, 235, 0.45);
        transform: translateY(-1px);
    }
    .widget-consulta-btn-cta:active:not(:disabled) {
        transform: translateY(0);
    }
    .widget-consulta-btn-back {
        background: var(--wc-btn-back-bg, #f1f5f9);
        color: var(--wc-btn-back-text, #475569);
        border: 1.5px solid var(--wc-btn-back-border, #e2e8f0);
        border-radius: 10px;
        padding: 0.52rem 0.9rem;
        min-height: 40px;
        font-size: 0.8rem;
        font-weight: 600;
        transition: all 0.15s ease;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .widget-consulta-btn-back:hover {
        background: #e2e8f0;
        color: #1e293b;
    }
    .widget-consulta-summary {
        background: var(--wc-summary-bg, linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(240, 249, 255, 0.7) 100%));
        border: 1.5px dashed var(--wc-summary-border, #bfdbfe);
        border-radius: 10px;
        padding: 0.5rem 0.8rem;
        margin-bottom: 0.5rem;
        font-size: 0.74rem;
        color: var(--wc-text, #1e293b);
    }
    .widget-consulta-otp-input {
        background: var(--wc-input-bg, #ffffff);
        border: 2px solid var(--wc-accent, #3b82f6);
        border-radius: 10px;
        font-family: 'Courier New', Courier, monospace;
        font-weight: 800;
        font-size: 1.45rem;
        letter-spacing: 6px;
        text-align: center;
        color: var(--wc-input-text, #1e293b);
        padding: 0.35rem 0.5rem;
        width: 155px;
        max-width: 100%;
        margin: 0 auto;
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.12);
        outline: none;
    }
    .widget-consulta-footer-note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.66rem;
        color: #94a3b8;
        margin-top: 0.3rem;
    }

    /* Dark theme support for Widget Consulta */
    .widget-consulta-card.dark-theme {
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    .widget-consulta-card.dark-theme .widget-consulta-header {
        background: rgba(15, 23, 42, 0.65);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    .widget-consulta-card.dark-theme .widget-consulta-title {
        color: #f8fafc;
    }
    .widget-consulta-card.dark-theme .widget-consulta-subtitle {
        color: #94a3b8;
    }
    .widget-consulta-card.dark-theme .widget-consulta-label {
        color: #cbd5e1;
    }
    .widget-consulta-card.dark-theme .widget-consulta-field {
        background: rgba(15, 23, 42, 0.7);
        border-color: rgba(255, 255, 255, 0.15);
        color: #f8fafc;
    }
    .widget-consulta-card.dark-theme .widget-consulta-field:focus {
        background: rgba(15, 23, 42, 0.95);
        border-color: var(--wc-accent, #3b82f6);
    }
    .widget-consulta-card.dark-theme .widget-consulta-slot-badge {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #cbd5e1;
    }
    .widget-consulta-card.dark-theme .widget-consulta-stepper {
        background: rgba(255, 255, 255, 0.05);
    }
    .widget-consulta-card.dark-theme .widget-consulta-btn-back {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        color: #e2e8f0;
    }
    .widget-consulta-card.dark-theme .widget-consulta-btn-back:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    .widget-consulta-card.dark-theme .widget-consulta-summary {
        background: rgba(15, 23, 42, 0.6);
        border-color: rgba(59, 130, 246, 0.4);
        color: #f1f5f9;
    }

    /* Mobile media query refinements */
    @media (max-width: 576px) {
        .widget-consulta-grid {
            grid-template-columns: 1fr;
            gap: 0.35rem;
        }
        .widget-consulta-card {
            border-radius: 14px;
        }
        .widget-consulta-header {
            padding: 0.55rem 0.85rem;
        }
        .widget-consulta-body {
            padding: 0.65rem 0.85rem;
        }
        .widget-consulta-field {
            min-height: 42px; /* Touch target standard */
            font-size: 0.84rem;
        }
    }

    /* ===== BASE WIDGET STYLES (EXECUTIVE & RESPONSIVE FOR ALL WIDGETS) ===== */
    .widget-contacto-card,
    .widget-sucursales-card,
    .widget-redes-card,
    .widget-productos-card,
    .widget-servicios-card,
    .widget-testimonios-card,
    .widget-carrusel-card {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        width: 100%;
        height: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: #1e293b;
        font-family: inherit;
    }
    .widget-contacto-card:hover,
    .widget-sucursales-card:hover,
    .widget-redes-card:hover,
    .widget-productos-card:hover,
    .widget-servicios-card:hover,
    .widget-testimonios-card:hover,
    .widget-carrusel-card:hover {
        box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(59, 130, 246, 0.35);
    }
    .widget-contacto-header,
    .widget-sucursales-header,
    .widget-redes-header,
    .widget-productos-header,
    .widget-servicios-header,
    .widget-testimonios-header {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        padding: 0.7rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    .widget-contacto-icon { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
    .widget-sucursales-icon { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
    .widget-redes-icon { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }
    .widget-productos-icon { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
    .widget-servicios-icon { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
    .widget-testimonios-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

    .widget-contacto-icon,
    .widget-sucursales-icon,
    .widget-redes-icon,
    .widget-productos-icon,
    .widget-servicios-icon,
    .widget-testimonios-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.25);
        flex-shrink: 0;
    }
    .widget-contacto-title,
    .widget-sucursales-title,
    .widget-redes-title,
    .widget-productos-title,
    .widget-servicios-title,
    .widget-testimonios-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
        line-height: 1.2;
    }
    .widget-contacto-subtitle,
    .widget-sucursales-subtitle,
    .widget-redes-subtitle,
    .widget-productos-subtitle,
    .widget-servicios-subtitle,
    .widget-testimonios-subtitle {
        font-size: 0.7rem;
        color: #64748b;
        margin: 0;
    }
    .widget-contacto-badge,
    .widget-sucursales-badge,
    .widget-redes-badge,
    .widget-productos-badge,
    .widget-servicios-badge,
    .widget-testimonios-badge {
        background: rgba(15, 23, 42, 0.05);
        color: #334155;
        border: 1px solid rgba(226, 232, 240, 0.9);
        padding: 2px 7px;
        border-radius: 9999px;
        font-size: 0.65rem;
        font-weight: 600;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }
    .widget-contacto-body,
    .widget-sucursales-body,
    .widget-redes-body,
    .widget-productos-body,
    .widget-servicios-body,
    .widget-testimonios-body {
        padding: 0.8rem 1rem;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .widget-contacto-body::-webkit-scrollbar,
    .widget-sucursales-body::-webkit-scrollbar,
    .widget-redes-body::-webkit-scrollbar,
    .widget-productos-body::-webkit-scrollbar,
    .widget-servicios-body::-webkit-scrollbar,
    .widget-testimonios-body::-webkit-scrollbar {
        width: 4px;
    }
    .widget-contacto-body::-webkit-scrollbar-thumb,
    .widget-sucursales-body::-webkit-scrollbar-thumb,
    .widget-redes-body::-webkit-scrollbar-thumb,
    .widget-productos-body::-webkit-scrollbar-thumb,
    .widget-servicios-body::-webkit-scrollbar-thumb,
    .widget-testimonios-body::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 4px;
    }
    .widget-contacto-label {
        font-size: 0.74rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: 0.2rem;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .widget-contacto-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 0.45rem;
    }
    .widget-contacto-input-wrap i.input-icon {
        position: absolute;
        left: 9px;
        color: #94a3b8;
        font-size: 0.85rem;
        pointer-events: none;
        z-index: 3;
    }
    .widget-contacto-field {
        width: 100%;
        padding: 0.42rem 0.65rem 0.42rem 1.95rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: #1e293b;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        transition: all 0.2s ease;
        outline: none;
    }
    .widget-contacto-field:focus {
        background: #ffffff;
        border-color: #ec4899;
        box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
    }
    .widget-contacto-field:focus ~ i.input-icon,
    .widget-contacto-input-wrap:focus-within i.input-icon {
        color: #db2777;
    }
    .widget-contacto-btn-cta {
        background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
        color: #ffffff !important;
        border: none;
        border-radius: 9px;
        padding: 0.52rem 1rem;
        font-size: 0.82rem;
        font-weight: 600;
        box-shadow: 0 4px 12px -2px rgba(219, 39, 119, 0.4);
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        cursor: pointer;
    }
    .widget-contacto-btn-cta:hover:not(:disabled) {
        background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
        transform: translateY(-1px);
    }
    .widget-sucursal-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.65rem 0.85rem;
        transition: all 0.2s ease;
    }
    .widget-sucursal-item:hover {
        background: #ffffff;
        border-color: #93c5fd;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
    }
    .widget-redes-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 9999px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #334155;
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .widget-redes-chip:hover {
        background: #ffffff;
        border-color: #f43f5e;
        transform: translateY(-1.5px);
        box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
        color: #0f172a;
    }
    .widget-product-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        position: relative;
        transition: all 0.2s ease;
    }
    .widget-product-item:hover {
        border-color: #86efac;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
        transform: translateY(-1.5px);
    }
    .widget-product-thumb {
        height: 100px;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-bottom: 1px solid #f1f5f9;
        padding: 4px;
    }
    .widget-product-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .widget-product-cart-btn {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #10b981;
        color: #ffffff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        transition: all 0.2s ease;
    }
    .widget-product-cart-btn:hover {
        background: #059669;
        transform: scale(1.1);
    }
    .widget-serv-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.6rem 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        transition: all 0.2s ease;
    }
    .widget-serv-item:hover {
        background: #ffffff;
        border-color: #c4b5fd;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    }
    .widget-serv-icon-wrap {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(139, 92, 246, 0.12);
        color: #7c3aed;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    .widget-testimonio-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.65rem 0.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.2s ease;
    }
    .widget-testimonio-item:hover {
        background: #ffffff;
        border-color: #fde68a;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
    }
    .widget-testimonio-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    /* ===== WIDGETS FITNESS & CROSSFIT ESTILIZADOS ===== */
    .widget-fitness-card {
        border-radius: 16px;
        box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
        overflow: hidden;
        width: 100%;
        min-width: 280px;
        height: 100%;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        font-family: inherit;
        transition: all 0.3s ease;
    }
    .widget-fitness-header {
        padding: 0.65rem 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        flex-shrink: 0;
    }
    .widget-fitness-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    .widget-fitness-body {
        padding: 0.75rem 0.9rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .widget-wod-section {
        border-radius: 10px;
        padding: 0.65rem 0.85rem;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .widget-calc-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 4px;
        font-size: 0.75rem;
    }
    .widget-calc-table td {
        padding: 4px 8px;
        border-radius: 6px;
        text-align: center;
    }
    .widget-plan-badge-popular {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 0.62rem;
        padding: 3px 8px;
        border-radius: 9999px;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: #fff;
        font-weight: 700;
    }


