/* =============================================================
   MODO CRUDA — style.css  ·  PLAYFUL STICKER
   Crema / Navy tinta / Mint / Coral. Bordes gruesos, sombras duras,
   stickers rotados, mascota protagonista.
   Drop-in: mismos nombres de clase y variables que la versión anterior.
   Tipografía: Lilita One (display) + Nunito (body).
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@500;600;700;800;900&display=swap');

/* ─────────────────────────────────────────────────────────────
   TOKENS
   ───────────────────────────────────────────────────────────── */
:root {
    /* Marca */
    --color-mint: #A8D5BA;
    --color-mint-light: #C5E8D3;
    --color-mint-dark: #7BB894;
    --color-navy: #1E3D59;
    --color-navy-light: #2A5580;
    --color-navy-dark: #142B40;
    --color-coral: #FF6B6B;
    --color-coral-light: #FF8A8A;
    --color-coral-dark: #E05555;

    /* Tinta y borde (todo el sistema dibuja con esto) */
    --ink: #142B40;
    --line: 3px solid var(--ink);
    --line-thin: 2px solid var(--ink);
    --hard-sm: 3px 3px 0 var(--ink);
    --hard: 4px 4px 0 var(--ink);
    --hard-lg: 6px 6px 0 var(--ink);
    --hard-coral: 6px 6px 0 var(--color-coral);
    --hard-mint: 4px 4px 0 var(--color-mint);

    /* Fondos (claros) */
    --color-bg: #FFF6E8;
    --color-bg-deep: #142B40;
    --color-bg-card: #FFFFFF;
    --color-bg-elevated: #FFF6E8;
    --color-bg-secondary: #F6EBD8;

    /* Texto */
    --color-text: #142B40;
    --color-text-secondary: #3D4F61;
    --color-text-muted: #6B7B8D;

    /* Bordes */
    --color-border: #142B40;
    --color-border-hover: #142B40;

    /* Feedback */
    --color-success: #2E8B57;
    --color-error: #E05555;
    --color-warning: #E0A800;
    --color-info: #2A5580;

    /* Tipografía */
    --font-display: 'Lilita One', 'Arial Black', sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 72px;

    /* Spacing */
    --space-xs: 4px;  --space-sm: 8px;  --space-md: 12px;
    --space-lg: 16px; --space-xl: 24px; --space-2xl: 32px;
    --space-3xl: 48px; --space-4xl: 64px;

    /* Radius */
    --radius-sm: 10px;  --radius-md: 14px;  --radius-lg: 22px;
    --radius-xl: 28px;  --radius-2xl: 32px; --radius-full: 9999px;

    /* Glass (ya no se usa cristal: sólido) */
    --glass-bg: #FFFFFF;
    --glass-border: var(--ink);
    --glass-blur: 0px;

    /* Sombras (duras) */
    --shadow-sm: var(--hard-sm);
    --shadow-md: var(--hard);
    --shadow-lg: var(--hard-lg);
    --glow-mint: var(--hard);
    --glow-coral: var(--hard);

    /* Gradientes → sólidos */
    --grad-mint: var(--color-mint);
    --grad-navy: var(--color-navy-dark);
    --grad-page: var(--color-bg);

    --transition-base: 0.15s ease;
    --transition-slow: 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ─────────────────────────────────────────────────────────────
   RESET
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--color-coral); color: #fff; }
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

/* ─────────────────────────────────────────────────────────────
   TIPOGRAFÍA
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6, .heading-display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: none;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a { color: var(--ink); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-coral); }

.text-gradient { color: var(--color-coral); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.text-muted { color: var(--color-text-muted); }

/* Palabra destacada — coral con contorno navy */
.mc-mark {
    color: var(--color-coral);
    -webkit-text-stroke: 0.045em var(--ink);
    paint-order: stroke fill;
    padding: 0 0.04em;
    background: none;
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.1em;
    background: #fff; border: var(--line); border-radius: 10px;
    padding: 4px 10px; transform: rotate(-2deg);
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.main-content { min-height: calc(100vh - var(--header-height) - 200px); padding-bottom: var(--space-3xl); animation: pageIn 0.35s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────── */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-height);
    background: var(--color-bg) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border-bottom: var(--line);
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
}
.header-flex { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo {
    display: flex; align-items: center; gap: var(--space-sm);
    background: #fff; border: var(--line); border-radius: var(--radius-full);
    padding: 5px 16px 5px 8px; box-shadow: var(--hard-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}
.logo:hover { transform: translate(-1px,-1px); box-shadow: var(--hard); }
.logo img { height: 30px; width: auto; }
.logo-text {
    font-family: var(--font-display); font-weight: 400; font-size: 1.25rem;
    color: var(--ink); text-transform: none; letter-spacing: 0;
}
.header-nav { display: flex; align-items: center; gap: var(--space-xs); }
.nav-link {
    color: var(--ink); font-size: 0.9375rem; font-weight: 800;
    padding: 9px 14px; border-radius: var(--radius-full);
    transition: background var(--transition-base), color var(--transition-base);
    border-bottom: none;
}
.nav-link:hover { background: #fff; color: var(--ink); }
.nav-link.active { background: var(--color-mint); border: var(--line-thin); color: var(--ink); }
.nav-link--logout { color: var(--color-text-muted); }
.nav-link--logout:hover { color: var(--color-coral); background: transparent; }

.menu-toggle { display: none; background: #fff; border: var(--line); border-radius: 12px; cursor: pointer; padding: 8px; box-shadow: var(--hard-sm); }
.menu-toggle span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: var(--transition-base); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .header-nav {
        display: none; position: fixed; inset: var(--header-height) 0 0 0;
        background: var(--color-mint); flex-direction: column;
        align-items: center; justify-content: center; gap: var(--space-lg);
        border-top: var(--line);
    }
    .header-nav.open { display: flex; }
    .nav-link { font-size: 1.35rem; background: #fff; border: var(--line); box-shadow: var(--hard); padding: 12px 28px; }
}

/* ─────────────────────────────────────────────────────────────
   BOTONES — píldoras con borde y sombra dura
   ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 13px 24px;
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 800;
    border: var(--line); border-radius: var(--radius-full); cursor: pointer;
    box-shadow: var(--hard);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    text-decoration: none; line-height: 1.3; white-space: nowrap;
    color: var(--ink); background: #fff;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary { background: var(--color-coral); color: #fff; }
.btn--primary:hover { background: var(--color-coral-light); color: #fff; }

.btn--secondary { background: #fff; color: var(--ink); }
.btn--secondary:hover { background: var(--color-bg-secondary); color: var(--ink); }

.btn--coral { background: var(--color-coral); color: #fff; }
.btn--coral:hover { background: var(--color-coral-light); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: var(--ink); }
.btn--ghost:hover { background: #fff; box-shadow: var(--hard-sm); transform: translate(-1px,-1px); }

.btn--sm { padding: 8px 16px; font-size: 0.8125rem; border-width: 2px; box-shadow: var(--hard-sm); }
.btn--sm:hover { box-shadow: var(--hard); }
.btn--lg { padding: 16px 30px; font-size: 1.0625rem; box-shadow: 5px 5px 0 var(--ink); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; }

/* Botón navy (útil en inline) */
.btn--navy { background: var(--ink); color: #fff; }
.btn--navy:hover { background: var(--color-navy); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────── */
.card {
    background: var(--color-bg-card);
    border: var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--hard);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { border-color: var(--ink); }
.card--glass { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
a.card, .card--interactive { cursor: pointer; }
a.card:hover, .card--interactive:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-lg); }
.card--mint { background: var(--color-mint); }
.card--coral { background: var(--color-coral); color: #fff; }
.card--navy { background: var(--ink); color: #fff; box-shadow: var(--hard-mint); }

/* ─────────────────────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-xl); }
.form-label { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px;
    background: var(--color-bg);
    border: var(--line);
    border-radius: var(--radius-md);
    color: var(--ink); font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    transition: box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; background: #fff;
    box-shadow: var(--hard-sm);
    transform: translate(-1px, -1px);
}
.form-input::placeholder { color: #8A97A6; font-weight: 600; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.75rem; color: var(--color-text-muted); margin-top: var(--space-xs); font-weight: 700; }
.form-error { color: var(--color-error); font-size: 0.8125rem; margin-top: var(--space-xs); font-weight: 800; }

.field-icon { position: relative; }
.field-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink); pointer-events: none; }
.field-icon .form-input { padding-left: 42px; }

/* ─────────────────────────────────────────────────────────────
   FLASH / TOAST / BANNERS
   ───────────────────────────────────────────────────────────── */
.flash { padding: var(--space-md) 0; font-size: 0.875rem; font-weight: 800; animation: flash-in 0.3s ease; border-bottom: var(--line); }
.flash--success { background: var(--color-mint); color: var(--ink); }
.flash--error   { background: var(--color-coral); color: #fff; }
.flash--info    { background: #fff; color: var(--ink); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.toast {
    position: fixed; top: calc(var(--header-height) + var(--space-lg)); right: var(--space-lg); z-index: 300;
    max-width: 360px; padding: 12px 18px; border-radius: var(--radius-lg);
    font-size: 0.875rem; font-weight: 800; border: var(--line); box-shadow: var(--hard);
    display: flex; align-items: center; gap: var(--space-md);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 4.7s forwards;
}
.toast--success { background: var(--color-mint); color: var(--ink); }
.toast--error   { background: var(--color-coral); color: #fff; }
.toast--info    { background: #fff; color: var(--ink); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(100px) rotate(2deg); } to { opacity: 1; transform: translateX(0) rotate(-1deg); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-20px); } }
@media (max-width: 640px) { .toast { left: var(--space-lg); right: var(--space-lg); max-width: none; } }

.cookie-banner {
    position: fixed; bottom: 84px; left: 0; right: 0; z-index: 180;
    background: #fff;
    border-top: var(--line); padding: var(--space-md) 0;
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.cookie-inner p { font-size: 0.8125rem; color: var(--color-text-secondary); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────
   FOOTER — bloque navy
   ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #fff; border-top: var(--line); margin-top: var(--space-4xl); }
.footer__top { display: flex; justify-content: space-between; gap: var(--space-2xl); flex-wrap: wrap; padding: var(--space-3xl) 0 var(--space-2xl); }
.footer__brand { max-width: 300px; }
.footer__brand .logo, .footer__logo { display: inline-flex; margin-bottom: var(--space-md); background: #fff; border: var(--line); border-radius: var(--radius-full); padding: 6px 14px; box-shadow: 3px 3px 0 var(--color-mint); }
.footer__tagline { color: var(--color-mint); font-size: 0.9rem; line-height: 1.5; font-weight: 700; }
.footer__links { display: flex; gap: var(--space-4xl); flex-wrap: wrap; }
.footer__links-group h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-mint); margin-bottom: var(--space-md); font-family: var(--font-body); font-weight: 900; }
.footer__links-group a { display: block; color: #fff; font-size: 0.9rem; font-weight: 700; padding: var(--space-xs) 0; }
.footer__links-group a:hover { color: var(--color-coral); }
.footer__bottom { border-top: 2px dashed rgba(168, 213, 186, 0.35); padding: var(--space-lg) 0; }
.footer__bottom p { font-size: 0.75rem; color: #9FB0C2; font-weight: 700; }

/* ─────────────────────────────────────────────────────────────
   HERO (Landing)
   ───────────────────────────────────────────────────────────── */
.hero { padding: var(--space-3xl) 0 var(--space-xl); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-3xl); align-items: center; }
.hero__badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 7px 14px; border-radius: 12px;
    background: var(--color-mint); border: var(--line); box-shadow: var(--hard-sm);
    font-size: 0.85rem; font-weight: 800; color: var(--ink);
    margin-bottom: var(--space-xl); transform: rotate(-2deg); white-space: nowrap;
}
.hero__badge svg { color: var(--ink); }
.hero__title { font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.92; margin-bottom: var(--space-xl); }
.hero__title .dim { color: var(--color-text-secondary); }
.hero__subtitle { font-size: 1.2rem; color: var(--ink); font-weight: 600; line-height: 1.45; max-width: 500px; margin-bottom: var(--space-2xl); }
.hero__cta { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.hero__fineprint { margin-top: var(--space-xl); font-size: 0.875rem; font-weight: 700; color: var(--color-text-muted); }
.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); padding: var(--space-xl) 0; }
.hero__art::before {
    content: ''; position: absolute; inset: 0 8% 18% 10%;
    background: var(--color-mint); border: var(--line);
    border-radius: 70px 70px 70px 24px; transform: rotate(-4deg);
    box-shadow: 8px 8px 0 var(--ink); z-index: 0;
}

@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .hero__art { margin-top: var(--space-lg); }
    .hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
}

/* ─────────────────────────────────────────────────────────────
   MASCOTA VIVA
   ───────────────────────────────────────────────────────────── */
.mascot { position: relative; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.mascot__glow { position: absolute; inset: 12%; border-radius: 50%; background: #fff; border: var(--line); animation: mc-bob 5s ease-in-out infinite; }
.mascot__img { position: relative; object-fit: contain; filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff); animation: mc-dizzy 4s ease-in-out infinite; transform-origin: 50% 82%; }
.mascot__zap { position: absolute; color: var(--color-coral); filter: drop-shadow(1.5px 1.5px 0 var(--ink)); animation: mc-zap 2.4s infinite; z-index: 2; }
.mascot__zap--r { animation-delay: 0.5s; }
.mascot__drip { position: absolute; color: var(--color-info); animation: mc-drip 3.5s ease-in infinite 1.1s; z-index: 2; }

@keyframes mc-bob   { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes mc-dizzy { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes mc-zap   { 0%,88%,100% { opacity: 1; transform: scale(1); } 94% { opacity: 0.3; transform: scale(0.82); } }
@keyframes mc-drip  { 0% { transform: translateY(0) scale(0.5); opacity: 0; } 15% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateY(28px) scale(1); opacity: 0; } }
@keyframes mc-bolt  { 0%,88%,100% { opacity: 1; } 92% { opacity: 0.25; } 96% { opacity: 1; } }

/* ─────────────────────────────────────────────────────────────
   MEDIDOR DE CRUDA — sticker
   ───────────────────────────────────────────────────────────── */
.meter { position: relative; z-index: 1; width: 260px; max-width: 100%; padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-lg); background: #fff; border: var(--line); box-shadow: var(--hard); transform: rotate(3deg); }
.meter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.meter__label { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.meter__value { font-family: var(--font-display); font-size: 1rem; }
.meter__gauge { position: relative; height: 80px; overflow: hidden; }
.meter__arc { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 180px; height: 90px; border-radius: 90px 90px 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--color-mint) 0deg, #FFD93D 90deg, var(--color-coral) 180deg); border: var(--line); border-bottom: none; }
.meter__mask { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 120px; height: 60px; border-radius: 60px 60px 0 0; background: #fff; border: var(--line); border-bottom: none; }
.meter__needle { position: absolute; left: 50%; bottom: 2px; width: 5px; height: 72px; background: var(--ink); border-radius: 3px; transform-origin: bottom center; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.meter__hub { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--color-coral); border: var(--line); }
.meter__scale { display: flex; justify-content: space-between; font-size: 0.65rem; font-weight: 800; color: var(--color-text-muted); margin-top: 6px; }

/* ─────────────────────────────────────────────────────────────
   MARQUEE — banda navy
   ───────────────────────────────────────────────────────────── */
.marquee { margin: var(--space-3xl) 0; padding: var(--space-md) 0; background: var(--ink); border-top: var(--line); border-bottom: var(--line); overflow: hidden; transform: rotate(-1.2deg); }
.marquee__track { display: flex; align-items: center; white-space: nowrap; animation: mc-marquee 22s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--color-mint); padding-right: 14px; }
.marquee__track svg { width: 20px; height: 20px; color: var(--color-coral); }
@keyframes mc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────────────────────────── */
.section { padding: var(--space-3xl) 0; }
.section__header { margin-bottom: var(--space-2xl); }
.section__header--center { text-align: center; }
.section__label { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: 0.72rem; font-weight: 900; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-md); background: #fff; border: var(--line); border-radius: 10px; padding: 5px 12px; transform: rotate(-2deg); }
.section__header--center .section__label { transform: rotate(2deg); }
.section__title { font-size: clamp(2rem, 4.2vw, 3.25rem); }

/* ─────────────────────────────────────────────────────────────
   BENTO (features)
   ───────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 1fr; gap: var(--space-xl); }
.bento__cell { position: relative; overflow: hidden; padding: var(--space-xl); border-radius: var(--radius-xl); background: #fff; border: var(--line) !important; box-shadow: var(--hard-lg); transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.bento__cell:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.bento__cell--big { grid-row: span 2; background: var(--color-mint); }
.bento__cell--big::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; background: url('/assets/img/mascot-hero.png') center / contain no-repeat; transform: rotate(-10deg); pointer-events: none; }
.bento__cell--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--space-xl); background: var(--ink); color: #fff; box-shadow: var(--hard-coral); min-height: 0; }
.bento__cell--wide p { color: #D8E6F0; }
.bento__icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); border: var(--line); background: #fff !important; color: var(--ink) !important; flex-shrink: 0; }
.bento__cell--wide .bento__icon { background: var(--color-mint) !important; border-color: #fff; margin-bottom: 0; }
.bento__icon svg { width: 28px; height: 28px; }
.bento__cell h3 { margin-bottom: var(--space-sm); font-size: 1.75rem; position: relative; z-index: 1; }
.bento__cell--big h3 { font-size: 2.25rem; }
.bento__cell p { color: var(--color-text-secondary); font-size: 0.95rem; font-weight: 600; line-height: 1.5; position: relative; z-index: 1; max-width: 360px; }
@media (max-width: 760px) {
    .bento { grid-template-columns: 1fr; }
    .bento__cell--big { grid-row: auto; }
    .bento__cell--wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
}

/* Compat: features-grid original */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-xl); }
.feature-card { padding: var(--space-2xl); background: #fff; border: var(--line); border-radius: var(--radius-xl); box-shadow: var(--hard); }
.feature-card__icon { width: 52px; height: 52px; background: var(--color-mint); border: var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg); color: var(--ink); }
.feature-card__title { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.feature-card__desc { color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.5; }

/* ─────────────────────────────────────────────────────────────
   STEPS (manual de supervivencia)
   ───────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }
.step-card { position: relative; padding: var(--space-xl); border-radius: var(--radius-lg); background: #fff; border: var(--line); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; transition: transform 0.15s; }
.step-card:nth-child(odd)  { transform: rotate(-1.5deg); }
.step-card:nth-child(even) { transform: rotate(1.5deg); }
.step-card:hover { transform: rotate(0) translate(-2px,-2px); }
.step-card__ghost { position: static; display: block; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--color-mint); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; margin-bottom: var(--space-md); }
.step-card:nth-child(even) .step-card__ghost { color: var(--color-coral); }
.step-card__icon { display: none; }
.step-card h3 { position: relative; font-family: var(--font-body); font-size: 1.1rem; font-weight: 800; line-height: 1.3; margin-bottom: var(--space-xs); }
.step-card p { position: relative; font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .steps-grid { grid-template-columns: 1fr; } }

/* Compat: steps original */
.steps { display: flex; flex-direction: column; gap: var(--space-2xl); max-width: 600px; margin: 0 auto; }
.step { display: flex; gap: var(--space-xl); align-items: flex-start; }
.step__number { flex-shrink: 0; width: 46px; height: 46px; background: var(--color-mint); color: var(--ink); border: var(--line); box-shadow: var(--hard-sm); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.25rem; }
.step__title { font-weight: 800; margin-bottom: var(--space-xs); }
.step__desc { color: var(--color-text-secondary); font-size: 0.9375rem; }

/* ─────────────────────────────────────────────────────────────
   FESTIVAL FEATURED CARD — coral
   ───────────────────────────────────────────────────────────── */
.fest-card { position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--color-coral); border: var(--line); box-shadow: 8px 8px 0 var(--ink); padding: var(--space-3xl); display: grid; grid-template-columns: 1fr 320px; gap: var(--space-2xl); align-items: center; color: #fff; }
.fest-card::before { display: none; }
.fest-card__body { position: relative; }
.fest-card__body .badge { background: #fff !important; color: var(--ink) !important; border: var(--line-thin); padding: 5px 12px; font-size: 0.75rem; }
.fest-card__title { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 0.95; margin-bottom: var(--space-sm); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.fest-card__meta { font-size: 1.1rem; font-weight: 800; color: #fff; }
.fest-card__date { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: #fff; opacity: 0.92; margin: var(--space-xs) 0 var(--space-xl); }
.fest-card .btn--coral { background: var(--ink); color: #fff; box-shadow: 5px 5px 0 #fff; }
.fest-card .btn--coral:hover { background: var(--color-navy); }
.fest-card__aside { position: relative; text-align: center; background: var(--color-mint); border: var(--line); border-radius: var(--radius-xl); padding: var(--space-xl); color: var(--ink); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); }
.fest-card__aside::before { content: ''; width: 150px; height: 150px; background: url('/assets/img/mascot-hero.png') center / contain no-repeat; transform: rotate(6deg); }
.fest-card__aside > div:first-child { display: none !important; }
.fest-card__num { font-family: var(--font-display); font-size: 4rem; line-height: 0.9; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
@media (max-width: 760px) { .fest-card { grid-template-columns: 1fr; text-align: center; padding: var(--space-2xl) var(--space-xl); } .fest-card__aside { display: none; } }

/* ─────────────────────────────────────────────────────────────
   TESTIMONIOS ("partes médicos")
   ───────────────────────────────────────────────────────────── */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.quote-card { padding: var(--space-xl); border-radius: var(--radius-lg); background: #fff; border: var(--line); box-shadow: 5px 5px 0 var(--ink); }
.quote-card:nth-child(1) { transform: rotate(-1deg); }
.quote-card:nth-child(2) { transform: rotate(1deg); }
.quote-card:nth-child(3) { transform: rotate(-1.5deg); }
.quote-card__stars { display: flex; gap: 3px; margin-bottom: var(--space-lg); color: var(--color-coral); }
.quote-card__stars svg { width: 16px; height: 16px; }
.quote-card__text { font-size: 1.05rem; line-height: 1.45; font-weight: 700; margin-bottom: var(--space-lg); }
.quote-card__author { display: flex; align-items: center; gap: var(--space-md); }
.quote-card__author .avatar { border-radius: 50%; border: var(--line); }
@media (max-width: 760px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────
   FAQ — tarjetas
   ───────────────────────────────────────────────────────────── */
.faq__item { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-xs) var(--space-lg); padding: var(--space-lg) var(--space-xl); margin-bottom: var(--space-md); border: var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform 0.15s, box-shadow 0.15s; }
.faq__item:hover { transform: translate(-2px,-2px); box-shadow: var(--hard); }
.faq__mark { color: var(--color-coral); margin-top: 2px; filter: drop-shadow(1.5px 1.5px 0 var(--ink)); }
.faq__mark svg { width: 22px; height: 26px; }
.faq__q { font-family: var(--font-body); font-weight: 900; font-size: clamp(1.05rem, 2vw, 1.2rem); align-self: center; }
.faq__a { grid-column: 2; font-size: 0.95rem; line-height: 1.55; color: var(--color-text-secondary); max-width: 640px; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   AUTH — puerta del festival (fondo mint)
   ───────────────────────────────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - var(--header-height) - 120px); padding: var(--space-3xl) var(--space-lg); position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 440px; position: relative; }
.auth-card__title { text-align: center; margin-bottom: var(--space-sm); font-size: 2.4rem; text-transform: none; }
.auth-card__footer { text-align: center; margin-top: var(--space-xl); color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
.auth-card__footer a { text-decoration: underline; font-weight: 900; }

.gate { position: relative; border-radius: var(--radius-2xl); overflow: visible; background: #fff; border: var(--line); box-shadow: var(--hard-lg); }
.gate__portal { position: relative; padding: 34px 28px 26px; text-align: center; background: var(--color-mint); border-radius: calc(var(--radius-2xl) - 3px) calc(var(--radius-2xl) - 3px) 0 0; }
.gate__eyebrow { display: inline-block; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: #fff; background: var(--color-coral); border: var(--line); border-radius: var(--radius-full); padding: 6px 14px; margin-bottom: var(--space-xl); transform: rotate(-3deg); box-shadow: var(--hard-sm); }
.gate__ring { position: relative; width: 160px; height: 160px; margin: 0 auto var(--space-xl); }
.gate__ring span.pulse { position: absolute; inset: -14px; border-radius: 50%; border: 3px dashed var(--ink); animation: mc-ring 3s ease-out infinite; }
.gate__ring span.pulse.d { animation-delay: 1.5s; }
.gate__ring-face { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); padding: 3px; box-shadow: var(--hard); }
.gate__ring-face > div { width: 100%; height: 100%; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
@keyframes mc-ring { 0% { transform: scale(0.94) rotate(0deg); opacity: 0.9; } 100% { transform: scale(1.12) rotate(20deg); opacity: 0; } }
.gate__divider { display: flex; align-items: center; gap: var(--space-md); color: var(--color-text-muted); font-size: 0.8rem; font-weight: 800; margin: var(--space-md) 0 var(--space-lg); }
.gate__divider::before, .gate__divider::after { content: ''; flex: 1; height: 2px; background: var(--ink); opacity: 0.15; }
.gate__body { padding: var(--space-xl) 28px 28px; }
.gate .flash { border-radius: 14px !important; border: var(--line); }

/* Perforación de ticket */
.tear { position: relative; height: 26px; background: #fff; }
.gate .tear, .pass .tear { border-top: var(--line); border-bottom: none; background: #fff; }
.tear::before, .tear::after { content: ''; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg); border: var(--line); }
.tear::before { left: -16px; } .tear::after { right: -16px; }
.tear__line { position: absolute; top: 50%; left: 24px; right: 24px; border-top: 3px dashed var(--ink); opacity: 0.6; }
.gate .tear::before, .gate .tear::after { background: var(--color-bg); }

/* ─────────────────────────────────────────────────────────────
   BOARDING PASS / ENTRADA
   ───────────────────────────────────────────────────────────── */
.pass { position: relative; border-radius: var(--radius-xl); overflow: visible; background: #fff; border: var(--line); box-shadow: var(--hard-coral); }
.pass__head { position: relative; padding: var(--space-xl) var(--space-lg) var(--space-lg); text-align: center; background: var(--color-mint); border-radius: calc(var(--radius-xl) - 3px) calc(var(--radius-xl) - 3px) 0 0; border-bottom: var(--line); overflow: visible; }
.pass__head img { width: 40px; height: 40px; object-fit: contain; margin-bottom: var(--space-sm); position: relative; }
.pass__head p { color: var(--ink) !important; font-weight: 700; }
.pass__title { position: relative; color: var(--ink); font-size: 2rem !important; }
.pass__head .badge { border: var(--line-thin); font-size: 0.75rem !important; padding: 5px 14px !important; }
.pass__qr { text-align: center; padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.pass__qr-inner { display: inline-block; background: #fff; padding: 12px; border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--hard); }
.pass__qr > div:first-child[style*="border-radius:50%"] { border-radius: 24px !important; background: var(--color-bg) !important; border: var(--line) !important; box-shadow: var(--hard); }
.pass__qr p[style*="color:var(--color-mint)"] { color: var(--color-success) !important; font-family: var(--font-display); font-weight: 400 !important; font-size: 1.1rem !important; }
.pass__details { padding: var(--space-lg) var(--space-lg) var(--space-xl); }
.pass__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
.pass__k { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); font-weight: 900; margin-bottom: 3px; }
.pass__v { font-family: var(--font-body); font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.pass .tear::before, .pass .tear::after { background: var(--color-bg); }

/* Boarding pass hero (dashboard) */
.pass-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--color-mint); box-shadow: var(--hard-lg); border: var(--line); color: var(--ink); }
.pass-hero::after { content: ''; position: absolute; right: -12px; bottom: -16px; width: 110px; height: 110px; background: url('/assets/img/mascot-hero.png') center / contain no-repeat; transform: rotate(8deg); pointer-events: none; }
.pass-hero h1, .pass-hero h2, .pass-hero h3 { color: var(--ink); }
.pass-hero .badge { background: #fff !important; color: var(--ink) !important; border: var(--line-thin); }

/* ─────────────────────────────────────────────────────────────
   PRODUCTOS (tienda)
   ───────────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-lg); }
.product-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: var(--line); box-shadow: var(--hard); transition: transform 0.15s, box-shadow 0.15s; }
.product-card:hover { transform: translate(-2px,-2px); box-shadow: var(--hard-lg); }
.product-card__media { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: var(--ink); border-bottom: var(--line); background: var(--color-mint); }
.product-card__media svg { width: 56px; height: 56px; filter: drop-shadow(2px 2px 0 #fff); }
.product-card__tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--color-coral); color: #fff; border: var(--line-thin); font-size: 0.65rem; font-weight: 900; transform: rotate(-4deg); }
.product-card__body { padding: var(--space-md); }
.product-card__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; margin-bottom: 4px; }
.product-card__desc { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 700; margin-bottom: var(--space-md); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.product-card__add { width: 36px; height: 36px; border-radius: 50%; background: var(--color-coral); display: flex; align-items: center; justify-content: center; color: #fff; border: var(--line-thin); box-shadow: var(--hard-sm); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.product-card__add:hover { transform: translate(-1px,-1px); box-shadow: var(--hard); }

/* Filtros (chips) */
.chips { display: flex; gap: var(--space-sm); overflow-x: auto; padding: 4px 0 var(--space-sm); }
.chip { flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 800; white-space: nowrap; background: #fff; color: var(--ink); border: var(--line-thin); cursor: pointer; transition: all 0.15s; }
.chip:hover { box-shadow: var(--hard-sm); transform: translate(-1px,-1px); }
.chip.active { background: var(--color-coral); color: #fff; border-color: var(--ink); box-shadow: var(--hard-sm); }

/* Stepper cantidad */
.stepper { display: flex; align-items: center; gap: var(--space-sm); background: #fff; border: var(--line-thin); border-radius: var(--radius-full); padding: 3px 5px; }
.stepper button { width: 26px; height: 26px; border-radius: 50%; background: var(--color-mint); color: var(--ink); border: var(--line-thin); cursor: pointer; font-size: 1rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.stepper span { min-width: 18px; text-align: center; font-weight: 900; font-size: 0.9rem; }

/* Resumen de pedido */
.summary { padding: var(--space-lg); border-radius: var(--radius-lg); background: #fff; border: var(--line); box-shadow: var(--hard); }
.summary__row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-text-secondary); font-weight: 700; margin-bottom: var(--space-sm); }
.summary__row--discount { color: var(--color-success); }
.summary__total { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-md); border-top: 3px dashed var(--ink); }
.summary__total b { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   MATCHING
   ───────────────────────────────────────────────────────────── */
.match-stack { position: relative; }
.match-card { position: relative; border-radius: var(--radius-2xl); overflow: hidden; background: var(--color-mint); border: var(--line); box-shadow: var(--hard-lg); }
.match-card__scrim { position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(transparent, rgba(20, 43, 64, 0.92)); }
.match-card__body { position: absolute; inset: auto 0 0 0; padding: var(--space-lg); color: #fff; }
.match-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-xl); }
.match-btn { border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: var(--line); background: #fff; box-shadow: var(--hard); transition: transform 0.15s, box-shadow 0.15s; }
.match-btn:hover { transform: translate(-2px,-2px); box-shadow: var(--hard-lg); }
.match-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.match-btn--nope { width: 58px; height: 58px; color: var(--ink); }
.match-btn--like { width: 70px; height: 70px; background: var(--color-coral); color: #fff; }
.match-btn--super { width: 58px; height: 58px; background: var(--color-mint); color: var(--ink); }

.match-row { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); border-radius: var(--radius-lg); background: #fff; border: var(--line); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.match-row:hover { transform: translate(-2px,-2px); box-shadow: var(--hard); }

/* ─────────────────────────────────────────────────────────────
   CHAT
   ───────────────────────────────────────────────────────────── */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat__head { flex-shrink: 0; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: #fff; border-bottom: var(--line); }
.chat__msgs { flex: 1; overflow-y: auto; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.bubble { max-width: 78%; padding: 10px 14px; font-size: 0.9rem; line-height: 1.4; font-weight: 700; border: var(--line-thin); }
.bubble--me { align-self: flex-end; border-radius: 18px 18px 5px 18px; background: var(--color-coral); color: #fff; box-shadow: var(--hard-sm); }
.bubble--them { align-self: flex-start; border-radius: 18px 18px 18px 5px; background: #fff; color: var(--ink); box-shadow: var(--hard-sm); }
.bubble__time { font-size: 0.625rem; color: var(--color-text-muted); font-weight: 800; margin-top: 3px; padding: 0 5px; }
.chat__input { flex-shrink: 0; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-top: var(--line); background: var(--color-bg); }
.chat__send { width: 46px; height: 46px; border-radius: 50%; background: var(--color-coral); display: flex; align-items: center; justify-content: center; color: #fff; border: var(--line); box-shadow: var(--hard-sm); cursor: pointer; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   FACE ID / SCANNER
   ───────────────────────────────────────────────────────────── */
.scanner { position: relative; width: 250px; height: 250px; margin: var(--space-sm) auto var(--space-xl); }
.scanner__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); padding: 4px; box-shadow: var(--hard); }
.scanner__inner { width: 100%; height: 100%; border-radius: 50%; background: var(--color-bg); padding: 6px; }
.scanner__face { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--color-mint); display: flex; align-items: flex-end; justify-content: center; }
.scanner__line { position: absolute; left: 8%; right: 8%; height: 4px; border-radius: 2px; background: var(--color-coral); border: 1px solid var(--ink); animation: mc-scan 2.2s ease-in-out infinite; }
@keyframes mc-scan { 0% { transform: translateY(-46px); } 100% { transform: translateY(180px); } }

/* ─────────────────────────────────────────────────────────────
   LEGAL — "EL PAPELEO"
   ───────────────────────────────────────────────────────────── */
.legal { display: grid; grid-template-columns: 270px 1fr; gap: var(--space-4xl); align-items: start; padding: var(--space-3xl) 0 var(--space-4xl); }
.legal__index { position: sticky; top: calc(var(--header-height) + var(--space-md)); }
.legal__index h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: var(--space-sm) 0; }
.legal__nav { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-lg); }
.legal__nav a { display: flex; align-items: baseline; gap: var(--space-md); padding: 10px 14px; border: var(--line-thin); border-radius: 14px; background: #fff; color: var(--color-text-muted); transition: transform 0.15s, box-shadow 0.15s, color 0.2s; }
.legal__nav a .n { font-family: var(--font-display); font-size: 0.85rem; color: var(--color-coral); }
.legal__nav a .t { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; }
.legal__nav a:hover { transform: translate(-1px,-1px); box-shadow: var(--hard-sm); color: var(--ink); }
.legal__nav a.active { background: var(--color-mint); color: var(--ink); box-shadow: var(--hard-sm); }
.legal__stamp { margin-top: var(--space-2xl); display: inline-block; transform: rotate(-7deg); padding: var(--space-md) var(--space-lg); border: 3px dashed var(--color-coral); border-radius: var(--radius-md); color: var(--color-coral); }
.legal__stamp b { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; line-height: 1.05; }
.legal__stamp span { font-size: 0.625rem; letter-spacing: 0.2em; font-weight: 900; }
.legal__doc h1 { margin-bottom: var(--space-xl); }
.legal__lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink); font-weight: 700; background: var(--color-mint); border: var(--line); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-xl); box-shadow: var(--hard); margin-bottom: var(--space-3xl); max-width: 640px; }
.legal__section { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-sm); padding: var(--space-xl) 0; border-top: 3px dashed rgba(20, 43, 64, 0.25); }
.legal__section .num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--color-mint); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.legal__section h2 { font-family: var(--font-body); font-weight: 900; font-size: 1.25rem; margin-bottom: var(--space-sm); }
.legal__section p { font-size: 1rem; line-height: 1.65; color: var(--color-text-secondary); max-width: 620px; }
@media (max-width: 860px) {
    .legal { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .legal__index { position: static; }
}

/* ─────────────────────────────────────────────────────────────
   TAB BAR (app) — píldora blanca con borde
   ───────────────────────────────────────────────────────────── */
.tab-bar { position: fixed; inset: auto 0 0 0; z-index: 90; padding: var(--space-sm) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--color-bg) 60%); }
.tab-bar__pill { display: flex; align-items: center; justify-content: space-around; padding: 6px; border-radius: var(--radius-full); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border: var(--line); box-shadow: var(--hard); max-width: 460px; margin: 0 auto; }
.tab-bar__item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: var(--radius-full); color: var(--ink); font-size: 0.62rem; font-weight: 800; text-decoration: none; transition: background 0.2s, color 0.2s; }
.tab-bar__item svg, .tab-bar__item img { width: 22px; height: 22px; }
.tab-bar__item.active { background: var(--color-coral); color: #fff; border: var(--line-thin); padding: 5px 0; }
.tab-bar__item.active::after { display: none; }
.tab-bar__item.active img { filter: brightness(0) invert(1); }
.has-tab-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ─────────────────────────────────────────────────────────────
   BADGES / KPI / TABLES / AVATAR / MISC
   ───────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; border: var(--line-thin); }
.badge svg { width: 1em; height: 1em; }
.badge--mint    { background: var(--color-mint); color: var(--ink); }
.badge--coral   { background: var(--color-coral); color: #fff; }
.badge--navy    { background: var(--ink); color: #fff; }
.badge--warning { background: #FFD93D; color: var(--ink); }
.badge--muted   { background: #fff; color: var(--color-text-muted); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.kpi-card { padding: var(--space-xl); }
.kpi-card__label { font-size: 0.7rem; color: var(--color-text-muted); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-sm); }
.kpi-card__value { font-family: var(--font-display); font-size: 2.25rem; color: var(--ink); }
.kpi-card__change { font-size: 0.75rem; font-weight: 800; color: var(--color-success); margin-top: var(--space-xs); }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; background: #fff; border: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.data-table th { text-align: left; padding: var(--space-md) var(--space-lg); background: var(--color-mint); color: var(--ink); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: var(--line); }
.data-table td { padding: var(--space-md) var(--space-lg); border-bottom: 2px solid rgba(20, 43, 64, 0.12); color: var(--ink); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-bg); }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-mint); color: var(--ink); border: var(--line-thin); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 64px; height: 64px; border: var(--line); font-size: 1.6rem; }
.avatar--xl { width: 96px; height: 96px; border: var(--line); box-shadow: var(--hard); font-size: 2.2rem; }

.status-dot { width: 10px; height: 10px; border-radius: var(--radius-full); display: inline-block; border: 2px solid var(--ink); }
.status-dot--online  { background: var(--color-mint); }
.status-dot--offline { background: #fff; }

.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--color-coral); color: #fff; font-size: 0.65rem; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--ink); }

.empty-state { text-align: center; padding: var(--space-4xl) var(--space-lg); }
.empty-state__icon { color: var(--ink); margin-bottom: var(--space-lg); opacity: 1; display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; background: #fff; border: var(--line); border-radius: 24px; box-shadow: var(--hard); transform: rotate(-4deg); }
.empty-state__icon svg { width: 40px; height: 40px; }
.empty-state__title { font-size: 1.75rem; margin-bottom: var(--space-sm); }
.empty-state__desc { color: var(--color-text-secondary); font-weight: 600; margin-bottom: var(--space-xl); max-width: 400px; margin-left: auto; margin-right: auto; }

/* Admin */
.admin-layout { display: flex; min-height: calc(100vh - var(--header-height)); }
.admin-sidebar { width: 240px; flex-shrink: 0; background: #fff; border-right: var(--line); padding: var(--space-xl); }
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar__link { display: flex; align-items: center; gap: var(--space-md); padding: 10px 14px; color: var(--ink); border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 800; border: 2px solid transparent; transition: all var(--transition-base); }
.admin-sidebar__link:hover { background: var(--color-bg); border-color: var(--ink); }
.admin-sidebar__link.active { background: var(--color-mint); border-color: var(--ink); box-shadow: var(--hard-sm); }
.admin-main { flex: 1; padding: var(--space-2xl); overflow-x: auto; }
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: var(--line); padding: var(--space-md); }
    .admin-sidebar__nav { flex-direction: row; overflow-x: auto; gap: var(--space-sm); }
    .admin-sidebar__link { white-space: nowrap; }
    .admin-main { padding: var(--space-lg); }
}

/* ─────────────────────────────────────────────────────────────
   UTILIDADES
   ───────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; } .text-right { text-align: right; }
.mb-0 { margin-bottom: 0; } .mb-sm { margin-bottom: var(--space-sm); } .mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); } .mb-xl { margin-bottom: var(--space-xl); } .mb-2xl { margin-bottom: var(--space-2xl); }
.mt-lg { margin-top: var(--space-lg); } .mt-xl { margin-top: var(--space-xl); }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); } .gap-lg { gap: var(--space-lg); }

.fade-in { opacity: 0; animation: fadeIn 0.45s cubic-bezier(0.2,0.7,0.3,1) forwards; }
@keyframes fadeIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.fade-in:nth-child(2) { animation-delay: 0.05s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
.fade-in:nth-child(4) { animation-delay: 0.15s; }
.fade-in:nth-child(5) { animation-delay: 0.2s; }
.fade-in:nth-child(6) { animation-delay: 0.25s; }

.skeleton { background: linear-gradient(90deg, #F6EBD8 25%, #fff 50%, #F6EBD8 75%); background-size: 200% 100%; animation: skeleton-pulse 1.5s ease infinite; border-radius: var(--radius-sm); border: var(--line-thin); }
@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-spinner { width: 40px; height: 40px; border: 4px solid var(--color-mint); border-top-color: var(--color-coral); border-radius: var(--radius-full); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

:focus-visible { outline: 3px solid var(--color-coral); outline-offset: 2px; }

@media (max-width: 640px) {
    h1 { font-size: 2.2rem; } h2 { font-size: 1.7rem; }
    .container { padding: 0 var(--space-lg); }
}

/* ─────────────────────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .tab-bar, .admin-sidebar, .cookie-banner, .flash, .btn, .marquee { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .main-content { min-height: auto; }
    .card, .pass, .product-card { border: 1px solid #ddd; box-shadow: none; break-inside: avoid; }
}
