/*
 * OJELA LINKS — _core/links.css  (BASE: estructura común a TODOS los estilos)
 * Capa "foto" (al final de este archivo): portada a pantalla completa, mensaje en cristal, servicios
 * con miniatura y videos. Cada estilo (estilo-<nombre>.css) solo define variables y detalles propios. Los colores del cliente llegan por JS desde links-config.js (bloque "tema").
 */
:root {
  --paper: #fff; --surface: #fff; --ink: #1b1b1b; --ink-soft: #555;
  --brand: #1f4d3a; --on-brand: #fff; --accent: #c8964b; --on-accent: #14110f;
  --line: rgba(0,0,0,.15); --bw: 1px; --shadow: none; --r-card: 20px;
  --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); min-height: 100vh; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.page { position: relative; max-width: 460px; margin: 0 auto; min-height: 100vh; padding: 0 18px 40px; isolation: isolate; }
.nojs { padding: 40px 0; text-align: center; line-height: 1.7; }
.nojs a { font-weight: 600; text-decoration: underline; }

/* ----- Identidad ----- */
.id { position: relative; display: flex; flex-direction: column; padding-top: 70px; padding-bottom: 8px; }
.id__mark { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.id__mark img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.id--cover .id__mark img { padding: 0; object-fit: cover; }
.monogram { font-family: var(--font-display); font-weight: 800; line-height: 1; }
.id__mono { font-size: 44px; }
.id__name { font-family: var(--font-display); overflow-wrap: anywhere; }
.id__tag { margin-top: 6px; }
.id__line { margin-top: 4px; display: flex; flex-direction: column; font-size: 14px; color: var(--ink-soft); }
.chip { margin-top: 12px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.id__cover { position: absolute; left: -18px; right: -18px; top: 0; height: 220px; overflow: hidden; z-index: -1; }
.id__cover img { width: 100%; height: 100%; object-fit: cover; }
.id--cover { padding-top: 150px; }

.lang { position: absolute; top: 16px; right: 0; z-index: 3; display: flex; gap: 2px; padding: 3px; border-radius: 999px; }
.lang button { font: 700 12px var(--font-display); min-width: 40px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }

/* ----- Panel ----- */
.stack { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

.msg { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-card); }
.msg__head { display: flex; align-items: center; gap: 12px; }
.msg__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.msg__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.msg__who strong { font-family: var(--font-display); font-size: 17px; }
.msg__who span { font-size: 13px; color: var(--ink-soft); }
.msg__bubble { position: relative; padding: 14px 16px; }
.msg__text { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.msg__meta { margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 12px 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-align: center; background: var(--brand); color: var(--on-brand); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick--one { grid-template-columns: 1fr; }
.qk { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 14px; text-align: center; }

.team > summary { list-style: none; cursor: pointer; }
.team > summary::-webkit-details-marker { display: none; }
.team__sum { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 18px; border-radius: 999px; }
.team__txt { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; line-height: 1.25; }
.team__txt strong { font-family: var(--font-display); font-size: 16px; }
.team__txt span { font-size: 13px; }
.team .chev { transition: transform .25s; }
.team[open] .chev { transform: rotate(180deg); }
.team__list { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.member { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px 10px 10px; border-radius: 999px; }
.member__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 22px; }
.member__txt { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; line-height: 1.25; }
.member__txt strong { font-family: var(--font-display); font-size: 16px; }
.member__txt span { font-size: 12.5px; color: var(--ink-soft); }
.member__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }

.lbl { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.svcs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svcs__grid--one { grid-template-columns: 1fr; }
.svc { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.svc__ic { display: grid; place-items: center; flex: none; }

.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.social a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.foot, .credit { text-align: center; font-size: 12px; color: var(--ink-soft); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   CAPA FOTO (común a todos los estilos): la estructura que vende.
   Variables que cada estilo puede ajustar:
   --cover-h (alto de la foto), --name-ink (color del nombre), --r-card, --r-thumb, --r-btn,
   --surface, --line, --shadow, --veil (oscurecido superior de la foto).
   ===================================================================== */
:root { --cover-h: 440px; --name-ink: #fff; --r-thumb: 16px; --r-btn: 999px; --veil: rgba(0,0,0,.5); --name-shadow: 0 2px 24px rgba(0,0,0,.45); }
.id--cover { padding-top: calc(var(--cover-h) - 204px); }
.id__cover { left: -18px; right: -18px; height: var(--cover-h); }
.id__cover img { transform-origin: 50% 40%; animation: asentar 1.6s cubic-bezier(.2,.7,.2,1) both; }
.id__cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--veil) 0%, transparent 26%, color-mix(in srgb, var(--paper) 25%, transparent) 52%, color-mix(in srgb, var(--paper) 92%, transparent) 86%, var(--paper) 100%); }
@keyframes asentar { from { transform: scale(1.12); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.id--cover .id__mark { position: absolute; top: 14px; left: 0; width: 56px; height: 56px; background: rgba(255,255,255,.95); box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.id--cover .id__name { color: var(--name-ink); text-shadow: var(--name-shadow); }
.id__name { font-weight: 800; font-size: clamp(38px, 12vw, 52px); line-height: .98; letter-spacing: -.02em; }
.id__tag { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--brand); }
.id__line { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.chip { background: color-mix(in srgb, var(--paper) 62%, transparent); color: var(--ink); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: var(--r-btn); }
.lang { background: color-mix(in srgb, var(--paper) 55%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); border-radius: var(--r-btn); }
.lang button { border-radius: var(--r-btn); }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

.stack { margin-top: 14px; gap: 14px; }
.msg { padding: 16px; background: var(--surface); border: var(--bw) solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: var(--shadow); }
.msg__photo { box-shadow: 0 0 0 2px var(--brand); }
.msg__who strong { font-weight: 700; font-size: 18px; }
.msg__bubble { background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent); border-radius: var(--r-card) var(--r-card) var(--r-card) 6px; }
.cta { min-height: 58px; font-size: 16px; border-radius: var(--r-btn); box-shadow: 0 10px 34px color-mix(in srgb, var(--brand) 38%, transparent); transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(1px); }
.qk { min-height: 50px; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-btn); transition: background .15s; }
.qk:hover { background: var(--surface); }

.lbl { margin: 8px 0 12px; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.svcs__grid--photos { grid-template-columns: 1fr; gap: 10px; }
.svc { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); color: var(--ink); transition: transform .15s, background .15s; }
.svc:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
.svc--photo { gap: 14px; min-height: 88px; padding: 6px 16px 6px 6px; }
.svc__photo { width: 96px; height: 72px; flex: none; border-radius: var(--r-thumb); object-fit: cover; }
.svc__txt { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; gap: 2px; }
.svc__txt strong { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; overflow-wrap: anywhere; }
.svc__txt span { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.svc__go { color: var(--brand); transform: rotate(-90deg); flex: none; }

/* Videos: tarjeta con miniatura propia (o color de marca) y una insignia de reproducir pequeña */
.vids__grid { display: flex; flex-direction: column; gap: 10px; }
.vid { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 6px 16px 6px 6px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); color: var(--ink); transition: transform .15s, background .15s; }
.vid:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
.vid__thumb { position: relative; width: 112px; height: 72px; flex: none; border-radius: var(--r-thumb); overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid__thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vid__thumb::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.vid__txt { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; gap: 2px; }
.vid__txt strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.vid__txt span { font-size: 13px; color: var(--ink-soft); }
.vid__src { font-size: 11.5px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--brand) !important; font-weight: 700; }

/* Galería: tira de fotos 4:5 que se desliza de lado y se frena en cada foto */
.gal__row { display: flex; gap: 10px; margin: 0 -18px; padding: 0 18px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gal__row::-webkit-scrollbar { display: none; }
.gal__row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gal__item { position: relative; flex: 0 0 62%; max-width: 270px; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: start; background: var(--surface); border: var(--bw) solid var(--line); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }
.gal__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 14px 12px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }

/* Video propio (mp4/webm): marco del teléfono suave, sin autoplay con sonido */
.clip__video { display: block; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-card); background: #000; border: var(--bw) solid var(--line); box-shadow: var(--shadow); }
.clip__txt { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }

.team__sum { background: var(--surface); border: var(--bw) solid var(--line); color: var(--ink); min-height: 64px; border-radius: var(--r-btn); }
.team__sum > svg:first-child { width: 22px; height: 22px; color: var(--brand); }
.team__txt strong { font-weight: 700; }
.team__txt span { color: var(--ink-soft); }
.member { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); min-height: 68px; transition: background .15s; }
.member:hover { background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
.member__photo { width: 48px; height: 48px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 70%, transparent); background: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--ink); }
.member__go { width: 36px; height: 36px; background: var(--brand); color: var(--on-brand); }
.member__go svg { width: 18px; height: 18px; }

.social { justify-content: flex-start; gap: 12px; margin-top: 10px; }
.social a { width: 46px; height: 46px; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px var(--line); }
.social svg { width: 22px; height: 22px; }
.foot, .credit { text-align: left; }
@media (max-width: 360px) { .id--cover { padding-top: calc(var(--cover-h) - 230px); } .id__cover { height: calc(var(--cover-h) - 30px); } .svcs__grid:not(.svcs__grid--photos), .quick { grid-template-columns: 1fr; } .vid__thumb { width: 96px; } }

/* ---------- Catálogo (bloque "catalogo"): filtro por categoría + botón de WhatsApp por producto ---------- */
.cat__chips { display: flex; gap: 8px; margin: 0 -18px 14px; padding: 0 18px 4px; overflow-x: auto; scrollbar-width: none; }
.cat__chips::-webkit-scrollbar { display: none; }
.cat__chip { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 14px/1 var(--font-display); cursor: pointer; }
.cat__chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.cat__chip:focus-visible, .cat__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat__card { display: flex; flex-direction: column; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.cat__card[hidden] { display: none; }
.cat__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.cat__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; flex-grow: 1; }
.cat__name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.cat__price { font-size: 13px; color: var(--ink-soft); }
.cat__btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-btn); background: var(--brand); color: var(--on-brand); font: 700 14px/1 var(--font-display); }
