/* ============================================
   RyKuest — Capa «Cristal» (Liquid Glass) sobre los colores ORIGINALES
   Va DESPUÉS de styles.css (y de ediciones-gym.css en GYM).

   - Conserva la paleta y el ritmo del sitio original: hero grafito, secciones
     blanco frío / blanco, casos y CTA en grafito, footer grafito profundo.
   - Conserva las transiciones originales (aparición al hacer scroll, ondas,
     entrada del hero). No cambia rutas, formularios, API ni el JS del sitio.
   - Vidrio en lo que flota: header, barra de pestañas móvil, diálogos,
     etiquetas flotantes y cifras del hero, botón «subir».
   - Canto tornasol con los colores de la marca en tarjetas y vidrio.
   - Figuras de vidrio: equipo de tecnología
     (laptop, monitor, switch, RJ45, router, cámara CCTV).
   ============================================ */

:root {
    --tornasol: conic-gradient(from 210deg,
        rgba(255, 255, 255, 0.9), #0D7CD6, #0DA3DB, #CFD8DC, #F56C18, #FFB07A, rgba(255, 255, 255, 0.9));
    --tornasol-vivo: conic-gradient(from 210deg,
        #ffffff, #2F8FE6, #2CC3F5, #E6EDF0, #FF7A2A, #FFC08F, #ffffff);
    --vidrio-oscuro: rgba(23, 27, 32, 0.52);
    --vidrio-claro: rgba(255, 255, 255, 0.64);
    --sombra-clara: 0 30px 60px -34px rgba(23, 40, 70, 0.3), 0 6px 18px -10px rgba(23, 40, 70, 0.12);
    --sombra-oscura: 0 30px 60px -34px rgba(0, 0, 0, 0.7), 0 6px 18px -10px rgba(0, 0, 0, 0.45);
    --halo: 0 -10px 34px -12px rgba(13, 163, 219, 0.5), 12px 0 34px -12px rgba(13, 124, 214, 0.4),
            0 12px 34px -12px rgba(245, 108, 24, 0.4), -12px 0 34px -12px rgba(207, 216, 220, 0.3);
    --halo-suave: 0 -8px 26px -14px rgba(13, 163, 219, 0.36), 10px 0 26px -14px rgba(13, 124, 214, 0.28),
                  0 10px 26px -14px rgba(245, 108, 24, 0.28), -10px 0 26px -14px rgba(207, 216, 220, 0.24);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Superficies del navegador ---------- */
::selection { background: rgba(13, 163, 219, 0.3); }
input, textarea, select { caret-color: var(--primary); accent-color: var(--accent); }
/* El cursor de texto «|» solo donde de verdad se puede escribir */
body { cursor: default; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea, [contenteditable="true"] { cursor: text; }
a, button, select, summary, label[for], [role="button"], .btn { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* La entrada de página original deja «transform» en <body>, lo que ancla los
   elementos fixed (barra de pestañas, botón subir) al final del documento.
   Se mantiene el mismo efecto, pero el desplazamiento va en el contenido. */
body { animation-name: cristalEntra; }
body.page-leaving { animation-name: cristalSale; }
@keyframes cristalEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes cristalSale { from { opacity: 1; } to { opacity: 0; } }
#app-content, .footer { animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@media (prefers-reduced-motion: reduce) { #app-content, .footer { animation: none; } }

/* ============================================
   CANTO TORNASOL (anillo con máscara: respeta cualquier radio)
   ============================================ */
.header__inner::before, .tabbar::before, .legal-modal::before, .back-to-top::before,
.hero__float::before, .hero__badge::before, .hero__stat::before, .section-header__tag::before,
.page-hero__tag::before, .feature-card::before, .news-card::before, .product-card::before,
.contact__info-card::before, .contact__form::before, .comments__form::before, .comment-card::before,
.ed-tarjeta::before, .ed-tabla-envoltura::before, .contraste__col::before, .step__number::before,
.news-card__tag::before, .admin-login::before, .admin-card::before,
.header__nav-link.active::before, .tabbar__link.active::before, .admin-tab.active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    pointer-events: none;
    background: var(--tornasol);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ============================================
   VIDRIO OSCURO: lo que flota sobre el grafito
   ============================================ */
.header__inner, .tabbar, .hero__float, .hero__badge, .hero__stat {
    background: var(--vidrio-oscuro);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 0;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
                var(--halo-suave), var(--sombra-oscura);
}
/* VIDRIO CLARO: diálogos y etiquetas sobre imagen */
.legal-modal, .news-card__tag {
    background: var(--vidrio-claro);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    backdrop-filter: blur(24px) saturate(190%);
    border: 0;
    box-shadow: inset 0 1.5px 1px #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.55), var(--halo-suave), var(--sombra-clara);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header__inner, .tabbar, .hero__float, .hero__badge, .hero__stat { background: rgba(23, 27, 32, 0.94); }
    .legal-modal, .news-card__tag { background: rgba(255, 255, 255, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
    .header__inner, .tabbar, .hero__float, .hero__badge, .hero__stat, .header--scrolled .header__inner {
        background: #1E242B; -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .legal-modal, .news-card__tag { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Marco tornasol + halo: piezas principales */
.legal-modal, .admin-login {
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.5), var(--halo),
                0 44px 80px -34px rgba(23, 40, 70, 0.4), 0 10px 26px -12px rgba(23, 40, 70, 0.18);
}
.hero__stat { box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05), var(--halo), var(--sombra-oscura); }
.hero__stat::before, .legal-modal::before, .admin-login::before { padding: 2.5px; background: var(--tornasol-vivo); }
.hero__stat::before { padding: 2px; }

/* ============================================
   HEADER flotante
   ============================================ */
.header__inner { border-radius: 999px; padding: 0 10px 0 20px; }
.header--scrolled .header__inner {
    background: rgba(23, 27, 32, 0.72);
    border: 0;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
                var(--halo-suave), 0 18px 44px -18px rgba(0, 0, 0, 0.6);
}
.header__nav-link { position: relative; border-radius: 999px; }
.header__nav-link.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.12); }
.header__nav-link.active::before { background: var(--tornasol-vivo); }

/* ============================================
   BOTONES: cápsulas con presión inmediata (colores originales)
   ============================================ */
.btn { border-radius: 999px; touch-action: manipulation; }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn--accent, .btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--outline-white {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ed-boton { border-radius: 999px; }
.ed-boton:active { transform: scale(0.97); }

/* ============================================
   HERO
   ============================================ */
.hero__badge { position: relative; border-radius: 999px; }
.hero__float { border-radius: 22px; }
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 540px;
    padding-top: 0;
    border-top: 0;
}
.hero__stat { position: relative; padding: 16px 18px 14px; border-radius: 24px; }
.hero__stat-number { line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Etiquetas de sección como cápsulas de vidrio (mismos colores) */
.section-header__tag, .page-hero__tag {
    position: relative;
    border: 0;
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px -8px rgba(13, 124, 214, 0.35);
}
.cases .section-header__tag, .page-hero__tag { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px -8px rgba(0, 0, 0, 0.5); }
.section-header__tag::before, .page-hero__tag::before { padding: 1px; }

/* ============================================
   TARJETAS DE CONTENIDO: sólidas, canto tornasol, sombra suave
   ============================================ */
.feature-card, .news-card, .product-card, .contact__info-card, .contact__form,
.comments__form, .comment-card, .admin-card {
    position: relative;
    border-color: transparent;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.05), var(--sombra-clara);
}
.feature-card::before, .news-card::before, .product-card::before, .contact__info-card::before,
.contact__form::before, .comments__form::before, .comment-card::before, .admin-card::before {
    padding: 1px; opacity: 0.85; z-index: 1;
}
.feature-card:hover, .news-card:hover, .product-card:hover {
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.05), var(--halo-suave), 0 36px 70px -30px rgba(23, 40, 70, 0.34);
}
.feature-card__icon { border-radius: 16px; }
.contact__info-card { border-radius: 20px; }
.contact__info-icon, .comment-card__avatar { border-radius: 14px; }
.contact__social-link, .footer__social-link { border-radius: 999px; }
/* Contacto: sin tarjetas de datos, solo accesos directos (abren la app del visitante) */
.contact__directo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.contact__directo-txt { margin: -4px 0 6px; color: var(--gray-600); line-height: 1.55; max-width: 30em; }
.contact__info--directo { gap: 12px; }
.contact__info--directo .contact__social { gap: 12px; margin-top: 0; }
.contact__info--directo .contact__social-link { width: 52px; height: 52px; font-size: 1.3rem; }
.news-card__tag { position: absolute; border-radius: 999px; color: var(--graphite); }

/* Tarjetas que llevan a una página (Inicio «Qué hacemos» y Productos «Servicios») */
.servicio { position: relative; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.servicio .feature-card__desc { flex: 1; }
.servicio__mas { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.servicio__mas i { transition: translate 0.25s var(--ease-out); }
.servicio:hover .servicio__mas i { translate: 4px 0; }
.servicio__mas--contacto { color: var(--gray-600); }

/* Cómo trabajamos: círculos con canto vivo */
.step__number { position: relative; border-color: transparent; }
.step__number::before { padding: 2px; background: var(--tornasol-vivo); }

/* Tarjetas sobre grafito (GYM) */
.ed-tarjeta, .contraste__col { position: relative; border-radius: 24px; }
.ed-tarjeta::before, .contraste__col::before { padding: 1px; opacity: 0.6; }
.ed-tarjeta--destacada::before { display: none; }
.ed-tabla-envoltura { position: relative; border-radius: 24px; }
.ed-tabla-envoltura::before { padding: 1px; opacity: 0.5; }
.contraste__col--despues::before { background: var(--tornasol-vivo); opacity: 1; }
.cta-tarjeta { border-radius: 28px; }

/* Formularios: campos redondeados */
.contact__form-group input, .contact__form-group select, .contact__form-group textarea { border-radius: 14px; min-height: 48px; }
.comments__feedback { border-radius: 14px; }

/* ============================================
   COMENTARIOS: formulario compacto y alineado con la lista
   ============================================ */
.comments__layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
/* Sin «sticky»: la tarjeta queda alineada arriba con la lista */
.comments__form { position: relative; top: auto; padding: 24px; }
.comments__form-title { font-size: 1.1rem; }
.comments__form-hint { margin-bottom: 16px; font-size: 0.82rem; }
.comments__form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.comments__form-group { margin-bottom: 14px; }
.comments__form-group label, .comments__label { display: block; margin-bottom: 5px; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.comments__form-group input, .comments__form-group select, .comments__form-group textarea {
    width: 100%; min-height: 42px; padding: 9px 13px; border-radius: 12px; font-size: 0.9rem;
}
.comments__form-group select {
    border: 1px solid var(--gray-300); background: var(--gray-50); color: var(--gray-800);
    font-family: var(--font); cursor: pointer;
}
.comments__form-group select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-50); }
.comments__form-group textarea { min-height: 84px; }
.comments__opcional { font-weight: 400; color: var(--gray-500); }
.comments__anonimo {
    display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px;
    border-radius: 12px; font-size: 0.8rem; line-height: 1.45; color: var(--gray-600);
    background: var(--gray-50); box-shadow: inset 0 0 0 1px var(--gray-200); cursor: pointer;
}
.comments__anonimo input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); cursor: pointer; }
.comments__anonimo strong { color: var(--gray-800); }
.comments__anonimo:has(input:checked) { background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary-100); }
.rating-input { gap: 0; height: 42px; align-items: center; margin-left: -6px; }
.rating-input__star { display: grid; place-items: center; min-width: 36px; min-height: 42px; padding: 0; border-radius: 10px; font-size: 1.25rem; }
.comments__form .g-recaptcha { justify-content: flex-start; margin: 2px 0 14px; }
.comments__form .btn { min-height: 46px; }

.comments__empty {
    display: grid; place-items: center; min-height: 180px; padding: 32px 24px;
    border: 0; border-radius: 24px; background: var(--gray-50); box-shadow: inset 0 0 0 1px var(--gray-200);
}
/* Sin comentarios todavía: invitación (vidrio sobre degradado de marca) */
.comments__invita {
    position: relative; overflow: hidden; padding: clamp(28px, 4vw, 40px); border-radius: 26px; color: #fff;
    background:
        radial-gradient(70% 90% at 0% 0%, rgba(13, 124, 214, 0.55), transparent 60%),
        radial-gradient(60% 90% at 100% 100%, rgba(245, 108, 24, 0.4), transparent 60%),
        var(--graphite);
    box-shadow: var(--halo-suave), 0 30px 60px -34px rgba(23, 40, 70, 0.55);
}
.comments__invita::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: var(--tornasol-vivo);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.comments__invita-icono {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 17px;
    font-size: 1.3rem; color: #fff; background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.comments__invita h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; color: #fff; }
.comments__invita p { color: rgba(244, 246, 247, 0.78); line-height: 1.6; max-width: 38em; margin-bottom: 22px; }
.comments__invita ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.comments__invita li {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    font-size: 0.84rem; font-weight: 600; color: rgba(244, 246, 247, 0.9);
    background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.comments__invita li i { color: var(--blue); }
.comment-card__servicio {
    display: inline-flex; margin-top: 12px; padding: 3px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-50);
}

/* Encuesta para clientes (/opina/) */
.opina { padding: 72px 0 96px; }
.opina__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.opina__lista { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 16px; }
.opina__lista li { display: flex; gap: 14px; align-items: flex-start; color: var(--gray-600); line-height: 1.55; }
.opina__lista i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--primary); background: var(--primary-50); }
.opina__lista strong { color: var(--ink); }
.opina__ver { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); }

@media (max-width: 900px) {
    .comments__layout, .opina__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .comments__form { padding: 20px 16px; }
    .comments__form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .comments__form .g-recaptcha { justify-content: center; }
}

/* ============================================
   DIÁLOGOS: hoja de vidrio claro con marco
   ============================================ */
.legal-modal { position: fixed; overflow: visible; border-radius: 30px; }
.legal-modal__body { border-top: 0; border-image: none; }
.legal-modal__close { background: rgba(118, 118, 128, 0.12); }
.legal-modal[open] { animation: materializa 260ms var(--ease-out); }
@keyframes materializa { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Botón «subir»: vidrio azul */
.back-to-top {
    background: rgba(13, 124, 214, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), 0 10px 24px -8px rgba(13, 124, 214, 0.6);
}

/* ============================================
   FIGURAS DE VIDRIO (tecnología) — decorativas
   ============================================ */
.cristal { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cristal-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pieza {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--w);
    overflow: visible;
    rotate: var(--giro, 0deg);
    transform: translate3d(calc(var(--mx, 0) * var(--z, 10) * -1px), calc(var(--my, 0) * var(--z, 10) * -1px), 0);
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
    animation: flota var(--t, 12s) ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes flota {
    from { translate: 0 -10px; rotate: calc(var(--giro, 0deg) - 3deg); }
    to   { translate: 0 12px;  rotate: calc(var(--giro, 0deg) + 3deg); }
}

/* Hero de Inicio: 4 piezas en las esquinas del logo, lejos del texto y de las etiquetas */
.hero .p1 { --x: 56%; --y: 9%;  --w: clamp(84px, 7.5vw, 116px); --giro: -8deg;  --z: 8;  --t: 13s; --d: -1.7s; }
.hero .p2 { --x: 85%; --y: 64%; --w: clamp(90px, 8.5vw, 130px); --giro: 8deg;   --z: 14; --t: 11s; --d: -3.4s; }
.hero .p3 { --x: 88%; --y: 10%; --w: clamp(56px, 5vw, 76px);    --giro: 10deg;  --z: 12; --t: 12s; --d: -2s; }
.hero .p4 { --x: 57%; --y: 74%; --w: clamp(48px, 4.2vw, 64px);  --giro: -16deg; --z: 10; --t: 10s; --d: -5s; }

/* Encabezados de páginas interiores */
.page-hero .p1 { --x: 6%;  --y: 26%; --w: clamp(70px, 6.5vw, 104px); --giro: -10deg; --z: 12; --t: 12s; --d: -2s; }
.page-hero .p2 { --x: 87%; --y: 58%; --w: clamp(54px, 4.6vw, 76px);  --giro: -20deg; --z: 10; --t: 10s; --d: -4s; }
.page-hero .p3 { --x: 76%; --y: 18%; --w: clamp(90px, 8.5vw, 130px); --giro: 6deg;   --z: 8;  --t: 13s; --d: -1s; }
.page-hero .p4 { --x: 15%; --y: 66%; --w: clamp(64px, 5.6vw, 90px);  --giro: 8deg;   --z: 14; --t: 11s; --d: -3s; }
.page-hero--product .p1 { --x: 90%; --y: 8%; }
.page-hero--product .p3 { --x: 66%; --y: 2%; }
.page-hero--product .p4 { --x: 93%; --y: 50%; }
.page-hero--product .p2 { --x: 2%;  --y: 86%; }

/* Panel de moderación */
.admin .cristal { position: fixed; }
.admin .pieza { filter: drop-shadow(0 18px 20px rgba(23, 40, 70, 0.28)) drop-shadow(0 0 1px rgba(23, 40, 70, 0.3)); }
.admin .p1 { --x: 14%; --y: 20%; --w: clamp(90px, 13vmin, 140px); --giro: -10deg; --z: 14; --t: 12s; --d: -2s; }
.admin .p2 { --x: 72%; --y: 70%; --w: clamp(60px, 8vmin, 84px);   --giro: -18deg; --z: 10; --t: 10s; --d: -5s; }
.admin .p3 { --x: 66%; --y: 14%; --w: clamp(100px, 15vmin, 150px); --giro: 6deg;   --z: 12; --t: 13s; --d: -1.7s; }
.admin .p4 { --x: 8%;  --y: 64%; --w: clamp(100px, 15vmin, 150px); --giro: 8deg;   --z: 16; --t: 11s; --d: -3.4s; }
.admin .p5 { --x: 40%; --y: 80%; --w: clamp(84px, 12vmin, 120px);  --giro: -6deg;  --z: 6;  --t: 14s; --d: -6s; }
.admin .p6 { --x: 86%; --y: 40%; --w: 64px; --giro: 10deg; --z: 12; --t: 9s; --d: -4s; }

/* ============================================
   PANEL DE MODERACIÓN: login de vidrio claro
   ============================================ */
.admin-wrap { position: relative; z-index: 1; }
.admin-login {
    position: relative;
    max-width: 400px;
    padding: 30px;
    border: 0;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    backdrop-filter: blur(24px) saturate(190%);
}
.admin-login input { border-radius: 16px; min-height: 50px; }
.admin-login .btn { min-height: 50px; }
.admin-header { border-radius: 26px; }
.admin-tabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(118, 118, 128, 0.12); }
.admin-tab { position: relative; border: 0; background: transparent; }
.admin-tab.active { background: #fff; color: var(--primary-dark); border: 0; box-shadow: 0 8px 18px -10px rgba(30, 50, 90, 0.3); }
.admin-tab.active::before { background: var(--tornasol-vivo); }
.admin-card { border: 0; }
.admin-card__actions button { border-radius: 999px; min-height: 44px; }

/* ============================================
   MÓVIL (≤ 860 px): barra de pestañas de vidrio abajo al centro
   ============================================ */
.tabbar { display: none; }
@media (max-width: 860px) {
    .header__nav, .header__menu-toggle { display: none !important; }
    .header__actions .btn { display: inline-flex; }
    .header__inner { height: 58px; padding: 0 8px 0 14px; }

    .tabbar {
        position: fixed;
        z-index: 1001;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        display: flex;
        gap: 2px;
        padding: 5px;
        border-radius: 34px;
        width: max-content;
        max-width: calc(100vw - 20px);
    }
    .tabbar__link {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: clamp(72px, 21vw, 92px);
        height: 54px;
        padding: 0;
        border-radius: 999px;
        color: rgba(244, 246, 247, 0.76);
        font-size: 0.7rem;
        font-weight: 600;
        transition: color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
    }
    .tabbar__link i { font-size: 1.05rem; }
    .tabbar__link:active { transform: scale(0.94); }
    .tabbar__link.active { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
    .tabbar__link.active i { color: var(--blue); }
    .tabbar__link.active::before { background: var(--tornasol-vivo); }

    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .back-to-top { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }

    /* Figuras: arriba y abajo, chicas, sin tapar texto */
    .hero .p2, .hero .p3 { display: none; }
    .hero .p1 { --x: 78%; --y: 2%;  --w: 62px; }
    .hero .p4 { --x: 6%;  --y: 93%; --w: 42px; }
    .page-hero .p4 { display: none; }
    .page-hero .p1, .page-hero--product .p1 { --x: 1%;  --y: 10%; --w: 52px; }
    .page-hero .p3, .page-hero--product .p3 { --x: 78%; --y: 8%;  --w: 60px; }
    .page-hero .p2, .page-hero--product .p2 { --x: 86%; --y: 86%; --w: 42px; }
    .admin .p1 { --x: 2%;  --y: 54%; --w: 80px; }
    .admin .p3 { --x: 62%; --y: 58%; --w: 100px; }
    .admin .p4 { --x: 6%;  --y: 78%; --w: 96px; }
    .admin .p5 { --x: 56%; --y: 84%; --w: 88px; }
    .admin .p2 { --x: 82%; --y: 74%; --w: 52px; }
    .admin .p6 { display: none; }
    .hero__stats { margin-inline: auto; }
}
@media (max-width: 480px) {
    .hero__stats { gap: 8px; }
    .hero__stat { padding: 12px 10px; border-radius: 20px; text-align: center; }
    .hero__stat-number { font-size: 1.55rem; }
    .hero__stat-label { font-size: 0.72rem; }
}

/* Movimiento reducido: las figuras quedan quietas */
@media (prefers-reduced-motion: reduce) {
    .pieza { animation: none !important; transition: none !important; }
    .legal-modal[open] { animation: none; }
}
