@font-face { font-family: "Motive"; src: url("/fonts/Motive-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Motive"; src: url("/fonts/Motive-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Motive"; src: url("/fonts/Motive-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --navy: #071F4A;
  --royal: #0F418A;
  --gold: #E2AD25;
  --white: #EEF1F2;
  --red: #D3262E;
  --ink: var(--white);
  --muted: color-mix(in srgb, var(--white) 68%, transparent);
  --line: color-mix(in srgb, var(--white) 12%, transparent);
  --glass: color-mix(in srgb, var(--white) 6%, transparent);
  --glass-2: color-mix(in srgb, var(--white) 10%, transparent);
  --radius: 18px;
  --font: "Motive", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fondo de escritorio */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--royal) 70%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    var(--navy);
}

.card {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh;
  background: linear-gradient(180deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 85%, var(--royal)) 55%, var(--navy) 100%);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
@media (min-width: 560px) {
  .card { margin: 28px auto; min-height: auto; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px var(--line); }
}

/* Skeleton */
.skeleton { padding: 0 20px; }
.sk-cover { height: 210px; margin: 0 -20px; background: var(--royal); opacity: .5; }
.sk-avatar { width: 116px; height: 116px; border-radius: 50%; margin: -58px auto 18px; background: var(--glass-2); }
.sk-line { height: 14px; border-radius: 8px; background: var(--glass-2); margin: 10px auto; }
.sk-line.w60 { width: 60%; height: 22px; } .sk-line.w40 { width: 40%; }
.sk-btn { height: 64px; border-radius: var(--radius); background: var(--glass); margin-top: 12px; }
.skeleton > * { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* Barra superior */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 14px 0;
}
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  background: color-mix(in srgb, var(--navy) 45%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
}
.chip-btn .ic { width: 18px; height: 18px; }
.lang { display: inline-flex; padding: 3px; gap: 2px; height: 38px; align-items: center; }
.lang button {
  border: 0; background: transparent; height: 30px; min-width: 38px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }

/* Portada */
.cover { position: relative; height: 220px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 55%, transparent) 0%, color-mix(in srgb, var(--navy) 35%, transparent) 45%, var(--navy) 100%);
}
.cover .logo {
  position: absolute; z-index: 2; left: 50%; top: calc(54px + env(safe-area-inset-top)); transform: translateX(-50%);
  width: min(230px, 62%); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

/* Presentación */
.intro { position: relative; text-align: center; padding: 0 22px; margin-top: -62px; z-index: 3; }
.avatar {
  width: 124px; height: 124px; margin: 0 auto; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 210deg, var(--gold), #f6d77a, var(--gold), var(--red), var(--gold));
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy); background: var(--royal); }
.name { margin: 14px 0 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.brand { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; color: var(--gold); letter-spacing: .01em; }
.role { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.location { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.location .ic { width: 16px; height: 16px; color: var(--red); }
.tagline {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--gold);
}
.tagline::before, .tagline::after { content: ""; height: 1px; width: 28px; background: linear-gradient(90deg, transparent, var(--gold)); }
.tagline::after { transform: scaleX(-1); }
.bio { margin: 14px auto 0; max-width: 38ch; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--white) 86%, transparent); white-space: pre-line; }

/* Acciones rápidas */
.quick { display: flex; justify-content: center; gap: 10px; margin: 20px 0 4px; flex-wrap: wrap; }
.qbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass); text-decoration: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s;
}
.qbtn:active { transform: scale(.97); }
.qbtn .ic { width: 19px; height: 19px; color: var(--gold); }

/* Secciones */
.section { padding: 26px 18px 0; }
.section-title {
  display: flex; align-items: center; gap: 10px; margin: 0 4px 14px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--gold);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Enlaces */
.links { display: grid; gap: 10px; }
.lbtn {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 14px 10px 10px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass);
  text-decoration: none; transition: transform .15s ease, background .2s, border-color .2s; -webkit-tap-highlight-color: transparent;
}
a.lbtn:hover { background: var(--glass-2); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
a.lbtn:active { transform: scale(.985); }
.lbtn .lic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(145deg, var(--royal), color-mix(in srgb, var(--royal) 60%, var(--navy))); color: var(--white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 12%, transparent);
}
.lbtn .ltext { flex: 1; min-width: 0; text-align: left; }
.lbtn .ltitle { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.lbtn .lsub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.lbtn .larrow { width: 20px; height: 20px; color: var(--muted); }
.lbtn.hl { background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 78%, #fff)); border-color: transparent; color: var(--navy); box-shadow: 0 10px 28px color-mix(in srgb, var(--gold) 28%, transparent); }
.lbtn.hl .lic { background: var(--navy); color: var(--gold); }
.lbtn.hl .lsub, .lbtn.hl .larrow { color: color-mix(in srgb, var(--navy) 75%, transparent); }
.lbtn.soon { opacity: .62; cursor: default; }
.lbtn.soon .lic { background: var(--glass-2); color: var(--muted); }
.badge {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold);
}

/* Servicios */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 8px; scroll-padding: 0 18px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.svc {
  scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
}
.svc-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(140deg, var(--royal), var(--navy)); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media.ph { display: grid; place-items: center; }
.svc-media.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background:
    radial-gradient(circle at 20% 120%, var(--gold) 0 18%, transparent 19%),
    radial-gradient(circle at 85% -10%, color-mix(in srgb, var(--white) 30%, transparent) 0 22%, transparent 23%);
}
.svc-media.ph .ic { position: relative; width: 64px; height: 64px; stroke-width: 1.2; color: var(--gold); }
.svc-media .svc-ic {
  position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: color-mix(in srgb, var(--navy) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--gold);
}
.svc-media .svc-ic .ic { width: 20px; height: 20px; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.svc h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
.svc p { margin: 6px 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.svc-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); color: var(--gold); text-decoration: none;
  font-size: 14px; font-weight: 800; transition: background .2s, color .2s;
}
.svc-cta:hover, .svc-cta:active { background: var(--gold); color: var(--navy); }
.svc-cta .ic { width: 19px; height: 19px; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rail-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s, background .25s; }
.rail-dots i.on { width: 18px; background: var(--gold); }

/* Galería */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid button { position: relative; padding: 0; border: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--glass); }
.grid button:first-child { grid-column: span 2; grid-row: span 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid button:hover img { transform: scale(1.05); }
.grid .vid { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.more-btn { display: block; margin: 12px auto 0; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* Texto, info, video */
.text-block { padding: 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: color-mix(in srgb, var(--white) 88%, transparent); white-space: pre-line; }
.info-list { display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.info-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--glass); }
.info-row .ic { color: var(--gold); width: 20px; height: 20px; }
.info-row .k { font-size: 12.5px; color: var(--muted); display: block; }
.info-row .v { font-size: 15px; font-weight: 600; display: block; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .facade { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: center / cover no-repeat; }
.video .facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.45)); }
.video .facade .ic { position: relative; width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.video-caption { margin: 8px 4px 0; font-size: 13.5px; color: var(--muted); }

/* Reseñas (sección) */
.rev-card { scroll-snap-align: start; padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .ic { width: 16px; height: 16px; fill: currentColor; stroke-width: 1; }
.stars .off { color: var(--line); }
.rev-text { margin: 0; font-size: 14.5px; line-height: 1.55; }
.rev-meta { font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* Pie */
.foot { text-align: center; padding: 34px 20px 4px; color: var(--muted); font-size: 12px; }
.foot img { width: 120px; margin: 0 auto 10px; opacity: .9; }

/* Popup de reseñas */
.rpop {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 24px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; gap: 12px; padding: 14px 14px 14px 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--white) 96%, transparent); color: var(--navy);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(7,31,74,.06);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.rpop.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.rpop .rp-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.rpop .rp-body { flex: 1; min-width: 0; }
.rpop .stars { color: var(--gold); }
.rpop .rp-text { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rpop .rp-meta { margin-top: 5px; font-size: 11.5px; color: color-mix(in srgb, var(--navy) 65%, transparent); font-weight: 600; }
.rpop .rp-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: transparent; color: color-mix(in srgb, var(--navy) 55%, transparent); cursor: pointer; display: grid; place-items: center; }
.rpop .rp-close .ic { width: 16px; height: 16px; }

/* Modal / hoja inferior */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; background: rgba(3,12,30,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s ease; }
.sheet {
  width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--white); color: var(--navy); animation: up .32s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 560px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(7,31,74,.18); margin: 0 auto 14px; }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 800; text-align: center; }
.sheet .sub { margin: 4px 0 0; text-align: center; font-size: 13.5px; color: color-mix(in srgb, var(--navy) 65%, transparent); }
.qr-box { width: min(260px, 72vw); aspect-ratio: 1; margin: 18px auto; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(7,31,74,.12); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.sheet .url { text-align: center; font-size: 13px; font-weight: 600; color: var(--royal); word-break: break-all; margin-bottom: 16px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; border: 0; cursor: pointer; font-size: 15px; font-weight: 800; text-decoration: none; }
.sbtn.pri { background: var(--navy); color: var(--white); }
.sbtn.sec { background: rgba(7,31,74,.07); color: var(--navy); }
.sbtn .ic { width: 19px; height: 19px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* Visor de imágenes */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(2,8,22,.96); display: flex; flex-direction: column; animation: fade .2s ease; touch-action: pan-y; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; color: var(--muted); font-size: 13px; }
.lb-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); display: grid; place-items: center; cursor: pointer; }
.lb-stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); display: grid; place-items: center; cursor: pointer; }
.lb-nav.prev { left: 10px; } .lb-nav.prev .ic { transform: scaleX(-1); } .lb-nav.next { right: 10px; }
.lb-cap { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--white); min-height: 48px; }
@media (hover: none) { .lb-nav { display: none; } }

/* Aviso breve */
#toast-root { position: fixed; z-index: 70; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top)); display: grid; justify-items: center; pointer-events: none; }
.toast { background: var(--white); color: var(--navy); font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); display: inline-flex; gap: 8px; align-items: center; animation: up .25s ease; }
.toast .ic { width: 18px; height: 18px; color: #1a8a4a; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
