@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); }

/* iPad / Tablet en vertical (y pantallas medianas): ocultar texto de marca para que el menú quepa limpio en 1 sola línea */
@media (min-width: 700px) and (max-width: 1060px), (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  .site-header { padding-left: clamp(14px, 2.2vw, 26px); padding-right: clamp(14px, 2.2vw, 26px); gap: 10px; }
  .site-header .brand-text { display: none; }
  .site-header .brand-logo { height: 30px; }
  .site-header .nav { gap: clamp(8px, 1.35vw, 15px); font-size: clamp(11px, 1.4vw, 12.5px); flex-wrap: nowrap; white-space: nowrap; }
  .site-header .nav a { white-space: nowrap; }
  .site-header .header-actions { gap: 8px; flex-shrink: 0; }
}
@media (min-width: 1061px) and (max-width: 1260px) {
  .site-header { gap: 12px; }
  .site-header .nav { gap: clamp(12px, 1.5vw, 22px); font-size: 12.5px; flex-wrap: nowrap; white-space: nowrap; }
  .site-header .nav a { white-space: nowrap; }
}

/* 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); }

/* ========================================================
   BOTÓN FLOTANTE DE LLAMADA TELEFÓNICA (SOLO MÓVILES / TABLETS)
   Reubicado en la esquina inferior izquierda para ergonomía
   ======================================================== */
.call-fab {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(16px + var(--safe-b));
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1d1d1f;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.call-fab:active {
  transform: scale(0.92);
}

/* ========================================================
   BOTÓN FLOTANTE DEL CHATBOT CON IA (TODOS LOS DISPOSITIVOS)
   Esquina inferior derecha con estilo Apple Luxury
   ======================================================== */
.chat-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + var(--safe-b));
  z-index: 70;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.42), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

@media (min-width: 700px) {
  .chat-fab {
    right: 28px;
    bottom: 28px;
    width: 60px;
    height: 60px;
  }
}

.chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.55), 0 4px 10px rgba(0, 0, 0, 0.14);
}

.chat-fab:active {
  transform: scale(0.94);
}

.chat-fab-pulse {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #34c759;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
  animation: chat-fab-pulse-ring 2s infinite;
}

@keyframes chat-fab-pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.chat-fab-badge {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

@media (min-width: 600px) {
  .chat-fab-badge {
    display: block;
  }
}

.chat-fab-badge.badge-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.chat-fab-badge::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(29, 29, 31, 0.92);
}

/* Modal y Contenedor del Chatbot */
.chat-widget-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.chat-widget-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.chat-widget-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-widget-modal.is-open .chat-widget-backdrop {
  opacity: 1;
}

.chat-widget-card {
  position: fixed;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* En Móviles (Celulares): Pantalla Completa Limpia estilo iOS sin traslape de la web de fondo */
@media (max-width: 680px) {
  .chat-widget-modal {
    overscroll-behavior: none;
  }
  .chat-widget-card {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    background: #ffffff;
    overscroll-behavior: none;
    transform: translateY(100%);
    opacity: 0;
  }
  .chat-widget-modal.is-open .chat-widget-card {
    transform: none !important;
    transition: none !important;
    opacity: 1;
  }
  .chat-widget-backdrop {
    display: block;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .chat-widget-modal.is-open .chat-widget-backdrop {
    opacity: 1 !important;
  }
}

/* En Desktop y Tablets Grandes */
@media (min-width: 681px) {
  .chat-widget-card {
    right: 28px;
    bottom: 98px;
    width: 440px;
    height: 680px;
    max-height: calc(100vh - 120px);
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform-origin: bottom right;
    transform: scale(0.85) translateY(24px);
    opacity: 0;
  }
  .chat-widget-modal.is-open .chat-widget-card {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Cabecera del Widget */
.chat-widget-header {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.chat-widget-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-widget-logo {
  border-radius: 6px;
  object-fit: contain;
}

.chat-widget-titles {
  display: flex;
  flex-direction: column;
}

.chat-widget-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.2;
}

.chat-widget-status {
  font-size: 11.5px;
  color: #86868b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  display: inline-block;
}

.chat-widget-actions {
  display: flex;
  align-items: center;
}

.chat-widget-btn-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f7;
  color: #424245;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-widget-btn-action:hover {
  background: #e5e5ea;
  color: #1d1d1f;
}

/* Cuerpo con iframe */
.chat-widget-body {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #ffffff;
  border-radius: inherit;
  overflow: hidden;
}

.chat-widget-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

html.chat-modal-active,
body.chat-modal-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

@media (max-width: 680px) {
  html.chat-modal-active,
  body.chat-modal-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
  body.chat-modal-active > *:not(#chatWidgetModal) {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Ajuste de posición del compañero móvil recomendador */
.mobile-companion-widget {
  position: fixed;
  right: 0;
  bottom: calc(84px + var(--safe-b));
  z-index: 90;
  pointer-events: none;
}

/* Rayita Gatillo Discreta pegada al borde derecho sobre el botón de teléfono */
.companion-notch-trigger {
  position: absolute;
  right: 0;
  bottom: 4px;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 52px;
  padding: 0;
  background: rgba(20, 20, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  animation: companionNotchNudge 3.5s ease-in-out infinite;
}

.companion-notch-trigger .notch-bar {
  display: block;
  width: 3.5px;
  height: 24px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.companion-notch-trigger:active .notch-bar {
  background: #FFFFFF;
  transform: scaleY(1.15);
}

.companion-notch-trigger.notch-attention-pulse {
  transform: translateX(-6px) scale(1.08);
}

@keyframes companionNotchNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

.companion-notch-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(120%) !important;
}

/* Flash fotográfico FX */
.companion-flash-fx {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  opacity: 0;
  z-index: 25;
  transition: opacity 0.1s ease-out;
}

.companion-flash-fx.is-flashing {
  opacity: 1;
}

/* Contenedor emergente (escondido fuera de pantalla por defecto) */
.companion-popup-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.companion-popup-wrap.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Avatar del personaje: exactamente 25% del alto de la pantalla del celular */
.companion-avatar-box {
  height: 25vh;
  max-height: 210px;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-right: calc(12px + env(safe-area-inset-right, 0px));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.companion-avatar-box picture {
  display: flex;
  align-items: flex-end;
  height: 100%;
  max-height: 100%;
  width: auto;
}

.companion-avatar-box:active {
  transform: scale(0.95);
}

.companion-avatar-img {
  height: 100%;
  max-height: 25vh;
  width: auto;
  max-width: 35vw;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* Globito de conversación estilo Apple */
.companion-bubble {
  position: relative;
  max-width: min(255px, calc(100vw - 110px));
  background: rgba(255, 255, 255, 0.98);
  color: #1F2937;
  padding: 12px 14px 11px;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-right: 6px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.companion-bubble.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: companionBubbleFloat 3s ease-in-out infinite 0.35s;
}

.companion-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(-45deg);
}

@keyframes companionBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.companion-close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #6B7280;
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.companion-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #111827;
}

.companion-bubble-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.companion-bubble-badge {
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.companion-bubble-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #1F2937;
  margin: 0;
}

.companion-bubble-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  background: #111827;
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.companion-bubble-cta:hover,
.companion-bubble-cta:active {
  background: #000000;
  transform: translateY(-1px);
}

/* 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; }
  .mobile-companion-widget { display: none !important; }
  .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 (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); } }
@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); } }
/* 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-section { padding-block: clamp(28px, 4vw, 48px); }
.ba-disclosure { border: 1px solid rgba(0,0,0,.08); border-radius: 22px; background: var(--bg-alt); padding: 18px 22px; transition: background-color .25s ease, box-shadow .25s ease; }
.ba-disclosure[open] { background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.05); }
.ba-summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ba-summary::-webkit-details-marker { display: none; }
.ba-summary-head .eyebrow { margin: 0 0 4px; }
.ba-summary-head h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
.ba-toggle-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 980px; background: #fff; border: 1px solid rgba(0,0,0,.1); font-size: 13px; font-weight: 600; color: #1d1d1f; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: background-color .2s ease; }
.ba-summary:hover .ba-toggle-pill { background: #f0f0f3; }
.ba-disclosure[open] .ba-toggle-pill { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.ba-lbl-close { display: none; }
.ba-disclosure[open] .ba-lbl-open { display: none; }
.ba-disclosure[open] .ba-lbl-close { display: inline; }
.ba-chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .28s ease; margin-top: -2px; }
.ba-disclosure[open] .ba-chevron { transform: rotate(-135deg); margin-top: 2px; }
.ba-body { margin-top: 22px; animation: ws-faq .35s ease; }
.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-card-wrapper {
    padding: 6px 0;
    width: 100%;
  }
  .gc-card-link {
    max-width: 420px;
    margin: 0 auto;
  }
  .gc-card-link:active .gc-credit-card {
    transform: scale(0.98);
  }
  .gc-credit-card {
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  }
  .gc-card-logo {
    height: 26px;
  }
  .gc-card-badge {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2.5px 8px;
  }
  .gc-card-middle {
    margin-top: 4px;
  }
  .gc-chip-row {
    margin-bottom: 6px;
  }
  .gc-emv-chip {
    width: 36px;
    height: 26px;
    border-radius: 5px;
  }
  .gc-nfc {
    width: 18px;
    height: 18px;
  }
  .gc-amount-display {
    font-size: 28px;
    line-height: 1.05;
  }
  .gc-card-bottom {
    align-items: flex-end;
    gap: 8px;
  }
  .gc-card-info {
    gap: 2px;
    min-width: 0;
    flex-shrink: 1;
  }
  .gc-holder-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gc-card-num {
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .gc-tap-pill {
    font-size: 10px;
    padding: 5px 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .gc-credit-card {
    padding: 13px 15px;
    border-radius: 14px;
  }
  .gc-card-logo {
    height: 22px;
  }
  .gc-card-badge {
    font-size: 9px;
    padding: 2px 7px;
  }
  .gc-emv-chip {
    width: 32px;
    height: 23px;
  }
  .gc-amount-display {
    font-size: 24px;
  }
  .gc-holder-name {
    font-size: 12px;
  }
  .gc-card-num {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .gc-tap-pill {
    font-size: 9px;
    padding: 4px 9px;
  }
}

/* ==========================================================================
   Sección Cupones y Promociones Activas (Registro / OTP / Tickets Apple Luxury)
   ========================================================================== */
.coupons-section .lead {
  max-width: 62ch;
}

.coupons-gate-card {
  margin-top: 28px;
  background: var(--white);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
}

.coupons-form {
  display: grid;
  gap: 20px;
}

.coupons-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 760px) {
  .coupons-form-grid {
    grid-template-columns: 1fr 1fr 1.25fr;
  }
}

.coupons-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.coupons-optin-wrap {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 15px;
}

.coupons-optin-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
}

.coupons-optin-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1d1d1f;
  cursor: pointer;
  flex-shrink: 0;
}

.coupons-optin-note {
  margin: 5px 0 0 28px;
  font-size: 12px;
  line-height: 1.45;
  color: #6e6e73;
}

.coupons-privacy-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

/* Paso 2: Validación OTP para clientes nuevos */
.coupons-otp-box {
  display: grid;
  gap: 20px;
}

.coupons-otp-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.coupons-otp-icon {
  font-size: 28px;
  line-height: 1;
  background: var(--bg-alt);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.coupons-otp-header h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.coupons-otp-header p {
  font-size: 14px;
  color: #424245;
  margin-bottom: 8px;
}

.coupons-otp-email-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

.coupons-otp-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.coupons-otp-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 6px;
  text-align: center;
  max-width: 220px;
}

.coupons-otp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.coupons-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0066CC;
  cursor: pointer;
  text-decoration: none;
}

.coupons-link-btn:hover {
  text-decoration: underline;
}

/* Paso 3: Tarjetas de Cupones Desbloqueados */
.coupons-unlocked-wrap {
  margin-top: 28px;
}

.coupons-welcome-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.coupons-welcome-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 20px;
}

.cp-ticket-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cp-ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.cp-ticket-top {
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  color: #ffffff;
  padding: 22px 24px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cp-discount-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cp-discount-val {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5d061;
  line-height: 1;
}

.cp-discount-off {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.cp-discount-type {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.cp-ticket-divider {
  position: relative;
  height: 1px;
  border-top: 2px dashed rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.cp-notch-l,
.cp-notch-r {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cp-notch-l {
  left: -11px;
}

.cp-notch-r {
  right: -11px;
}

.cp-ticket-body {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.cp-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FBFBFD;
  border: 1.5px dashed #D2D2D7;
  border-radius: 14px;
  padding: 10px 14px;
}

.cp-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ink);
}

.cp-copy-btn {
  background: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: 980px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cp-copy-btn:hover {
  background: #333336;
}

.cp-copy-btn.is-copied {
  background: #2e7d32;
}

.cp-scope-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-scope-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.cp-scope-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-scope-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
}

.cp-badge-gc {
  background: #FEF3C7;
  color: #92400E;
}

.cp-badge-all {
  background: #DBEAFE;
  color: #1E40AF;
}

.cp-badge-sess {
  background: #EDE9FE;
  color: #5B21B6;
}

.cp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cp-meta-pill {
  background: var(--bg-alt);
  padding: 2px 9px;
  border-radius: 980px;
  font-size: 12px;
}

.cp-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.cp-action-link {
  font-size: 13px;
  font-weight: 600;
  color: #0066CC;
  text-decoration: none;
}

.cp-action-link:hover {
  text-decoration: underline;
}

.coupons-empty-box {
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.coupons-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Studio Rewards Card Section & Interactive 5-Dot + $ Shine Animation
   ========================================================================== */
.rewards-section {
  position: relative;
  overflow: hidden;
}

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

.rw-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.rw-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 470px;
}

.rw-card-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
  perspective: 1200px;
}

.rw-card-btn:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 6px;
  border-radius: 22px;
}

.rw-card-frame {
  position: relative;
  aspect-ratio: 1.586 / 1;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, #FFFFFF 0%, #FAF5EB 48%, #EADBC3 100%) !important;
  box-shadow:
    0 26px 54px -14px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(188, 164, 126, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  text-align: left;
}

.rw-card-btn:hover .rw-card-frame {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    0 34px 66px -14px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(188, 164, 126, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.rw-card-btn.is-tapped .rw-card-frame {
  transform: scale(0.985);
}

/* Diseño limpio editorial permanente (inmutable en todas las temporadas del año) */
.rw-clean-card {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 4.8%, 24px) clamp(16px, 5.4%, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1D1B18 !important;
  user-select: none;
  -webkit-user-select: none;
}

.rw-clean-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rw-clean-logo {
  width: clamp(54px, 17.5%, 80px);
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 0.94;
}

.rw-clean-nfc {
  width: clamp(22px, 6.5%, 30px);
  height: auto;
  color: #2B2620 !important;
  opacity: 0.85;
  flex-shrink: 0;
}

.rw-clean-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #1D1B18 !important;
}

.rw-clean-title {
  font-size: clamp(20px, 5vw, 31px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #1D1B18 !important;
}

.rw-clean-sub {
  font-size: clamp(10px, 2.15vw, 13px);
  font-weight: 600;
  color: #3A332B !important;
  line-height: 1.28;
  margin-top: 1px;
}

.rw-clean-rule {
  display: block;
  width: clamp(64px, 22%, 96px);
  height: 2px;
  border-radius: 2px;
  background: #8C7658;
  opacity: 0.55;
  margin: clamp(4px, 1.2%, 8px) 0;
}

.rw-clean-phone {
  font-size: clamp(10.5px, 2.2vw, 13.5px);
  font-weight: 700;
  color: #1D1B18 !important;
  line-height: 1.25;
}

.rw-clean-addr {
  font-size: clamp(9.2px, 1.95vw, 12px);
  font-weight: 600;
  color: #3A332B !important;
  line-height: 1.25;
}

.rw-clean-valid {
  font-size: clamp(8.8px, 1.85vw, 11.2px);
  font-weight: 500;
  color: #5C5144 !important;
  line-height: 1.25;
  margin-top: 1px;
}

.rw-card-frame .rw-tap-badge {
  top: 36%;
  right: clamp(10px, 3.2%, 16px);
  bottom: auto;
  background: rgba(29, 27, 24, 0.84);
  color: #FFFFFF !important;
  border: 1px solid rgba(188, 164, 126, 0.45);
  box-shadow: 0 8px 20px rgba(29, 24, 18, 0.18);
}

@media (max-width: 520px) {
  .rw-card-frame .rw-tap-badge {
    top: 33%;
    right: 10px;
    padding: 4px 9px;
    font-size: 9.8px;
    gap: 5px;
  }
}

.rw-card-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.58) 48%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.rw-card-btn.is-sheening .rw-card-sheen {
  animation: rwSheenSweep 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rwSheenSweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

.rw-tap-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.rw-tap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 8px #ffd60a;
  animation: rwPulseDot 1.8s ease-in-out infinite;
}

@keyframes rwPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.65; }
}

/* Tracker Panel (5 bolitas + $ brillante) */
.rw-tracker-panel {
  width: 100%;
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 18px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.rw-dots-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 0;
}

.rw-dots-row::before {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 0;
}

.rw-dot-slot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.rw-dollar {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.24);
  transform: translateY(3px) scale(0.86);
  transition: color 0.28s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.35s ease;
  user-select: none;
}

.rw-dot {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.rw-dot-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd60a 0%, #ff9f0a 100%);
  transform: scale(0);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rw-dot-num {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.rw-sparkle {
  position: absolute;
  top: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.75) 0%, rgba(255, 159, 10, 0) 70%);
}

/* Estado iluminado de cada bolita + $ */
.rw-dot-slot.is-lit .rw-dot {
  border-style: solid;
  border-color: #ffd60a;
  box-shadow: 0 0 18px rgba(255, 214, 10, 0.55);
}

.rw-dot-slot.is-lit .rw-dot-fill {
  transform: scale(1);
}

.rw-dot-slot.is-lit .rw-dot-num {
  color: #1c1c1e;
}

.rw-dot-slot.is-lit .rw-dollar {
  color: #ffd60a;
  transform: translateY(-2px) scale(1.22);
  text-shadow: 0 0 12px rgba(255, 214, 10, 0.95), 0 0 24px rgba(255, 159, 10, 0.75);
}

.rw-dot-slot.is-just-lit .rw-dot {
  animation: rwDotStamp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rw-dot-slot.is-just-lit .rw-dollar {
  animation: rwDollarShine 0.75s ease-out;
}

.rw-dot-slot.is-just-lit .rw-sparkle {
  animation: rwSparkleBurst 0.65s ease-out forwards;
}

@keyframes rwDotStamp {
  0%   { transform: scale(0.8); }
  55%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes rwDollarShine {
  0%   { transform: translateY(4px) scale(0.85); filter: brightness(1); }
  45%  { transform: translateY(-6px) scale(1.42); filter: brightness(1.45); }
  100% { transform: translateY(-2px) scale(1.22); filter: brightness(1); }
}

@keyframes rwSparkleBurst {
  0%   { opacity: 0.95; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.1); }
}

.rw-status-text {
  margin: 14px 0 0;
  min-height: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: #f5f5f7;
  text-align: center;
  transition: opacity 0.18s ease;
}

.rw-status-text.is-complete {
  color: #ffd60a;
  font-weight: 600;
}

.rw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .rw-split .rw-visual-col {
    order: 2;
  }
}

@media (max-width: 600px) {
  .rw-dot {
    width: 36px;
    height: 36px;
  }
  .rw-dots-row::before {
    bottom: 17px;
  }
}




