/* Solo las ampliaciones autorizadas: formulario y visor nativo de Instagram.
   El bloque CSS del prototipo Apple se conserva literalmente en index.html. */
.lrf-card {
  position: relative; width: min(100%, 640px); margin: 64px auto 0;
  padding: clamp(24px, 4vw, 44px); border-radius: 30px;
  background: var(--surface); color: var(--ink); text-align: left;
  border: 1px solid var(--line); box-shadow: 0 32px 80px -32px rgba(0,0,0,.45);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.lrf-card h3 { font: 400 clamp(34px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; }
.lrf-intro { margin: 12px 0 26px; color: var(--mute); font-size: 16px; }
.lrf-field { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.lrf-field input, .lrf-field select {
  width: 100%; min-width: 0; min-height: 54px; padding: 13px 16px;
  border: 1px solid #CCC6BF; border-radius: 12px; background: #fff;
  color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.lrf-card :focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; }
.lrf-card [hidden] { display: none !important; }
.lrf-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 24px 0; font-size: 13px; color: var(--mute); }
.lrf-progress li { display: flex; align-items: center; gap: 9px; border-bottom: 2px solid var(--line); padding-bottom: 14px; }
.lrf-progress span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #E8E6E3; }
.lrf-progress [aria-current="step"] { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.lrf-progress [aria-current="step"] span { background: var(--brand); color: white; }
.lrf-phase { border: 0; padding: 0; min-width: 0; }
.lrf-phase legend { font-size: 15px; font-weight: 600; }
.lrf-back { display: block; margin: 20px auto 0; padding: 8px; color: var(--brand); font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.lrf-preview-note { font-size: 12px; line-height: 1.5; color: var(--mute); padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.lrf-status { font-size: 13px; color: var(--mute); margin-top: 16px; }
.lrf-consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.lrf-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cta); }
.lrf-consent a { color: var(--brand); text-underline-offset: 3px; }
.final .lrf-card .btn { width: 100%; margin-top: 24px; padding-inline: 16px; }
.lrf-under { text-align: center; margin-top: 14px; color: var(--mute); font-size: 13px; }
.lrf-success { padding: 24px 0; }
.lrf-success p { margin-top: 18px; color: var(--mute); }
.lrf-debug { width: min(100%, 640px); margin: 22px auto 0; text-align: left; font-size: 12px; color: #C7D2EE; }
.lrf-debug summary { cursor: pointer; }
.lrf-debug pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; font-size: 11px; }
.lrf-mock-fields { display: grid; gap: 10px; }
.lrf-mock-fields span { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--mute); font-size: 14px; }
.lrf-mock-cta { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.lrf-mock-cta:hover { border-color: var(--cta); }
.lrf-mock-cta:focus-visible, .lrf-inline-cta:focus-visible { outline: 3px solid var(--cta); outline-offset: 5px; }
.lrf-inline-cta { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lrf-inline-cta:hover { color: var(--cta); }
/* Visible optional callback choice, including small mobile screens. */
.lrf-preference { align-items: flex-start; gap: 12px; margin-top: 22px; padding: 18px 16px; border: 2px solid var(--cta); border-radius: 14px; background: #E8EFFF; color: var(--brand); cursor: pointer; touch-action: manipulation; }
.lrf-preference input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.lrf-preference > span { min-width: 0; }
.lrf-preference strong { display: block; font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--brand); }
.lrf-preference small { display: block; font-size: 13px; line-height: 1.4; font-weight: 500; margin-top: 6px; color: var(--mute); }
.lrf-preference:focus-within { outline: 3px solid var(--cta); outline-offset: 3px; }
.lrf-preference:has(input:checked) { background: #DCE7FF; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
#lr-callback-fields:not([hidden]) { margin-top: -2px; padding: 0 16px 16px; border: 2px solid var(--cta); border-top: 0; border-radius: 0 0 14px 14px; background: #F3F6FF; }
#lr-callback-fields .lrf-field { color: var(--brand); font-size: 15px; font-weight: 700; }
#lr-callback-fields .lrf-under { font-size: 12px; line-height: 1.5; }
@media (max-width: 359px) { .lrf-preference { padding: 16px 12px; gap: 10px; } .lrf-preference strong { font-size: 17px; } #lr-callback-fields:not([hidden]) { padding-inline: 12px; } }
.lrf-slot-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 479px) { .lrf-slot-fields { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 599px) {
  .nav__in { gap: 8px; }
  .nav__in .brand { font-size: 14px; gap: 6px; }
  .nav__in .brand small { display: none; }
  .nav__cta { display: inline-flex; max-width: 146px; padding: 8px 10px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
}
@media (max-width: 349px) {
  .nav__in .brand { font-size: 13px; }
  .nav__cta { max-width: 110px; font-size: 11px; }
  .nav__in .burger { margin-left: 0; }
  /* La cifra completa debe caber tras terminar el contador animado. */
  .bn__value { font-size: 15vw; }
}
.lr-ig-viewer { margin: auto; padding: 0; width: min(390px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px #0008; overflow: hidden; }
.lr-ig-viewer::backdrop { background: rgba(5,8,15,.8); backdrop-filter: blur(12px); }
.lr-ig-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 18px; background: var(--deep); color: #fff; }
.lr-ig-head a { color: #fff; font-size: 12px; text-underline-offset: 3px; }
.lr-ig-close { width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #ffffff1a; font-size: 24px; }
.lr-ig-frame { display: block; width: 100%; height: min(760px, calc(100dvh - 90px)); border: 0; background: #fff; }
/* Doce testimonios: los controles originales se aplastaban al ancho móvil.
   Conservamos sus formas/tamaños y damos una fila propia a los doce puntos. */
@media (max-width: 599px) {
  .cf:has([data-instagram]) .cf__ui { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 14px; max-width: calc(100% - 32px); margin-inline: auto; }
  .cf:has([data-instagram]) .cf__dots { grid-column: 1 / -1; grid-row: 1; min-width: 0; max-width: 100%; justify-self: center; overflow-x: auto; scrollbar-width: none; }
  .cf:has([data-instagram]) .cf__dot { flex-shrink: 0; }
  .cf:has([data-instagram]) .cf__arrow[data-dir="-1"] { grid-column: 1; grid-row: 2; }
  .cf:has([data-instagram]) .cf__arrow[data-dir="1"] { grid-column: 3; grid-row: 2; }
  .cf:has([data-instagram]) .cf__pause { grid-column: 2; grid-row: 2; justify-self: center; }
}

/* EPI explorer: native horizontal scrolling, large controls, no touch trapping. */
.epi-panel { position: relative; background: var(--bg); }
.epi-mobile-intro, .epi-controls { display: none; }
.epi-open-all { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: 8px auto 0; padding: 12px 22px; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); color: var(--ink); font: 500 15px var(--sans); }
.epi-arrow { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; touch-action: manipulation; transition: background .18s, opacity .18s, transform .18s; }
.epi-arrow svg { width: 22px; height: 22px; }
.epi-next svg, .epi-view-next svg { transform: rotate(180deg); }
.epi-arrow:disabled { opacity: .3; cursor: default; }
.epi-arrow:not(:disabled):active { transform: scale(.95); }
.epi-arrow:focus-visible, .epi-open-all:focus-visible, .epi-original:focus-visible { outline: 3px solid var(--cta); outline-offset: 4px; }
.epi-count, .epi-view-count { min-width: 76px; text-align: center; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.epi-view-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 14px; color: #fff; }
.epi-original { display: block; text-align: center; color: #fff; font-size: 13px; margin-top: 12px; padding: 8px; text-underline-offset: 4px; }
.lb { max-height: calc(100svh - 24px); }
.lb img { max-height: calc(100svh - 304px); max-width: min(94vw, 760px); object-fit: contain; }
.epi-select-label { display: block; max-width: min(86vw, 420px); margin: 10px auto 0; color: #e2e8f0; font: 400 12px var(--sans); }
.epi-select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 32px 8px 12px; border: 1px solid #586474; border-radius: 10px; background: #1d2634; color: #fff; font: 400 16px var(--sans); }
.epi-select:focus-visible { outline: 3px solid #88b8ff; outline-offset: 3px; }
.lb__cap { max-width: min(86vw, 600px); margin-inline: auto; }
@media (max-width: 899px) {
  :root { --sec-y: clamp(64px, 10vw, 88px); }
  .epi-panel { padding: 12px 0 16px; }
  .epi-mobile-intro { display: block; padding: 0 var(--pad); margin-bottom: 10px; }
  .epi-mobile-intro p { font-size: 16px; font-weight: 600; color: var(--ink); }
  .epi-mobile-intro span { display: block; margin-top: 4px; font-size: 12px; color: var(--mute); }
  .epi-panel .docs__rows { display: block; }
  .epi-panel .docs__row[hidden] { display: none; }
  .epi-panel .docs__row { overflow-x: auto; overflow-y: hidden; mask-image: none; -webkit-mask-image: none; padding: 10px 24px 22px; scroll-padding-inline: 24px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .epi-panel .docs__track { display: flex; flex-wrap: nowrap; width: max-content; margin: 0; padding: 0; gap: 0; max-width: none; will-change: auto; }
  .epi-panel .doc { width: min(76vw, 300px); margin-right: 16px; scroll-snap-align: start; box-shadow: 0 20px 28px -22px rgba(15,23,42,.42); }
  .epi-panel .doc:last-child { margin-right: max(0px, calc(100vw - min(76vw, 300px) - 48px)); }
  .epi-panel .doc__img { aspect-ratio: 16 / 10; }
  .epi-panel .doc__body { min-height: 158px; }
  .epi-panel.epi-is-pinned .docs__row { scroll-snap-type: none; }
  .epi-controls { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 0 24px; }
  .epi-panel .epi-open-all { display: none; }
  body:has(.epi-is-active) .mcta { transform: translateY(150%); pointer-events: none; }
  .lb__close { top: max(12px, env(safe-area-inset-top)); right: 12px; background: #252832; }
  .verify { margin-top: 64px; }
  .team__grid { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .epi-arrow { transition: none; }
}

.lrf-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.admin-bar .nav{top:32px}@media(max-width:782px){.admin-bar .nav{top:46px}}
