/* ================================================================
   EHC PROMO SHOP — SISTEMA DE DISEÑO CENTRALIZADO
   ================================================================
   Este archivo es la ÚNICA FUENTE DE VERDAD para todos los estilos
   visuales del proyecto. Cualquier cambio de diseño debe hacerse aquí.
   ================================================================ */

/* ================================================================
   1. GOOGLE FONTS
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Public+Sans:wght@300;400;500;600&family=Work+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================================
   2. DESIGN TOKENS (CSS Custom Properties)
   Fuente: DESIGN.md — EHC Promo Shop Design System
   ================================================================ */
:root {
    /* ---- Colores Primarios ---- */
    --color-primary: #004e9f;
    --color-primary-container: #0066cc;
    --color-on-primary: #ffffff;
    --color-on-primary-container: #dfe8ff;
    --color-inverse-primary: #aac7ff;

    /* ---- Colores Secundarios ---- */
    --color-secondary: #235eab;
    --color-on-secondary: #ffffff;
    --color-secondary-container: #7aacff;
    --color-on-secondary-container: #003e80;

    /* ---- Colores Terciarios ---- */
    --color-tertiary: #883700;
    --color-on-tertiary: #ffffff;
    --color-tertiary-container: #af4900;
    --color-on-tertiary-container: #ffe3d6;

    /* ---- Error ---- */
    --color-error: #ba1a1a;
    --color-on-error: #ffffff;
    --color-error-container: #ffdad6;
    --color-on-error-container: #93000a;

    /* ---- Superficies ---- */
    --color-surface: #f9f9ff;
    --color-surface-dim: #d8d9e2;
    --color-surface-bright: #f9f9ff;
    --color-surface-container-lowest: #ffffff;
    --color-surface-container-low: #f2f3fc;
    --color-surface-container: #ecedf6;
    --color-surface-container-high: #e6e8f1;
    --color-surface-container-highest: #e1e2eb;
    --color-surface-tint: #005cba;
    --color-surface-variant: #e1e2eb;

    /* ---- Texto sobre superficies ---- */
    --color-on-surface: #191c22;
    --color-on-surface-variant: #414753;
    --color-inverse-surface: #2e3037;
    --color-inverse-on-surface: #eff0f9;

    /* ---- Bordes / Contornos ---- */
    --color-outline: #727784;
    --color-outline-variant: #c1c6d5;

    /* ---- Fixed Colors ---- */
    --color-primary-fixed: #d7e3ff;
    --color-primary-fixed-dim: #aac7ff;
    --color-on-primary-fixed: #001b3e;
    --color-on-primary-fixed-variant: #00458e;
    --color-secondary-fixed: #d6e3ff;
    --color-secondary-fixed-dim: #aac7ff;
    --color-on-secondary-fixed: #001b3e;
    --color-on-secondary-fixed-variant: #00458d;
    --color-tertiary-fixed: #ffdbcb;
    --color-tertiary-fixed-dim: #ffb692;
    --color-on-tertiary-fixed: #341100;
    --color-on-tertiary-fixed-variant: #793000;

    /* ---- Background ---- */
    --color-background: #f1f5f9;
    --color-on-background: #191c22;

    /* ================================================================
       TIPOGRAFÍA
       ================================================================ */
    --font-display: 'Montserrat', 'Work Sans', sans-serif;
    --font-body: 'Public Sans', sans-serif;
    --font-sans: 'Montserrat', sans-serif;
    /* Fuente activa del panel; se sobreescribe inline en public/index.php. */
    --font-app: 'Montserrat', sans-serif;

    /* H1 */
    --h1-size: clamp(2rem, 4.5vw, 3.5rem);
    --h1-weight: 700;
    --h1-line-height: 1.2;
    --h1-letter-spacing: -0.02em;

    /* H2 */
    --h2-size: clamp(1.75rem, 4vw, 3.5rem);
    --h2-weight: 600;
    --h2-line-height: 1.25;
    --h2-letter-spacing: -0.01em;

    /* H3 */
    --h3-size: clamp(1.15rem, 1.6vw, 1.5rem);
    --h3-weight: 600;
    --h3-line-height: 1.3;

    /* Body */
    --body-lg-size: clamp(1rem, 1.4vw, 1.125rem);
    --body-md-size: clamp(0.95rem, 1.2vw, 1rem);
    --body-sm-size: clamp(0.85rem, 1vw, 0.875rem);

    /* Escala fluida para componentes (hero, secciones, tarjetas) */
    --text-display: clamp(2.25rem, 6.5vw, 6rem);
    --text-page: clamp(2rem, 4.5vw, 3.75rem);
    --text-section: clamp(1.75rem, 4vw, 3.5rem);
    --text-subsection: clamp(1.3rem, 2.6vw, 2.25rem);
    --text-card: clamp(1.05rem, 1.8vw, 1.75rem);
    --text-price: clamp(1.75rem, 3vw, 2.5rem);
    --text-body: clamp(0.95rem, 1.2vw, 1.125rem);
    --leading-display: 0.95;
    --leading-page: 1.05;
    --leading-section: 1.1;
    --leading-subsection: 1.15;
    --leading-card: 1.2;
    --leading-price: 1.1;
    --leading-body: 1.6;

    /* Label */
    --label-bold-size: 14px;
    --label-bold-weight: 600;

    /* Caption */
    --caption-size: 12px;

    /* ================================================================
       ESPACIADO (Base: 8px)
       ================================================================ */
    --space-base: 8px;
    --space-xs: 4px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: clamp(2rem, 4vw, 3rem);
    --space-xl: clamp(3rem, 6vw, 5rem);
    --space-section: var(--space-xl);
    --space-block: var(--space-lg);
    --container-max: 1120px;
    --container-pad: clamp(1rem, 4vw, 1.5rem);
    --gutter: clamp(1rem, 2.5vw, 2rem);

    /* ================================================================
       BORDES / RADIOS
       ================================================================ */
    --radius-sm: 0.125rem;
    --radius-default: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* ================================================================
       SOMBRAS
       ================================================================ */
    --shadow-soft-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    --shadow-soft-md: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    --shadow-soft-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-soft-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-soft-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --shadow-header: 0px 4px 12px rgba(0, 0, 0, 0.05);

    /* ================================================================
       TRANSICIONES
       ================================================================ */
    --transition-fast: 200ms ease;
    --transition-default: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-very-slow: 700ms ease;
    --transition-crawl: 1000ms ease;
}


/* ================================================================
   3. RESET & BASE STYLES
   ================================================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

/* ---- Material Symbols config ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* ================================================================
   4. LAYOUT — Contenedor Maestro EHC
   ================================================================ */
.ehc-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* Escala fluida reutilizable (global) */
.ehc-title-display {
    font-size: var(--text-display);
    line-height: var(--leading-display);
    letter-spacing: -0.02em;
}
.ehc-title-page {
    font-size: var(--text-page);
    line-height: var(--leading-page);
    letter-spacing: -0.02em;
}
.ehc-title-section {
    font-size: var(--text-section);
    line-height: var(--leading-section);
    letter-spacing: -0.02em;
}
.ehc-title-subsection {
    font-size: var(--text-subsection);
    line-height: var(--leading-subsection);
    letter-spacing: -0.01em;
}
.ehc-title-card {
    font-size: var(--text-card);
    line-height: var(--leading-card);
}
.ehc-price {
    font-size: var(--text-price);
    line-height: var(--leading-price);
    letter-spacing: -0.02em;
}
.ehc-body {
    font-size: var(--text-body);
    line-height: var(--leading-body);
}
.ehc-section {
    padding-block: var(--space-section);
}
.ehc-card-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.ehc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ehc-safe {
    min-width: 0;
    overflow-wrap: break-word;
}

/* Seguridad: los titulos largos nunca desbordan su contenedor */
h1, h2, h3, h4 {
    overflow-wrap: break-word;
}


/* ================================================================
   5. TIPOGRAFÍA SEMÁNTICA
   ================================================================ */
.font-display {
    font-family: var(--font-display);
}
.font-body {
    font-family: var(--font-body);
}


/* ================================================================
   6. SOMBRAS SEMÁNTICAS (clases utilitarias propias)
   ================================================================ */
.shadow-soft-sm  { box-shadow: var(--shadow-soft-sm); }
.shadow-soft-md  { box-shadow: var(--shadow-soft-md); }
.shadow-soft-lg  { box-shadow: var(--shadow-soft-lg); }
.shadow-soft-xl  { box-shadow: var(--shadow-soft-xl); }
.shadow-soft-2xl { box-shadow: var(--shadow-soft-2xl); }


/* ================================================================
   7. COMPONENTES — Header (Sticky Navigation)
   ================================================================ */
.ehc-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    height: 5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    transition: all var(--transition-default);
    box-shadow: var(--shadow-header);
}


/* ================================================================
   8. COMPONENTES — Botones
   ================================================================ */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 900;
    font-size: 0.625rem; /* 10px */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft-md);
    transition: all var(--transition-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
}
.btn-primary:hover {
    background-color: var(--color-on-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-xl);
}
.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: var(--color-on-surface);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft-lg);
    transition: all var(--transition-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-soft-xl);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #f1f5f9;
    background: transparent;
    color: var(--color-on-surface);
    font-weight: 900;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 1rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft-sm);
    transition: all var(--transition-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn-outline:hover {
    background-color: #f8fafc;
    border-color: rgba(0, 78, 159, 0.2);
    color: var(--color-primary);
}


/* ================================================================
   9. COMPONENTES — Product Cards
   ================================================================ */
.product-card {
    background: #ffffff;
    border-radius: var(--radius-3xl);
    padding: 1rem;
    box-shadow: var(--shadow-soft-md);
    transition: all var(--transition-default);
}
.product-card:hover {
    box-shadow: var(--shadow-soft-xl);
    transform: translateY(-4px);
}

.product-card-image {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background-color: #f8fafc;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-very-slow);
}
.product-card:hover .product-card-image img {
    transform: scale(1.1);
}


/* ================================================================
   10. COMPONENTES — Inputs & Forms
   ================================================================ */
.ehc-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border: none;
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-on-surface);
    transition: all var(--transition-default);
    outline: none;
}
.ehc-input::placeholder {
    color: #cbd5e1;
}
.ehc-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 78, 159, 0.2);
}

.ehc-label {
    font-size: 0.625rem; /* 10px */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-on-surface-variant);
    margin-left: 0.25rem;
}


/* ================================================================
   11. COMPONENTES — Tables
   ================================================================ */
.ehc-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}
.ehc-table thead tr {
    background-color: rgba(242, 243, 252, 0.5);
}
.ehc-table th {
    padding: 1.25rem 1.5rem;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-on-surface-variant);
}
.ehc-table tbody tr {
    border-bottom: 1px solid #f8fafc;
    transition: background-color var(--transition-fast);
}
.ehc-table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.5);
}


/* ================================================================
   12. COMPONENTES — Cards / Contenedores
   ================================================================ */
.ehc-card {
    background: #ffffff;
    border-radius: 2.5rem;
    border: 1px solid #f8fafc;
    box-shadow: var(--shadow-soft-lg);
    overflow: hidden;
}

.ehc-card-primary {
    background: var(--color-primary);
    border-radius: 2.5rem;
    color: #ffffff;
    box-shadow: var(--shadow-soft-xl);
    position: relative;
    overflow: hidden;
}
/* Decorative glow for primary cards */
.ehc-card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    filter: blur(3rem);
    pointer-events: none;
}


/* ================================================================
   13. COMPONENTES — Badges / Chips
   ================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.5625rem; /* 9px */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.badge-primary {
    background-color: rgba(0, 78, 159, 0.1);
    color: var(--color-primary);
}
.badge-success {
    background-color: #f0fdf4;
    color: #15803d;
}
.badge-warning {
    background-color: #fffbeb;
    color: #b45309;
}
.badge-danger {
    background-color: #fef2f2;
    color: #b91c1c;
}
.badge-info {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.badge-neutral {
    background-color: #f1f5f9;
    color: #475569;
}


/* ================================================================
   14. COMPONENTES — Footer
   ================================================================ */
.ehc-footer {
    width: 100%;
    padding-top: 6rem;
    padding-bottom: 3rem;
    background-color: #020617; /* slate-950 */
    color: #ffffff;
    border-top: 1px solid #1e293b;
}
.ehc-footer h2,
.ehc-footer h3,
.ehc-footer h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary-fixed);
    margin-bottom: 2rem;
}
.ehc-footer a {
    transition: all var(--transition-default);
}
.ehc-footer a:hover {
    color: #ffffff;
    transform: translateX(0.25rem);
}


/* ================================================================
   15. COMPONENTES — Admin Sidebar
   ================================================================ */
.admin-sidebar {
    width: 18rem; /* 288px / w-72 */
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #f1f5f9;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft-lg);
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-2xl);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all var(--transition-default);
}
.admin-sidebar-link:hover {
    background-color: var(--color-surface-container-low);
    color: var(--color-primary);
}
.admin-sidebar-link.active {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-soft-md);
}


/* ================================================================
   16. COMPONENTES — Admin Topbar
   ================================================================ */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f8fafc;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ================================================================
   17. COMPONENTES — Hero Section
   ================================================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    width: 100%;
    display: flex;
    overflow: hidden;
    background-color: #020617;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft-2xl);
}


/* ================================================================
   18. COMPONENTES — Category Grid Cards
   ================================================================ */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft-lg);
    cursor: pointer;
    display: block;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-crawl);
}
.category-card:hover img {
    transform: scale(1.1);
}


/* ================================================================
   19. COMPONENTES — Alerts / Notificaciones
   ================================================================ */
.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}


/* ================================================================
   20. COMPONENTES — Shipping Banners
   ================================================================ */
.shipping-banner {
    padding: 1.5rem;
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft-sm);
}
.shipping-banner--free {
    background-color: rgba(0, 78, 159, 0.05);
    border: 1px solid rgba(0, 78, 159, 0.1);
}
.shipping-banner--paid {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
}


/* ================================================================
   21. COMPONENTES — Quantity Selector
   ================================================================ */
.qty-selector {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-2xl);
    padding: 0.25rem;
    box-shadow: var(--shadow-soft-sm);
}
.qty-selector button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
}
.qty-selector button:hover {
    color: var(--color-primary);
}
.qty-selector span,
.qty-selector input {
    width: 2rem;
    text-align: center;
    font-weight: 900;
    border: none;
    background: transparent;
}


/* ================================================================
   22. ANIMACIONES
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(215, 227, 255, 0.4); }
    50% { box-shadow: 0 0 15px 0 rgba(215, 227, 255, 0.8); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}
.animate-shake {
    animation: shake 0.3s ease;
}


/* ================================================================
   23. RESPONSIVE — Mobile First
   Mejores prácticas: overflow prevention, fluid typography,
   grid stacking, touch-friendly targets, reduced motion.
   ================================================================ */

/* ---- Global: los medios nunca superan su contenedor ---- */
img, video, svg, iframe {
    max-width: 100%;
    height: auto;
}

/* ---- Reduced motion preference ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================ MOBILE (max-width: 639px) ================ */
@media (max-width: 639px) {

    /* — Header: shorter on mobile — */
    header.fixed {
        height: 3.5rem;
    }

    /* — Typography: prevent text overflow — */
    h1, h2, h3 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* — Tables: ensure momentum scroll — */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    /* — Buttons: minimum touch target 44px — */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    /* — Quantity selector: bigger for touch — */
    .qty-selector button {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* — Category grid: override inline grid-column — */
    [style*="grid-column: span"] {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* — Product grid: force items full-width on very small screens — */
    .product-card {
        border-radius: 1.5rem;
    }

    /* — Admin sidebar: off-canvas — */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-default);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
}

/* ================ SMALL TABLET (max-width: 768px) ================ */
@media (max-width: 768px) {

    /* — Category grid: 2-col override — */
    [style*="grid-column: span"] {
        grid-column: span 1 !important;
    }
}

/* ================ MEDIUM / TABLET (max-width: 1024px) ================ */
@media (max-width: 1024px) {

    /* — Admin Sidebar: compact icons only — */
    .admin-sidebar {
        width: 4rem;
    }
    .admin-sidebar span:not(.material-symbols-outlined) {
        display: none;
    }
}


/* ================================================================
   24. UTILIDADES PERSONALIZADAS
   ================================================================ */

/* Tracking (letter-spacing) helpers */
.tracking-ehc-wide { letter-spacing: 0.2em; }
.tracking-ehc-wider { letter-spacing: 0.3em; }
.tracking-ehc-widest { letter-spacing: 0.4em; }

/* Truncate text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WhatsApp button icon (keeps fill color consistent) */
.wa-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}


/* ================================================================
   25. PRINT STYLES (Para recibos / PDF)
   ================================================================ */
@media print {
    body {
        background: #ffffff !important;
    }
    .ehc-header,
    .ehc-footer,
    .admin-sidebar,
    .admin-topbar {
        display: none !important;
    }
}
