/* ═══════════════════════════════════════════════════════════════
   CIMIL · Sistema de diseño compartido
   Tokens, base y componentes que usan varias páginas.
   Lo específico de cada página vive en assets/css/pages/<pagina>.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Tipografía: Poppins (subset latino, alojada en el propio sitio) ── */
@font-face{ font-family:'Poppins'; font-style:normal; font-weight:300; font-display:swap; src:url("../fonts/poppins-300-latin.woff2") format("woff2"); }
@font-face{ font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face{ font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face{ font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face{ font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/poppins-700-latin.woff2") format("woff2"); }

/* ── 1. Tokens ── */
:root{
    /* modo noche (predeterminado) */
    --bg-dark:#121212; --text-dark:#FFFFFF; --text-muted-dark:rgba(255,255,255,.55); --hover-dark:rgba(255,255,255,.08); --divider-dark:rgba(255,255,255,.10);
    /* modo día */
    --bg-light:#FAFAF8; --text-light:#1D1D1B; --text-muted-light:rgba(29,29,27,.55); --hover-light:rgba(29,29,27,.06); --divider-light:rgba(29,29,27,.10);

    /* paleta Cimil */
    --cimil-1:#36BFB1; --cimil-2:#038C73; --cimil-3:#025944; --cimil-4:#013A2F;
    --danger:#E5484D; --success:#30A46C; --warning:#FFC107;

    --header-height:68px;
    --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-xl:20px; --radius-2xl:24px;
    --ease:cubic-bezier(.32,.72,0,1);

    --bg:var(--bg-dark); --text:var(--text-dark); --text-muted:var(--text-muted-dark); --hover:var(--hover-dark); --divider:var(--divider-dark); --icon-color:var(--text);
    /* versiones de cada color pensadas para leerse como texto */
    --brand-fg:#36BFB1; --danger-fg:#FF7B7F; --success-fg:#4FD194; --warning-fg:#FFC107;
    --shadow-color:rgba(0,0,0,.5);
}
@media (prefers-color-scheme:light){
    :root:not([data-theme]){
        --bg:var(--bg-light); --text:var(--text-light); --text-muted:var(--text-muted-light); --hover:var(--hover-light); --divider:var(--divider-light); --icon-color:var(--text);
        --brand-fg:#038C73; --danger-fg:#D5333B; --success-fg:#218358; --warning-fg:#946400;
        --shadow-color:rgba(0,0,0,.14);
    }
}
:root[data-theme="light"]{
    --bg:var(--bg-light); --text:var(--text-light); --text-muted:var(--text-muted-light); --hover:var(--hover-light); --divider:var(--divider-light); --icon-color:var(--text);
    --brand-fg:#038C73; --danger-fg:#D5333B; --success-fg:#218358; --warning-fg:#946400;
    --shadow-color:rgba(0,0,0,.14);
    color-scheme:light;
}
:root[data-theme="dark"]{
    --bg:var(--bg-dark); --text:var(--text-dark); --text-muted:var(--text-muted-dark); --hover:var(--hover-dark); --divider:var(--divider-dark); --icon-color:var(--text);
    --brand-fg:#36BFB1; --danger-fg:#FF7B7F; --success-fg:#4FD194; --warning-fg:#FFC107;
    --shadow-color:rgba(0,0,0,.5);
    color-scheme:dark;
}
:root:not([data-theme]){ color-scheme:light dark; }

/* ── 2. Base ── */
*,*::before,*::after{ box-sizing:border-box; }
*{ margin:0; padding:0; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; background:var(--bg); }
body{
    min-height:100vh; overflow-x:hidden; background:var(--bg); color:var(--text);
    font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; font-size:16px; line-height:1.45;
    -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
    transition:background-color .25s ease, color .25s ease;
}
body.has-overlay{ overflow:hidden; }
button{ border:0; background:none; color:inherit; font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
button:disabled{ cursor:not-allowed; }
a{ color:inherit; text-decoration:none; }
input,textarea,select{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--brand-fg); outline-offset:2px; }
::selection{ background:rgba(54,191,177,.35); }

.app{ width:100%; min-height:100vh; }
.container{ width:100%; margin-inline:auto; padding-inline:clamp(16px,3vw,40px); }

/* ── 3. Textos de apoyo ── */
.section-label{ display:block; padding-block:16px 10px; text-align:right; color:var(--text-muted); font-size:13px; font-weight:300; letter-spacing:.01em; }
.empty-state{ padding-block:28px; text-align:center; color:var(--text-muted); font-size:14px; }
.loading{ padding:40px; text-align:center; color:var(--text-muted); font-size:14px; }
.divider{ height:1px; margin-block:18px; background:var(--divider); }
/* fila "no pudimos cargar · reintentar" */
.row-retry{
    display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:16px;
    border:1px dashed var(--divider); border-radius:var(--radius-lg); color:var(--text-muted); font-size:13px; font-weight:500;
    transition:background-color .2s ease;
}
.row-retry:hover{ background:var(--hover); }

/* Página de estado: "no encontrado", "sin conexión"… */
.state-page{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:100vh; padding:32px; text-align:center; }
.state-page__icon{ width:44px; height:44px; color:var(--text-muted); }
.state-page h1{ font-size:20px; font-weight:600; line-height:1.3; }
.state-page p{ max-width:340px; color:var(--text-muted); font-size:14px; line-height:1.5; }
.state-page .btn{ width:auto; margin-top:12px; }

/* ── 4. Botones ── */
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%;
    padding:14px 18px; border-radius:var(--radius-lg); border:1px solid transparent;
    font-size:15px; font-weight:600; line-height:1.2; text-align:center;
    transition:background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .15s ease;
}
.btn:active:not(:disabled){ transform:scale(.985); }
.btn:disabled{ opacity:.45; }
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn--primary{ background:var(--cimil-1); color:#fff; box-shadow:0 4px 14px rgba(54,191,177,.28); }
.btn--primary:hover:not(:disabled){ background:var(--cimil-2); }
.btn--dark{ background:var(--text); color:var(--bg); }
.btn--dark:hover:not(:disabled){ opacity:.88; }
.btn--ghost{ background:var(--hover); color:var(--text); }
.btn--ghost:hover:not(:disabled){ background:var(--divider); }
.btn--outline{ background:transparent; border-color:var(--divider); color:var(--text); }
.btn--outline:hover:not(:disabled){ background:var(--hover); }
.btn--danger{ background:rgba(229,72,77,.12); border-color:rgba(229,72,77,.45); color:var(--danger-fg); }
.btn--danger:hover:not(:disabled){ background:rgba(229,72,77,.2); }
.btn--danger-solid{ background:var(--danger); color:#fff; }
.btn--danger-solid:hover:not(:disabled){ background:#D5333B; }
.btn--sm{ width:auto; padding:8px 14px; border-radius:10px; font-size:13px; }
.btn--block{ width:100%; }

/* ── 5. Insignias ── */
.badge{ display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:999px; background:var(--hover); color:var(--text-muted); font-size:12px; font-weight:600; line-height:1.3; white-space:nowrap; }
.badge--open, .badge--success, .badge-active{ background:rgba(48,164,108,.16); color:var(--success-fg); }
.badge--closed, .badge--danger{ background:rgba(229,72,77,.16); color:var(--danger-fg); }
.badge--warn, .badge-warn{ background:rgba(255,193,7,.18); color:var(--warning-fg); }
.badge--brand{ background:rgba(54,191,177,.16); color:var(--brand-fg); }

/* ── 6. Formularios ── */
.form-group{ margin-bottom:14px; }
.form-label{ display:block; margin-bottom:6px; color:var(--text-muted); font-size:13px; font-weight:500; }
.form-input{
    width:100%; padding:12px 14px; border:1px solid transparent; border-radius:var(--radius-md); background:var(--hover); color:var(--text);
    font-size:16px; line-height:1.4; transition:border-color .2s ease, background-color .2s ease;   /* 16 px: evita el zoom automático al escribir en iPhone */
}
.form-input::placeholder{ color:var(--text-muted); }
.form-input:hover{ border-color:var(--divider); }
.form-input:focus{ outline:none; border-color:var(--brand-fg); background:var(--bg); }
textarea.form-input{ min-height:88px; resize:vertical; }
select.form-input{
    padding-right:38px; appearance:none; -webkit-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 12px center; background-size:18px;
}
select.form-input option{ background:var(--bg); color:var(--text); }
.form-hint{ margin-top:6px; color:var(--text-muted); font-size:12px; line-height:1.45; }
.form-label__opt{ font-weight:400; }

/* Control de cantidad */
.quantity-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.quantity-row > span{ font-size:15px; font-weight:600; }
.qty-control{ display:flex; align-items:center; gap:4px; padding:4px; border-radius:999px; background:var(--hover); }
.qty-btn{ display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:var(--bg); transition:transform .1s ease; }
.qty-btn:active{ transform:scale(.9); }
.qty-btn svg{ width:14px; height:14px; }
.qty-input{ width:40px; border:0; background:none; color:var(--text); font:inherit; font-size:16px; font-weight:600; text-align:center; outline:none; appearance:textfield; -moz-appearance:textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button{ -webkit-appearance:none; appearance:none; margin:0; }

/* Barra superior fija con botón de volver (varias páginas) */
.page-topbar{
    position:sticky; top:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding-block:10px; padding-top:calc(10px + env(safe-area-inset-top));
    background:var(--bg);
    background:color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}
.page-topbar__text{ display:flex; flex:1; flex-direction:column; min-width:0; }
.page-topbar__title{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:16px; font-weight:600; }
.page-topbar__sub{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--text-muted); font-size:12px; }
.page-topbar__actions{ display:flex; flex-shrink:0; align-items:center; gap:6px; }
.page-topbar > .container{ display:flex; flex:1; align-items:center; gap:8px; min-width:0; }
.page-title{ margin-block:12px 8px; font-size:28px; font-weight:700; line-height:1.12; letter-spacing:-.02em; }

/* ── 7. Iconos y marca ── */
.icon-button{
    position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0;
    width:44px; height:44px; border-radius:50%; color:var(--icon-color);
    transition:background-color .2s ease, transform .15s ease;
}
.icon-button:hover{ background:var(--hover); }
.icon-button:active{ transform:scale(.92); }
.icon-button svg{ width:24px; height:24px; }
.cart-count{
    position:absolute; top:4px; right:4px; min-width:18px; height:18px; padding-inline:4px; border-radius:999px;
    background:var(--danger); color:#fff; font-size:10px; font-weight:700; line-height:18px; text-align:center;
}
.logo{ display:flex; align-items:center; color:var(--text); }
.logo svg{ width:auto; height:18px; aspect-ratio:1760.32 / 627.54; }
.back-button{
    display:inline-flex; align-items:center; gap:8px; margin-left:-10px; padding:8px 10px; border-radius:10px;
    color:var(--text); font-size:15px; font-weight:600; transition:background-color .2s ease;
}
.back-button:hover{ background:var(--hover); }
.back-button svg{ width:20px; height:20px; flex-shrink:0; }

/* interruptor día / noche */
.theme-toggle{ position:relative; flex-shrink:0; width:52px; height:30px; border-radius:999px; border:1px solid var(--hover); background:var(--hover); transition:background-color .25s ease; }
.theme-toggle__icon{ position:absolute; top:50%; width:14px; height:14px; transform:translateY(-50%); color:var(--text-muted); transition:color .25s ease; pointer-events:none; }
.theme-toggle__icon--sun{ left:7px; } .theme-toggle__icon--moon{ right:7px; }
:root[data-theme="light"] .theme-toggle__icon--sun{ color:#1D1D1B; }
:root[data-theme="dark"] .theme-toggle__icon--moon{ color:#FFFFFF; }
.theme-toggle__thumb{ position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:var(--text); transition:transform .25s ease; }
:root[data-theme="light"] .theme-toggle__thumb{ transform:translateX(22px); }

/* ── 8. Esqueletos de carga ── */
.skeleton{ position:relative; overflow:hidden; background:var(--hover); }
.skeleton::after{
    content:""; position:absolute; inset:0; transform:translateX(-100%);
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
    animation:shimmer 1.4s infinite;
}
:root[data-theme="light"] .skeleton::after, :root:not([data-theme]) .skeleton::after{ background:linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent); }
:root[data-theme="dark"] .skeleton::after{ background:linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); }
@keyframes shimmer{ 100%{ transform:translateX(100%); } }

/* ── 9. Aviso flotante ── */
.toast{
    position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); z-index:3000;
    max-width:min(90vw,440px); padding:12px 22px; border-radius:999px; background:var(--text); color:var(--bg);
    font-size:14px; font-weight:500; line-height:1.4; text-align:center; pointer-events:none;
    opacity:0; transform:translate(-50%, 16px); transition:opacity .25s ease, transform .25s ease;
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }

/* ── 10. Ventanas emergentes ── */
.modal-overlay{
    position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:16px;
    background:rgba(0,0,0,.6); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease;
}
.modal-overlay.is-open{ opacity:1; visibility:visible; }
.modal-sheet{
    position:relative; width:100%; max-width:420px; max-height:90vh; overflow-y:auto;
    padding:20px; padding-bottom:calc(20px + env(safe-area-inset-bottom)); border-radius:var(--radius-2xl);
    background:var(--bg); color:var(--text); box-shadow:0 24px 60px var(--shadow-color);
    transform:translateY(16px) scale(.97); opacity:0; transition:transform .3s var(--ease), opacity .3s ease;
}
.modal-overlay.is-open .modal-sheet{ transform:none; opacity:1; }
.modal-overlay--bottom{ align-items:flex-end; padding:0; }
.modal-overlay--bottom .modal-sheet{ max-width:100%; border-radius:24px 24px 0 0; transform:translateY(40px); }
@media (min-width:640px){
    .modal-overlay--bottom{ align-items:center; padding:16px; }
    .modal-overlay--bottom .modal-sheet{ max-width:460px; border-radius:var(--radius-2xl); }
}
.modal-sheet--dialog{ max-width:360px; text-align:center; }
.modal-close{
    position:absolute; top:14px; right:14px; z-index:2; display:flex; align-items:center; justify-content:center;
    width:34px; height:34px; border-radius:50%; background:var(--hover); color:var(--text); transition:transform .2s ease;
}
.modal-close:active{ transform:scale(.9); }
.modal-close svg{ width:18px; height:18px; }
.modal-title{ margin-bottom:4px; font-size:22px; font-weight:700; line-height:1.2; letter-spacing:-.015em; }
.modal-text{ margin-bottom:18px; color:var(--text-muted); font-size:14px; line-height:1.5; }
.modal-actions{ display:flex; gap:10px; }
.modal-actions .btn{ flex:1; }

/* Hoja "Añadir al carrito" */
.product-sheet__img{
    display:flex; align-items:center; justify-content:center; aspect-ratio:16 / 10; margin-bottom:14px;
    border-radius:var(--radius-lg); background:var(--hover) center / cover no-repeat; color:var(--text-muted); font-size:40px; font-weight:600;
}
.product-sheet__img.is-empty{ background-image:linear-gradient(135deg, rgba(54,191,177,.22), rgba(3,140,115,.1)); }
.product-sheet__brand{ display:flex; align-items:center; gap:8px; margin-bottom:4px; color:var(--text-muted); font-size:12px; font-weight:500; }
.product-sheet__brand-logo{ flex-shrink:0; width:22px; height:22px; border:1px solid var(--divider); border-radius:50%; background:var(--bg) center / cover no-repeat; }
.product-sheet .modal-title{ font-size:20px; }
.product-sheet__prices{ display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:16px; }
.product-sheet__price{ font-size:24px; font-weight:700; letter-spacing:-.01em; }
.product-sheet__price--old{ color:var(--text-muted); font-size:14px; text-decoration:line-through; }

/* ── 11. Carrito lateral ── */
.cart-backdrop{ position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.45); opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease; }
.cart-backdrop.is-open{ opacity:1; visibility:visible; }
.cart-panel{
    position:fixed; top:0; right:0; bottom:0; z-index:1001; display:flex; flex-direction:column;
    width:100%; max-width:420px; background:var(--bg); box-shadow:-8px 0 30px var(--shadow-color);
    transform:translateX(100%); visibility:hidden; transition:transform .35s var(--ease), visibility .35s;
}
.cart-panel.is-open{ transform:none; visibility:visible; }
.cart-header{ display:flex; align-items:center; justify-content:space-between; padding:18px 20px; padding-top:calc(18px + env(safe-area-inset-top)); border-bottom:1px solid var(--divider); }
.cart-title{ font-size:20px; font-weight:700; letter-spacing:-.015em; }
.cart-body{ flex:1; overflow-y:auto; padding:16px 16px 20px; }
.cart-item-wrapper{ position:relative; max-height:200px; margin-bottom:10px; border-radius:var(--radius-lg); overflow:hidden; transition:max-height .3s ease, margin .3s ease, opacity .3s ease; }
.cart-item{ display:flex; gap:12px; padding:12px; border-radius:var(--radius-lg); background:var(--hover); transition:transform .3s ease; }
.cart-item-wrapper.removing{ opacity:0; max-height:0; margin-bottom:0; }
.cart-item-wrapper.removing .cart-item{ transform:translateX(100%); }
.cart-item-img{ flex-shrink:0; width:60px; height:60px; border-radius:10px; background:var(--divider) center / cover no-repeat; }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-name{ margin-bottom:2px; overflow:hidden; font-size:15px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
.cart-item-off{ display:inline-block; margin-bottom:4px; padding:1px 6px; border-radius:4px; background:rgba(229,72,77,.16); color:var(--danger-fg); font-size:10px; font-weight:700; }
.cart-item-obs{ margin-bottom:4px; color:var(--text-muted); font-size:12px; font-style:italic; }
.cart-item-meta{ display:flex; justify-content:space-between; gap:8px; font-size:14px; }
.cart-item-price{ font-weight:600; }
/* Control de cantidad de cada línea: − cantidad + */
.cart-qty{ display:inline-flex; align-items:center; gap:8px; }
.cart-qty__btn{ display:flex; align-items:center; justify-content:center; width:26px; height:26px; border:1px solid var(--divider); border-radius:50%; font-size:15px; line-height:1; transition:background-color .2s ease, transform .1s ease; }
.cart-qty__btn:hover{ background:var(--divider); }
.cart-qty__btn:active{ transform:scale(.9); }
.cart-item-unit{ display:block; color:var(--text-muted); font-size:12px; }
.cart-item-unit:empty{ display:none; }
.cart-item-delete{ display:flex; align-items:center; justify-content:center; align-self:center; flex-shrink:0; padding:6px; border-radius:8px; color:var(--danger-fg); transition:background-color .2s ease; }
.cart-item-delete:active{ background:rgba(229,72,77,.15); }
.cart-item-delete svg{ width:20px; height:20px; }
.cart-footer{ padding:16px 20px calc(20px + env(safe-area-inset-bottom)); border-top:1px solid var(--divider); }
.cart-total-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; font-size:15px; font-weight:500; }
.cart-total-row strong{ font-size:20px; font-weight:700; }

/* ── Titulares de portada y login: Bold grande + texto Light pequeña ── */
.display-title{ font-size:clamp(34px, 9.2vw, 56px); font-weight:700; line-height:1.04; letter-spacing:-.035em; text-wrap:balance; }
.display-text{ font-size:clamp(14px, 3.6vw, 17px); font-weight:300; line-height:1.5; color:var(--text-muted); text-wrap:balance; }
.display-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.display-actions .btn{ min-height:48px; padding-inline:24px; border-radius:12px; font-size:15px; font-weight:600; }

/* ── 11b. Aviso animado a pantalla completa (pedido creado · transferencia aceptada) ── */
.flash-overlay{ position:fixed; inset:0; z-index:6000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.45); background:color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; transition:opacity .3s ease; }
.flash-overlay.is-open{ opacity:1; }
.flash-card{ width:100%; max-width:340px; padding:34px 28px 30px; border-radius:var(--radius-2xl); background:var(--bg); border:1px solid var(--divider); box-shadow:0 24px 60px rgba(0,0,0,.28); text-align:center; transform:translateY(18px) scale(.96); opacity:0; transition:transform .45s var(--ease), opacity .35s ease; }
.flash-overlay.is-open .flash-card{ transform:none; opacity:1; }
.flash-anim{ width:132px; height:132px; margin:0 auto 10px; }
.flash-anim > svg, .flash-anim > div{ width:100%; height:100%; }
.flash-title{ font-size:24px; font-weight:700; line-height:1.12; letter-spacing:-.02em; }
.flash-text{ margin-top:8px; font-size:14px; font-weight:300; line-height:1.5; color:var(--text-muted); }
/* respaldo dibujado en CSS si el reproductor Lottie no alcanza a cargar */
.ff-circle{ fill:var(--success); stroke:none; transform-origin:32px 32px; animation:ff-pop .45s var(--ease) both; }
.ff-badge{ animation-delay:.35s; }
.ff-mark{ fill:none; stroke:#fff; stroke-width:5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:48; stroke-dashoffset:48; animation:ff-draw .4s ease-out .3s forwards; }
.ff-mark--sm{ stroke-width:4; stroke-dasharray:24; stroke-dashoffset:24; animation-delay:.7s; }
.ff-card{ fill:var(--cimil-1); stroke:none; transform-origin:32px 32px; animation:ff-pop .45s var(--ease) both; }
.ff-arrow{ fill:none; stroke:#fff; stroke-width:4.5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:24; stroke-dashoffset:24; animation:ff-draw .35s ease-out .2s forwards; }
.ff-arrow--head{ animation-delay:.45s; }
@keyframes ff-pop{ from{ transform:scale(0); } 70%{ transform:scale(1.1); } to{ transform:scale(1); } }
@keyframes ff-draw{ to{ stroke-dashoffset:0; } }

/* ── 11c. Entrada suave de las tarjetas al cargar la página ── */
@keyframes cimil-rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
.reveal{ animation:cimil-rise .55s var(--ease) both; animation-delay:calc(var(--i, 0) * 55ms); }

/* ── 12. Accesibilidad ── */
@media (prefers-reduced-motion:reduce){
    html{ scroll-behavior:auto; }
    *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition:none !important; }
}
