/* Ajustes de conversión: reutilizan la paleta, la tipografía y los recursos originales. */
:root {
  --focus-ring: #007f82;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 6px 18px rgba(7, 52, 105, .08), inset 0 1px 0 rgba(255, 255, 255, .72);
  --shadow-md: 0 10px 28px rgba(7, 52, 105, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
  --shadow-lg: 0 18px 45px rgba(7, 52, 105, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
  --transition-premium: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
  --glass-light: rgba(255, 255, 255, .78);
}
html, body { overflow-x: hidden; }

.skip {
  position: fixed;
  top: 0;
  right: 16px;
  left: auto;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
  transition: opacity .15s ease, transform .15s ease;
}
.skip:focus,
.skip:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px #082c7040;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.hero h1 em { color: var(--teal); font-style: normal; }
.hero h1 b { color: var(--navy); font-weight: inherit; }
.small-mobile-break { display: none; }
.hero h1 span:last-child { color: var(--navy); }
.hero .hero-actions .button:first-child {
  font-weight: 800;
  background: linear-gradient(180deg, #0870cf 0%, #075bb8 52%, #064fa4 100%);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: var(--shadow-md);
  transition: var(--transition-premium);
}
.hero .hero-actions .button:first-child:hover { box-shadow: var(--shadow-lg); }
.hero .hero-actions .button.outline {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(14, 86, 165, .28);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-premium);
}
.hero .hero-actions .button.outline:hover { background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-md); }
.hero .hero-actions .button > span[aria-hidden],
.service-cta > span[aria-hidden],
.box-cta > span[aria-hidden] { transition: transform 180ms ease; }
.hero .hero-actions .button:hover > span[aria-hidden],
.service-cta:hover > span[aria-hidden] { transform: translateX(3px); }
.hero .hero-benefits {
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow: var(--shadow-sm);
}

/* Capas ligeras únicamente donde el contenido descansa sobre fotografía. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero .hero-actions .button.outline,
  .hero .hero-benefits,
  .services .service-top > div:first-child,
  .services .service-bottom {
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero .hero-actions .button.outline,
  .hero .hero-benefits,
  .services .service-top > div:first-child,
  .services .service-bottom { background: rgba(255, 255, 255, .96); }
}

.service { transition: var(--transition-premium); }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.services .service {
  min-height: calc(266 * var(--service-unit));
  border-color: rgba(8, 68, 135, .10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.services .service::after { content: ''; display: block; position: absolute; z-index: 1; top: 0; right: 8%; left: 8%; height: 1px; pointer-events: none; border: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); }
.services .service-top > div:first-child {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .66);
  box-shadow: var(--shadow-sm);
}
.services .service-bottom {
  min-height: calc(139 * var(--service-unit));
  grid-template-rows: 1fr auto;
  background: rgba(245, 252, 255, .68);
  border: 1px solid rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  backdrop-filter: blur(6px) saturate(110%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80), 0 6px 18px rgba(5, 48, 105, .07);
}
.services .service-bottom .rate,
.services .service-bottom .check-list { min-height: calc(98 * var(--service-unit)); }
.services .rate { background: transparent; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .services .service-bottom { background: rgba(248, 252, 255, .92); }
}
.service-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  background: linear-gradient(180deg, #0864c8 0%, #0753ad 100%);
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.1px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-premium);
}
.service-cta:hover { background: linear-gradient(180deg, #0a68cc 0%, #064b9f 100%); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.box-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(18, 74, 135, .08);
  box-shadow: var(--shadow-md);
  transition: var(--transition-premium);
}
.box-card:hover { transform: translateY(-3px); border-color: rgba(10, 89, 169, .20); box-shadow: var(--shadow-lg); }
.box-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  margin-top: 13px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 92, 177, .20);
  border-radius: var(--radius-sm);
  color: var(--blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(241, 249, 255, .92));
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition-premium);
}
.box-cta:hover { color: #063d93; background: linear-gradient(180deg, #f4faff, #e8f4fc); border-color: rgba(8, 92, 177, .32); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.box-cta:active, .service-cta:active, .button:active { transform: translateY(1px); }

.process .steps { gap: clamp(16px, 1.7vw, 25px); }
.step-icon { border: 1px solid rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.step:not(:last-child):after { color: #78a4c4; }
.trust-item { align-items: center; }
.trust-item svg { flex: 0 0 44px; }
.trust-item + .trust-item { border-color: rgba(37, 118, 152, .18); }

.faq details { overflow: hidden; border-color: rgba(18, 74, 135, .10); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: var(--transition-premium); }
.faq details:hover { border-color: rgba(10, 89, 169, .22); box-shadow: var(--shadow-md); }
.faq details[open] { border-color: rgba(10, 89, 169, .32); box-shadow: var(--shadow-md); }
.faq summary { min-height: 30px; padding: 3px 0; }
.faq summary::after { transition: transform 180ms ease; }
.faq details p { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.faq details[open] p { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .small-mobile-break { display: block; }
  body { padding-bottom: 0; }
  .hero::before { background: linear-gradient(90deg, #ffffffeb 0%, #ffffffd9 58%, #ffffff64 100%); }
  .hero .hero-inner { min-height: 690px; padding: 38px 20px 285px; }
  .hero .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(38px, 8.3vw, 56px); line-height: 1.03; }
  .hero h2 { max-width: 480px; font-size: clamp(18px, 3.6vw, 23px); }
  .hero .hero-description { font-size: 16px; max-width: 510px; }
  .hero .hero-actions { width: min(100%, 440px); }
  .hero .hero-actions .button:first-child { flex: 1 1 240px; }
  .hero .hero-actions .button.outline { flex: 1 1 150px; }
  .hero .hero-benefits { width: min(100%, 530px); }
  .services .service { min-height: 378px; }
  .services .service-bottom { min-height: 157px; }
  .services .service-bottom .rate, .services .service-bottom .check-list { min-height: 112px; }
  .service-cta { min-height: 44px; font-size: 14px; }
  .box-cta { min-height: 44px; }
  .trust-grid { align-items: start; }
  .trust-item { align-items: flex-start; }
}

@media (min-width: 768px) and (max-width: 800px) {
  .header .header-inner {
    min-height: 96px;
    height: 96px;
    padding: 4px 0;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .header .brand-logo { grid-column: 1; grid-row: 1; }
  .header .nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: clamp(12px, 2vw, 18px);
    font-size: 13px;
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  :root {
    --shadow-sm: 0 3px 10px rgba(7, 52, 105, .05), inset 0 1px 0 rgba(255, 255, 255, .72);
    --shadow-md: 0 6px 16px rgba(7, 52, 105, .06), inset 0 1px 0 rgba(255, 255, 255, .82);
    --shadow-lg: 0 10px 25px rgba(5, 48, 105, .10), inset 0 1px 0 rgba(255, 255, 255, .78);
  }
  .skip { right: auto; left: 50%; transform: translate(-50%, -160%); }
  .skip:focus, .skip:focus-visible { transform: translate(-50%, 0); }
  .header .header-inner { min-height: 82px; }
  .hero { background: url('assets/havana-station/hero/hero-mobile-v1.webp') center right / cover no-repeat; }
  .hero::before { background: linear-gradient(180deg, #fffffff2 0%, #ffffffdf 48%, #ffffff18 83%, transparent 100%); }
  .hero .hero-inner { min-height: 690px; padding: 30px 16px 280px; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 38px); letter-spacing: -1.25px; }
  .hero h1 span { white-space: normal; }
  .hero h2 { margin-top: 16px; font-size: 19px; }
  .hero .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 23px; }
  .hero .hero-actions .button,
  .hero .hero-actions .button:first-child,
  .hero .hero-actions .button.outline { width: 100%; min-height: 48px; }
  .hero .hero-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; padding: 9px 4px; background: #ffffffc7; border-radius: 10px; }
  .hero .hero-benefit,
  .hero .hero-benefit + .hero-benefit,
  .hero .hero-benefit:nth-child(3) { flex-direction: column; justify-content: flex-start; gap: 4px; padding-left: 4px; text-align: center; font-size: 12px; line-height: 1.18; border-left: 1px solid #b8d5e1; }
  .hero .hero-benefit:first-child { border-left: 0; }
  .hero .hero-benefit > span:last-child { font-size: 0; line-height: 1; white-space: nowrap; }
  .hero .hero-benefit > span:last-child::after { content: attr(data-mobile-label); font-size: 13px; line-height: 1.2; }
  .hero .icon-circle { width: 34px; height: 34px; }
  .hero .icon-circle svg { width: 20px; height: 20px; }
  .hero .hero-benefits { box-shadow: var(--shadow-sm); }
  .services .service { box-shadow: var(--shadow-lg); }
  .services .service-top > div:first-child { background: rgba(255, 255, 255, .90); -webkit-backdrop-filter: blur(6px) saturate(110%); backdrop-filter: blur(6px) saturate(110%); }
  .services .service-bottom { background: rgba(245, 252, 255, .74); -webkit-backdrop-filter: blur(5px) saturate(110%); backdrop-filter: blur(5px) saturate(110%); }
  .box-card { box-shadow: var(--shadow-md); }
  .services .service { min-height: 396px; }
  .services .service-bottom { grid-template-columns: 1fr; min-height: 224px; }
  .services .service-bottom .rate { min-height: 73px; }
  .services .service-bottom .check-list { min-height: 98px; }
  .service-cta { min-height: 46px; padding-block: 10px; font-size: 15px; }
  .box-card { padding-bottom: 13px; }
  .box-cta { font-size: 12px; margin-top: 10px; }
  .steps { margin-top: 22px; }
  .step { padding-bottom: 31px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
  .trust-item { display: grid; grid-template-rows: 32px auto 1fr; align-content: start; align-items: start; gap: 5px; min-width: 0; }
  .trust-item + .trust-item { padding-left: 0; border-left: 0; }
  .trust-item svg { width: 32px; height: 32px; margin: 0; }
  .trust-item .benefit-cuba-map { width: 40px; height: 32px; margin: 0; color: #007b97; }
  .trust-item h3 { font-size: 14px; }
  .trust-item p { font-size: 13px; }
  .faq details { padding: 15px; }
  .faq summary { font-size: 15px; }
}

@media (max-width: 350px) {
  .hero .hero-inner { min-height: 670px; padding-bottom: 255px; }
  .hero h1 { font-size: 28px; }
  .hero h2 { font-size: 18px; }
  .hero .hero-benefit { font-size: 12px; }
  .box-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .service, .box-card, .faq details, .faq details p, .button, .service-cta, .box-cta, .hero .hero-actions .button > span[aria-hidden], .service-cta > span[aria-hidden] { transition: none; }
}

/* En móvil, la franja de beneficios enlaza visualmente con la fotografía sin altura artificial. */
@media (max-width: 767px) {
  .hero .hero-inner {
    min-height: 0;
    padding-bottom: 170px;
  }

  .hero .hero-benefits {
    position: relative;
    z-index: 4;
    margin-bottom: -20px;
    transform: translateY(20px);
    box-shadow: var(--shadow-md);
  }

  .hero .hero-benefit > span:last-child::after { font-size: 14px; }
  .hero .icon-circle { width: 36px; height: 36px; }
  .hero .icon-circle svg { width: 22px; height: 22px; }

  .services { padding-top: 12px; }
}

@media (max-width: 480px) {
  .box-card:nth-child(4) .box-dimensions {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
  }

  .step { padding-bottom: 25px; }
}

@media (max-width: 350px) {
  .hero .hero-inner { padding-bottom: 150px; }
}
