/* ============================================================
   Brito Global Travel — custom.css
   Variables CSS portadas de tokens.json + estilos no expresables en theme.json.
   Cargado por functions.php después de Google Fonts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
  /* ---- Marca ---- */
  --brand-primary:        #1d4ed8;
  --brand-primary-strong: #1e3a8a;
  --brand-primary-soft:   #eaf1ff;
  --brand-accent:         #dc2626;
  --brand-accent-soft:    #fdeceb;

  /* ---- Tinta ---- */
  --ink-strong:  #1f232e;
  --ink-soft:    #525a70;
  --ink-muted:   #8b90a0;
  --ink-inverse: #ffffff;

  /* ---- Superficies ---- */
  --bg-canvas:      #fcfcfd;
  --surface-raised: #ffffff;
  --surface-sunken: #f4f4f6;
  --surface-tint:   #eef3ff;

  /* ---- Líneas ---- */
  --line-soft:   #ececef;
  --line-strong: #d8dadf;

  /* ---- Semánticos ---- */
  --success:   #16a34a;
  --warning:   #d97706;
  --danger:    #dc2626;
  --whatsapp:  #25d366;

  /* ---- Escenografía ---- */
  --sky:      #bfe3f2;
  --sea:      #1aa5c4;
  --sea-deep: #0d7f9c;
  --sand:     #f3e2c4;

  /* ---- Tipografía ---- */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --fs-xs:      0.78rem;
  --fs-sm:      0.9rem;
  --fs-base:    1rem;
  --fs-md:      1.125rem;
  --fs-lg:      1.35rem;
  --fs-xl:      1.75rem;
  --fs-2xl:     2.25rem;
  --fs-3xl:     3rem;
  --fs-display: 3.75rem;

  /* ---- Espaciado ---- */
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* ---- Radios ---- */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-pill: 999px;

  /* ---- Sombras ---- */
  --sh-sm:  0 1px 2px rgba(31,35,46,.06);
  --sh-md:  0 8px 24px rgba(31,35,46,.08);
  --sh-lg:  0 20px 50px rgba(29,78,216,.12);

  /* ---- Layout ---- */
  --content-size: 1200px;
  --wide-size:    1200px;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* ---------- Topbar del header ---------- */
.bgt-topbar {
  background: var(--brand-primary-strong);
  color: #dbe6ff;
  font-size: var(--fs-sm);
  padding: 0.4rem 0;
}
.bgt-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.bgt-topbar a:hover { text-decoration: underline; }

/* ---------- Navegación principal ---------- */
.wp-block-navigation { font-family: var(--font-display); font-weight: 500; }
.wp-block-navigation a { color: var(--ink-strong); }
.wp-block-navigation a:hover { color: var(--brand-primary); }

/* ---------- Botones WordPress (sobre los estilos de theme.json) ---------- */
.wp-block-button__link {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--sh-md); text-decoration: none; }

/* ---- Variantes de botón ---- */
.btn-accent .wp-block-button__link  { background: var(--brand-accent); color: #fff; }
.btn-whatsapp .wp-block-button__link { background: var(--whatsapp); color: #08321a; }
.btn-ghost .wp-block-button__link   { background: transparent; color: var(--brand-primary); border: 2px solid var(--line-strong); box-shadow: none; }
.btn-ghost .wp-block-button__link:hover { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.btn-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); box-shadow: none; }
.btn-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* ---------- Cover blocks (hero, secciones) ---------- */
.wp-block-cover { overflow: hidden; }
.wp-block-cover__image-background { object-fit: cover; width: 100%; height: 100%; position: absolute; inset: 0; }

/* ---------- Sección ritmo vertical ---------- */
.section-karma {
  padding-block: var(--sp-9);
}
.section-karma--tight { padding-block: var(--sp-7); }
.section-karma--tint  { background: var(--surface-tint); }
.section-karma--sunken { background: var(--surface-sunken); }
.section-karma--ink   { background: var(--brand-primary-strong); color: var(--ink-inverse); }
.section-karma--ink h1,
.section-karma--ink h2,
.section-karma--ink h3 { color: var(--ink-inverse); }

/* ---------- Eyebrow ---------- */
.eyebrow-karma {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 0.5rem;
}
.eyebrow-karma--accent { color: var(--brand-accent); }
.eyebrow-karma--light  { color: #cfe0ff; }

/* ---------- Badges ---------- */
.badge-deal {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: .35em .8em;
  border-radius: var(--r-pill);
}
.badge-deal--offer    { background: var(--brand-accent); color: #fff; }
.badge-deal--incluido { background: #e7f6ed; color: #10743a; }

/* ---------- Trust bar ---------- */
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-6);
}
@media (max-width: 900px) { .trust-bar-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tipos de viaje grid ---------- */
.triptype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) { .triptype-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Por qué elegirnos ---------- */
.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Paso a paso ---------- */
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ---------- Testimonios ---------- */
.quote-stars { color: var(--warning); letter-spacing: 2px; font-size: var(--fs-sm); }

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1 1 220px;
  padding: 0.9em 1.1em;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-base);
}

/* ---------- Footer ---------- */
.site-footer-karma { background: #12182a; color: #c6cfe4; }
.site-footer-karma a { color: #c6cfe4; }
.site-footer-karma a:hover { color: #fff; text-decoration: none; }
.site-footer-karma h4 { color: #fff; font-family: var(--font-display); font-size: var(--fs-base); }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-xs);
  color: #8d99b8;
}
.footer-bottom-bar a { color: #b7c1db; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: #08321a;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.8em 1.2em;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  text-decoration: none;
  transition: transform .12s ease;
}
.wa-float:hover { transform: translateY(-2px); text-decoration: none; color: #08321a; }
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Menú móvil toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4em;
  cursor: pointer;
  color: var(--ink-strong);
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .wa-float span { display: none; }
}

/* ---------- Tienda / WooCommerce ---------- */
/* Hereda tokens del tema en Tienda, Producto, Carrito y Checkout. */
.woocommerce, .wc-block-grid, .wp-block-woocommerce-product-collection {
  font-family: var(--font-body);
  color: var(--ink-strong);
}
.wp-block-woocommerce-product-collection .wp-block-post-title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  font-family: var(--font-display);
  color: var(--ink-strong);
  text-decoration: none;
}
.wp-block-woocommerce-product-collection .wp-block-post-title a:hover {
  color: var(--brand-primary);
}
.wp-block-woocommerce-product-collection img,
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img {
  border-radius: var(--r-md);
}
.wc-block-components-product-price,
.woocommerce div.product p.price,
.woocommerce ul.products li.product .price {
  color: var(--brand-primary-strong);
  font-weight: 700;
}
/* Precio y botones de WooCommerce con el estilo de marca */
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--r-pill);
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce .wp-block-woocommerce-product-collection .wp-block-button__link,
.wc-block-components-button:not(.is-link) {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--r-pill);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover {
  background: var(--brand-primary-strong);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--brand-accent);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: #b91c1c;
}

/* ---------- Prose (legales, sobre nosotros) ---------- */
.wp-block-post-content .prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.wp-block-post-content .prose h3 { font-size: var(--fs-md); margin-top: var(--sp-6); }
.wp-block-post-content .prose p,
.wp-block-post-content .prose li { color: var(--ink-soft); }

/* ---------- Formulario de contacto / lead ---------- */
.field-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 0.4rem;
}
.field-input,
.field-select,
.field-textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-strong);
  padding: 0.8em 1em;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  width: 100%;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.25);
}

/* ---------- Responsive global ---------- */
@media (max-width: 760px) {
  :root {
    --fs-display: 2.6rem;
    --fs-3xl:     2.1rem;
    --fs-2xl:     1.8rem;
  }
  .section-karma { padding-block: var(--sp-8); }
}
