@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --white: #FFFFFF; --bg-alt: #F5F5F7; --ink: #1D1D1F; --muted: #86868B;
  --pad: clamp(20px, 5vw, 64px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 6vw, 56px); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.lead { font-size: clamp(17px, 2.6vw, 21px); color: #424245; max-width: 40ch; }
.muted { color: var(--muted); font-size: 14px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + var(--safe-t)) var(--pad) 10px;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 34px; width: auto; object-fit: contain; flex-shrink: 0; }
.brand-text { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.nav { display: flex; gap: 28px; font-size: 13px; }
.nav a { text-decoration: none; color: #424245; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; line-height: 1; color: var(--muted); }
.lang a { text-decoration: none; padding: 10px 4px; }
.lang a[aria-current] { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero: pista de scroll + hero fijo (sticky). La foto se desvanece y emerge el logo. */
.hero-track { position: relative; }
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 520px; color: #fff; overflow: hidden; background: var(--white); }
.hero-logo { position: absolute; left: var(--pad); bottom: calc(132px + var(--safe-b)); width: min(86vw, 560px); height: auto; z-index: 4; --w: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); pointer-events: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; will-change: opacity, transform; }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,.06) 62%, rgba(0,0,0,.18) 100%); will-change: opacity; }
.hero-copy { z-index: 3; position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) calc(48px + var(--safe-b)); max-width: 900px; will-change: opacity, transform; }
.hero-copy h1 { font-size: clamp(38px, 9vw, 84px); font-weight: 700; margin-bottom: 14px; }
.hero-copy p { font-size: clamp(16px, 2.5vw, 22px); opacity: .9; margin-bottom: 24px; }

/* Intro: logo que se "escribe" de izquierda a derecha, luego revela la portada */
.intro { display: none; position: fixed; inset: 0; z-index: 200; background: var(--white); place-items: center; opacity: 1; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1.4s; }
html.intro-active .intro, .intro.intro-out { display: grid; }
html.intro-active body { overflow: hidden; }
.intro.intro-out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-writer { position: relative; width: min(82vw, 760px); overflow: hidden; transition: transform 1.6s cubic-bezier(.2, .6, .2, 1); }
.intro-logo { display: block; width: 100%; height: auto; }
/* Cortina blanca con borde suave que se desliza (solo transform => animación en GPU, sin repintados) */
.intro-cover {
  position: absolute; top: 0; bottom: 0; left: -30%; width: 130%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 23%, #fff 100%);
  transform: translate3d(0, 0, 0); will-change: transform;
  animation: ws-write 2.6s cubic-bezier(.5, .05, .25, 1) .25s forwards;
}
.intro.intro-out .intro-writer { transform: scale(1.05); }
@keyframes ws-write { to { transform: translate3d(100%, 0, 0); } }

/* Entrada de la portada mientras el logo se disuelve: la foto se asienta y el texto sube suavemente */
.hero.hero-enter .hero-img { animation: ws-settle 2.2s cubic-bezier(.2, .6, .2, 1) backwards; }
.hero.hero-enter .hero-copy { animation: ws-rise 1.4s cubic-bezier(.2, .6, .2, 1) .5s backwards; }
@keyframes ws-settle { from { transform: scale(1.05); } to { transform: scale(1); } }

/* Si la foto de portada es clara, el texto pasa a oscuro y el degradado a blanco para mantener contraste */
.hero.hero--light { color: var(--ink); }
.hero.hero--light .hero-shade { background: linear-gradient(to top, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 34%, rgba(255,255,255,0) 64%); }

/* Botones de la portada: píldoras sólidas que se leen igual sobre foto oscura, clara o fondo blanco */
.hero .btn-light { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 8px 24px rgba(0,0,0,.28); }
.hero .btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.2); }
@keyframes ws-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.center { justify-content: center; margin: 28px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 980px; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: scale(1.03); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border: 1px solid var(--ink); }

/* Sections */
.section { padding: clamp(64px, 12vw, 140px) 0; }
.section.alt { background: var(--bg-alt); }
.section > .wrap, .steps { text-align: left; }
.split { display: grid; gap: 32px; max-width: 1100px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); align-items: center; }
.split-img { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; background: var(--bg-alt); }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 40%); transform-origin: var(--op, 50% 40%); scale: var(--z, 1); opacity: 0; transition: opacity 1.1s ease; }
.split-img img.is-on { opacity: 1; }
.split-img { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 40px var(--pad) 0; max-width: 1300px; margin: 0 auto; }
.card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; background: #ddd; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); pointer-events: none; }
.card-label { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; }
.card-label h3 { font-size: 17px; }
.card-label span { font-size: 12px; opacity: .8; }

.steps { list-style: none; display: grid; gap: 20px; margin-top: 40px; padding-top: 0; padding-bottom: 0; }
.step { background: var(--bg-alt); border-radius: 20px; padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.step p { color: #424245; font-size: 15px; margin: 8px 0 0; }
.note { margin-top: 32px; color: var(--muted); }
.contact { text-align: center; }
.contact .wrap { text-align: center; }
.addr { font-size: 17px; margin-top: 24px; }
.addr a { color: #0066CC; text-decoration: none; }
.addr a:hover { text-decoration: underline; }

/* Inquiry Form */
.inquiry-box {
  max-width: 680px; margin: 36px auto; background: var(--white);
  padding: clamp(24px, 5vw, 40px); border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.06);
  text-align: left;
}
.inquiry-form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: #424245; }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit; font-size: 16px; padding: 12px 16px; min-height: 48px;
  border-radius: 12px; border: 1px solid #D2D2D7; background: #FBFBFD;
  color: var(--ink); transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #0071E3; box-shadow: 0 0 0 3px rgba(0,113,227,.15); background: #fff;
}
.form-submit { display: flex; justify-content: flex-end; margin-top: 8px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

.footer-logo {
  height: clamp(52px, 7vw, 72px);
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  opacity: .95;
}
.site-footer { padding: 48px var(--pad) calc(96px + var(--safe-b)); text-align: center; font-size: 13px; color: #424245; }
.site-footer .sig { font-weight: 600; color: var(--ink); }

.call-fab {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--safe-b)); z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .call-fab { display: none; }
  .site-footer { padding-bottom: 48px; }
}
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 699px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: calc(56px + var(--safe-t)) 0 auto 0; flex-direction: column; gap: 0; background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 8px var(--pad) 20px;
    transform: translateY(-120%); transition: transform .35s ease; font-size: 20px; border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .btn, .nav { transition: none; }
  .hero-track { height: auto; }
  .hero { position: relative; }
  .intro { display: none !important; }
}

/* Card Interactive */
.card-interactive { cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.card-interactive:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.14); }
.card-view-hint { font-weight: 600; opacity: 1; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Masonry Gallery Modal */
.gallery-modal {
  position: fixed; inset: 0; z-index: 100; background: var(--white);
  display: none; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.gallery-modal.open { display: flex; animation: fadeIn .25s ease; }
.gallery-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + var(--safe-t)) var(--pad) 14px;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.gallery-info h2 { font-size: clamp(20px, 3.5vw, 28px); margin: 0; font-weight: 700; }
.gallery-meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.gallery-actions { display: flex; align-items: center; gap: 12px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.close-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-alt);
  font-size: 26px; line-height: 1; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); transition: background .2s;
}
.close-btn:hover { background: #E5E5EA; }

.gallery-body { flex: 1; padding-top: 10px; }
.gallery-loader { display: none; justify-content: center; padding: 60px 0; }
.gallery-loader.active { display: flex; }
.spinner {
  width: 36px; height: 36px; border: 3px solid rgba(0,0,0,.1);
  border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite;
}

.masonry-grid {
  columns: 2; column-gap: 12px; padding: 16px var(--pad) calc(60px + var(--safe-b));
  max-width: 1400px; margin: 0 auto;
}
.masonry-item {
  break-inside: avoid; margin-bottom: 12px; border-radius: 16px; overflow: hidden;
  position: relative; cursor: zoom-in; background: #E5E5EA;
}
.masonry-item img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.masonry-item:hover img { transform: scale(1.03); }

/* Gallery CTA to Full Portfolio */
.gallery-cta-wrap {
  max-width: 900px; margin: 30px auto 60px; padding: 0 var(--pad); text-align: center; display: none;
}
.gallery-cta-wrap.active { display: block; animation: fadeIn .3s ease; }
.gallery-cta-card {
  background: var(--bg-alt); padding: clamp(32px, 6vw, 48px); border-radius: 28px;
  border: 1px solid rgba(0,0,0,.05);
}
.gallery-cta-card .eyebrow { margin-bottom: 8px; }
.gallery-cta-card h3 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin-bottom: 10px; }
.gallery-cta-card p { font-size: 16px; color: #424245; max-width: 50ch; margin: 0 auto 24px; }
.gallery-cta-buttons { display: flex; justify-content: center; }

/* Fullscreen Lightbox */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.95);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  display: none; align-items: center; justify-content: center;
}
.lightbox-modal.open { display: flex; animation: fadeIn .2s ease; }
.lightbox-stage {
  max-width: 94vw; max-height: 88vh; display: flex; align-items: center; justify-content: center;
}
#lightbox-img {
  max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: opacity .2s ease;
}
.lightbox-close {
  position: absolute; top: calc(16px + var(--safe-t)); right: calc(16px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; border: 0; font-size: 28px; display: grid; place-items: center; cursor: pointer;
  z-index: 130; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; border: 0; font-size: 36px; display: grid; place-items: center; cursor: pointer;
  z-index: 130; transition: background .2s, transform .2s; line-height: 1; padding-bottom: 4px;
}
.lightbox-prev { left: calc(16px + env(safe-area-inset-left, 0px)); }
.lightbox-next { right: calc(16px + env(safe-area-inset-right, 0px)); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.06); }
.lightbox-counter {
  position: absolute; bottom: calc(20px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 980px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .masonry-grid { columns: 3; column-gap: 16px; }
  .masonry-item { margin-bottom: 16px; }
}
@media (min-width: 1100px) {
  .masonry-grid { columns: 4; column-gap: 20px; }
  .masonry-item { margin-bottom: 20px; }
}


/* Logo del footer: se pinta con fade suave al entrar en pantalla (la clase la pone el JS) */
.footer-logo.write { --w: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); }

/* Galería: logo pequeño a la izquierda, junto al nombre de la sesión */
.gallery-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gallery-logo { height: 34px; width: auto; flex: none; --w: 118; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); }
.gallery-info { min-width: 0; padding-left: 14px; border-left: 1px solid rgba(0,0,0,.12); }
.gallery-info h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lightbox: sesión arriba a la izquierda, logo nuevo (en blanco) arriba a la derecha */
.lightbox-top {
  position: absolute; z-index: 125; top: calc(16px + var(--safe-t)); left: calc(20px + env(safe-area-inset-left, 0px));
  right: calc(76px + env(safe-area-inset-right, 0px)); height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; pointer-events: none; color: #fff;
}
.lightbox-session { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lightbox-session strong { font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox-session span { font-size: 12px; color: rgba(255,255,255,.65); }
.lightbox-logo { height: clamp(26px, 4vw, 38px); width: auto; flex: none; filter: invert(1); --w: 118; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); mask-image: linear-gradient(90deg, #000 calc(var(--w) * 1% - 18%), transparent calc(var(--w) * 1%)); }
.lightbox-stage { margin-top: 56px; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
#lightbox-img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
@media (max-width: 699px) {
  .gallery-logo { height: 24px; }
  .gallery-left { gap: 10px; }
  .gallery-info { padding-left: 10px; }
  .lightbox-top { left: 16px; right: 70px; }
  .lightbox-logo { height: 24px; }
}
/* Logo de documents (icono cámara): solo en móvil; el logo ancho solo en PC/tablet */
.logo-icon { display: none; }
.inq-ico { display: none; }
@media (max-width: 699px) {
  .logo-wide { display: none; }
  .logo-icon { display: block; -webkit-mask-image: none; mask-image: none; }
  .gallery-logo.logo-icon { height: 34px; width: 34px; object-fit: contain; }
  .lightbox-logo.logo-icon { height: 30px; width: 30px; object-fit: contain; }
  /* Botón "Consultar sesión" convertido en icono */
  #gallery-inquire-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
  #gallery-inquire-btn .inq-txt { display: none; }
  #gallery-inquire-btn .inq-ico { display: block; }
  .gallery-actions { gap: 8px; }
}
/* ===== Lightbox estilo Apple: fondo claro y solo una franja superior oscura para textos y logos ===== */
.lightbox-modal { background: rgba(245,245,247,.97); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); }
.lightbox-strip { position: absolute; z-index: 124; top: 0; left: 0; right: 0; height: calc(68px + var(--safe-t)); background: rgba(22,22,24,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lightbox-top { top: calc(12px + var(--safe-t)); }
.lightbox-close { top: calc(12px + var(--safe-t)); }
.lightbox-stage { margin-top: calc(68px + var(--safe-t)); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px - var(--safe-t)); }
#lightbox-img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px - var(--safe-t)); box-shadow: 0 18px 50px rgba(0,0,0,.22); transition: none; will-change: transform, opacity; touch-action: pan-y; }
.lightbox-prev, .lightbox-next { background: rgba(29,29,31,.55); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(29,29,31,.8); }
.lightbox-counter { background: rgba(29,29,31,.72); }
.lightbox-info { display: none; pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; place-items: center; cursor: pointer; flex: none; }
.lightbox-desc {
  position: absolute; z-index: 126; right: 24px; bottom: 24px; width: min(400px, 36vw);
  padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06); color: var(--ink);
}
.lightbox-desc p { margin: 0; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lightbox-desc.empty { display: none !important; }
@media (max-width: 1023px) and (min-width: 700px) { .lightbox-desc { width: min(340px, 40vw); } }
@media (max-width: 699px) {
  .lightbox-info { display: grid; }
  .lightbox-desc { display: none; left: 16px; right: 16px; width: auto; bottom: calc(64px + var(--safe-b)); }
  .lightbox-desc.show { display: block; animation: fadeIn .25s ease; }
  .lightbox-desc p { -webkit-line-clamp: unset; font-size: 15px; }
  .lightbox-stage { max-height: calc(100dvh - 160px - var(--safe-t)); }
  #lightbox-img { max-height: calc(100dvh - 160px - var(--safe-t)); }
}
.site-footer .social { margin-top: 10px; }
.site-footer .social a { margin: 0 8px; color: #424245; text-decoration: none; font-weight: 500; }
.site-footer .social a:hover { color: var(--ink); text-decoration: underline; }
/* Reseñas */
.review-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { margin: 0; background: var(--bg-alt); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review-stars { color: #FF9F0A; letter-spacing: 2px; font-size: 15px; }
.review-card blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: #1d1d1f; }
.review-card figcaption { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: auto; }
.review-card figcaption a { color: inherit; }
/* Portada: foto, punto focal, zoom y encuadre distintos por dispositivo y orientación (los define el admin) */
.hero-img { --op: var(--op-dl, 50% 40%); --z: var(--z-dl, 1); --f: var(--f-dl, cover); --bg: var(--bg-dl, 0);
  object-position: var(--op); object-fit: var(--f); scale: var(--z); transform-origin: var(--op); }
@media (orientation: portrait) and (min-width: 700px) { .hero-img { --op: var(--op-dp, 50% 40%); --z: var(--z-dp, 1); --f: var(--f-dp, cover); --bg: var(--bg-dp, 0); } }
@media (orientation: portrait) and (min-width: 700px) and (pointer: coarse) { .hero-img { --op: var(--op-tp, 50% 40%); --z: var(--z-tp, 1); --f: var(--f-tp, cover); --bg: var(--bg-tp, 0); } }
@media (orientation: landscape) and (min-height: 501px) and (pointer: coarse) { .hero-img { --op: var(--op-tl, 50% 40%); --z: var(--z-tl, 1); --f: var(--f-tl, cover); --bg: var(--bg-tl, 0); } }
@media (orientation: landscape) and (max-height: 500px) { .hero-img { --op: var(--op-pl, 50% 40%); --z: var(--z-pl, 1); --f: var(--f-pl, cover); --bg: var(--bg-pl, 0); } }
@media (max-width: 699px) { .hero-img { --op: var(--op-pp, 50% 40%); --z: var(--z-pp, 1); --f: var(--f-pp, cover); --bg: var(--bg-pp, 0); } }
/* Modo "ver foto completa": la foto entera sobre una copia desenfocada de sí misma */
.hero-bg { z-index: 0; object-fit: cover; scale: 1.25; transform-origin: center; filter: blur(34px) saturate(1.15); opacity: calc(var(--bg) * var(--fade, 1)); pointer-events: none; }
.review-stars .half { background: linear-gradient(90deg, #FF9F0A 50%, #D2D2D7 50%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.review-more { text-align: center; margin: 28px 0 0; }
.review-card[hidden] { display: none; }
/* ===== Sobre nosotros ===== */
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 18px 50px rgba(0,0,0,.12); }

/* ===== Antes y después ===== */
.ba-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
.ba { margin: 0; }
.ba-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--bg-alt); user-select: none; -webkit-user-select: none; box-shadow: 0 14px 40px rgba(0,0,0,.10); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 18px rgba(0,0,0,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ba-line i::before, .ba-line i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid #1d1d1f; border-width: 0 0 2px 2px; margin-top: -4px; }
.ba-line i::before { left: 12px; transform: rotate(45deg); }
.ba-line i::after { right: 12px; transform: rotate(-135deg); }
.ba-tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 980px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.ba-tag-b { left: 14px; }
.ba-tag-a { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + * { outline: none; }
.ba:focus-within .ba-line i { box-shadow: 0 0 0 3px rgba(0,113,227,.55), 0 4px 18px rgba(0,0,0,.3); }
.ba figcaption { margin-top: 12px; font-size: 15px; font-weight: 500; color: #424245; text-align: center; }
.ba-hint { text-align: center; margin-top: 14px; }

/* ===== FAQ ===== */
.faq-list { margin-top: 12px; max-width: 760px; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.1); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: clamp(17px, 2.4vw, 20px); font-weight: 600; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s ease; margin-right: 4px; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 22px; color: #424245; font-size: 16px; line-height: 1.6; max-width: 62ch; animation: ws-faq .35s ease; }
.faq-a p { margin: 0; }
@keyframes ws-faq { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-a { animation: none; } .faq-item summary::after { transition: none; } }

/* ============================================================
   VISOR CINEMATOGRÁFICO HORIZONTAL PARA CELULAR (LANDSCAPE SHOWCASE)
   Solo activo en teléfonos apaisados (max-height <= 520px y touch)
   ============================================================ */
#phone-landscape-showcase {
  display: none;
}

@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  html, body {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: none !important;
  }
  #site-header, #main, .site-footer, .call-fab, .intro, #gallery-modal {
    display: none !important;
  }
  #phone-landscape-showcase {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #000 !important;
    overflow: hidden !important;
  }
}

.pls-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(circle at center, #131419 0%, #060608 100%);
  touch-action: none;
}

.pls-train {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding-left: 24px;
  padding-right: 50vw;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  touch-action: none;
  cursor: grab;
}

.pls-train:active {
  cursor: grabbing;
}

.pls-card {
  flex: 0 0 auto;
  height: 86vh;
  max-height: calc(100vh - 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pls-card img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  border-radius: 17px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.pls-overlay {
  position: absolute;
  top: env(safe-area-inset-top, 10px);
  left: env(safe-area-inset-left, 16px);
  right: env(safe-area-inset-right, 16px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.pls-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: auto;
}

.pls-brand img {
  height: 20px;
  width: auto;
  border-radius: 3px;
}

.pls-top-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.pls-sensor-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 13px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
}

.pls-sensor-pill:hover, .pls-sensor-pill:active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.pls-sensor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb300;
  box-shadow: 0 0 7px #ffb300;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pls-sensor-pill.active {
  background: rgba(0, 200, 83, 0.18);
  border-color: rgba(0, 200, 83, 0.45);
  color: #c8e6c9;
}

.pls-sensor-pill.active .pls-sensor-dot {
  background: #00e676;
  box-shadow: 0 0 9px #00e676;
  animation: plsPulse 1.8s infinite;
}

@keyframes plsPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.pls-counter {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pls-hint {
  position: absolute;
  bottom: calc(12px + env(safe-area-inset-bottom, 12px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 7px 20px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.2s ease;
  white-space: nowrap;
}

.pls-hint.fade-out {
  opacity: 0;
}

/* ==========================================================================
   Gift Cards Section & Luxury Credit Card Mockup
   ========================================================================== */
.giftcards-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.gc-split {
  align-items: center;
}

.gc-text .gc-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #424245;
  font-weight: 500;
}

.gc-icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.gc-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  padding: 10px;
}

.gc-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 480px;
}

.gc-credit-card {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #1d1e22 0%, #0d0e11 60%, #17181c 100%);
  border-radius: 20px;
  box-shadow: 0 28px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.45s ease;
}

.gc-card-link:hover .gc-credit-card {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg) scale(1.02);
  box-shadow: 0 36px 70px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.gc-credit-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  transform: rotate(25deg);
}

.gc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.gc-card-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.gc-card-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
}

.gc-card-middle {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

.gc-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gc-emv-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37 0%, #f9e38d 50%, #aa820a 100%);
  border-radius: 7px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

.gc-emv-chip .chip-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.gc-emv-chip .chip-line:last-child {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 1px;
  height: 100%;
}

.gc-nfc {
  color: rgba(255, 255, 255, 0.7);
}

.gc-amount-display {
  font-family: "Georgia", serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.gc-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.gc-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gc-holder-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.gc-card-num {
  font-family: monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
}

.gc-tap-pill {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.gc-card-link:hover .gc-tap-pill {
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .gc-credit-card {
    padding: 20px 22px;
  }
  .gc-amount-display {
    font-size: 32px;
  }
}

