/* ==========================================================================
   eBOOMTrip — HOME
   Se carga solo en la portada (functions.php). Usa los tokens de eboomtrip.css.
   ========================================================================== */

/* Evita scroll horizontal por la foto de orilla a orilla (100vw incluye la barra de scroll) */
.eb-home {
  overflow-x: clip;
}

.eb-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.eb-center {
  text-align: center;
  margin: clamp(32px, 4vw, 48px) 0 0;
}

.eb-section--tight {
  padding-block: clamp(32px, 5vw, 64px);
}

/* Sección con fondo azul muy claro */
.eb-band {
  background: var(--eb-light);
}

.eb-link {
  color: var(--eb-navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--eb-cyan);
}

.eb-step .eb-link {
  white-space: nowrap;
}

.eb-link:hover {
  color: var(--eb-cyan);
}

/* Botón blanco sobre fondo de color */
.eb-btn--light {
  background: var(--eb-white);
  color: var(--eb-navy);
}

.eb-btn--light:hover {
  color: var(--eb-navy);
}

/* ---------- Portada: foto limpia en marco + buscador flotante ---------- */
.eb-hero {
  padding-top: 0 !important;
  padding-bottom: clamp(16px, 2vw, 24px);
  background: var(--eb-white);
}

/* De orilla a orilla aunque esté dentro del contenedor (!important: el tema reescribe el margen de <figure>) */
.eb-hero .eb-hero__media {
  position: relative;
  margin: 0 calc(50% - 50vw) !important;
  overflow: hidden;
}

.eb-hero__media img {
  width: 100%;
  height: clamp(320px, 34vw, 500px) !important;
  object-fit: cover;
  object-position: center 40%;
}

/* Pin de ubicación sobre la foto: círculo que se despliega con el lugar */
.eb-hero__place {
  position: absolute;
  top: 20px;
  left: max(20px, calc(50vw - 580px));
  margin: 0;
}

.eb-place {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(6, 26, 74, 0.18);
  color: var(--eb-navy);
  font-family: var(--eb-font);
  font-size: 14.4px;
  font-weight: 700;
  cursor: pointer;
}

.eb-place svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--eb-cyan);
}

.eb-place__text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

.eb-place[aria-expanded="true"] .eb-place__text {
  max-width: 320px;
  margin-left: 8px;
  opacity: 1;
}

@media (hover: hover) {
  .eb-place:hover .eb-place__text {
    max-width: 320px;
    margin-left: 8px;
    opacity: 1;
  }
}

.eb-place:focus-visible {
  outline: 3px solid var(--eb-cyan);
  outline-offset: 3px;
}

/* Franja de confianza: une la portada con "Próximas salidas" */
.eb-hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: clamp(28px, 3.5vw, 40px) auto 0;
  padding: 0;
  list-style: none;
}

.eb-hero__trust li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 20px;
}

.eb-hero__trust li + li {
  border-left: 1px solid rgba(11, 42, 158, 0.12);
}

.eb-hero__trust svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--eb-light);
  color: var(--eb-cyan);
}

.eb-hero__trust p {
  margin: 0;
  color: var(--eb-muted);
  font-size: 14.4px;
  line-height: 1.35;
}

.eb-hero__trust strong {
  display: block;
  color: var(--eb-navy);
  font-size: 16px;
  font-weight: 800;
}

/* Primera sección: el fondo pasa poco a poco del blanco al azul claro, sin línea de corte */
.eb-section--after-hero {
  padding-top: clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--eb-white) 0%, var(--eb-light) clamp(160px, 18vw, 260px));
}

/* ---------- Buscador-cotizador (flota sobre el borde de la foto) ---------- */
.eb-quote {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 0.6fr auto;
  align-items: end;
  gap: 12px;
  width: calc(100% - 2 * clamp(16px, 4vw, 56px));
  max-width: 1080px;
  margin: -56px auto 0;
  padding: 16px;
  background: var(--eb-white);
  border-radius: var(--eb-radius);
  box-shadow: 0 24px 48px rgba(6, 26, 74, 0.2);
}

.eb-quote__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.eb-quote label {
  padding-left: 4px;
  color: var(--eb-navy);
  font-size: 13.6px;
  font-weight: 700;
}

.eb-quote select,
.eb-quote input {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid rgba(11, 42, 158, 0.15);
  border-radius: var(--eb-radius-sm);
  background-color: var(--eb-white);
  color: var(--eb-navy);
  font-family: var(--eb-font);
  font-size: 16px;
  font-weight: 600;
}

.eb-quote select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303279a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.eb-quote select:focus,
.eb-quote input:focus {
  outline: none;
  border-color: var(--eb-cyan);
  box-shadow: 0 0 0 3px rgba(55, 179, 226, 0.25);
}

.eb-quote [hidden] {
  display: none !important;
}

.eb-quote__submit {
  height: 52px;
  padding-inline: 32px;
}

@media (max-width: 1024px) {
  .eb-quote {
    grid-template-columns: 1fr 1fr;
  }

  .eb-quote__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  /* Celular: foto vertical completa (portada-movil.jpg, 900 × 1250); el grupo ocupa el 60 % de arriba
     y el buscador sube sobre la arena */
  .eb-hero__media img {
    height: auto !important;
    aspect-ratio: 900 / 1250;
  }

  /* La arena se desvanece a blanco: sin línea de corte bajo el buscador */
  .eb-hero__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--eb-white) 92%);
    pointer-events: none;
  }

  .eb-hero__place {
    top: 14px;
    left: 14px;
  }

  .eb-place {
    font-size: 12.8px;
  }

  .eb-quote {
    width: calc(100% - 24px);
    margin-top: -50vw;
    padding: 14px;
  }

  .eb-quote select {
    padding-left: 12px;
    padding-right: 30px;
    background-position: right 10px center;
    font-size: 15.2px;
  }

  /* Qué y A dónde a todo lo ancho; Cuándo (más ancho) y Viajeros lado a lado */
  .eb-quote {
    grid-template-columns: 1.6fr 1fr;
  }

  .eb-quote__field:not(.eb-quote__field--sm):not(:has(#eb-q-fecha)) {
    grid-column: 1 / -1;
  }

  /* Celular: tres columnas compactas, ícono arriba y solo el título */
  .eb-hero__trust {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
  }

  .eb-hero__trust li {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 6px;
    text-align: center;
  }

  .eb-hero__trust svg {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .eb-hero__trust strong {
    font-size: 13.6px;
    line-height: 1.2;
  }

  .eb-hero__trust span {
    display: none;
  }
}

/* ---------- Tarjetas de tour ([eb_tours]) ---------- */
.eb-tours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eb-tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--eb-white);
  border: 1px solid rgba(11, 42, 158, 0.08);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  transition: transform 0.2s ease;
}

.eb-tour-card:hover {
  transform: translateY(-4px);
}

.eb-tour-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.eb-tour-card__media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.eb-tour-card:hover .eb-tour-card__media img {
  transform: scale(1.05);
}

.eb-tour-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--eb-cyan);
  color: var(--eb-white);
  font-size: 12.8px;
  font-weight: 700;
}

.eb-tour-card.is-soldout .eb-tour-card__badge {
  background: var(--eb-navy-deep);
}

.eb-tour-card.is-soldout .eb-tour-card__media img {
  filter: grayscale(0.6);
}

.eb-tour-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

/* Una sola línea: así todas las tarjetas quedan parejas */
.eb-tour-card__title {
  margin: 0;
  overflow: hidden;
  font-size: 22.4px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eb-tour-card__title a {
  color: var(--eb-navy);
  text-decoration: none;
}

.eb-tour-card__price {
  margin: 0 0 12px;
  color: var(--eb-muted);
  font-size: 15.2px;
}

.eb-tour-card__price strong {
  color: var(--eb-navy);
  font-size: 21.6px;
  font-weight: 800;
}

.eb-tour-card .eb-btn {
  margin-top: auto;
}

/* ---------- Vívelo en video ---------- */
.eb-videos-section {
  padding-top: 0;
  background: var(--eb-light);
}

/* Fila de videos verticales; en pantallas chicas se desliza de lado */
.eb-videos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 16px;
  margin: -12px -12px -20px;
  padding: 12px 12px 32px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.eb-videos::-webkit-scrollbar {
  display: none;
}

.eb-videos li {
  scroll-snap-align: start;
}

.eb-videos-hint {
  display: none;
  margin: 0 0 12px;
  color: var(--eb-muted);
  font-size: 14.4px;
  text-align: center;
}

.eb-videos iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: var(--eb-radius);
  background: var(--eb-navy);
  box-shadow: var(--eb-shadow);
}

@media (max-width: 767px) {
  .eb-videos-hint {
    display: block;
  }

  /* Celular: un video casi a lo ancho (el reproductor de TikTok necesita espacio) y se ve que hay más al deslizar */
  .eb-videos {
    grid-auto-columns: 82%;
    margin-inline: calc(-1 * var(--eb-gutter));
    padding-inline: var(--eb-gutter);
    scroll-padding-inline: var(--eb-gutter);
  }
}

/* ---------- Tu viaje, paso a paso (línea de tiempo) ---------- */
.eb-steps-section {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(32px, 4vw, 48px);
  background: var(--eb-white);
}

/* Nubes decorativas (solo computadora) */
.eb-steps-section::before,
.eb-steps-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90'%3E%3Cg fill='%23e3f3fb'%3E%3Ccircle cx='62' cy='58' r='26'/%3E%3Ccircle cx='100' cy='42' r='34'/%3E%3Ccircle cx='140' cy='56' r='26'/%3E%3Crect x='62' y='50' width='78' height='34' rx='17'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.eb-steps-section::before {
  top: 48px;
  left: max(-40px, calc(50% - 760px));
  width: 260px;
  height: 117px;
}

.eb-steps-section::after {
  top: 150px;
  right: max(-30px, calc(50% - 740px));
  width: 190px;
  height: 86px;
  opacity: 0.8;
}

.eb-steps-section .eb-container {
  position: relative;
  z-index: 1;
}

.eb-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ruta de vuelo punteada que une los números */
.eb-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--eb-cyan) 0 8px, transparent 8px 16px);
  opacity: 0.6;
}

/* Avioncito que recorre la ruta, detrás de los números */
.eb-steps::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2337b3e2'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5Z' transform='rotate(90 12 12)'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: eb-fly 14s linear infinite;
}

.eb-step__num {
  z-index: 1;
}

@keyframes eb-fly {
  0% { left: 12.5%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: calc(87.5% - 28px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eb-steps::after {
    left: 62%;
    animation: none;
  }
}

.eb-step {
  position: relative;
  text-align: center;
}

.eb-step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 4px solid var(--eb-white);
  border-radius: 50%;
  background: var(--eb-cyan);
  box-shadow: 0 8px 20px rgba(55, 179, 226, 0.35);
  color: var(--eb-white);
  font-weight: 800;
  font-size: 20.8px;
}

.eb-step:last-child .eb-step__num {
  background: var(--eb-navy);
  box-shadow: 0 8px 20px rgba(3, 39, 154, 0.3);
}

.eb-step__title {
  margin: 0 0 8px;
  color: var(--eb-navy);
  font-size: 20.8px;
  font-weight: 800;
  line-height: 1.2;
}

.eb-step p {
  max-width: 26ch;
  margin: 0 auto;
  color: var(--eb-muted);
}

/* Celular: pasos en vertical con la línea a la izquierda */
@media (max-width: 767px) {
  .eb-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .eb-steps::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--eb-cyan) 0 8px, transparent 8px 16px);
  }

  /* En celular sin avión ni nubes */
  .eb-steps::after,
  .eb-steps-section::before,
  .eb-steps-section::after {
    content: none;
  }

  .eb-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    text-align: left;
  }

  .eb-step__num {
    grid-row: span 2;
    margin: 0;
  }

  .eb-step__title {
    align-self: end;
    margin-top: 4px;
  }

  .eb-step p {
    max-width: none;
    margin: 0;
  }
}

/* ---------- Erika Barrera ---------- */
.eb-leader {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: clamp(24px, 3vw, 40px);
  background: var(--eb-white);
}

/* Nube suave del lado del texto */
.eb-leader::after {
  content: "";
  position: absolute;
  right: max(-30px, calc(50% - 720px));
  bottom: 12%;
  width: 200px;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90'%3E%3Cg fill='%23e3f3fb'%3E%3Ccircle cx='62' cy='58' r='26'/%3E%3Ccircle cx='100' cy='42' r='34'/%3E%3Ccircle cx='140' cy='56' r='26'/%3E%3Crect x='62' y='50' width='78' height='34' rx='17'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.eb-leader .eb-container {
  position: relative;
  z-index: 1;
}

.eb-leader__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

/* Erika recortada, sin fondo de color: solo sombra suave y la parte de abajo desvanecida */
.eb-leader__photo {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

/* Sombra difusa detrás de la figura */
.eb-leader__photo::before {
  content: "";
  position: absolute;
  inset: 22% 12% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 26, 74, 0.16), rgba(6, 26, 74, 0));
  filter: blur(24px);
}

/* Ruta de vuelo con avión, arriba a la derecha */
.eb-leader__photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14%;
  width: 52%;
  aspect-ratio: 300 / 160;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2337b3e2'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5Z' transform='rotate(60 12 12)'/%3E%3C/svg%3E") no-repeat 100% 0 / 34px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 160' fill='none'%3E%3Cpath d='M4 150C60 60 170 20 290 14' stroke='%2337b3e2' stroke-width='3' stroke-dasharray='8 10' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 88% auto;
  pointer-events: none;
}

.eb-leader__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.18);
  transform-origin: center bottom;
  filter: drop-shadow(0 24px 32px rgba(6, 26, 74, 0.22));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.eb-leader__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.eb-btn--outline {
  border: 2px solid var(--eb-navy);
  background: transparent;
  color: var(--eb-navy);
}

.eb-btn--outline:hover {
  color: var(--eb-navy);
}

.eb-leader__handle {
  margin: 14px 0 0;
  color: var(--eb-muted);
  font-size: 15.2px;
}

@media (max-width: 767px) {
  .eb-leader__inner {
    grid-template-columns: 1fr;
  }

  /* Celular: Erika más grande */
  .eb-leader__photo {
    max-width: 400px;
    width: 100%;
  }

  .eb-leader__photo::after {
    right: -6%;
  }

  .eb-leader::after {
    content: none;
  }

  .eb-leader__text {
    text-align: center;
  }

  .eb-leader__social {
    justify-content: center;
  }
}

/* ---------- Equipo: fotos sin fondo, mismo estilo que Erika ---------- */
.eb-team-section {
  padding-top: clamp(16px, 2vw, 24px);
}

.eb-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.eb-member {
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Recorte vertical: la persona se ve grande sin salirse de su lugar (las fotos traen mucho margen vacío) */
.eb-member img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(6, 26, 74, 0.18));
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  transition: transform 0.3s ease;
}

.eb-member:hover img {
  transform: translateY(-4px);
}

.eb-member__info {
  padding-top: 4px;
}

.eb-member__name,
.eb-member__role {
  margin: 0;
  line-height: 1.2;
}

.eb-member__name {
  color: var(--eb-navy);
  font-size: 20px;
  font-weight: 800;
}

.eb-member__role {
  margin-top: 4px;
  color: var(--eb-muted);
  font-size: 15.2px;
}

@media (max-width: 1024px) {
  .eb-team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .eb-team {
    gap: 20px 14px;
  }

  .eb-member__name {
    font-size: 16.8px;
  }

  .eb-member__role {
    font-size: 13.6px;
  }
}

/* ---------- Marcas (carrusel continuo) ---------- */
.eb-brands .eb-heading {
  margin-bottom: 32px;
}

.eb-marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.eb-marquee__track {
  display: flex;
  flex: none;
  gap: 16px;
  margin: 0;
  padding: 8px 8px 8px 8px;
  list-style: none;
  animation: eb-marquee 40s linear infinite;
}

.eb-marquee:hover .eb-marquee__track {
  animation-play-state: paused;
}

.eb-marquee__track li {
  display: grid;
  flex: none;
  place-items: center;
  width: 200px;
  height: 100px;
  padding: 0 12px;
  background: var(--eb-white);
  border-radius: var(--eb-radius-sm);
  box-shadow: 0 6px 16px rgba(11, 42, 158, 0.08);
}

/* Logos en gris; a color al pasar el mouse */
.eb-marquee__track li img {
  width: 100%;
  height: auto !important;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.eb-marquee__track li:hover img {
  filter: none;
  opacity: 1;
}

@keyframes eb-marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eb-marquee__track {
    animation: none;
  }

  .eb-marquee {
    flex-wrap: wrap;
    justify-content: center;
  }

  .eb-marquee__track[aria-hidden] {
    display: none;
  }
}

/* ---------- Servicios ---------- */
.eb-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eb-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 24px 14px;
  border: 1px solid rgba(11, 42, 158, 0.08);
  border-radius: var(--eb-radius);
  background: var(--eb-white);
  color: var(--eb-navy);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eb-service:hover {
  border-color: var(--eb-cyan);
  box-shadow: var(--eb-shadow);
  color: var(--eb-navy);
  transform: translateY(-4px);
}

.eb-service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--eb-light);
  color: var(--eb-cyan);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.eb-service:hover .eb-service__icon {
  background: var(--eb-cyan);
  color: var(--eb-white);
}

.eb-service__icon svg {
  width: 26px;
  height: 26px;
}

.eb-service strong {
  font-size: 16.8px;
  font-weight: 800;
  line-height: 1.2;
}

.eb-service__desc {
  color: var(--eb-muted);
  font-size: 13.6px;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .eb-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .eb-services {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .eb-service {
    padding: 18px 10px;
  }
}

/* ---------- Suscripción (MC4WP) ---------- */
.eb-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--eb-radius-lg);
  background: var(--eb-light);
}

.eb-newsletter .eb-title {
  font-size: clamp(28.8px, 3.4vw, 41.6px);
}

.eb-nl__fields {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--eb-white);
  box-shadow: var(--eb-shadow);
}

.eb-nl__fields input {
  flex: 1;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--eb-navy);
  font-family: var(--eb-font);
  font-size: 16px;
}

.eb-nl__fields input:focus {
  outline: 2px solid var(--eb-cyan);
}

.eb-nl__fields .eb-btn {
  flex: none;
  border-radius: 999px;
}

.eb-nl__legal {
  margin: 12px 0 0 20px;
  color: var(--eb-muted);
  font-size: 13.6px;
}

.eb-nl__legal a {
  color: var(--eb-navy);
}

/* Mensajes de MC4WP (éxito / error) */
.eb-newsletter .mc4wp-response p {
  margin: 12px 0 0 20px;
  color: var(--eb-navy);
  font-weight: 700;
}

@media (max-width: 767px) {
  .eb-newsletter {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .eb-nl__fields {
    flex-direction: column;
    border-radius: var(--eb-radius);
  }

  .eb-nl__fields input {
    text-align: center;
  }

  .eb-nl__legal {
    margin-left: 0;
  }
}
