/* ==========================================================================
   eBOOMTrip — estilos base
   Se carga en todo el sitio desde functions.php del child theme.
   .eb-  → componentes globales (header, footer, botones, secciones)
   .ebt- → contenido de cada tour (ver eboomtrip-tours.css)
   Las fuentes se cargan desde functions.php (eb-fonts).
   ========================================================================== */

/* Tamaños en px, no en rem: Bootstrap del tema pone html { font-size: 10px } */
/* ---------- Tokens de marca ---------- */
:root {
  /* Mismos colores que eboomtrip-tours.css */
  --eb-navy: #03279a;        /* secundario: títulos, botones, footer */
  --eb-navy-deep: #061a4a;   /* hover y fondos muy oscuros */
  --eb-cyan: #37b3e2;        /* primario: acentos, eyebrows */
  --eb-light: #f5fafd;       /* fondo de secciones alternas (el mismo de los tours) */
  --eb-white: #ffffff;
  --eb-text: #0b2a9e;        /* el texto corrido también va en azul */
  --eb-muted: #4a5aa8;
  --eb-whatsapp: #25d366;

  --eb-font: "Magallanes Cond", system-ui, -apple-system, "Segoe UI", sans-serif; /* fonts/fonts.css */
  --eb-font-display: "Fraunces", Georgia, "Times New Roman", serif; /* títulos */

  --eb-radius-sm: 12px;
  --eb-radius: 24px;
  --eb-radius-lg: 48px;
  --eb-shadow: 0 12px 28px rgba(11, 42, 158, 0.14);

  --eb-container: 1200px;
  --eb-gutter: clamp(16px, 4vw, 32px);
  --eb-section-y: clamp(56px, 8vw, 104px);
  --eb-header-h: 84px;
}

/* ---------- Base ---------- */
.eb-scope,
.eb-header,
.eb-footer {
  font-family: var(--eb-font);
  font-size: 16px;
  color: var(--eb-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.eb-scope *,
.eb-header *,
.eb-footer * {
  box-sizing: border-box;
}

/* El widget Shortcode de Elementor que contiene nuestras partes ocupa todo el ancho,
   y su contenedor no agrega relleno ni espacio entre widgets */
.elementor-widget-shortcode:has(.eb-header),
.elementor-widget-shortcode:has(.eb-footer),
.elementor-widget-shortcode:has(.eb-home) {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.e-con:has(> .elementor-widget-shortcode .eb-home),
.e-con:has(> .e-con-inner > .elementor-widget-shortcode .eb-home) {
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  --gap: 0px;
  max-width: none !important;
  padding: 0 !important;
}

.eb-header,
.eb-footer,
.eb-home {
  width: 100%;
}

.eb-container {
  width: 100%;
  max-width: var(--eb-container);
  margin-inline: auto;
  padding-inline: var(--eb-gutter);
}

.eb-section {
  padding-block: var(--eb-section-y);
}

.eb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Encabezado de sección: eyebrow script + título ---------- */
.eb-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.eb-heading--left {
  text-align: left;
  margin-inline: 0;
}

/* Etiqueta en mayúsculas antes del título */
.eb-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--eb-font);
  font-size: 13.6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eb-cyan);
}

.eb-title {
  font-family: var(--eb-font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--eb-navy);
  margin: 0 0 16px;
}

.eb-lead {
  font-size: clamp(16px, 1.6vw, 18.4px);
  color: var(--eb-text);
  margin: 0;
}

/* Variante sobre fondo oscuro */
.eb-on-dark .eb-title,
.eb-on-dark .eb-lead {
  color: var(--eb-white);
}

/* ---------- Botones ---------- */
.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--eb-radius-sm);
  font-family: var(--eb-font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.eb-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--eb-shadow);
}

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

.eb-btn--primary {
  background: var(--eb-navy);
  color: var(--eb-white);
}

.eb-btn--primary:hover {
  background: var(--eb-navy-deep);
  color: var(--eb-white);
}

.eb-btn--cyan {
  background: var(--eb-cyan);
  color: var(--eb-white);
}

.eb-btn--whatsapp {
  background: var(--eb-whatsapp);
  color: var(--eb-white);
}

.eb-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Tarjeta (estilo "Beneficios para su Empresa") ---------- */
.eb-card {
  background: var(--eb-white);
  border: 1px solid rgba(11, 42, 158, 0.08);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  padding: clamp(20px, 3vw, 32px);
}

.eb-card__title {
  font-family: var(--eb-font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  color: var(--eb-navy);
  margin: 0 0 12px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.eb-header {
  position: relative;
  z-index: 999;
  background: var(--eb-white);
  transition: box-shadow 0.2s ease;
}

/* Envoltura del header en la plantilla de Thim Kit: fondo blanco de orilla a orilla.
   El header NO se queda fijo al bajar (decisión del cliente). */
.thim-ekit__header:has(.eb-header) {
  position: relative;
  z-index: 999;
  width: 100%;
  background: var(--eb-white);
  transition: box-shadow 0.2s ease;
}

/* La plantilla de Elementor del header no debe dejar márgenes ni recuadro alrededor */
.thim-ekit__header:has(.eb-header) .e-con,
.thim-ekit__header:has(.eb-header) .e-con-inner {
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  max-width: none !important;
  padding: 0 !important;
}

/* Igual en el footer: sin relleno ni recuadro de la plantilla, para que llegue de orilla a orilla */
.thim-ekit__footer:has(.eb-footer) .e-con,
.thim-ekit__footer:has(.eb-footer) .e-con-inner {
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  max-width: none !important;
  padding: 0 !important;
}

.eb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--eb-header-h);
}

.eb-header__logo {
  display: block;
  flex: none;
}

/* !important: Elementor fuerza height:auto en .elementor img */
.eb-header .eb-header__logo img {
  display: block;
  height: 56px !important;
  width: auto !important;
  max-width: none !important;
}

.eb-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 28px;
}

/* Escritorio: menú centrado entre el logo y el botón */
@media (min-width: 1025px) {
  .eb-nav__list {
    margin-inline: auto !important;
  }
}

.eb-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eb-nav__link {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15.7px;
  color: var(--eb-navy);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.eb-nav__link:hover,
.eb-nav__link[aria-current="page"] {
  background: rgba(0, 177, 228, 0.12);
  color: var(--eb-navy);
}

/* Submenú "Más" */
.eb-nav__item--has-sub {
  position: relative;
}

.eb-nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.eb-nav__sub-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.eb-nav__sub-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.eb-nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--eb-white);
  border-radius: var(--eb-radius-sm);
  box-shadow: var(--eb-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.eb-nav__item--has-sub.is-open .eb-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.eb-nav__sub .eb-nav__link {
  border-radius: 8px;
}

/* Botón hamburguesa (solo móvil) */
.eb-header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--eb-navy);
  cursor: pointer;
}

.eb-header__toggle span,
.eb-header__toggle span::before,
.eb-header__toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--eb-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.eb-header__toggle span {
  top: 50%;
}

.eb-header__toggle span::before,
.eb-header__toggle span::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.eb-header__toggle span::before {
  top: -6px;
}

.eb-header__toggle span::after {
  top: 6px;
}

.eb-header__toggle[aria-expanded="true"] span {
  background: transparent;
}

.eb-header__toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.eb-header__toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  :root {
    --eb-header-h: 72px;
  }

  .eb-header .eb-header__logo img {
    height: 46px !important;
  }

  .eb-header__toggle {
    display: block;
  }

  .eb-nav {
    position: fixed;
    inset: var(--eb-header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--eb-gutter) 40px;
    background: var(--eb-white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .eb-header.is-menu-open .eb-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .eb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .eb-nav__link {
    padding: 14px 16px;
    font-size: 17.6px;
    border-radius: var(--eb-radius-sm);
  }

  .eb-nav__sub-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .eb-nav__sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .eb-nav__item--has-sub.is-open .eb-nav__sub {
    display: block;
  }

  .eb-nav .eb-btn {
    width: 100%;
  }
}

/* Bloquea el scroll del fondo con el menú móvil abierto */
html.eb-no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.eb-footer {
  background: var(--eb-navy);
  color: var(--eb-white);
  border-radius: var(--eb-radius-lg) var(--eb-radius-lg) 0 0;
  padding-top: clamp(56px, 7vw, 88px);
}

.eb-footer a {
  color: inherit;
  text-decoration: none;
}

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

.eb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
}

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

.eb-footer__tagline {
  margin: 20px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15.2px;
}

.eb-footer__title {
  font-family: var(--eb-font);
  font-weight: 800;
  font-size: 14.4px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eb-cyan);
  margin: 0 0 18px;
}

.eb-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15.2px;
}

.eb-footer__contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.eb-footer__contact svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--eb-cyan);
}

/* Redes: círculos blancos como en la identidad */
.eb-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eb-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--eb-white);
  color: var(--eb-navy);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.eb-social a:hover {
  background: var(--eb-cyan);
  color: var(--eb-white);
  transform: translateY(-2px);
}

.eb-social svg {
  width: 20px;
  height: 20px;
}

/* Franja SECTUR */
.eb-footer__sectur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px 24px;
  border-radius: var(--eb-radius);
  background: var(--eb-cyan);
}

.eb-footer__sectur p {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.eb-footer__sectur strong {
  display: block;
  font-size: 21.6px;
  letter-spacing: 0.12em;
}

.eb-footer__sectur-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eb-footer__sectur-links .eb-btn {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14.4px;
  background: var(--eb-navy);
  color: var(--eb-white);
}

.eb-footer__sectur-links .eb-btn:hover {
  color: var(--eb-white);
}

.eb-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13.6px;
  color: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 600px) {
  .eb-footer {
    border-radius: var(--eb-radius) var(--eb-radius) 0 0;
  }

  .eb-footer__grid {
    grid-template-columns: 1fr;
  }

  .eb-footer__sectur {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Insignia de reCAPTCHA oculta: Google lo permite si los formularios llevan el aviso
   (ver wordpress/aviso-recaptcha.html) */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Botón flotante de WhatsApp */
.eb-wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 998;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--eb-whatsapp);
  color: var(--eb-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.eb-wa-float:hover {
  transform: scale(1.06);
  color: var(--eb-white);
}

.eb-wa-float svg {
  width: 30px;
  height: 30px;
}

@media (prefers-reduced-motion: reduce) {
  .eb-header *,
  .eb-footer *,
  .eb-scope *,
  .eb-wa-float {
    transition: none !important;
  }
}
