/* Landing Panama Virtual — hub público */
.pv-land {
  --pv-cream: #eef5fa;
  --pv-cream-deep: #d5e8f5;
  --pv-red: #e30613;
  --pv-red-bright: #ff0e14;
  --pv-navy: #072357;
  --pv-sky: #08a8f8;
  --pv-cyan: #98d8f8;
  --pv-ink: #0a1628;
  --pv-muted: #5a6b7d;
  --pv-white: #ffffff;
  --pv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--pv-ink);
  background: var(--pv-cream);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

.pv-land *,
.pv-land *::before,
.pv-land *::after { box-sizing: border-box; }

.pv-land a { color: inherit; text-decoration: none; }
.pv-land img { max-width: 100%; display: block; }

.pv-land-wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ─── Top bar ─── */
.pv-land-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
}

.pv-land-top-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

.pv-land-top-cta {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #072357 !important;
  background: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: background .25s var(--pv-ease), transform .25s var(--pv-ease), box-shadow .25s;
}
.pv-land-top-cta:hover {
  background: #f0f7fc;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.pv-land-top-cta:focus-visible {
  outline: 3px solid #08a8f8;
  outline-offset: 3px;
}

/* ─── Hero (full-bleed) ─── */
.pv-land-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
}

.pv-land-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.pv-land-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: pvLandKen 22s var(--pv-ease) infinite alternate;
}
.pv-land-hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,35,87,.55) 0%, rgba(7,35,87,.35) 40%, rgba(10,22,40,.88) 100%),
    linear-gradient(90deg, rgba(7,35,87,.55) 0%, transparent 55%);
}
.pv-land-hero-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  right: -10%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,168,248,.35) 0%, transparent 70%);
  z-index: -1;
  animation: pvLandPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pvLandKen {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}
@keyframes pvLandPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}

.pv-land-hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 72px;
}

.pv-land-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: .95;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 14ch;
  text-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.pv-land-brand em {
  font-style: italic;
  color: var(--pv-cyan);
}

.pv-land-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
  max-width: 36ch;
  margin: 0 0 28px;
  color: rgba(255,255,255,.9);
}

.pv-land-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pv-land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--pv-ease), box-shadow .25s var(--pv-ease), background .25s;
}
.pv-land-btn:focus-visible {
  outline: 3px solid var(--pv-sky);
  outline-offset: 3px;
}
.pv-land-btn-primary {
  background: linear-gradient(135deg, var(--pv-red-bright), var(--pv-red));
  color: #fff;
  box-shadow: 0 10px 28px rgba(227,6,19,.35);
}
.pv-land-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(227,6,19,.45);
}
.pv-land-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.pv-land-btn-ghost:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.pv-land-btn-navy {
  background: var(--pv-navy);
  color: #fff;
}
.pv-land-btn-navy:hover { background: #0a4a8f; transform: translateY(-1px); }

/* ─── Sections ─── */
.pv-land-section {
  padding: clamp(64px, 10vw, 104px) 0;
}
.pv-land-section-alt {
  background: var(--pv-white);
}
.pv-land-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pv-sky);
  margin: 0 0 10px;
}
.pv-land-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  color: var(--pv-navy);
  margin: 0 0 14px;
  max-width: 18ch;
}
.pv-land-p {
  font-size: 1.05rem;
  color: var(--pv-muted);
  max-width: 52ch;
  margin: 0;
}

.pv-land-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.pv-land-split-rev { direction: rtl; }
.pv-land-split-rev > * { direction: ltr; }

.pv-land-visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 60px rgba(7,35,87,.18);
}
.pv-land-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-land-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(7,35,87,.35));
  pointer-events: none;
}

/* Steps — sequence matters */
.pv-land-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  counter-reset: step;
}
.pv-land-step {
  position: relative;
  padding-top: 8px;
}
.pv-land-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--pv-red);
  line-height: 1;
  margin-bottom: 12px;
}
.pv-land-step h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.45rem;
  color: var(--pv-navy);
  margin: 0 0 8px;
}
.pv-land-step p {
  margin: 0;
  color: var(--pv-muted);
  font-size: .98rem;
}

/* ─── Acceso CTA band ─── */
.pv-land-acceso {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(8,168,248,.18), transparent 55%),
    linear-gradient(180deg, #072357 0%, #0a1628 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 110px) 0;
}
.pv-land-acceso .pv-land-eyebrow { color: var(--pv-cyan); }
.pv-land-acceso .pv-land-h2 { color: #fff; max-width: 16ch; }
.pv-land-acceso .pv-land-p { color: rgba(255,255,255,.75); }
.pv-land-acceso-cta { max-width: 560px; }

/* ─── Modal acceso ─── */
.pv-land-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.pv-land-modal[hidden] { display: none !important; }
.pv-land-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 35, 87, 0.62);
  backdrop-filter: blur(6px);
}
.pv-land-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  color: var(--pv-ink);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  animation: pvLandIn .35s var(--pv-ease);
  max-height: min(92vh, 720px);
  overflow-y: auto;
}
.pv-land-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--pv-muted);
  cursor: pointer;
  border-radius: 50%;
}
.pv-land-modal-close:hover { color: var(--pv-navy); background: var(--pv-cream); }

.pv-land-step { display: none; }
.pv-land-step.is-active { display: block; animation: pvLandIn .35s var(--pv-ease); }

.pv-land-modal-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pv-sky);
  margin: 0 0 8px;
}
.pv-land-modal-card h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--pv-navy);
  margin: 0 0 6px;
  line-height: 1.15;
}
.pv-land-modal-sub {
  font-size: 14px;
  color: var(--pv-red);
  font-weight: 500;
  margin: 0 0 24px;
}
.pv-land-pin-hint {
  font-size: 13px;
  color: var(--pv-muted);
  margin: 0 0 4px;
  text-align: center;
}
.pv-land-modal-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
  color: var(--pv-muted);
}

.pv-land-field {
  width: 100%;
  padding: 14px 16px;
  font: 500 16px/1.3 'Outfit', sans-serif;
  background: var(--pv-cream);
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--pv-ink);
  outline: none;
  margin-bottom: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pv-land-field:focus {
  border-color: var(--pv-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227,6,19,.12);
}
.pv-land-pin {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .28em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pv-land-pin::placeholder {
  letter-spacing: normal;
  font-size: 15px;
  font-weight: 400;
}

.pv-land-hub-err {
  display: none;
  background: rgba(227,6,19,.08);
  color: var(--pv-red);
  border: 1px solid rgba(227,6,19,.2);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.pv-land-hub-err.is-on { display: block; }

.pv-land-hub-spin {
  display: none;
  width: 22px; height: 22px;
  border: 3px solid rgba(227,6,19,.2);
  border-top-color: var(--pv-red);
  border-radius: 50%;
  animation: pvLandSpin .6s linear infinite;
  margin: 0 auto 12px;
}
.pv-land-hub-spin.is-on { display: block; }
@keyframes pvLandSpin { to { transform: rotate(360deg); } }
@keyframes pvLandIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.pv-land-hub-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  font-size: 13px;
  color: var(--pv-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: center;
}
.pv-land-hub-link:hover { color: var(--pv-red); }

body.pv-land-modal-open { overflow: hidden; }

/* Footer */
.pv-land-foot {
  background: #050d18;
  color: rgba(255,255,255,.65);
  padding: 36px 0 28px;
  font-size: 13px;
}
.pv-land-foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.pv-land-foot a { color: var(--pv-cyan); }
.pv-land-foot a:hover { color: #fff; }
.pv-land-foot-admin {
  opacity: .45;
  font-size: 12px;
}
.pv-land-foot-admin:hover { opacity: 1; }

/* Reveal */
.pv-land-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--pv-ease), transform .7s var(--pv-ease);
}
.pv-land-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .pv-land-split,
  .pv-land-split-rev,
  .pv-land-steps {
    grid-template-columns: 1fr;
  }
  .pv-land-split-rev { direction: ltr; }
  .pv-land-hero-inner { padding-bottom: 56px; }
  .pv-land-visual { max-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-land-hero-media img,
  .pv-land-hero-glow,
  .pv-land-reveal {
    animation: none !important;
    transition: none !important;
  }
  .pv-land-reveal { opacity: 1; transform: none; }
}
