/* ========================================================================== 
   Sistema visual comun

   Esta hoja se carga despues de los estilos particulares de cada pais. No
   elimina su contenido ni sus ilustraciones: iguala las piezas que deben
   sentirse como una misma web (mapas, iconos, formularios y CTA finales).
   ========================================================================== */

:root {
  --eb-brand: #c8102e;
  --eb-brand-dark: #870b20;
  --eb-ink: #171a20;
  --eb-muted: #5d6673;
  --eb-line: #dfe3e8;
  --eb-soft: #fff4f5;
  --eb-radius: 14px;
  --eb-control-h: 48px;
  --eb-focus: 0 0 0 4px rgba(200, 16, 46, .16);
}

/* BASE VISUAL ------------------------------------------------------------- */
.eb-main {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.eb-main img {
  max-width: 100%;
}

.eb-main :where([class*="-photo"], [class*="-shot"], [class*="-image"], [class*="-img"]) {
  overflow: hidden;
}

.eb-main :where([class*="-photo"], [class*="-shot"]) > img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .3s ease;
}

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .eb-main :where([class*="-photo"], [class*="-shot"]):hover > img {
    transform: scale(1.025);
  }
}

/* MAPAS ------------------------------------------------------------------- */
.eb-destino svg.eb-map {
  width: 100%;
  height: auto;
  max-height: 480px;
  margin-inline: auto;
  object-fit: contain;
  /* La geometría Natural Earth puede extenderse fuera del viewBox. Mantener
     visible el overflow hacía que continentes enteros taparan otras secciones. */
  overflow: hidden;
  filter: drop-shadow(0 12px 22px rgba(7, 14, 25, .12));
}

/* Mapas decorativos que son hijos directos de una sección. El generador de
   mapas conserva el SVG, pero estas cinco ubicaciones necesitan una caja
   absoluta para no ocupar el alto del contenido ni desbordarse. */
.eb-destino :where(.rt-sec, .tc-sec, .fc-sec, .wy-why, .ct-cta) > svg.eb-map {
  position: absolute;
  z-index: 0;
  display: block;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: hidden;
  object-fit: contain;
  pointer-events: none;
}

.eb-destino .rt-sec > svg.eb-map {
  top: 20px;
  right: 2%;
  width: min(300px, 28vw);
  opacity: .12;
}

.eb-destino .tc-sec > svg.eb-map {
  right: -40px;
  bottom: -30px;
  width: min(420px, 36vw);
  opacity: .1;
}

.eb-destino .fc-sec > svg.eb-map {
  top: 50%;
  left: 3%;
  width: min(330px, 24vw);
  transform: translateY(-50%);
  opacity: .16;
}

.eb-destino .wy-why > svg.eb-map {
  top: 56px;
  right: -16px;
  width: min(190px, 20vw);
  opacity: .12;
}

.eb-destino .ct-cta > svg.eb-map {
  top: 40px;
  left: 2%;
  width: min(180px, 18vw);
  opacity: .14;
}

@media (max-width: 1100px) {
  .eb-destino :where(.rt-sec, .tc-sec, .fc-sec, .wy-why, .ct-cta) > svg.eb-map {
    display: none;
  }
}

.eb-destino :where(.eb-mapa-fig, [class*="map-card"], [class*="mapa-card"]) {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--eb-radius);
  box-shadow: 0 18px 45px rgba(7, 14, 25, .12);
}

.eb-destino .eb-map :where(.eb-map-dot--origin, .eb-map-dot--dest) {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .eb-destino .eb-map :where(.eb-map-dot--origin, .eb-map-dot--dest) {
    animation: eb-map-pulse 2.2s ease-in-out infinite;
  }
  @keyframes eb-map-pulse {
    50% { transform: scale(1.28); }
  }
}

/* ICONOS ------------------------------------------------------------------ */
.eb-main :where(a, button, label, [class*="icon"], [class$="-ic"], [class$="__icon"]) > i[class*="fa-"] {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  line-height: 1;
  vertical-align: -.08em;
}

.eb-main :where([class*="icon"], [class$="-ic"], [class$="__icon"], .ic) > i[class*="fa-"] {
  position: relative;
  z-index: 1;
  max-width: 1em;
  max-height: 1em;
}

.eb-main :where([class*="icon"], [class$="-ic"], [class$="__icon"], .ic) {
  isolation: isolate;
}

.eb-main :where(a, button) > i[class*="fa-"] {
  min-width: 1.15em;
}

/* FORMULARIOS ------------------------------------------------------------- */
.eb-main :where(form[data-form], form[data-eb-skip]) {
  --eb-form-accent: var(--eb-brand);
  color: var(--eb-ink);
  font-family: inherit;
}

.eb-main :where(form[data-form], form[data-eb-skip]) *,
.eb-main :where(form[data-form], form[data-eb-skip]) *::before,
.eb-main :where(form[data-form], form[data-eb-skip]) *::after {
  box-sizing: border-box;
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(label) {
  color: var(--eb-ink);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.35;
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%;
  min-height: var(--eb-control-h);
  border-width: 1px;
  border-style: solid;
  border-color: #e8ebef;
  border-radius: 10px;
  color: var(--eb-ink);
  background-color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
}

/* El borde visible pertenece al contenedor del rastreo, no al input interno. */
.eb-main .ax-trk-inwrap > input {
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

.eb-main .ax-trk-inwrap > input:focus-visible {
  outline: 0;
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(input, select, textarea)::placeholder {
  color: #7b8490;
  opacity: 1;
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(input, select, textarea):focus-visible {
  border-color: var(--eb-form-accent);
  outline: 0;
  box-shadow: var(--eb-focus);
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(button[type="submit"], input[type="submit"]) {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--eb-brand), var(--eb-brand-dark));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(200, 16, 46, .22);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(button[type="submit"], input[type="submit"]):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(200, 16, 46, .28);
}

.eb-main :where(form[data-form], form[data-eb-skip]) :where(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: .6;
}

.eb-form-message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.eb-form-message.is-success { color: #116632; background: #eaf8ef; }
.eb-form-message.is-error { color: #991b1b; background: #fff0f0; }

/* CTA FINALES ------------------------------------------------------------- */
.eb-destino :is(
  .ax-cta-sec, .ax-cta2, .ax-cta3, .ax-cta4, .ax-ctaas, .ax-ctait,
  .ax-ctapv, .ax-bo-final, .ax-ca-final, .ax-cl-final-cta, .ax-cn-final,
  .ax-jp-final, .bg-cta, .ct-cta, .cuba-final, .final-cta
) {
  --eb-cta-fg: #fff;
  color: var(--eb-cta-fg);
}

.eb-destino :is(
  .ax-cta2, .ax-cta3, .ax-cta4, .ax-ctaas, .ax-bo-final, .ax-ca-final,
  .ax-cl-final-cta, .ax-cn-final, .ax-jp-final, .bg-cta, .ct-cta,
  .cuba-final, .final-cta
) {
  background-color: var(--eb-brand-dark);
  background-image: linear-gradient(135deg, var(--eb-brand) 0%, var(--eb-brand-dark) 100%);
}

.eb-destino :is(
  .ax-cta-sec, .ax-cta2, .ax-cta3, .ax-cta4, .ax-ctaas, .ax-ctait,
  .ax-ctapv, .ax-bo-final, .ax-ca-final, .ax-cl-final-cta, .ax-cn-final,
  .ax-jp-final, .bg-cta, .ct-cta, .cuba-final, .final-cta
) :is(h2, h3) {
  max-width: 22ch;
  color: inherit;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 48px);
  font-style: normal;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-transform: none;
}

.eb-destino :is(
  .ax-cta-sec, .ax-cta2, .ax-cta3, .ax-cta4, .ax-ctaas, .ax-ctait,
  .ax-ctapv, .ax-bo-final, .ax-ca-final, .ax-cl-final-cta, .ax-cn-final,
  .ax-jp-final, .bg-cta, .ct-cta, .cuba-final, .final-cta
) :is(a, button) {
  min-height: 50px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.eb-main :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 176, 186, .9);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .eb-destino svg.eb-map { max-height: 340px; }

  .eb-destino :is(
    .ax-cta-sec, .ax-cta2, .ax-cta3, .ax-cta4, .ax-ctaas, .ax-ctait,
    .ax-ctapv, .ax-bo-final, .ax-ca-final, .ax-cl-final-cta, .ax-cn-final,
    .ax-jp-final, .bg-cta, .ct-cta, .cuba-final, .final-cta
  ) :is(a, button) {
    width: 100%;
    justify-content: center;
  }
}
/* ACCIONES DEL HERO --------------------------------------------------------
   El hero conserva sus dos columnas originales. Solo las acciones se mantienen
   juntas en una fila en escritorio; en movil vuelven a apilarse. */
@media (min-width: 768px) {
  .eb-destino .eb-main > section:first-child :is(
    .ax-ths-acts, .br-actions, .mx-actions, .pg-actions, .uy-acts,
    .ush-actions, .ax-jp-actions, .ax-bo-actions, .ax-ca-actions,
    .ax-cl-hero-actions, .cuba-hero__actions
  ) {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .eb-destino .eb-main > section:first-child :is(
    .ax-ths-acts, .br-actions, .mx-actions, .pg-actions, .uy-acts,
    .ush-actions, .ax-jp-actions, .ax-bo-actions, .ax-ca-actions,
    .ax-cl-hero-actions, .cuba-hero__actions
  ) > :is(a, button) {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 64px !important;
    height: auto !important;
    justify-content: center;
    padding: 12px 8px !important;
    font-size: clamp(10.5px, .78vw, 13.5px) !important;
    line-height: 1.2 !important;
    text-align: center;
    white-space: normal;
  }

  .eb-destino .eb-main > section:first-child :is(
    .ax-ths-acts, .br-actions, .mx-actions, .pg-actions, .uy-acts,
    .ush-actions, .ax-jp-actions, .ax-bo-actions, .ax-ca-actions,
    .ax-cl-hero-actions, .cuba-hero__actions
  ) > :is(a, button):first-child { flex-grow: 1.35; }

  .eb-destino .eb-main > section:first-child :is(
    .ax-ths-acts, .br-actions, .mx-actions, .pg-actions, .uy-acts,
    .ush-actions, .ax-jp-actions, .ax-bo-actions, .ax-ca-actions,
    .ax-cl-hero-actions, .cuba-hero__actions
  ) > :is(a, button):nth-child(2) { flex-grow: .9; }

  .eb-destino .eb-main > section:first-child :is(
    .ax-ths-acts, .br-actions, .mx-actions, .pg-actions, .uy-acts,
    .ush-actions, .ax-jp-actions, .ax-bo-actions, .ax-ca-actions,
    .ax-cl-hero-actions, .cuba-hero__actions
  ) > :is(a, button):nth-child(3) { flex-grow: 1.1; }
}

@media (max-width: 767px) {
  .eb-destino .eb-main > section:first-child :is(
    .ax-ths-acts, .br-actions, .mx-actions, .pg-actions, .uy-acts,
    .ush-actions, .ax-jp-actions, .ax-bo-actions, .ax-ca-actions,
    .ax-cl-hero-actions, .cuba-hero__actions
  ) > :is(a, button) {
    width: 100%;
    justify-content: center;
  }
}
