/* Imagroup · sistema visual
   Papel cálido + tinta: lectura de documento técnico, serio sin ser blanco y negro.
   Azul Imagroup y oro Gregorian: cada empresa conserva su color de marca.
   Archivo semicondensada en títulos: voz de rotulado de obra; ancho normal para leer. */
:root {
  --paper: #f5f3ee; --paper-2: #ebe7de; --ink: #14202c; --ink-2: #1d2c3b; --line: #d6d0c3;
  --muted: #56606b; --im: #1a5f99; --im-soft: #e3edf5; --leaf: #3d8a37; --gold: #d7b46a; --gold-ink: #7a5a1c;
  --r: 6px; --r-lg: 12px; --wrap: 1180px; --ease: cubic-bezier(.2, .7, .2, 1);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem); --fs-h2: clamp(1.55rem, 1.2rem + 1.5vw, 2.4rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 Archivo, system-ui, sans-serif; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 80%; font-weight: 750; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); } h3, .h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--im); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: var(--r); }
.skip:focus { top: 12px; }
.review { background: var(--ink); color: #e9e4d8; font-size: .85rem; text-align: center; padding: 7px 16px; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.kicker { font-weight: 600; color: var(--muted); margin-bottom: .6em; }
.note { color: var(--muted); font-size: .95rem; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-stretch: 80%; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); font-stretch: 100%; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: var(--r); font-weight: 550; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav { margin-left: auto; }
.top-act { display: flex; align-items: center; gap: 4px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); }
.cart-link:hover { background: var(--paper-2); }
.cart-link svg { width: 24px; height: 24px; }
.cart-link b { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: var(--ink); font-size: .72rem; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Botones: un solo radio pequeño, sin flechas decorativas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font: 600 1rem Archivo, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #e2c27f; }
.btn.wa svg { width: 20px; height: 20px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }

/* Marco con marcas de esquina: motivo tomado de los planos y expedientes */
.frame { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.frame::before, .frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; z-index: 1; opacity: .9; pointer-events: none; }
.frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.frame.tall { aspect-ratio: 4 / 5; } .frame.wide { aspect-ratio: 16 / 8; margin: 1.5rem 0; } .frame.sq { aspect-ratio: 1; background: #fff; }
.frame.sq img { object-fit: contain; } .frame.portrait { aspect-ratio: 4 / 5; background: var(--im-soft); } .frame.portrait img { object-fit: contain; object-position: bottom; }
.frame.plain { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); font-weight: 600; background: repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px), var(--paper-2); }
.caption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding: clamp(32px, 7vw, 88px) 0 clamp(40px, 6vw, 80px); }
.hero h1 { max-width: 15ch; }
.routes { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.route { display: flex; align-items: baseline; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 1.15rem; transition: padding .3s var(--ease), color .2s; }
.route span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; font-weight: 600; }
.route:hover { padding-left: 14px; color: var(--im); }
.route:nth-child(2):hover { color: var(--gold-ink); }

/* Dos empresas */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(56px, 8vw, 110px); }
.co { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.co .btn { margin-top: auto; }
.co-im { background: #fff; border: 1px solid var(--line); border-right: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.co-im .co-logo { height: 90px; width: auto; margin-bottom: 18px; }
.co-im .co-tag { color: var(--im); }
.co-gr { background: var(--ink); color: #e9e4d8; }
.co-gr .co-logo { height: 100px; width: auto; margin: 0 0 6px -6px; }
.co-gr .co-tag { color: var(--gold); }
.co-tag { font-weight: 650; margin-bottom: .8em; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 6px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: currentColor; opacity: .5; }

/* Secciones */
.block { padding-block: clamp(40px, 6vw, 80px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.svc-list a { position: relative; display: grid; grid-template-columns: 56px 1fr 1.3fr; gap: 16px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s; }
.svc-list a:hover { background: #fff; }
.num { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.svc-t { font-stretch: 80%; font-weight: 750; font-size: 1.45rem; line-height: 1.15; }
.svc-s { color: var(--muted); }
.svc-peek { position: absolute; right: 24px; top: 50%; width: 180px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); opacity: 0; transform: translate(12px, -50%) rotate(2deg); transition: .35s var(--ease); pointer-events: none; box-shadow: 0 12px 30px rgb(20 32 44 / .18); }
@media (hover: hover) and (min-width: 960px) { .svc-list a:hover .svc-peek { opacity: 1; transform: translate(0, -50%) rotate(0); } .svc-list a:hover .svc-s { opacity: 0; } }

.shop-band { background: var(--ink); color: #e9e4d8; padding-block: clamp(48px, 7vw, 90px); }
.shop-band .link { color: var(--gold); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--gold) transparent; }
.rail .prod { scroll-snap-align: start; }
.prod { background: #fff; color: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(20 32 44 / .12); }
.prod-img { aspect-ratio: 1; background: #fff; display: block; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.prod:hover .prod-img img { transform: scale(1.04); }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.prod-body h3 { font-size: 1.1rem; margin: 0; } .prod-body h3 a { text-decoration: none; }
.prod-body .btn { margin-top: auto; align-self: flex-start; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; } .price.big { font-size: 2rem; font-stretch: 80%; }
.avail { font-size: .8rem; font-weight: 600; color: var(--gold-ink); background: #f3ead6; padding: 2px 8px; border-radius: 4px; margin-left: 6px; }

.mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px 24px; }
.mosaic .big { grid-row: span 2; } .mosaic .big .frame { aspect-ratio: 4 / 3.6; }
.pj { text-decoration: none; display: block; }
.pj .frame { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.pj:hover .frame img { transform: scale(1.04); }
.pj-meta { font-size: .9rem; color: var(--muted); font-weight: 600; }
.pj h3 { margin-top: 4px; }

/* Contacto */
.contact-band { background: var(--im-soft); padding-block: clamp(48px, 7vw, 96px); }
.contact-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.direct { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; min-height: 44px; text-decoration: none; }
.direct a:hover { color: var(--im); }
.direct svg { width: 22px; height: 22px; }
.form { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form i { font-style: normal; color: var(--muted); font-weight: 400; }
.form input:not([type=radio]), .form textarea, .search input, .buy input { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 13px; min-height: 48px; transition: border-color .2s, background .2s; }
.form input:focus, .form textarea:focus, .search input:focus, .buy input:focus { border-color: var(--im); background: #fff; outline: none; box-shadow: 0 0 0 3px rgb(26 95 153 / .18); }
.form [aria-invalid="true"] { border-color: #b3261e !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.2em; } .form-msg.ok { color: #1f6b33; } .form-msg.err { color: #b3261e; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.opts { border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 14px; display: grid; gap: 6px; margin: 0; }
.opts legend { font-weight: 600; padding: 0 6px; } .opts label { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 40px; }

/* Páginas internas */
.page-head { display: flex; gap: 28px; align-items: flex-start; padding: clamp(36px, 6vw, 72px) 0 12px; }
.ph-logo { height: 78px; width: auto; flex: none; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.svc-card { text-decoration: none; display: flex; flex-direction: column; }
.svc-card .frame { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.svc-card:hover .frame img { transform: scale(1.04); }
.svc-card h2 { font-size: 1.5rem; margin-bottom: .3em; } .svc-card p { color: var(--muted); }
.svc-card .link { margin-top: auto; }
.svc-card:nth-child(4n+1) { grid-column: span 2; } .svc-card:nth-child(4n+1) .frame { aspect-ratio: 16 / 8; }
.detail { padding-block: clamp(28px, 5vw, 64px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; } .crumbs a { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.detail-grid .btn { margin: 8px 8px 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.chips a, .chips button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; background: transparent; font: 550 .95rem Archivo, sans-serif; color: var(--ink); cursor: pointer; }
.chips a:hover, .chips button:hover { border-color: var(--ink); }
.chips [aria-current], .chips [aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

body.shop .shop-head { background: var(--ink); color: #e9e4d8; padding-block: clamp(28px, 5vw, 56px); }
.shop-head-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.shop-head .lead { color: #d4cfc3; }
.ph-logo-wide { height: 92px; width: auto; margin: 0 0 8px -6px; }
.search { display: flex; gap: 8px; } .search input { background: #fff; }
.grid-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.prod-detail { grid-template-columns: 1fr 1fr; }
.avail-line { color: var(--muted); }
.buy { display: flex; gap: 12px; align-items: end; margin: 18px 0 6px; } .buy label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; width: 110px; }
.empty { text-align: center; padding: 48px 16px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.empty .btn { margin: 6px; }

.cart-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1.5px solid var(--ink); }
.cart-list li { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-list img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r); }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty output { min-width: 32px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.rm { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; font: inherit; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.order { max-width: 680px; margin-top: 28px; }
.sum { list-style: none; padding: 0; max-width: 560px; border-top: 1.5px solid var(--ink); margin: 20px 0 28px; }
.sum li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); } .sum .tot { font-size: 1.15rem; }
.done .btn { margin: 6px 6px 6px 0; }

.profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: end; padding-block: 24px 8px; }
.pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.pj[hidden] { display: none; }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; } .gal .frame { aspect-ratio: 4/3; }

.foot { background: var(--ink); color: #cfc9bc; padding: 56px 0 28px; font-size: .95rem; }
.foot-in > div:first-child { display: flex; gap: 22px; align-items: center; margin-bottom: 28px; } .foot-in > div:first-child img { height: 52px; width: auto; }
.foot-in > div:first-child img:first-child { background: #f5f3ee; border-radius: var(--r); padding: 4px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot b { color: #fff; } .foot a { color: #e9e4d8; }
.fine { border-top: 1px solid #2e3d4c; margin-top: 28px; padding-top: 18px; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #1f8f4e; color: #fff; display: grid; place-items: center; z-index: 30; box-shadow: 0 8px 20px rgb(0 0 0 / .22); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); } .wa-float svg { width: 30px; height: 30px; }

/* Movimiento: entrada del hero y aparición al hacer scroll, para guiar la lectura */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .12s; } .rise:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.wipe { clip-path: inset(100% 0 0 0); animation: wipe 1.2s .15s var(--ease) forwards; }
.wipe img { transform: scale(1.12); animation: settle 1.6s .15s var(--ease) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } } @keyframes settle { to { transform: scale(1); } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rise, .js .reveal { opacity: 1; transform: none; } .wipe { clip-path: none; } .wipe img { transform: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .hero, .duo, .contact-in, .detail-grid, .shop-head-in, .profile { grid-template-columns: 1fr; }
  .hero-media .frame.tall { aspect-ratio: 4 / 3; }
  .co-im { border-right: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .svc-grid, .pj-grid { grid-template-columns: 1fr 1fr; } .svc-card:nth-child(4n+1) { grid-column: span 2; }
  .profile .frame { max-width: 280px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; animation: rise .3s var(--ease); }
  .nav a { min-height: 50px; font-size: 1.1rem; } .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--ink); }
  .svc-list a { grid-template-columns: 40px 1fr; } .svc-s { grid-column: 2; }
  .mosaic, .svc-grid, .pj-grid, .gal, .foot-cols, .row2 { grid-template-columns: 1fr; }
  .mosaic .big { grid-row: auto; } .svc-card:nth-child(4n+1) { grid-column: auto; } .svc-card:nth-child(4n+1) .frame { aspect-ratio: 4/3; }
  .page-head { flex-direction: column; gap: 12px; } .ph-logo { height: 60px; }
  .grid-prod { grid-template-columns: 1fr 1fr; gap: 12px; } .prod-body { padding: 10px 12px 12px; } .prod-body h3 { font-size: 1rem; }
  .cart-list li { grid-template-columns: 56px 1fr; } .cart-list img { width: 56px; height: 56px; } .cart-list .qty, .cart-list .rm { grid-column: 2; justify-self: start; }
  .search { flex-direction: column; } .buy { flex-wrap: wrap; }
  .rail { grid-auto-columns: 72%; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--r); z-index: 40; transition: transform .35s var(--ease); max-width: calc(100% - 120px); }
.toast.show { transform: translate(-50%, 0); } .toast a { color: var(--gold); font-weight: 600; }

/* Interfaz móvil inspirada en iOS: superficies, ritmo y controles táctiles. */
:root {
  --paper: #f5f6f8; --paper-2: #e9edf2; --ink: #162337; --ink-2: #35465a;
  --line: #dce2e9; --muted: #546478; --im: #1766ae; --im-soft: #e8f1fa;
  --r: 16px; --r-lg: 26px; --wrap: 1200px;
  --fs-h1: clamp(2.8rem, 1.65rem + 3vw, 4.4rem);
  --fs-h2: clamp(2rem, 1.4rem + 2vw, 3rem);
}
html { scroll-padding-top: 94px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Archivo, sans-serif; line-height: 1.55; }
::selection { background: #bddbf6; color: var(--ink); }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Archivo, sans-serif; font-stretch: normal; font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
h3, .h3 { letter-spacing: -.025em; }
.lead { line-height: 1.5; }
:focus-visible { outline-color: var(--im); outline-offset: 4px; border-radius: 8px; }
.review { background: #eaf2fa; color: #28435e; border-bottom: 1px solid #d2e0ed; }
.top { top: 0; background: rgb(255 255 255 / .83); border-bottom-color: rgb(220 226 233 / .8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.top-in { min-height: 76px; }
.brand img { height: 42px; }
.brand span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Archivo, sans-serif; font-stretch: normal; font-size: 1.25rem; letter-spacing: -.035em; }
.nav { gap: 2px; }
.nav a { border-radius: 999px; font-size: .94rem; padding-inline: 17px; }
.nav a:hover, .cart-link:hover { background: #eef3f8; }
.nav a[aria-current] { box-shadow: none; background: var(--im-soft); color: var(--im); border-radius: 999px; }
.cart-link { border-radius: 50%; }
.btn { border-radius: 999px; min-height: 50px; padding-inline: 23px; border-width: 1px; font-family: inherit; font-weight: 650; box-shadow: 0 5px 12px rgb(19 45 72 / .12); }
.btn:hover { box-shadow: 0 9px 18px rgb(19 45 72 / .16); }
.btn.ghost { box-shadow: none; background: #fff; border-color: #cdd8e3; }
.btn.gold { background: #e9c67b; border-color: #e9c67b; }
.frame { border-radius: var(--r-lg); }
.frame::before, .frame::after { display: none; }
.hero { min-height: min(780px, calc(100svh - 76px)); grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px); }
.hero h1 { max-width: 17ch; margin-bottom: .3em; }
.hero .lead { max-width: 52ch; color: var(--muted); }
.hero-media .frame { border-radius: 32px; box-shadow: 0 28px 55px rgb(26 52 80 / .16); }
.hero-media .frame.tall { aspect-ratio: 5 / 6; }
.caption { color: var(--muted); margin: 12px 0 0 6px; }
.routes { margin-top: 32px; border-top: 0; gap: 9px; }
.route { align-items: center; min-height: 62px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 1.03rem; box-shadow: 0 5px 18px rgb(20 39 61 / .04); }
.route::after { content: "›"; margin-left: auto; font-size: 1.7rem; line-height: 1; color: var(--im); }
.route span { font-size: .78rem; color: var(--im); }
.route:hover { padding-left: 22px; border-color: #aac8e3; }
.route:nth-child(2)::after { color: var(--gold-ink); }
.duo { gap: 18px; overflow: visible; }
.co { border-radius: var(--r-lg); min-height: 500px; }
.co-im { border: 1px solid var(--line); box-shadow: 0 12px 34px rgb(17 43 68 / .05); }
.co-gr { background: #182a42; }
.co h2 { margin-bottom: .3em; }
.co .btn { margin-top: auto; }
.block { padding-block: clamp(56px, 7vw, 98px); }
.sec-head { margin-bottom: 30px; }
.svc-list { border-top-color: var(--line); }
.svc-list a { min-height: 92px; align-items: center; padding: 20px 12px; }
.svc-list a:hover { border-radius: 14px; }
.svc-t { font-family: inherit; font-stretch: normal; letter-spacing: -.025em; }
.shop-band { background: #182a42; }
.rail { gap: 18px; }
.prod { border: 0; border-radius: 20px; box-shadow: 0 8px 26px rgb(18 39 60 / .08); }
.prod-body { border-top-color: #edf0f4; padding: 16px 18px 18px; }
.prod-body .btn { width: 100%; }
.price.big { font-stretch: normal; }
.pj .frame, .svc-card .frame { border-radius: 22px; }
.pj-meta { color: var(--muted); }
.contact-band { background: #e8f1fa; }
.form { border: 0; box-shadow: 0 15px 40px rgb(20 53 86 / .08); }
.form input:not([type=radio]), .form textarea, .search input, .buy input { background: #f6f8fa; border: 1px solid #d6dfe8; border-radius: 13px; font-size: 1rem; }
.form input:focus, .form textarea:focus, .search input:focus, .buy input:focus { box-shadow: 0 0 0 4px rgb(23 102 174 / .14); }
.chips a, .chips button { border-radius: 999px; font-family: inherit; }
.chips [aria-current], .chips [aria-pressed="true"] { background: var(--im); border-color: var(--im); }
.shop-head { background: #182a42; }
.qty { border-radius: 999px; background: #fff; }
.empty { background: #fff; }
.foot { background: #17283d; }
.wa-float { background: #238f54; box-shadow: 0 12px 25px rgb(0 0 0 / .2); }
.mobile-tabs { display: none; }
@media (max-width: 960px) {
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-media .frame.tall { aspect-ratio: 16 / 10; }
  .co { min-height: 0; }
}
@media (max-width: 760px) {
  :root { --fs-h1: clamp(2.4rem, 9.5vw, 3.5rem); --fs-h2: clamp(1.75rem, 7vw, 2.3rem); }
  html { scroll-padding-top: 76px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .top-in { min-height: 62px; }
  .brand img { height: 37px; }
  .brand span { font-size: 1.15rem; }
  .menu-btn { border-radius: 50%; background: #f0f4f8; }
  .nav { left: 12px; right: 12px; top: calc(100% + 8px); padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: rgb(255 255 255 / .96); box-shadow: 0 18px 38px rgb(16 36 56 / .16); }
  .nav a[aria-current] { box-shadow: none; }
  .hero { gap: 28px; padding-block: 38px 55px; }
  .hero h1 { max-width: 16ch; }
  .hero .lead { font-size: 1.06rem; }
  .hero-media .frame.tall { aspect-ratio: 4 / 3; border-radius: 24px; }
  .routes { margin-top: 26px; }
  .route { min-height: 57px; font-size: .97rem; padding-inline: 14px; }
  .duo { gap: 14px; margin-bottom: 30px; }
  .co { border-radius: 22px; padding: 28px; }
  .co-im { border: 1px solid var(--line); }
  .co .btn { width: 100%; text-align: center; }
  .block { padding-block: 54px; }
  .sec-head { align-items: flex-start; gap: 8px; margin-bottom: 22px; }
  .sec-head .link { font-size: .93rem; }
  .svc-list a { min-height: 0; gap: 6px 10px; padding-block: 18px; }
  .svc-t { font-size: 1.22rem; }
  .svc-s { font-size: .92rem; }
  .shop-band { padding-block: 54px; }
  .rail { margin-right: -18px; padding-right: 18px; grid-auto-columns: minmax(235px, 74vw); }
  .prod { border-radius: 18px; }
  .grid-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-prod .prod-body { padding: 12px; }
  .grid-prod .prod-body h3 { font-size: .94rem; }
  .grid-prod .btn.sm { min-height: 42px; padding-inline: 8px; }
  .page-head { padding-top: 42px; }
  .page-head h1 { margin-bottom: .2em; }
  .search .btn { width: 100%; }
  .contact-band { padding-block: 55px; }
  .form { border-radius: 22px; padding: 20px; }
  .foot { padding-bottom: 35px; }
  .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); right: 16px; width: 52px; height: 52px; }
  .mobile-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr); min-height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .92); border-top: 1px solid rgb(220 226 233 / .85); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
  .mobile-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 13px; color: #526377; font-size: .68rem; font-weight: 650; text-decoration: none; }
  .mobile-tabs a[aria-current] { color: var(--im); background: #eaf3fb; }
  .mobile-tabs svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); width: max-content; }
}
@media (max-width: 390px) {
  .grid-prod { gap: 9px; }
  .grid-prod .prod-body { padding: 10px; }
  .grid-prod .prod-body h3 { font-size: .9rem; }
  .grid-prod .price { font-size: .9rem; }
}

/* ===== Interfaz en movimiento (referencias: barra líquida, palabra cinética, interruptor con haz de luz) ===== */

/* Formulario mínimo: correo + requerimiento, etiquetas flotantes y línea que se dibuja al enfocar */
.form.mini { gap: 26px; position: relative; overflow: hidden; padding: clamp(24px, 4vw, 40px); }
.form.mini .fl { display: block; position: relative; font-weight: 400; }
.form.mini .fl input, .form.mini .fl textarea { display: block; width: 100%; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; padding: 26px 0 12px; font: inherit; font-size: 1.2rem; color: inherit; box-shadow: none; resize: none; min-height: 0; overflow: hidden; }
.form.mini .fl textarea { min-height: 64px; }
.form.mini .fl input:focus, .form.mini .fl textarea:focus { outline: none; box-shadow: none; background: transparent; border-color: var(--line); }
.form.mini .fl span { position: absolute; left: 0; top: 26px; font-size: 1.2rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .35s; }
.form.mini .fl :focus + span, .form.mini .fl :not(:placeholder-shown) + span { transform: translateY(-24px) scale(.72); color: var(--im); font-weight: 650; }
.form.mini .fl i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--im), #e2bd6e); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.form.mini .fl :focus ~ i { transform: scaleX(1); }
.form.mini .fl [aria-invalid="true"] { border-bottom-color: #c4302b; animation: shake .4s; }
@keyframes shake { 25% { translate: -6px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; } }
.mini-subj { margin: 0; font-size: .92rem; background: var(--im-soft); color: var(--im); padding: 8px 14px; border-radius: 99px; justify-self: start; }
.mini-subj span { font-weight: 700; margin-right: 4px; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mini-foot .form-msg { flex: 1; min-width: 160px; }
.btn.send { gap: 10px; padding-inline: 28px; }
.btn.send svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.btn.send:hover svg { transform: translateX(5px); }
.btn.send:disabled svg { animation: fly .9s var(--ease) infinite; }
@keyframes fly { 0% { transform: none; opacity: 1; } 60% { transform: translateX(22px); opacity: 0; } 61% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mini-ok { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: inherit; text-align: center; opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .4s, transform .5s var(--ease), visibility .4s; }
.form.mini.sent .mini-ok { opacity: 1; visibility: visible; transform: none; }
.mini-ok svg { width: 72px; height: 72px; fill: none; stroke: #238f54; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.mini-ok circle { stroke-dasharray: 151; stroke-dashoffset: 151; } .mini-ok path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.mini.sent .mini-ok circle { animation: draw .7s var(--ease) .1s forwards; } .form.mini.sent .mini-ok path { animation: draw .45s var(--ease) .65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mini-ok b { font-size: 1.6rem; letter-spacing: -.03em; } .mini-ok span { color: var(--muted); }

/* Página de contacto: palabra cinética */
.kc { background: #13202f; color: #f4efe4; overflow: hidden; padding-top: clamp(32px, 5vw, 64px); }
.kc-info { list-style: none; margin: 0 0 clamp(28px, 6vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px clamp(24px, 5vw, 64px); font-size: .95rem; color: #c9d4df; }
.kc-info li { display: grid; gap: 4px; opacity: 0; animation: pf-rise .7s var(--ease) forwards; }
.kc-info li:nth-child(2) { animation-delay: .08s; } .kc-info li:nth-child(3) { animation-delay: .16s; } .kc-info li:nth-child(4) { animation-delay: .24s; }
.kc-info span { font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #e2bd6e; }
.kc-info a { color: #f4efe4; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease); }
.kc-info a:hover { background-size: 100% 1px; }
.kc-word { display: flex; justify-content: space-between; margin: 0 -0.02em; padding: 0; font-family: Archivo, sans-serif; font-stretch: 75%; font-weight: 800; letter-spacing: -.02em; line-height: .78; font-size: clamp(3.2rem, 20vw, 16.5rem); color: #e2bd6e; overflow: hidden; padding-bottom: .02em; }
.kc-word span { display: inline-block; transform-origin: 50% 100%; translate: 0 105%; animation: kc-up .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .15s); transition: transform .55s cubic-bezier(.3, 1.7, .45, .9), color .4s; }
.kc-word span:nth-child(even) { color: #f4efe4; }
@keyframes kc-up { to { translate: 0 0; } }
.kc-word .k1 { transform: scaleY(.45); } .kc-word .k2 { transform: scale(.5); color: #4f9de6; } .kc-word .k3 { transform: scale(.62) rotate(-8deg); }
.kc-form { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.kc-lead h2 { margin-bottom: .4em; } .kc-lead p { color: var(--muted); font-size: 1.1rem; max-width: 40ch; }

/* Interruptor claro/oscuro con haz de luz */
.theme-btn { position: relative; width: 60px; height: 32px; border-radius: 99px; border: 1px solid var(--line); background: #e8edf3; cursor: pointer; padding: 0; flex: none; display: inline-flex; align-items: center; justify-content: space-between; padding-inline: 8px; transition: background .5s; }
.theme-btn svg { width: 15px; height: 15px; fill: none; stroke: #6a7a8c; stroke-width: 2; stroke-linecap: round; position: relative; z-index: 1; }
.tb-knob { position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(16 32 52 / .25); transition: transform .5s cubic-bezier(.4, 1.5, .5, 1), background .5s, box-shadow .5s; z-index: 2; }
.tb-beam { position: absolute; top: 14px; left: 30px; width: 220px; height: 520px; pointer-events: none; transform-origin: 0 0; transform: rotate(32deg); opacity: 0; z-index: -1;
  background: radial-gradient(60% 55% at 0 0, rgb(160 185 255 / .55), transparent 70%); clip-path: polygon(0 0, 14% 0, 100% 100%, 0 100%); filter: blur(10px); transition: opacity .8s; }
[data-theme="dark"] .theme-btn { background: #1a2a3e; border-color: #2c3f57; }
[data-theme="dark"] .tb-knob { transform: translateX(28px); background: #f1f4ff; box-shadow: 0 0 14px 4px rgb(170 195 255 / .65); }
[data-theme="dark"] .tb-moon { stroke: #13202f; }
[data-theme="dark"] .tb-beam { opacity: .55; }
.theme-btn.flash .tb-beam { animation: beam 1.2s var(--ease); }
@keyframes beam { 0% { opacity: 0; transform: rotate(32deg) scaleY(.2); } 40% { opacity: .95; } 100% { opacity: .55; transform: rotate(32deg); } }
.top-act { position: relative; }

/* Barra inferior líquida en celular */
@media (max-width: 760px) {
  .mobile-tabs { position: fixed; overflow: visible; }
  .mt-blob { position: absolute; top: 0; left: 8px; width: calc((100% - 16px) / 4); height: 100%; pointer-events: none; transform: translateX(calc(var(--i) * 100%)); transition: transform .6s cubic-bezier(.45, 1.6, .4, .9); }
  .mobile-tabs.no-anim .mt-blob { transition: none; }
  .mobile-tabs[style*="--i:-1"] .mt-blob { display: none; }
  .mt-blob::before { content: ""; position: absolute; left: 50%; top: -20px; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: var(--im); box-shadow: 0 0 0 6px var(--tabbg, #fff), 0 10px 20px rgb(23 102 174 / .35); }
  .mobile-tabs a { position: relative; z-index: 1; }
  .mobile-tabs a[aria-current] { background: none; color: var(--im); }
  .mobile-tabs a[aria-current] svg { color: #fff; transform: translateY(-20px); animation: tab-pop .7s cubic-bezier(.45, 1.6, .4, .9) .15s backwards; }
  .mobile-tabs a svg { transition: transform .4s var(--ease); }
  @keyframes tab-pop { from { transform: translateY(0); color: currentColor; } }
  .theme-btn { width: 54px; } [data-theme="dark"] .tb-knob { transform: translateX(22px); }
  .kc-info { grid-template-columns: 1fr 1fr; }
  .kc-form { grid-template-columns: 1fr; }
}

/* Tema oscuro */
.theme-anim, .theme-anim * { transition: background-color .5s, color .5s, border-color .5s !important; }
[data-theme="dark"] {
  --paper: #0d1621; --paper-2: #132131; --ink: #e6ecf2; --ink-2: #c3cfdb; --line: #23344a; --muted: #94a6b8;
  --im: #4f9de6; --im-soft: #13304d; --gold-ink: #e2bd6e; --tabbg: #0d1621; color-scheme: dark;
}
[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .top { background: rgb(13 22 33 / .82); border-bottom-color: #1d2c3f; }
[data-theme="dark"] .review { background: #10233a; color: #bcd0e4; border-color: #1d3550; }
[data-theme="dark"] .brand img, [data-theme="dark"] .foot-in > div:first-child img:first-child { background: #f5f3ee; border-radius: 8px; padding: 2px; }
[data-theme="dark"] .nav a:hover, [data-theme="dark"] .cart-link:hover { background: #172538; }
[data-theme="dark"] .menu-btn { background: #172538; }
@media (max-width: 760px) { [data-theme="dark"] .nav { background: rgb(19 33 49 / .97); } }
[data-theme="dark"] .btn { background: #e6ecf2; border-color: #e6ecf2; color: #0d1621; }
[data-theme="dark"] .btn.gold { background: #e2bd6e; border-color: #e2bd6e; color: #13202f; }
[data-theme="dark"] .btn.ghost { background: transparent; color: #e6ecf2; border-color: #33475f; }
[data-theme="dark"] .btn.wa { background: #238f54; border-color: #238f54; color: #fff; }
[data-theme="dark"] .pf-ghost { background: transparent; color: inherit; border-color: currentColor; }
[data-theme="dark"] .route, [data-theme="dark"] .prod, [data-theme="dark"] .prod-img, [data-theme="dark"] .form, [data-theme="dark"] .co-im,
[data-theme="dark"] .qty, [data-theme="dark"] .empty, [data-theme="dark"] .svc-list a:hover, [data-theme="dark"] .frame.sq, [data-theme="dark"] .cart-list img,
[data-theme="dark"] .pf-stats > div, [data-theme="dark"] .pf-card, [data-theme="dark"] .pf-study li, [data-theme="dark"] .pf-langs li, [data-theme="dark"] .pf-tools li { background: #142232; color: var(--ink); border-color: #23344a; }
[data-theme="dark"] .pf-card:nth-child(even) { background: #0a121b; }
[data-theme="dark"] .prod-img img, [data-theme="dark"] .cart-list img { background: #fff; }
[data-theme="dark"] .prod-body { border-top-color: #1d2c3f; }
[data-theme="dark"] .contact-band, [data-theme="dark"] .pf-soft { background: #101d2c; }
[data-theme="dark"] .form input:not([type=radio]), [data-theme="dark"] .form textarea, [data-theme="dark"] .search input, [data-theme="dark"] .buy input { background: #0f1b29; border-color: #2a3d54; color: var(--ink); }
[data-theme="dark"] .form.mini .fl input, [data-theme="dark"] .form.mini .fl textarea { background: transparent; border-color: #2a3d54; }
[data-theme="dark"] .chips a, [data-theme="dark"] .chips button { color: var(--ink); background: transparent; }
[data-theme="dark"] .chips [aria-current], [data-theme="dark"] .chips [aria-pressed="true"] { background: var(--im); border-color: var(--im); color: #fff; }
[data-theme="dark"] .avail { background: #2a2416; }
[data-theme="dark"] .foot, [data-theme="dark"] .shop-band, [data-theme="dark"] .shop-head, [data-theme="dark"] .co-gr { background: #0a121b; }
[data-theme="dark"] .mobile-tabs { background: rgb(13 22 33 / .92); border-top-color: #1d2c3f; }
[data-theme="dark"] .mobile-tabs a { color: #8fa1b4; }
[data-theme="dark"] .mobile-tabs a[aria-current] { color: var(--im); }
[data-theme="dark"] .toast { background: #e6ecf2; color: #0d1621; }
[data-theme="dark"] ::selection { background: #1f4a75; color: #fff; }
[data-theme="dark"] .pf-hero, [data-theme="dark"] .pf-dark, [data-theme="dark"] .pf-teaser, [data-theme="dark"] .kc { background: #0a121b; }

@media (prefers-reduced-motion: reduce) {
  .kc-word span, .kc-info li { animation: none; translate: none; opacity: 1; }
  .mt-blob, .mobile-tabs a svg { transition: none; } .mobile-tabs a[aria-current] svg { animation: none; }
  .tb-knob, .tb-beam { transition: none; } .theme-btn.flash .tb-beam { animation: none; }
  .form.mini.sent .mini-ok circle, .form.mini.sent .mini-ok path { animation: none; stroke-dashoffset: 0; }
}

html { overflow-x: clip; }

/* ===== Portafolio personal (v3): claro y oscuro, compacto y en movimiento =====
   Una sola fuente de color por tema; las secciones largas se recorren de lado (carrusel 3D, riel, pestañas)
   para que el visitante no tenga que bajar sin fin. */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pf {
  --bg: #f3f5f8; --bg2: #e9eef4; --card: #fff; --tx: #13202f; --sub: #586678; --ln: #dce3eb;
  --gold: #c4932f; --gold-2: #e2bd6e; --blue: #1766ae; --soft: #e3edf7;
  --hero: radial-gradient(80% 75% at 72% 42%, #dbe8f5 0%, #f3f5f8 62%);
  --chip: rgb(255 255 255 / .72); --shadow: 0 18px 40px rgb(20 39 61 / .1);
  background: var(--bg); color: var(--tx); overflow: hidden;
}
[data-theme="dark"] .pf {
  --bg: #0b131c; --bg2: #0f1a27; --card: #121f2e; --tx: #e6ecf2; --sub: #9aabbd; --ln: #1f2f43;
  --gold: #e2bd6e; --blue: #4f9de6; --soft: #13304d;
  --hero: radial-gradient(80% 75% at 72% 42%, #16293f 0%, #0b131c 62%);
  --chip: rgb(20 34 50 / .6); --shadow: 0 18px 40px rgb(0 0 0 / .35);
}
.pf h2, .pf h3 { color: var(--tx); }
.pf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--gold); margin: 0 0 12px; }
.pf-eyebrow::before { content: ""; width: 22px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2) 50%, var(--blue) 50%); }
.pf-mark { color: var(--blue); background: linear-gradient(transparent 80%, color-mix(in srgb, var(--gold-2) 70%, transparent) 80%) no-repeat 0 0 / 0 100%; transition: background-size 1s var(--ease) .2s; }
.in .pf-mark { background-size: 100% 100%; }
.pf-ghost { background: transparent; color: var(--tx); border: 1px solid color-mix(in srgb, var(--tx) 35%, transparent); box-shadow: none; }
.pf-ghost:hover { background: color-mix(in srgb, var(--tx) 7%, transparent); }
[data-theme="dark"] .pf .pf-ghost { background: transparent; color: var(--tx); }
.pf-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-cta .btn svg { width: 20px; height: 20px; margin-right: 8px; }
.pf-intro { font-size: 1.12rem; color: var(--sub); max-width: 48ch; }
.pf .rise { opacity: 0; transform: translateY(24px); animation: pf-rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 300ms); }
@keyframes pf-rise { to { opacity: 1; transform: none; } }
@keyframes pf-slide { to { transform: translateX(-50%); } }
@keyframes pf-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pf-float { 50% { transform: translateY(-9px); } }

/* Portada */
.ph { position: relative; background: var(--hero); --mx: 0; --my: 0; --sy: 0; }
.ph-glow { position: absolute; width: 700px; aspect-ratio: 1; right: -2%; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-2) 40%, transparent), color-mix(in srgb, var(--blue) 22%, transparent) 45%, transparent 68%);
  translate: calc(var(--mx) * 40px) calc(var(--my) * 40px); animation: ph-breathe 9s ease-in-out infinite; }
@keyframes ph-breathe { 50% { transform: scale(1.12); opacity: .75; } }
.ph-back { position: absolute; left: 0; right: 0; bottom: 8%; overflow: hidden; pointer-events: none; opacity: 0; animation: pf-rise 1.4s var(--ease) 1.2s forwards; }
.ph-back > div { display: flex; width: max-content; animation: pf-slide 70s linear infinite; }
.ph-back span { font: 800 clamp(5rem, 13vw, 12rem)/1 Archivo, sans-serif; font-stretch: 75%; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 22%, transparent); padding-right: .3em; }
.ph-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 0 24px; min-height: min(860px, calc(100svh - 110px)); }
.ph-tx { position: relative; z-index: 3; align-self: center; padding-block: clamp(36px, 6vw, 80px); }
.ph-name { margin: 0 0 .22em; font: 800 clamp(4.2rem, 1.5rem + 9.5vw, 11rem)/.8 Archivo, sans-serif; font-stretch: 75%; letter-spacing: -.01em; white-space: nowrap; }
.ph-name > span { display: block; overflow: hidden; padding-block: .04em; margin-block: -.04em; }
.ph-name i { display: inline-block; font-style: normal; translate: 0 108%; animation: ph-up 1s cubic-bezier(.2, .9, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms + .25s); transition: transform .4s cubic-bezier(.3, 1.8, .4, 1), color .3s; cursor: default; }
.ph-name i:hover { transform: translateY(-.07em) rotate(-4deg); color: var(--blue); -webkit-text-stroke-color: var(--blue); }
@keyframes ph-up { to { translate: 0 0; } }
.ph-l1 { color: transparent; -webkit-text-stroke: 2px var(--gold); translate: calc(var(--sy) * -.25px) 0; }
.ph-l2 { color: var(--tx); translate: calc(var(--sy) * .18px) 0; }
.ph-role { font-size: 1.2rem; color: var(--sub); margin-bottom: 12px; } .ph-role b { color: var(--gold); }
.pf-cta .pf-ghost span { display: inline-block; margin-left: 8px; transition: transform .3s var(--ease); } .pf-cta .pf-ghost:hover span { transform: translateX(5px); }
.ph-facts { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--ln); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px clamp(18px, 3vw, 40px); }
.ph-facts b { display: block; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-facts span { color: var(--sub); font-size: .9rem; }
.ph-media { position: relative; align-self: end; justify-self: center; width: min(500px, 100%, 64svh); translate: calc(var(--mx) * 16px) calc(var(--my) * 10px); }
.ph-halo { position: absolute; left: 8%; right: 8%; top: 8%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--blue) 14%, var(--card));
  transform: scale(0); animation: ph-halo 1.1s cubic-bezier(.3, 1.4, .4, 1) .2s forwards; }
.ph-halo::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from var(--ga), var(--gold-2), transparent 30%, var(--blue) 55%, transparent 80%, var(--gold-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ga 6s linear infinite; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--blue) 60%, transparent)); }
@keyframes ph-halo { to { transform: scale(1); } }
@keyframes spin-ga { to { --ga: 360deg; } }
.ph-photo { position: relative; z-index: 2; margin: 0; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent);
  clip-path: inset(100% 0 0 0); animation: ph-reveal 1.3s cubic-bezier(.7, 0, .2, 1) .35s forwards; }
.ph-photo img { width: 100%; transform: scale(1.1) translateY(4%); animation: ph-settle 1.8s var(--ease) .45s forwards; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .25)); }
@keyframes ph-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes ph-settle { to { transform: none; } }
.ph-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 3; translate: calc(var(--mx) * -22px) calc(var(--my) * -16px); }
.ph-chips li { position: absolute; padding: 9px 16px; border-radius: 99px; font-size: .88rem; font-weight: 650; color: var(--tx); white-space: nowrap;
  background: var(--chip); border: 1px solid color-mix(in srgb, var(--tx) 14%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
  opacity: 0; animation: pf-pop .7s var(--ease) forwards, pf-float 6s ease-in-out infinite; animation-delay: calc(1.4s + var(--i) * .15s), calc(2.2s + var(--i) * .8s); }
.ph-chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-2) 25%, transparent); }
.ph-chips li:nth-child(1) { top: 14%; left: -4%; } .ph-chips li:nth-child(2) { top: 26%; right: -2%; }
.ph-chips li:nth-child(3) { top: 56%; left: -8%; } .ph-chips li:nth-child(4) { top: 68%; right: 0; }
.ph-vert { position: absolute; right: -4px; top: 50%; margin: 0; writing-mode: vertical-rl; rotate: 180deg; translate: 0 -50%; font-size: .76rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--sub); z-index: 3; }

/* Cinta */
.pf-marquee { background: var(--gold-2); color: #13202f; overflow: hidden; transform: rotate(-1.2deg); margin: -12px -2% 0; padding: 12px 0; position: relative; z-index: 4; }
.pf-marquee > div { display: flex; width: max-content; animation: pf-slide 38s linear infinite; }
.pf-marquee span { display: flex; align-items: center; }
.pf-marquee b { font-size: 1.1rem; font-weight: 750; padding: 0 18px; white-space: nowrap; }
.pf-marquee i { font-style: normal; color: #1766ae; }

/* Secciones */
.pf-sec { padding-block: clamp(48px, 6vw, 84px); }
.pf-alt { background: var(--bg2); }
.pf-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(22px, 3vw, 36px); }
.pf-head h2 { margin: 0; }
.pf-arrows { display: flex; gap: 8px; flex: none; }
.pf-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ln); background: var(--card); color: var(--tx); font-size: 1.2rem; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s; }
.pf-arrows button:hover { background: var(--gold-2); color: #13202f; transform: scale(1.08); }
.pf-arrows button:active { transform: scale(.94); }

/* Especialidades: carrusel 3D (referencia de tarjetas que giran) */
.pf-car { position: relative; height: clamp(360px, 42vw, 440px); perspective: 1400px; outline: none; touch-action: pan-y; }
.pf-c { --o: 0; --a: 0; position: absolute; left: 50%; top: 0; width: min(760px, 86%); height: 100%; margin-left: max(-380px, -43%);
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--ln); box-shadow: var(--shadow);
  transform: translateX(calc(var(--o) * 58%)) rotateY(calc(var(--o) * -32deg)) scale(calc(1 - min(1, var(--a)) * .16));
  opacity: calc(1 - min(2, var(--a)) * .38); z-index: calc(10 - var(--a));
  transition: transform .8s cubic-bezier(.3, 1.1, .3, 1), opacity .6s, filter .6s; cursor: pointer; transform-style: preserve-3d; }
.pf-c:not(.on) { filter: saturate(.7); }
.pf-c:not(.on) .pf-c-tx { background: linear-gradient(135deg, #1766ae, #13202f 80%); color: #fff; }
.pf-c:not(.on) .pf-c-tx h3 { color: #fff; } .pf-c:not(.on) .pf-c-tx p { opacity: 0; }
.pf-c.on { cursor: default; }
.pf-c.on .pf-c-tx > * { animation: c-in .7s var(--ease) both; } .pf-c.on .pf-c-tx > :nth-child(2) { animation-delay: .08s; } .pf-c.on .pf-c-tx > :nth-child(3) { animation-delay: .16s; }
.pf-c.on figure img { animation: c-zoom 6s ease-out both; }
@keyframes c-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes c-zoom { from { transform: scale(1.15); } }
.pf-c figure { margin: 0; overflow: hidden; } .pf-c img { width: 100%; height: 100%; object-fit: cover; }
.pf-c-tx { padding: clamp(22px, 3.5vw, 42px); display: flex; flex-direction: column; justify-content: center; transition: background .5s; }
.pf-c-tx p { color: var(--sub); margin: 0; transition: opacity .4s; }
.pf-num { font-weight: 800; color: var(--gold); display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--gold-2); margin-bottom: 18px; }
.pf-c h3 { font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); }
.pf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.pf-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: var(--ln); cursor: pointer; transition: width .4s var(--ease), background .4s; }
.pf-dots button[aria-selected="true"] { width: 34px; background: var(--gold-2); }

/* Trayectoria: riel horizontal con línea de tiempo */
.pf-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2));
  padding: 26px max(16px, calc((100vw - var(--wrap)) / 2)) 18px; scrollbar-width: none; cursor: grab; position: relative; }
.pf-rail::-webkit-scrollbar { display: none; }
.pf-rail.drag { cursor: grabbing; scroll-snap-type: none; } .pf-rail.drag * { pointer-events: none; }
.pf-job { position: relative; scroll-snap-align: start; background: var(--card); border: 1px solid var(--ln); border-radius: 22px; padding: 26px 22px 22px; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.pf-job::before { content: ""; position: absolute; top: -14px; left: -18px; right: -18px; height: 2px; background: var(--ln); }
.pf-job .pf-dot { position: absolute; top: -20px; left: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--blue); z-index: 1; transition: transform .3s; }
.pf-job.now .pf-dot { border-color: var(--gold-2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold-2) 25%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--gold-2) 0%, transparent); } }
.pf-job:hover { transform: translateY(-6px); border-color: var(--gold-2); box-shadow: var(--shadow); } .pf-job:hover .pf-dot { transform: scale(1.3); }
.pf-per { font-size: .88rem; color: var(--sub); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-per em { font-style: normal; background: #238f54; color: #fff; font-size: .72rem; padding: 2px 9px; border-radius: 99px; }
.pf-year { background: var(--soft); color: var(--blue); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.pf-job h3 { font-size: 1.15rem; margin: 0 0 6px; }
.pf-org { color: var(--gold); font-weight: 650; margin: 0; font-size: .95rem; }
.pf-note { color: var(--sub); font-size: .9rem; margin: 8px 0 0; }
.pf-job details { margin-top: 10px; } .pf-job summary { cursor: pointer; font-weight: 650; color: var(--blue); min-height: 32px; display: flex; align-items: center; }
.pf-job details ul { margin: 6px 0 0; padding-left: 18px; color: var(--sub); font-size: .9rem; }
.pf-progress { height: 3px; background: var(--ln); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.pf-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--gold-2)); transform-origin: left; transform: scaleX(var(--p, .1)); transition: transform .2s; }

/* Formación */
.pf-tabs { margin-bottom: 18px; } .pf-tabs small { opacity: .65; margin-left: 4px; }
.pf .chips button { color: var(--tx); background: var(--card); border: 1px solid var(--ln); }
.pf .chips button:hover { border-color: var(--gold-2); }
.pf .chips [aria-pressed="true"] { background: var(--tx); border-color: var(--tx); color: var(--bg); }
.pf-study { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: minmax(300px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pf-study li { scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--ln); border-radius: 18px; padding: 16px 18px; animation: c-in .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); transition: border-color .3s, transform .3s var(--ease); }
.pf-study li:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.pf-study b { display: block; line-height: 1.3; margin-bottom: 4px; } .pf-study span:not(.pf-year) { color: var(--sub); font-size: .9rem; }

/* Galería */
.pf-gal { padding-bottom: clamp(24px, 4vw, 48px); }
.pf-gal-row { overflow: hidden; } .pf-gal-row > div { display: flex; gap: 14px; width: max-content; animation: pf-slide 60s linear infinite; }
.pf-gal-row:hover > div { animation-play-state: paused; }
.pf-gal figure { margin: 0; width: clamp(200px, 22vw, 300px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.pf-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); } .pf-gal figure:hover img { transform: scale(1.08); }

/* Recuadro con borde de luz que gira (referencia del cuadro luminoso) */
.glow-box, .form.mini { position: relative; isolation: isolate; }
.glow-box::before, .form.mini::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ga), #e2bd6e, #4f9de6 25%, transparent 40%, transparent 60%, #1766ae 75%, #e2bd6e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ga 5s linear infinite; }
.glow-box::after, .form.mini::after { content: ""; position: absolute; inset: 12% 6% -8%; z-index: -2; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ga), rgb(226 189 110 / .5), rgb(79 157 230 / .45), transparent 50%, rgb(23 102 174 / .45), rgb(226 189 110 / .5)); filter: blur(46px); opacity: .55; animation: spin-ga 5s linear infinite; }
.form.mini { overflow: visible; } .form.mini .mini-ok { border-radius: inherit; }
.glow-box { background: var(--card); border-radius: 30px; padding: clamp(28px, 5vw, 64px); text-align: center; display: grid; justify-items: center; }
.glow-box h2 { max-width: 22ch; min-height: 2.2em; margin-bottom: .3em; }
.glow-box .pf-cta { justify-content: center; margin-top: 8px; }
.caret { display: inline-block; width: 3px; height: .9em; background: var(--gold-2); margin-left: 4px; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pf-fine { color: var(--sub); font-size: .88rem; margin: 22px 0 0; }

@media (max-width: 960px) {
  .ph-in { grid-template-columns: 1fr; min-height: 0; }
  .ph-tx { padding-bottom: 10px; }
  .ph-media { width: min(440px, 86%); }
  .ph-vert { display: none; }
  .ph-glow { width: 480px; right: -30%; top: 45%; }
  .ph-facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 760px) {
  .ph-name { font-size: clamp(3.6rem, 21vw, 6rem); }
  .ph-l1 { -webkit-text-stroke-width: 1.5px; }
  .ph-chips li { font-size: .76rem; padding: 7px 11px; }
  .ph-chips li:nth-child(1) { left: -2%; } .ph-chips li:nth-child(3) { left: -2%; }
  .pf-head { align-items: start; flex-direction: column; } .pf-arrows { align-self: end; margin-top: -56px; }
  .pf-car { height: 470px; }
  .pf-c { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; width: 84%; margin-left: -42%; transform: translateX(calc(var(--o) * 70%)) rotateY(calc(var(--o) * -30deg)) scale(calc(1 - min(1, var(--a)) * .14)); }
  .pf-rail { grid-auto-columns: 82%; }
  .pf-study { grid-auto-columns: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .pf .rise, .ph-name i, .ph-photo, .ph-photo img, .ph-chips li, .ph-back, .ph-glow, .ph-halo, .ph-halo::before, .pf-marquee > div, .pf-gal-row > div,
  .glow-box::before, .glow-box::after, .form.mini::before, .form.mini::after, .caret, .pf-c.on .pf-c-tx > *, .pf-c.on figure img, .pf-job.now .pf-dot { animation: none !important; opacity: 1; translate: none; transform: none; clip-path: none; }
  .ph-chips, .ph-media, .ph-l1, .ph-l2, .ph-glow { translate: none !important; }
  .pf-c { transition: none; } .pf-gal-row { overflow-x: auto; }
}
[data-theme="dark"] body.shop .shop-head { background: #0a121b; color: #e6ecf2; }
[data-theme="dark"] .cart-link b { color: #13202f; }
[data-theme="dark"] .skip { background: #e6ecf2; color: #0d1621; }
@media (max-width: 760px) { .pf-arrows { display: none; } }

/* Verificación de certificados */
.vf { padding: clamp(48px, 10vh, 120px) 0; }
.vf-card { max-width: 560px; margin: 0 auto; padding: 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(20 32 44 / .35); text-align: center; animation: vfin .7s cubic-bezier(.34,1.56,.64,1) both; }
.vf-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 6px 0 18px; }
.vf-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 2rem; font-weight: 800; color: #fff; background: var(--leaf); box-shadow: 0 0 0 10px color-mix(in srgb, var(--leaf) 18%, transparent); animation: vfpop .6s .3s cubic-bezier(.34,1.56,.64,1) both; }
.vf-card.bad .vf-ico { background: #b3261e; box-shadow: 0 0 0 10px rgb(179 38 30 / .15); }
.vf-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; text-align: left; margin: 0; }
.vf-card dt { color: var(--muted); font-size: .9rem; } .vf-card dd { margin: 0; font-weight: 600; }
[data-theme="dark"] .vf-card { background: #121c28; border-color: #213042; }
@keyframes vfin { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes vfpop { from { transform: scale(0) rotate(-40deg); } }
@media (prefers-reduced-motion: reduce) { .vf-card, .vf-ico { animation: none; } }
.vf-photo { display: block; width: 120px; height: 146px; object-fit: cover; margin: 0 auto 14px; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 16px 30px -14px rgb(20 32 44 / .5); animation: vfpop .6s .1s cubic-bezier(.34,1.56,.64,1) both; }
.vf-msg { font-size: 1.05rem; margin: -6px 0 16px; }
.vf-trust { display: inline-block; margin: 0 0 16px; padding: 4px 14px; border-radius: 99px; background: var(--leaf); color: #fff; font-weight: 700; font-size: .9rem; }
.vf-at { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
@property --fv { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.vf-rate { list-style: none; margin: 0 0 6px; padding: 14px; display: grid; gap: 10px; border-radius: 16px; background: color-mix(in srgb, var(--gold, #c9a24a) 10%, transparent); text-align: left; }
.vf-rate li { display: grid; grid-template-columns: 1fr auto 2.2em; gap: 12px; align-items: center; animation: vfin .5s calc(.3s + var(--n, 0) * 120ms) ease-out both; }
.vf-rate li:nth-child(2) { --n: 1; } .vf-rate li:nth-child(3) { --n: 2; }
.vf-rate span { font-weight: 600; } .vf-rate b { text-align: right; }
.vf-rate i { --fv: var(--f); display: block; width: 8.2em; height: 1.4em; font-size: 1rem; background: linear-gradient(90deg, #c9a24a var(--fv), color-mix(in srgb, var(--muted) 30%, transparent) var(--fv));
  -webkit-mask: url(/img/star.svg) 0 0 / 1.68em 1.4em repeat-x; mask: url(/img/star.svg) 0 0 / 1.68em 1.4em repeat-x; animation: vfstar 1.1s calc(.5s + var(--i) * 150ms) ease-out both; }
@keyframes vfstar { from { --fv: 0%; } }
.vf-note { margin: 0 0 18px; font-size: .82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .vf-rate li, .vf-rate i { animation: none; } }
/* ===== Equipo (público) ===== */
@keyframes tmin { from { opacity: 0; transform: translateY(16px); } }
@keyframes tmrise { from { opacity: 0; transform: perspective(1000px) translateY(60px) rotateX(-30deg) scale(.94); } }
@keyframes tmgrow { from { transform: scaleX(0); } }
@keyframes tmgrowy { from { transform: scaleY(0); } }
@keyframes tmshine { to { background-position: 100% 0; } }
.js .tm-cell:not(.on) { opacity: 0; }
.tm-cell.on { animation: tmrise .9s calc(var(--i, 0) * 90ms) cubic-bezier(.2, .8, .2, 1) backwards; }
.tm-cell.out { display: none; }

/* Portada con cifras y abanico 3D */
.tm-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: clamp(32px, 6vw, 76px) 0 30px; }
.tm-head .lead p { margin: 0; }
.tm-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.tm-stats div { display: flex; flex-direction: column-reverse; min-width: 150px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 60%, var(--paper));
  animation: tmin .7s calc(.25s + var(--i) * 110ms) var(--ease) both; }
.tm-stats dd { margin: 0; font-size: 2.4rem; font-weight: 800; font-stretch: 80%; line-height: 1; }
.tm-stats dt { margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.tm-deck { --px: 0; --py: 0; position: relative; height: 400px; animation: tmfloat 7s ease-in-out infinite; }
@keyframes tmfloat { 50% { transform: translateY(-12px); } }
.tm-dk { --x: 0px; --rz: 0deg; --ry0: 0deg; --z: 60px; position: absolute; left: 50%; top: 50%; width: 210px; aspect-ratio: 3 / 4; margin: -140px 0 0 -105px; border-radius: 20px; overflow: hidden;
  color: #fff; text-decoration: none; background: #14324f; box-shadow: 0 34px 50px -26px rgb(8 18 30 / .65), 0 0 0 3px var(--lc);
  transform: perspective(1100px) translateX(var(--x)) rotateY(calc(var(--ry0) + var(--px) * 22deg)) rotateX(calc(var(--py) * -16deg)) rotateZ(var(--rz)) translateZ(var(--z));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: tmdeal 1s calc(.25s + var(--k) * 140ms) cubic-bezier(.2, .9, .25, 1.15) backwards; }
@keyframes tmdeal { from { opacity: 0; transform: perspective(1100px) translateY(90px) rotateX(60deg) scale(.8); } }
.tm-deck.n2 .tm-dk:nth-child(1) { --x: -70px; --ry0: 18deg; --rz: -5deg; z-index: 2; }
.tm-deck.n2 .tm-dk:nth-child(2) { --x: 70px; --ry0: -18deg; --rz: 5deg; --z: 0px; }
.tm-deck.n3 .tm-dk:nth-child(1) { z-index: 3; --z: 80px; }
.tm-deck.n3 .tm-dk:nth-child(2) { --x: -130px; --ry0: 26deg; --rz: -7deg; --z: -20px; z-index: 2; }
.tm-deck.n3 .tm-dk:nth-child(3) { --x: 130px; --ry0: -26deg; --rz: 7deg; --z: -20px; z-index: 1; }
.tm-dk:hover { --z: 120px; }
.tm-dk-pic { position: absolute; inset: 0; } .tm-dk-pic img, .tm-dk-pic .tm-ini { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tm-dk-tx { position: absolute; inset: auto 0 0; display: grid; padding: 46px 16px 14px; background: linear-gradient(transparent, rgb(8 18 30 / .85)); }
.tm-dk-tx b { font-size: 1.05rem; line-height: 1.15; } .tm-dk-tx small { opacity: .85; font-size: .85rem; }

/* Filtros */
.tm { padding: 8px 0 60px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tm-chips button { font: inherit; font-weight: 600; font-size: .92rem; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.tm-chips button small { margin-left: 4px; color: var(--muted); font-weight: 500; }
.tm-chips button:hover { border-color: var(--im); transform: translateY(-2px); } .tm-chips button:active { transform: scale(.96); }
.tm-chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); } .tm-chips button[aria-pressed="true"] small { color: inherit; opacity: .7; }

/* Tarjetas con profundidad */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tm-card { --rx: 0deg; --ry: 0deg; position: relative; display: block; height: 100%; border-radius: 22px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line);
  transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 22px 38px -30px rgb(20 32 44 / .55); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .3s; }
.tm-card.tilting { transition: transform .1s linear, box-shadow .4s, border-color .3s; }
.tm-card:hover { border-color: color-mix(in srgb, var(--lc) 55%, var(--line)); box-shadow: 0 36px 56px -30px color-mix(in srgb, var(--lc) 65%, #06101c); }
.tm-card:active { transform: perspective(1000px) scale(.98); }
.tm-pic { position: relative; display: block; aspect-ratio: 4 / 5; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; background: var(--paper-2); transform: translateZ(28px); }
.tm-pic img, .tm-pic .tm-ini { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.tm-card:hover .tm-pic img, .tm-card:hover .tm-ini { transform: scale(1.07); }
.tm-pic::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgb(8 18 30 / .45)); pointer-events: none; }
.tm-ini { color: #fff; font-size: 4.2rem; font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; background: radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--hue) 45%, #fff), var(--hue) 72%); }
.tm-lvb { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 800; color: #fff; background: #5d6874; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .5); }
.tm-lvb.flat { position: static; box-shadow: none; }
.tm-lvb.lv-oro { background: linear-gradient(120deg, #b88a2c, #f0d58a, #b88a2c); background-size: 220% 100%; color: #3a2a06; animation: tmshine 2.6s infinite alternate; }
.tm-lvb.lv-plata { background: linear-gradient(120deg, #7d8994, #e3e8ec, #7d8994); background-size: 220% 100%; color: #1d2731; animation: tmshine 2.6s infinite alternate; }
.tm-lvb.lv-bronce { background: linear-gradient(120deg, #9a5f2e, #e0a873, #9a5f2e); background-size: 220% 100%; animation: tmshine 2.6s infinite alternate; }
.tm-body { position: relative; display: grid; gap: 8px; padding: 16px 18px 20px; transform: translateZ(18px); }
.tm-name { font-size: 1.18rem; line-height: 1.2; padding-right: 70px; } .tm-job { margin-top: -4px; color: var(--muted); font-size: .92rem; padding-right: 70px; }
.tm-trust, .tm-ok { justify-self: start; padding: 3px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--leaf); }
.tm-ok { background: var(--im); }
.tm-more { font-weight: 600; font-size: .92rem; color: var(--im); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tm-card:hover .tm-more { text-decoration-thickness: 2px; }
.tm-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; transform: translateZ(40px);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .45), transparent 48%); mix-blend-mode: soft-light; }
.tm-card:hover .tm-glare, .tm-cred:hover .tm-glare { opacity: 1; }

/* Anillo de puntaje */
@property --tp { syntax: '<number>'; inherits: false; initial-value: 0; }
.tm-ring { --p: 0; --tp: var(--p); --lc: var(--im); position: relative; width: 64px; height: 64px; flex: none; display: grid; place-content: center; text-align: center; line-height: 1; }
.tm-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tm-ring circle { fill: none; stroke-width: 3.5; stroke-linecap: round; } .tm-ring circle:first-child { stroke: var(--line); }
.tm-ring circle + circle { stroke: var(--lc); stroke-dasharray: var(--tp) 100; animation: tmring 1.4s .4s var(--ease) both; }
@keyframes tmring { from { --tp: 0; } }
.tm-ring b { font-size: 1.2rem; } .tm-ring small { font-size: .55rem; color: var(--muted); }
.tm-ring.pop { position: absolute; z-index: 2; right: 18px; width: 70px; height: 70px; border-radius: 50%; background: var(--paper); box-shadow: 0 14px 24px -12px rgb(8 18 30 / .55); }
.tm-card .tm-ring.pop { margin-top: -48px; transform: translateZ(60px); }
.tm-ring.mid { width: 96px; height: 96px; } .tm-ring.mid b { font-size: 1.9rem; }
.tm-ring.big { width: 116px; height: 116px; } .tm-ring.big b { font-size: 2.3rem; } .tm-ring.big small { font-size: .72rem; }

/* Estrellas */
@property --tf { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.tm-stars { --tf: var(--f); display: block; width: 5.48em; height: 1em; font-size: 1rem; background: linear-gradient(90deg, #c9a24a var(--tf), color-mix(in srgb, var(--muted) 28%, transparent) var(--tf));
  -webkit-mask: url(/img/star.svg) 0 0 / 1.12em 1em repeat-x; mask: url(/img/star.svg) 0 0 / 1.12em 1em repeat-x; animation: tmstar 1s calc(.5s + var(--i) * 140ms) var(--ease) both; }
@keyframes tmstar { from { --tf: 0%; } }
.tm-rate { list-style: none; margin: 4px 0 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; background: color-mix(in srgb, var(--paper-2) 55%, var(--paper)); }
.tm-rate li { display: grid; grid-template-columns: 1fr auto 3.4em; align-items: center; gap: 10px; font-size: .93rem; } .tm-rate b { text-align: right; }
.tm-rate b small { font-size: .76rem; font-weight: 500; color: var(--muted); }
.tm-rate li span { position: relative; padding-left: 14px; } .tm-rate li span::before { content: ""; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 2px; background: var(--cc); }
.tm-rate.big { padding: 20px 22px; gap: 16px; } .tm-rate.big li { font-size: 1.1rem; } .tm-rate.big .tm-stars { font-size: 1.6rem; } .tm-rate.big b { font-size: 1.3rem; }
.tm-none { margin: 4px 0 0; color: var(--muted); }

/* Metodología */
.tm-method { padding: 44px 0 76px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.tm-mh { max-width: 62ch; margin-bottom: 24px; }
.tm-crit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tm-crit li { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper);
  transition: transform .4s var(--ease), border-color .3s; }
.tm-crit li:hover { transform: translateY(-4px); border-color: var(--cc); }
.tm-crit small { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.tm-cw { flex: none; width: 60px; color: var(--cc); } .tm-cw b { font-size: 1.7rem; font-stretch: 80%; }
.tm-crit li > i { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--w) * 4%); background: var(--cc); transform-origin: left; }
.tm-crit li.on > i { animation: tmgrow 1s .5s var(--ease) backwards; }
.tm-note { margin: 16px 0 0; color: var(--muted); font-size: .94rem; }

/* Ficha con credencial que gira */
.tm-prof { padding: 22px 0 76px; }
.tm-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 52px; align-items: center; margin: 22px 0 48px; }
.tm-cred-wrap { display: grid; justify-items: center; gap: 12px; }
.tm-cred { --flip: 0deg; position: relative; width: 290px; aspect-ratio: 3 / 4.3; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip))); transition: transform .9s cubic-bezier(.2, .8, .2, 1.12);
  animation: tmcred 1.1s .1s cubic-bezier(.2, .85, .25, 1.12) backwards; }
.tm-cred.tilting { transition: transform .1s linear; } .tm-cred.flip { --flip: 180deg; }
@keyframes tmcred { from { opacity: 0; transform: perspective(1200px) translateY(40px) rotateY(-80deg) scale(.85); } }
.tm-face { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 44px 64px -34px color-mix(in srgb, var(--lc) 65%, #06101c), 0 0 0 3px color-mix(in srgb, var(--lc) 55%, transparent); }
.tm-front .tm-pic { flex: 1; aspect-ratio: auto; margin: 12px 12px 0; transform: none; }
.tm-cred-tx { display: grid; padding: 14px 18px 2px; text-align: left; } .tm-cred-tx b { font-size: 1.2rem; line-height: 1.2; } .tm-cred-tx small { color: var(--muted); }
.tm-cred-co { display: flex; align-items: center; gap: 8px; padding: 8px 18px 16px; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; }
.tm-cred-co img { width: 24px; height: 24px; object-fit: contain; }
.tm-back { transform: rotateY(180deg); justify-content: center; align-items: center; gap: 14px; padding: 24px 18px; text-align: center;
  background: linear-gradient(165deg, color-mix(in srgb, var(--lc) 20%, var(--paper)), var(--paper) 70%); }
.tm-back > b { font-size: 1.15rem; } .tm-back .tm-rate { width: 100%; text-align: left; } .tm-back > small { color: var(--muted); font-size: .8rem; }
.tm-cred.flip .tm-glare { display: none; }
.tm-hint { margin: 0; color: var(--muted); font-size: .86rem; }
.tm-hero-tx h1 { margin-bottom: .2em; animation: tmin .7s .15s var(--ease) both; } .tm-hero-tx p { color: var(--ink-2); margin-bottom: .7em; animation: tmin .7s .25s var(--ease) both; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 8px; animation: tmin .7s .35s var(--ease) both; }
.tm-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 26px; animation: tmin .7s .45s var(--ease) both; }
.tm-facts > span:not(.tm-ring) { display: grid; } .tm-facts b { font-size: 2.4rem; font-weight: 800; font-stretch: 80%; line-height: 1; } .tm-facts small { color: var(--muted); font-size: .88rem; }
.tm-sec { margin-bottom: 26px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 40%, var(--paper)); }
.tm-sec h2 { font-size: 1.45rem; } .tm-sec .tm-rate.big { max-width: 620px; background: var(--paper); }
.tm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; } .tm-two .tm-sec { margin-bottom: 26px; }
.tm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tm-bars li { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; font-size: .95rem; } .tm-bars b { text-align: right; font-size: .88rem; }
.tm-bars li > i { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.tm-bars li > i > i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--cc); transform-origin: left; }
.tm-sec.on .tm-bars li > i > i { animation: tmgrow 1s calc(.3s + var(--i) * 80ms) var(--ease) backwards; }
.tm-hist { display: flex; align-items: end; gap: 10px; height: 200px; overflow-x: auto; }
.tm-hist > span { flex: 1 0 40px; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 4px; }
.tm-hist i { width: 26px; height: calc(var(--h) * 1%); border-radius: 8px; background: linear-gradient(color-mix(in srgb, var(--lc) 60%, #fff), var(--lc)); transform-origin: bottom; }
.tm-sec.on .tm-hist i { animation: tmgrowy 1s calc(.3s + var(--i) * 80ms) cubic-bezier(.2, .9, .25, 1.2) backwards; }
.tm-hist b { font-size: .8rem; } .tm-hist small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.tm-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 680px; }
.tm-certs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #c9a24a; transition: transform .3s var(--ease); }
.tm-certs li:hover { transform: translateX(6px); } .tm-certs span { display: grid; } .tm-certs small { color: var(--muted); }

@media (max-width: 900px) {
  .tm-head { grid-template-columns: 1fr; gap: 10px; } .tm-deck { height: 330px; order: -1; } .tm-dk { width: 170px; margin: -115px 0 0 -85px; }
  .tm-deck.n3 .tm-dk:nth-child(2) { --x: -100px; } .tm-deck.n3 .tm-dk:nth-child(3) { --x: 100px; }
  .tm-hero { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; } .tm-hero-tx .tm-tags, .tm-facts { justify-content: center; }
  .tm-two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tm-grid { grid-template-columns: 1fr; } .tm-cred { width: 250px; } .tm-stats div { min-width: 0; flex: 1 1 40%; } .tm-stats dd { font-size: 2rem; }
  .tm-bars li { grid-template-columns: 100px 1fr 54px; } .tm-deck.n3 .tm-dk:nth-child(2) { --x: -78px; } .tm-deck.n3 .tm-dk:nth-child(3) { --x: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-cell.on, .tm-deck, .tm-dk, .tm-cred, .tm-stars, .tm-ring circle, .tm-lvb, .tm-stats div, .tm-hero-tx *, .tm-facts { animation: none !important; }
  .js .tm-cell:not(.on) { opacity: 1; }
}
.tm-ini { display: grid; place-items: center; }
.tm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); max-width: 520px; }
.tm-stats div { min-width: 0; }
.tm-deck.n3 .tm-dk:nth-child(2) { --x: -112px; } .tm-deck.n3 .tm-dk:nth-child(3) { --x: 112px; }
@media (max-width: 560px) { .tm-deck.n3 .tm-dk:nth-child(2) { --x: -78px; } .tm-deck.n3 .tm-dk:nth-child(3) { --x: 78px; } }
.tm-ring circle + circle { --tp: var(--p); }

/* ===== Equipo: buscador, orden y opinión de clientes ===== */
.tm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tm-q { position: relative; flex: 1 1 280px; max-width: 420px; }
.tm-q svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; transition: stroke .2s; }
.tm-q input { width: 100%; min-height: 46px; padding: 0 16px 0 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.tm-q input:focus { outline: none; border-color: var(--im); box-shadow: 0 0 0 4px color-mix(in srgb, var(--im) 18%, transparent); }
.tm-q:focus-within svg { stroke: var(--im); }
.tm-sort { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 60%, var(--paper)); }
.tm-sort > span { padding: 0 10px 0 12px; color: var(--muted); font-size: .88rem; }
.tm-sort button { position: relative; z-index: 1; min-height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: color .3s; }
.tm-sort button:hover { color: var(--im); } .tm-sort button:active { transform: scale(.95); }
.tm-sort button[aria-pressed="true"] { color: var(--paper); }
.tm-sort-pill { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 99px; background: var(--ink); transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), width .45s cubic-bezier(.2, .9, .25, 1.15); }
.tm-count { min-height: 1.4em; margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.tm-nomatch { margin-top: 20px; } .tm-nomatch button { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

.tm-cli { display: grid; gap: 3px; padding: 10px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #3d8a37 45%, var(--line)); background: color-mix(in srgb, #3d8a37 7%, var(--paper)); }
.tm-cli-v { display: flex; align-items: center; gap: 8px; } .tm-cli-v b { font-size: 1.25rem; line-height: 1; }
.tm-cli small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.tm-cli.none { border-color: var(--line); background: none; }
.tm-back .tm-cli { width: 100%; text-align: left; }

.tm-cl-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 34px); align-items: center; margin-bottom: 22px; }
.tm-cl-big { display: grid; justify-items: center; gap: 6px; text-align: center; } .tm-cl-big b { font-size: 3.4rem; font-weight: 800; font-stretch: 80%; line-height: .9; }
.tm-cl-big .tm-stars { font-size: 1.3rem; } .tm-cl-big small { color: var(--muted); }
.tm-cl-dist { display: grid; gap: 4px; }
.tm-cl-dist button { display: grid; grid-template-columns: 1.1em 14px minmax(0, 1fr) 2.2em; align-items: center; gap: 8px; min-height: 32px; padding: 2px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.tm-cl-dist button:hover:not(:disabled) { background: var(--paper); transform: translateX(4px); } .tm-cl-dist button:active:not(:disabled) { transform: scale(.98); }
.tm-cl-dist button:disabled { cursor: default; opacity: .55; }
.tm-cl-dist button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tm-cl-dist small { text-align: right; color: inherit; opacity: .75; }
.tm-st1 { width: 14px; height: 14px; background: #c9a24a; -webkit-mask: url(/img/star.svg) center / contain no-repeat; mask: url(/img/star.svg) center / contain no-repeat; }
.tm-cl-bar { height: 9px; border-radius: 9px; overflow: hidden; background: color-mix(in srgb, var(--muted) 20%, transparent); }
.tm-cl-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: #c9a24a; transform-origin: left; }
.tm-cl.on .tm-cl-bar i { animation: tmgrow .9s calc(.3s + var(--i) * 90ms) cubic-bezier(.2, .8, .2, 1) backwards; }
.tm-cl-again { display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 120px; } .tm-cl-again small { color: var(--muted); font-size: .86rem; line-height: 1.3; }
.tm-again b { font-size: 1.5rem; }
.tm-cl .tm-rate.big { margin-bottom: 22px; }
.tm-cl-filter { margin: 0 0 12px; font-weight: 600; color: var(--im); }
.tm-revs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tm-revs li { display: grid; align-content: start; gap: 10px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s; }
.tm-revs li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgb(20 32 44 / .5); }
.tm-revs li.in { animation: tmin .5s calc(var(--i) * 70ms) var(--ease) backwards; }
.tm-revs header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.tm-revs header span:not(.tm-rv-av) { display: grid; } .tm-revs header small { color: var(--muted); font-size: .84rem; }
.tm-revs header .tm-stars { font-size: .9rem; margin-top: 4px; }
.tm-cli-v > small { margin-right: 2px; font-weight: 600; color: var(--ink); }
.tm-stats:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
.tm-rv-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; background: var(--im); }
.tm-revs p { margin: 0; line-height: 1.55; }
.tm-rv-c { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-rv-c span { padding: 3px 10px; border-radius: 99px; font-size: .8rem; background: color-mix(in srgb, var(--cc, var(--muted)) 13%, var(--paper)); }
.tm-rv-c .tm-rv-yes { color: #fff; background: #3d8a37; font-weight: 700; }
.tm-revs-more { margin-top: 16px; }

/* Formulario de opinión del cliente */
.op { display: grid; grid-template-columns: 260px minmax(0, 620px); justify-content: center; gap: clamp(24px, 5vw, 60px); padding: clamp(28px, 6vw, 70px) 0 70px; align-items: start; }
.op-who { position: sticky; top: 90px; display: grid; gap: 4px; text-align: center; animation: tmin .7s var(--ease) both; }
.op-pic { display: block; aspect-ratio: 3 / 4; margin-bottom: 12px; border-radius: 20px; overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 50px -30px rgb(8 18 30 / .6); transform: perspective(900px) rotateY(-8deg); animation: opcard 1s var(--ease) both; }
@keyframes opcard { from { opacity: 0; transform: perspective(900px) rotateY(-50deg) translateX(-30px); } }
.op-pic img, .op-pic .tm-ini { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.op-who b { font-size: 1.2rem; } .op-who small { color: var(--muted); }
.op-form { display: grid; gap: 18px; }
.op-prog { position: sticky; top: 70px; z-index: 2; height: 6px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.op-prog i { display: block; height: 100%; background: linear-gradient(90deg, #c9a24a, #3d8a37); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .9, .25, 1.1); }
.op-left { margin: -8px 0 0; color: var(--muted); font-size: .9rem; }
.op-form.ready .op-left { color: #3d8a37; font-weight: 700; }
.op h1 { margin: 0; font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
.op-lead { margin: 0; color: var(--muted); } .op-lead b { color: var(--ink); }
.op-err { margin: 0; padding: 12px 16px; border-radius: 12px; color: #8a1f1f; background: #fbe9e7; }
.op-q { margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: border-color .3s, box-shadow .3s; }
.op-q.done { border-color: color-mix(in srgb, var(--cc, #3d8a37) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc, #3d8a37) 12%, transparent); }
.op-q.shake { animation: opshake .45s; border-color: #c0392b; }
@keyframes opshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.op-q legend { display: contents; } .op-q legend b { display: block; font-size: 1.12rem; } .op-q legend small { display: block; margin-top: 2px; color: var(--muted); }
.op-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin: 12px 0 4px; }
.op-stars input, .op-yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.op-stars label { width: 48px; height: 46px; cursor: pointer; background: color-mix(in srgb, var(--muted) 26%, transparent);
  -webkit-mask: url(/img/star.svg) center / contain no-repeat; mask: url(/img/star.svg) center / contain no-repeat; transition: background .15s, transform .25s cubic-bezier(.2, .9, .25, 1.4); }
.op-stars input:checked ~ label { background: #c9a24a; }
@media (hover: hover) {
  .op-stars:hover input ~ label { background: color-mix(in srgb, var(--muted) 26%, transparent); }
  .op-stars:hover label:hover, .op-stars:hover label:hover ~ label { background: #dcb862; }
  .op-stars label:hover { transform: scale(1.15); }
}
.op-stars label:active { transform: scale(.9); }
.op-stars input:checked + label { animation: oppop .45s cubic-bezier(.2, .9, .25, 1.5); }
@keyframes oppop { 40% { transform: scale(1.35) rotate(-8deg); } }
.op-stars input:focus-visible + label { outline: 3px solid var(--im); outline-offset: 2px; }
.op-say { display: inline-block; min-height: 1.4em; color: var(--muted); font-weight: 600; } .op-q.done .op-say { color: var(--ink); }
.op-say.bump { animation: tmin .35s var(--ease); }
.op-yn { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.op-yn label { min-height: 48px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.op-yn label:hover { border-color: var(--im); } .op-yn label:active { transform: scale(.96); }
.op-yn input:checked + label { color: #fff; background: #3d8a37; border-color: #3d8a37; animation: oppop .4s; }
.op-yn input[value="0"]:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.op-yn input:focus-visible + label { outline: 3px solid var(--im); outline-offset: 2px; }
.op-f { display: grid; gap: 6px; font-weight: 600; } .op-f > small { font-weight: 400; color: var(--muted); }
.op-f textarea, .op-f input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.op-f textarea:focus, .op-f input:focus { outline: none; border-color: var(--im); box-shadow: 0 0 0 4px color-mix(in srgb, var(--im) 18%, transparent); }
.op-n { justify-self: end; font-weight: 400; color: var(--muted); }
.op-chk { display: flex; gap: 10px; align-items: center; } .op-chk input { width: 20px; height: 20px; accent-color: var(--im); }
.op-send { justify-self: start; min-width: 220px; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.op-form.ready .op-send { background: #3d8a37; border-color: #3d8a37; box-shadow: 0 14px 26px -14px #3d8a37; }
.op-form.sending .op-send { opacity: .7; }
.op-fine { margin: 0; color: var(--muted); font-size: .88rem; }
.op-thanks { display: grid; justify-items: start; gap: 14px; }
.op-thanks h1 { animation: tmin .6s .4s var(--ease) both; } .op-thanks > p { margin: 0; animation: tmin .6s .5s var(--ease) both; } .op-thanks .tm-rate { width: 100%; max-width: 520px; }
.op-check svg { width: 76px; height: 76px; fill: none; stroke: #3d8a37; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.op-check circle { stroke-dasharray: 151; animation: opdraw .7s var(--ease) both; }
.op-check path { stroke-dasharray: 40; animation: opdraw2 .45s .55s var(--ease) both; }
@keyframes opdraw { from { stroke-dashoffset: 151; } }
@keyframes opdraw2 { from { stroke-dashoffset: 40; } }

@media (max-width: 760px) {
  .op { grid-template-columns: 1fr; padding-top: 18px; } .op-who { position: static; grid-template-columns: 76px 1fr; text-align: left; align-items: center; column-gap: 14px; }
  .op-pic { grid-row: span 2; margin: 0; border-radius: 14px; transform: none; } .op-who b { align-self: end; } .op-who small { align-self: start; }
  .op-stars label { width: 52px; height: 50px; } .op-prog { top: 62px; }
  .tm-cl-top { grid-template-columns: 1fr 1fr; } .tm-cl-dist { grid-column: 1 / -1; order: 3; }
  .tm-sort { width: 100%; } .tm-sort button { flex: 1; } .tm-q { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .op-pic, .op-who, .op-stars label, .op-q.shake, .op-check *, .op-thanks *, .tm-revs li.in, .tm-cl-bar i, .tm-sort-pill { animation: none !important; transition: none !important; }
}

/* ===== v0.8 · Qué te abastecemos (Empresas) ===== */
.b2c { padding: clamp(48px, 7vw, 88px) 0 0; }
.b2c-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; margin-bottom: 20px; }
.b2c-head h2 { font-size: var(--fs-h2, 2rem); letter-spacing: -.02em; margin: 0; }
.b2c-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.b2c-tabs { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 2px; margin: 0 -2px 18px; }
.b2c-tabs button { scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.b2c-tabs button:hover { border-color: var(--ink); }
.b2c-tabs button:active { transform: scale(.97); }
.b2c-tabs button:focus-visible { outline: 2px solid var(--im); outline-offset: 2px; }
.b2c-tabs .st-ic { grid-row: span 2; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.b2c-tabs span { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.b2c-tabs small { color: var(--muted); font-size: .76rem; }
.b2c-tabs [aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.b2c-tabs [aria-selected="true"] small { color: #b8c2cc; }
.b2c-panel { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: clamp(18px, 3vw, 36px); align-items: start; animation: b2in .35s var(--ease); }
@keyframes b2in { from { opacity: 0; transform: translateY(10px); } }
.b2c-info h3 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 12px; }
.b2c-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.b2c-list li { position: relative; padding-left: 22px; }
.b2c-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.b2c-acts { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.b2c-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.b2c-p { scroll-snap-align: start; display: grid; gap: 4px; text-decoration: none; color: var(--ink); animation: b2in .4s calc(var(--i) * 40ms) var(--ease) both; }
.b2c-p > span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--paper-2); overflow: hidden; transition: transform .3s var(--ease); }
.b2c-p > span .sp-fig, .b2c-p > span img { width: 82%; height: 82%; object-fit: contain; display: grid; place-items: center; }
.b2c-p:hover > span { transform: translateY(-4px); }
.b2c-p b { font-size: .9rem; line-height: 1.25; }
.b2c-p small { color: var(--muted); font-size: .78rem; }
.b2c-soon { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 22px; border: 1px dashed var(--line); border-radius: 16px; }
.b2c-soon .st-ic { width: 56px; height: 56px; padding: 12px; border-radius: 14px; background: var(--im-soft); color: var(--im); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b2c-soon p { margin: 0; color: var(--muted); }
[data-theme="dark"] .b2c-tabs button { background: var(--ink-2); color: #eef1f4; border-color: #2c3f57; }
[data-theme="dark"] .b2c-tabs [aria-selected="true"] { background: #eef1f4; color: var(--ink); }
@media (max-width: 760px) {
  .b2c-tabs { grid-template-columns: repeat(5, 72%); }
  .b2c-panel { grid-template-columns: 1fr; }
  .b2c-rail { grid-auto-columns: 42%; }
}

/* ===== Plano dibujado para servicios sin foto ===== */
.frame.bp { background: #14324f; display: block; aspect-ratio: 4 / 3; }
.frame.bp.tall { aspect-ratio: 4 / 5; }
.frame.bp svg { width: 100%; height: 100%; display: block; }
.bp-grid { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 1; }
.bp-l path { fill: none; stroke: #dbe9f6; stroke-width: 2.2; stroke-linecap: round; }
.bp-l { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.bp.in .bp-l, html:not(.js) .bp-l { clip-path: inset(0); }
.bp-l .bp-d { stroke: #e2bd6e; stroke-width: 1.4; }
.bp-t { fill: #e2bd6e; font: 600 11px Archivo, sans-serif; }
.bp-box rect { fill: none; stroke: #dbe9f6; stroke-width: 1; }
.bp-box text { fill: #dbe9f6; font: 600 11px Archivo, sans-serif; letter-spacing: .04em; }
.js .reveal.bp { opacity: 1; transform: none; }

/* ===== Scroll del sitio: barra de progreso y fotos con profundidad (sin JS, solo navegadores que lo soportan) ===== */
@supports (animation-timeline: scroll()) {
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--im), var(--gold)); transform-origin: left; transform: scaleX(0); animation: sp-bar linear both; animation-timeline: scroll(root); }
  @keyframes sp-bar { to { transform: scaleX(1); } }
  .frame:not(.bp) img { animation: sp-par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes sp-par { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
  .js .reveal { animation: sp-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; transition: none; opacity: 1; transform: none; }
  @keyframes sp-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
}
@media (prefers-reduced-motion: reduce) { body::before, .frame img, .js .reveal { animation: none !important; } }

/* ===== v0.9 · Barra flotante del celular con hoja "Más" ===== */
.mt-sheet { display: none; }
@media (max-width: 760px) {
  .mobile-tabs { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); min-height: 62px; padding: 5px; grid-template-columns: repeat(var(--n, 5), 1fr);
    border: 1px solid rgb(255 255 255 / .08); border-radius: 22px; background: rgb(17 30 44 / .9); box-shadow: 0 18px 40px -12px rgb(10 20 32 / .55); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
  .mobile-tabs a, .mt-more { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: none; border-radius: 16px;
    color: #9fb0c2; font: 650 .66rem Archivo, system-ui, sans-serif; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .25s; }
  .mt-more svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .mobile-tabs a:active, .mt-more:active { transform: scale(.92); }
  .mobile-tabs a[aria-current], .mt-more[aria-current] { color: #fff; background: none; }
  .mobile-tabs a[aria-current] svg { color: #fff; transform: none; animation: tab-pop .5s cubic-bezier(.45, 1.6, .4, .9) backwards; }
  .mt-blob { left: 5px; top: 5px; height: calc(100% - 10px); width: calc((100% - 10px) / var(--n, 5)); }
  .mobile-tabs a { min-width: 0; font-size: .6rem; letter-spacing: -.01em; } .mobile-tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mobile-tabs svg { width: 21px; height: 21px; }
  .mt-blob::before { inset: 0; top: 0; left: 0; width: auto; height: auto; margin: 0; border-radius: 16px; background: linear-gradient(160deg, #2f86cc, #1a5f99); box-shadow: 0 6px 16px -4px rgb(47 134 204 / .7); }
  .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  .mt-sheet[popover] { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; border: 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
    background: var(--paper); color: var(--ink); box-shadow: 0 -20px 50px rgb(10 20 32 / .3); transform: translateY(100%); transition: transform .32s var(--ease), display .32s allow-discrete, overlay .32s allow-discrete; }
  .mt-sheet:popover-open { display: block; transform: none; }
  @starting-style { .mt-sheet:popover-open { transform: translateY(100%); } }
  .mt-sheet::backdrop { background: rgb(10 20 32 / .45); backdrop-filter: blur(3px); }
  .mt-grip { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
  .mt-h { margin: 0 0 12px; font-weight: 750; font-size: 1.05rem; }
  .mt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
  .mt-grid a { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 650; text-decoration: none;
    animation: mt-in .35s calc(.05s + var(--i) * 45ms) var(--ease) backwards; }
  .mt-grid a[aria-current] { border-color: var(--im); color: var(--im); }
  .mt-grid a:active { transform: scale(.97); }
  .mt-grid svg { width: 26px; height: 26px; padding: 7px; box-sizing: content-box; border-radius: 12px; background: var(--im-soft); color: var(--im); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @keyframes mt-in { from { opacity: 0; transform: translateY(14px); } }
  .mt-wa { width: 100%; justify-content: center; }
  [data-theme="dark"] .mt-grid a { background: var(--ink-2); border-color: #2c3f57; color: #eef1f4; }
}
@media (prefers-reduced-motion: reduce) { .mt-sheet[popover], .mt-grid a { transition: none; animation: none; } }

/* v0.10 · Gregorian en el inicio: sus 5 líneas como accesos directos a la tienda */
.co-lines { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.co-lines a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); color: #eef1f4; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.co-lines a:hover { background: rgb(255 255 255 / .08); border-color: var(--gold); }
.co-lines a:active { transform: scale(.96); }
.co-lines .st-ic { width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* v0.11 · Cabecera en celular: el nombre no choca con modo oscuro, administrador, carrito y menú */
@media (max-width: 760px) {
  .brand { min-width: 0; gap: 8px; } .brand img { height: 38px; } .brand small { display: none; }
  .top-act { gap: 2px; } .top-act .cart-link { width: 40px; height: 40px; }
  .theme-btn { width: 50px; height: 28px; } .theme-btn .tb-knob { width: 22px; height: 22px; }
  [data-theme="dark"] .theme-btn .tb-knob { transform: translateX(22px); }
}

/* v0.11 · Celular: escala más compacta (se veía "con zoom") */
@media (max-width: 760px) { html { font-size: 87.5%; } }

/* v0.12 · Verificación de carné: opinión de clientes y botón para calificar */
.vf-cli { margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
.vf-cli h2 { font-size: 1.1rem; margin: 0 0 12px; }
.vf-score { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin: 0 0 12px; }
.vf-score b { grid-row: span 2; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.vf-score small { color: var(--muted); font-size: .85rem; }
.vf-stars { display: block; width: 8.2em; height: 1.4em; background: linear-gradient(90deg, #c9a24a var(--f), color-mix(in srgb, var(--muted) 30%, transparent) var(--f)); -webkit-mask: url(/img/star.svg) 0 0 / 1.68em 1.4em repeat-x; mask: url(/img/star.svg) 0 0 / 1.68em 1.4em repeat-x; }
.vf-cli .vf-note { margin: 0 0 14px; }
.vf-rate-btn { width: 100%; justify-content: center; margin-top: 14px; }

/* v0.12 · Modo oscuro: los paneles que siempre son oscuros usan un azul noche fijo (no --ink, que en oscuro es claro)
   y los elementos seleccionados con texto blanco se invierten a fondo claro con texto oscuro. */
[data-theme="dark"] .b2h, [data-theme="dark"] .sx-b2b { background: #0a121b; color: #e9e4d8; border: 1px solid #1d2c3f; }
[data-theme="dark"] .sgrp-h .st-ic { background: #132131; }
[data-theme="dark"] .st a[aria-current], [data-theme="dark"] .b2c-tabs [aria-selected="true"],
[data-theme="dark"] .b2q-lines input:checked + span, [data-theme="dark"] .chips [aria-current], [data-theme="dark"] .chips [aria-pressed="true"],
[data-theme="dark"] .skip, [data-theme="dark"] .toast { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .st a[aria-current] small, [data-theme="dark"] .b2c-tabs [aria-selected="true"] small { color: #3a4a5c; }
[data-theme="dark"] .st a[aria-current] .st-ic { color: #7a5a1c; }
/* v0.12 · Textos dorados y verdes legibles en ambos temas */
.pf-eyebrow, .pf-num, .pf-org { color: #8a6420; }
[data-theme="dark"] .pf-eyebrow, [data-theme="dark"] .pf-num, [data-theme="dark"] .pf-org { color: #e2bd6e; }
.pf-per em, .btn.wa, [data-theme="dark"] .btn.wa { background: #1d7a45; border-color: #1d7a45; color: #fff; }
.tm-cw { color: color-mix(in srgb, var(--cc) 62%, var(--ink)); }
/* v0.12 · Pestaña activa de la tienda en oscuro: fondo claro y texto oscuro, sea cual sea su forma (lista o píldora) */
html[data-theme="dark"] .st a[aria-current] { background: #eef1f4; color: #0d1621; border-color: #eef1f4; }
html[data-theme="dark"] .st a[aria-current] small { color: #3a4a5c; }
html[data-theme="dark"] .st a[aria-current] .st-ic { color: #7a5a1c; }
/* Empresas en oscuro: superficies oscuras fijas (--ink-2 es claro en este tema) */
html[data-theme="dark"] .b2c-tabs button { background: #132131; color: #e6ecf2; border-color: #23344a; }
html[data-theme="dark"] .b2c-tabs button small { color: #94a6b8; }
html[data-theme="dark"] .b2c-tabs [aria-selected="true"] { background: #eef1f4; color: #0d1621; border-color: #eef1f4; }
html[data-theme="dark"] .b2c-tabs [aria-selected="true"] small { color: #3a4a5c; }
html[data-theme="dark"] .b2s-n { background: #132131; color: #e6ecf2; border-color: #23344a; }
html[data-theme="dark"] .b2s-list.in .b2s-n { background: var(--im); border-color: var(--im); color: #0d1621; }
html[data-theme="dark"] .b2q-form { background: #132131; border-color: #23344a; }
html[data-theme="dark"] .b2c-p > span { background: #132131; }

/* v0.14 · Sin luz que cae del botón de tema */
.tb-beam { display: none !important; }

/* Fila de tarjetas inclinadas que avanza sola (portada de inicio y de la tienda).
   Solo se anima transform, que el celular mueve sin trabarse; se detiene al pasar el mouse o con movimiento reducido. */
.fan { position: relative; overflow: hidden; padding: 30px 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  animation: fan-in .6s .15s cubic-bezier(.2, .8, .2, 1) both; }
.fan-track { display: flex; width: max-content; animation: fan-run 34s linear infinite; }
.fan:hover .fan-track, .fan:focus-within .fan-track { animation-play-state: paused; }
@keyframes fan-run { to { transform: translateX(-50%); } }
@keyframes fan-in { from { opacity: 0; transform: translateY(40px); } }
.fan-c { position: relative; flex: none; display: block; width: clamp(180px, 17vw, 240px); aspect-ratio: 3 / 4; margin-right: 20px; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff;
  background: #1b3a5a; transform: translateY(var(--y)) rotate(var(--r)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 22px 40px -22px rgb(8 17 27 / .55); }
.fan-c:hover, .fan-c:focus-visible { transform: translateY(calc(var(--y) - 12px)) rotate(0deg) scale(1.03); }
.fan-c > img { width: 100%; height: 100%; object-fit: cover; }
.fan-c > span { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 7px 11px; border-radius: 12px; font-size: .84rem; font-weight: 700; line-height: 1.2; background: rgb(8 17 27 / .62); }
.fan-p { background: #1b3a5a; background: linear-gradient(165deg, color-mix(in srgb, var(--tone) 70%, #fff 8%), color-mix(in srgb, var(--tone) 35%, #0d1d2e)); }
.fan-p .sp-fig { position: absolute; inset: 16px 14px 54px; width: auto; height: auto; }
.fan-p .sp-fig img { filter: drop-shadow(0 14px 12px rgb(10 20 30 / .35)); }

/* Portada de inicio centrada, con la fila de fotos debajo */
.hero.hero-c { display: block; min-height: 0; padding: clamp(40px, 6vw, 80px) 0 0; text-align: center; }
.hero-c .hero-copy { display: grid; justify-items: center; }
.hero-c h1 { max-width: 18ch; margin-inline: auto; text-wrap: balance; }
.hero-c .lead { max-width: 58ch; margin-inline: auto; }
.hero-c .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 860px); max-width: none; text-align: left; }
.hero-c .fan { margin-top: clamp(18px, 3vw, 36px); }
@media (max-width: 760px) {
  .hero.hero-c { padding-top: 28px; text-align: left; }
  .hero-c .hero-copy { justify-items: start; }
  .hero-c h1, .hero-c .lead { margin-inline: 0; }
  .hero-c .routes { grid-template-columns: 1fr; }
  .fan { padding: 16px 0 26px; }
  .fan-track { animation-duration: 26s; }
  .fan-c { width: 150px; border-radius: 20px; margin-right: 14px; }
  .fan-c > span { font-size: .74rem; left: 8px; right: 8px; bottom: 8px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) { .fan, .fan-track { animation: none; } }
@media (min-width: 761px) {
  .hero.hero-c { padding-top: clamp(28px, 4vw, 52px); }
  .hero-c h1 { max-width: 26ch; font-size: clamp(2.4rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.04; margin-bottom: .25em; }
  .hero-c .routes { margin-top: 22px; }
  .hero-c .fan { margin-top: 6px; }
}

/* v0.15 · Franja de productos del inicio con las fotos recortadas sobre su color (como en la tienda) */
.prod-img { position: relative; background: #e9eef4; background: color-mix(in srgb, var(--tone, #1a5f99) 16%, #fff); }
.prod-img::before { content: ""; position: absolute; left: 50%; top: 56%; width: 64%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--tone, #1a5f99); opacity: .9; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.prod-img .sp-fig { position: absolute; inset: 9%; display: block; width: auto; height: auto; }
.prod-img .sp-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px rgb(10 20 30 / .3)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.prod:hover .prod-img img { transform: translateY(-6px) rotate(-5deg) scale(1.05); }
.prod:hover .prod-img::before { transform: scale(1.12); }
.prod-img.is-photo::before { display: none; }
.prod-img.is-photo .sp-fig img { object-fit: cover; filter: none; border-radius: 12px; }
.prod-kind { font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.prod-body .price { font-size: 1.12rem; font-weight: 800; margin: 0; }

/* v0.16 · Servicios: tarjetas del mismo tamaño, toda la tarjeta abre el detalle y "Cotizar" va directo a WhatsApp */
.svc-grid.sv2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sv2 .svc-card, .sv2 .svc-card:nth-child(4n+1) { grid-column: auto; position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px -18px rgb(20 39 61 / .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
[data-theme="dark"] .sv2 .svc-card { background: var(--paper-2); }
.sv2 .svc-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -20px rgb(20 39 61 / .45); border-color: var(--im); }
.sv2-img { position: relative; }
.sv2 .svc-card .frame, .sv2 .svc-card:nth-child(4n+1) .frame { aspect-ratio: 16 / 10; margin: 0; border-radius: 0; }
.sv2-n { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 10px; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; background: rgb(13 22 33 / .7); }
.sv2-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.sv2 .svc-card h2 { font-size: 1.22rem; line-height: 1.2; margin: 0 0 6px; }
.sv2 .svc-card h2 a { text-decoration: none; color: inherit; }
.sv2 .svc-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sv2 .svc-card p { margin: 0 0 16px; font-size: .95rem; }
.sv2-acts { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sv2-more { font-weight: 700; color: var(--im); font-size: .95rem; }
.sv2-more::after { content: " ›"; font-size: 1.2em; }
.sv2-wa { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: #1d7a43; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .2s, background .2s; }
.sv2-wa:hover { background: #17663a; transform: scale(1.04); }
.sv2-wa svg { width: 17px; height: 17px; }
@media (max-width: 1000px) { .svc-grid.sv2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* Celular: filas compactas con foto a la izquierda, fáciles de recorrer con el pulgar */
  .svc-grid.sv2 { grid-template-columns: 1fr; gap: 12px; }
  .sv2 .svc-card, .sv2 .svc-card:nth-child(4n+1) { flex-direction: row; border-radius: 18px; }
  .sv2-img { flex: none; width: 108px; }
  .sv2 .svc-card .frame, .sv2 .svc-card:nth-child(4n+1) .frame { aspect-ratio: auto; height: 100%; }
  .sv2-n { left: 8px; top: 8px; padding: 3px 7px; font-size: .7rem; }
  .sv2-body { padding: 12px 14px; }
  .sv2 .svc-card h2 { font-size: 1.02rem; }
  .sv2 .svc-card p { font-size: .85rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sv2-more { display: none; }
  .sv2-acts { justify-content: flex-start; }
  .sv2-wa { padding: 7px 12px; font-size: .82rem; }
}

/* v0.16 · Trabajos realizados: tres tarjetas iguales con el título sobre la foto y flecha de "ver" */
.pj2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pj2-c { position: relative; display: block; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; }
.pj2-c .frame { aspect-ratio: 4 / 5; margin: 0; border-radius: 0; }
.pj2-c .frame img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.pj2-c:hover .frame img { transform: scale(1.06); }
.pj2-c::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(8 15 24 / .88)); pointer-events: none; }
.pj2-txt { position: absolute; z-index: 1; left: 18px; right: 70px; bottom: 18px; display: grid; gap: 4px; }
.pj2-txt small { font-size: .78rem; font-weight: 700; opacity: .8; }
.pj2-txt b { font-size: 1.12rem; line-height: 1.2; }
.pj2-go { position: absolute; z-index: 1; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #14202c; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pj2-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pj2-c:hover .pj2-go { transform: translateX(4px); }
@media (max-width: 760px) {
  .pj2 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; }
  .pj2::-webkit-scrollbar { display: none; }
  .pj2-c { flex: none; width: 78vw; scroll-snap-align: start; }
  .pj2-c .frame { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 640px) {
  .sv2-img { position: relative; min-height: 120px; }
  .sv2 .svc-card .sv2-img .frame { position: absolute; inset: 0; height: auto; }
  .sv2-img .frame img { width: 100%; height: 100%; object-fit: cover; }
}

/* v0.17 · Publicaciones de Facebook en el inicio (se cargan solas desde la página) */
.fb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fb-c { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 28px -18px rgb(20 39 61 / .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
[data-theme="dark"] .fb-c { background: var(--paper-2); }
.fb-c:hover { transform: translateY(-5px); border-color: #1877f2; }
.fb-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.fb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fb-c:hover .fb-img img { transform: scale(1.05); }
.fb-b { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.fb-b small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.fb-t { font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fb-txt .fb-t { -webkit-line-clamp: 8; font-size: 1.05rem; }
.fb-b b { margin-top: auto; padding-top: 4px; color: #1877f2; font-size: .9rem; }
[data-theme="dark"] .fb-b b { color: #6aa8ff; }
@media (max-width: 760px) {
  .fb-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; }
  .fb-grid::-webkit-scrollbar { display: none; }
  .fb-c { flex: none; width: 76vw; scroll-snap-align: start; }
}
