/*
Theme Name: Astra Child — TODOPACK
Theme URI: https://todopackec.com
Description: Child theme de Astra para el cliente WECO/TODOPACK. Define tokens de marca (paleta amarillo/navy), patrones reutilizables, integración WooCommerce y FAB de WhatsApp. theme.json es la fuente de verdad de design tokens; este archivo añade glue CSS para casos no cubiertos por theme.json y override de Astra/Spectra/Woo.
Author: Tu Web Económica
Author URI: https://tuwebeconomica.cloud
Template: astra
Version: 1.2.0
Text Domain: astra-child
*/

/* ════════════════════════════════════════════════════════════════════════
   v1.2 — fix full-bleed heroes en subpáginas + header overlay home +
   search/cart icons + cart WhatsApp checkout + buy now button.
   ════════════════════════════════════════════════════════════════════════ */

/* Full-bleed forzado: el cover :first-child de cualquier página debe ocupar
   100vw y romper el container de Astra. */
.ast-plain-container.ast-no-sidebar .site-content > .ast-container,
.ast-page-builder-template.ast-no-sidebar .site-content > .ast-container,
.site-content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}

.site-main > article > .entry-header {
  display: none !important;
}

.site-main > article > .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* Astra agrega padding inline al main content para "plain-container" — quitarlo */
.site-content #primary {
  padding: 0 !important;
  margin: 0 !important;
}

/* Asegurar que alignfull realmente sea 100vw */
.entry-content > .alignfull,
.entry-content > .wp-block-cover.alignfull,
.entry-content > .wp-block-group.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Bloques constrained dentro de alignfull se centran respetando container 1180px */
.entry-content > .alignfull > .wp-block-group,
.entry-content > .alignfull > .wp-block-columns {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Hero en home: header overlay encima del cover */
body.home .ast-primary-header-bar,
body.home .main-header-bar,
body.home .ast-header-break-point .main-header-bar,
body.home #masthead.site-header {
  background-color: rgba(248, 201, 41, 0.95) !important;
  backdrop-filter: blur(4px);
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: none;
}

body.home {
  /* Header overlay: el contenido empieza desde arriba */
  --header-height: 0px;
}

body.home .site-content,
body.home #primary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .entry-content > .wp-block-cover:first-child {
  min-height: 100vh !important;
  margin-top: 0 !important;
}

/* Texto del hero (cover :first-child) — sin text-shadow */
.entry-content > .wp-block-cover .wp-block-cover__inner-container h1,
.entry-content > .wp-block-cover .wp-block-cover__inner-container h2,
.entry-content > .wp-block-cover .wp-block-cover__inner-container p,
.weco-hero-swiper h1,
.weco-hero-swiper h2,
.weco-hero-swiper p {
  text-shadow: none !important;
}

/* Ocultar scroll-to-top de Astra */
#ast-scroll-top,
.ast-scroll-to-top,
.ast-scroll-top-icon,
a#ast-scroll-top {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Eyebrow "Quito · Ecuador" visible también en móvil */
.weco-hero-swiper .is-style-eyebrow,
.weco-hero-slide .is-style-eyebrow,
.weco-hero-gold .weco-hero-eyebrow {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 780px) {
  .weco-hero-swiper .is-style-eyebrow,
  .weco-hero-slide .is-style-eyebrow,
  .weco-hero-gold .weco-hero-eyebrow {
    display: inline-flex !important;
    font-size: 0.78rem;
  }
}

/* Hero amarillo TODOPACK */
.weco-hero-gold.wp-block-cover {
  min-height: clamp(560px, 70vh, 720px) !important;
  background-color: #f8c929 !important;
}

.weco-hero-gold .weco-hero-eyebrow {
  color: var(--ink) !important;
  align-self: flex-start;
  margin-left: clamp(1rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.weco-hero-gold h1 {
  color: var(--ink) !important;
}

/* ─── Header: search + cart icons en menú primario ───────────────────── */
.weco-header-action {
  list-style: none;
  display: inline-flex;
  align-items: center;
}

.weco-header-action a,
.weco-header-action > a.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  background: rgba(17, 28, 55, 0.08);
  border: 1px solid rgba(17, 28, 55, 0.12);
  border-radius: 10px;
  color: var(--ink) !important;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  padding: 0 !important;
  margin-left: 0.4rem !important;
}

.weco-header-action a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold) !important;
  transform: translateY(-1px);
}

.weco-header-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--ink);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--gold);
}

.weco-header-action a:hover .weco-header-badge {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}

/* ─── Search modal (overlay full screen) ─────────────────────────────── */
.weco-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 49, 0.72);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
}

.weco-search-overlay.is-open {
  display: flex;
}

body.weco-no-scroll {
  overflow: hidden;
}

.weco-search-dialog {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(15, 24, 49, 0.35);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.weco-search-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.weco-search-input-row svg {
  color: var(--ink);
  flex-shrink: 0;
}

.weco-search-input-row input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  padding: 0;
}

.weco-search-close {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.weco-search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.weco-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease;
  border-bottom: 1px solid rgba(231, 235, 242, 0.5);
}

.weco-search-result:last-child {
  border-bottom: 0;
}

.weco-search-result:hover {
  background: rgba(248, 201, 41, 0.14);
}

.weco-search-result strong {
  color: var(--ink);
  font-weight: 800;
}

.weco-search-result span {
  color: var(--text);
  font-size: 0.85rem;
}

.weco-search-empty {
  color: var(--text);
  text-align: center;
  padding: 1.4rem 1.1rem;
}

/* ─── Tienda: layout sidebar 260px + grid ────────────────────────────── */
.weco-shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

.weco-shop-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.weco-shop-sidebar h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 1rem;
}

.weco-shop-sidebar h3:not(:first-child) {
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
  padding-top: 1.4rem;
}

.weco-shop-sidebar .weco-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.weco-shop-sidebar .weco-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 160ms ease, color 160ms ease;
}

.weco-shop-sidebar .weco-cat-list a:hover,
.weco-shop-sidebar .weco-cat-list a.is-active {
  background: rgba(248, 201, 41, 0.18);
  color: var(--ink);
}

.weco-shop-sidebar .weco-cat-list a span {
  background: var(--soft-gray);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  min-width: 28px;
  text-align: center;
}

.weco-shop-sidebar .weco-cat-list a.is-active span {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 980px) {
  .weco-shop-layout {
    grid-template-columns: 1fr;
  }
  .weco-shop-sidebar {
    position: static;
  }
}

/* ─── Single product: "Comprar ahora" button + features list ─────────── */
.single_add_to_cart_button.weco-buy-now {
  background: var(--navy) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
  box-shadow: 0 14px 30px rgba(23, 35, 63, 0.22);
}

.single_add_to_cart_button.weco-buy-now:hover {
  background: var(--navy-soft) !important;
}

.weco-product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.85rem;
}

.weco-product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
}

.weco-product-features .weco-check-icon {
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.weco-product-features li::before {
  content: none;
}

/* ─── Cart: botón "Pedir cotización por WhatsApp" ────────────────────── */
.weco-cart-whatsapp-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.weco-cart-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 900;
  padding: 0.95rem 1.55rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.weco-cart-whatsapp:hover {
  background: #1ebe5a;
  color: var(--white);
  transform: translateY(-2px);
}

.weco-cart-whatsapp-note {
  color: var(--text);
  font-size: 0.88rem;
  margin-top: 0.9rem;
  max-width: 420px;
  margin-inline: auto;
}

/* ─── Variables CSS (espejo de theme.json para uso en CSS legacy) ───────── */
:root {
  --gold: #f8c929;
  --gold-dark: #dcae18;
  --navy: #17233f;
  --navy-soft: #213050;
  --ink: #111c37;
  --text: #516079;
  --line: #e7ebf2;
  --cream: #fbf7ef;
  --white: #ffffff;
  --soft-gray: #f6f7f9;
  --whatsapp: #25d366;
  --shadow: 0 24px 60px rgb(23 35 63 / 12%);
  --shadow-soft: 0 16px 42px rgb(23 35 63 / 9%);
  --shadow-gold: 0 18px 36px rgb(248 201 41 / 24%);
  --container: 1180px;
  --header-height: 80px;
  --section-space: clamp(4rem, 7vw, 7rem);
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

body.weco-shell-radial {
  background:
    radial-gradient(circle at 8% 18%, rgb(248 201 41 / 9%), transparent 24rem),
    radial-gradient(circle at 92% 42%, rgb(33 48 80 / 6%), transparent 30rem),
    var(--cream);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* ─── Header Astra: forzar fondo gold ───────────────────────────────────── */
.ast-primary-header-bar,
.main-header-bar,
.ast-header-break-point .main-header-bar {
  background-color: var(--gold) !important;
  border-bottom: 1px solid var(--gold-dark);
  box-shadow: 0 10px 30px rgb(17 28 55 / 12%);
}

.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > a,
.ast-builder-menu-mobile .menu-item > a {
  color: var(--ink) !important;
  font-weight: 700;
}

.main-header-menu .menu-link:hover,
.ast-builder-menu-1 .menu-item > a:hover {
  color: var(--white) !important;
}

.site-logo-img img {
  max-height: 58px;
  width: auto;
}

/* ─── Botones ───────────────────────────────────────────────────────────── */
.wp-block-button__link,
.wp-block-button .wp-element-button {
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0.01em;
  min-height: 52px;
  padding: 0.95rem 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* Variante secundaria (registrada via register_block_style) */
.wp-block-button.is-style-btn-secondary .wp-block-button__link {
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 18px 36px rgb(17 28 55 / 22%);
}

.wp-block-button.is-style-btn-secondary .wp-block-button__link:hover {
  background: var(--navy-soft);
  color: var(--gold);
}

.wp-block-button.is-style-btn-whatsapp .wp-block-button__link {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 14px 30px rgb(37 211 102 / 28%);
}

.wp-block-button.is-style-btn-whatsapp .wp-block-button__link:hover {
  background: #1ebe5a;
}

/* ─── Eyebrow (etiqueta uppercase encima del título) ────────────────────── */
.is-style-eyebrow,
p.is-style-eyebrow {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.is-style-eyebrow.has-text-align-center {
  justify-content: center;
}

/* Heading line decoración (separador corto debajo de title).
   Aplicado a core/separator con className "weco-heading-line". */
.wp-block-separator.weco-heading-line,
hr.weco-heading-line,
.weco-heading-line {
  display: block;
  background: var(--gold);
  border: 0;
  height: 3px;
  width: 46px;
  margin: 1.05rem auto 1.2rem;
  opacity: 1;
}

.weco-heading-line.is-left,
hr.weco-heading-line.is-left {
  margin-inline: 0;
}

/* ─── Block styles para core/group ──────────────────────────────────────── */
.wp-block-group.is-style-soft-section {
  background: var(--soft-gray);
  padding-block: var(--section-space);
}

.wp-block-group.is-style-cream-section {
  background: var(--cream);
  padding-block: var(--section-space);
}

.wp-block-group.is-style-navy-section {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section-space);
}

.wp-block-group.is-style-navy-section h1,
.wp-block-group.is-style-navy-section h2,
.wp-block-group.is-style-navy-section h3 {
  color: var(--gold);
}

.wp-block-group.is-style-navy-section p {
  color: rgb(255 255 255 / 78%);
}

.wp-block-group.is-style-navy-section .is-style-eyebrow {
  color: var(--gold);
}

.wp-block-group.is-style-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.wp-block-group.is-style-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

/* ─── Cover hero (block style gold-overlay) ─────────────────────────────── */
.wp-block-cover.is-style-gold-overlay::before {
  background: linear-gradient(180deg, transparent 78%, var(--cream) 100%);
  z-index: 2;
}

.wp-block-cover.is-style-gold-overlay .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
}

/* ─── Stats band ────────────────────────────────────────────────────────── */
.weco-stat-number {
  color: var(--gold);
  display: block;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.weco-stat-label {
  color: rgb(255 255 255 / 68%);
  display: block;
  font-weight: 700;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

/* ─── Catalog chips ─────────────────────────────────────────────────────── */
.weco-catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 980px;
  margin-inline: auto;
}

.weco-catalog-chips .wp-block-button .wp-block-button__link,
.weco-catalog-chips a.weco-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgb(23 35 63 / 5%);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  min-height: auto;
  padding: 0.6rem 1rem;
}

.weco-catalog-chips .wp-block-button .wp-block-button__link:hover {
  background: var(--gold);
}

/* ─── Sección catálogo con fondo navy ───────────────────────────────────── */
.weco-catalog-section {
  background: var(--navy);
  color: var(--white);
}

.weco-catalog-section h2 {
  color: var(--gold);
}

.weco-catalog-section .weco-catalog-chips a {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 12%);
  color: var(--white);
}

/* ─── Reveal-on-scroll (IntersectionObserver) ───────────────────────────── */
.weco-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.weco-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes weco-rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.weco-rise-in {
  animation: weco-rise-in 760ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  .weco-reveal,
  .weco-rise-in,
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .weco-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── WhatsApp FAB (impreso por functions.php en wp_footer) ─────────────── */
.weco-whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 32px rgb(37 211 102 / 45%);
  z-index: 90;
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}

.weco-whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 42px rgb(37 211 102 / 60%);
  color: #fff;
}

.weco-whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

/* ─── Spectra Slider hero ───────────────────────────────────────────────── */
.weco-hero-slider {
  background: var(--gold);
  color: var(--ink);
}

.weco-hero-slider .uagb-slider__wrapper {
  min-height: clamp(560px, 70vh, 720px);
}

.weco-hero-slider .uagb-slider-slide-content {
  text-align: center;
}

/* ─── WooCommerce: tarjeta producto ─────────────────────────────────────── */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  padding: 0 0 1.45rem !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  margin: 0 !important;
  height: 250px !important;
  width: 100%;
  object-fit: contain;
  background: #f4f6f8;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  color: var(--ink);
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  padding: 1.1rem 1.2rem 0 !important;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  color: var(--ink);
  font-size: 1.4rem !important;
  font-weight: 950 !important;
  padding: 0.4rem 1.2rem;
}

.woocommerce ul.products li.product .price del {
  color: var(--text);
  font-size: 0.95rem;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  background: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 900;
  margin: 0 1.2rem !important;
  padding: 0.65rem 1rem;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--gold-dark);
}

/* Badge "Top" / "CODIPRINT" / Sale */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  background: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  top: 1rem;
  left: 1rem;
  right: auto;
  position: absolute;
}

/* ─── WooCommerce: single product ───────────────────────────────────────── */
.woocommerce div.product .product_title {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ink);
  font-size: 2.25rem;
  font-weight: 950;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  margin-bottom: 2rem;
}

.woocommerce div.product div.images img {
  background: #f4f6f8;
  padding: 1.5rem;
  border-radius: 8px;
}

.woocommerce div.product form.cart .button {
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  padding: 0.95rem 1.55rem;
  min-height: 52px;
  border-radius: 6px;
}

.woocommerce div.product form.cart .button:hover {
  background: var(--gold-dark);
}

/* Features list (custom meta _weco_features renderizado en single product) */
.weco-product-features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.weco-product-features li {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  gap: 0.65rem;
}

.weco-product-features li::before {
  content: "✓";
  color: var(--gold-dark);
  font-weight: 900;
  flex: 0 0 auto;
  width: 1.2em;
}

/* CTA "Cotizar por WhatsApp" en single (alternativa a Add to cart si no hay precio) */
.weco-quote-cta {
  align-items: center;
  background: var(--whatsapp);
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.95rem 1.55rem;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.weco-quote-cta:hover {
  background: #1ebe5a;
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── WooCommerce: cart & checkout ──────────────────────────────────────── */
.woocommerce .cart_totals,
.woocommerce .checkout_coupon,
.woocommerce-cart-form table.cart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.woocommerce-cart-form table.cart th,
.woocommerce-cart-form table.cart td {
  border-bottom: 1px solid var(--line);
}

.woocommerce-cart-form table.cart .product-thumbnail img {
  border-radius: 8px;
  background: #f4f6f8;
  padding: 0.5rem;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--gold);
  color: var(--ink);
}

.woocommerce a.button.alt:hover {
  background: var(--gold-dark);
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--gold);
  background: var(--cream);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--gold-dark);
}

/* ─── WooCommerce: my-account ──────────────────────────────────────────── */
.woocommerce-MyAccount-navigation ul li a {
  color: var(--ink);
  font-weight: 700;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--gold-dark);
}

/* ─── Footer Astra ──────────────────────────────────────────────────────── */
.site-footer,
.footer-adv,
.site-footer .ast-footer-copyright {
  background: var(--navy) !important;
  color: rgb(255 255 255 / 68%);
}

.site-footer h2,
.site-footer h3,
.site-footer a {
  color: var(--white) !important;
}

.site-footer a:hover {
  color: var(--gold) !important;
}

/* ─── Mapa Spectra ──────────────────────────────────────────────────────── */
.uagb-google-map iframe,
.wp-block-uagb-google-map iframe {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
  height: 380px;
  width: 100%;
}

@media (max-width: 720px) {
  .uagb-google-map iframe,
  .wp-block-uagb-google-map iframe {
    height: 300px;
  }
}

/* ─── Cards Spectra info-box ────────────────────────────────────────────── */
.wp-block-uagb-info-box .uagb-ifb-content {
  text-align: center;
}

.wp-block-uagb-info-box .uagb-ifb-icon-wrap {
  background: rgb(248 201 41 / 16%);
  border-radius: 10px;
  color: var(--gold-dark) !important;
}

/* ─── Testimonial Spectra ───────────────────────────────────────────────── */
.wp-block-uagb-testimonial .uagb-testimonial__wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.wp-block-uagb-testimonial .uagb-tm__author-name {
  font-weight: 900;
  color: var(--ink);
}

.wp-block-uagb-testimonial .uagb-tm__company {
  color: var(--text);
  font-size: 0.88rem;
}

/* ─── Header: esconder duplicado site-title cuando hay logo ──────────── */
.wp-custom-logo .site-branding .site-title,
.wp-custom-logo .ast-site-identity .site-title {
  display: none !important;
}

/* Algunos layouts de Astra muestran .site-title igual al lado del logo */
.ast-site-title-wrap .site-title {
  display: none;
}

/* ─── Esconder título de página "Inicio" en home ─────────────────────── */
body.home .entry-title,
body.home .ast-archive-title,
body.home .ast-page-title-wrapper,
body.home header.entry-header,
body.home .ast-container > article > .entry-header,
body.home .post-thumb-img-content {
  display: none !important;
}

body.home .ast-container,
body.home .site-content > .ast-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home .entry-content {
  margin-top: 0 !important;
}

/* ─── Hero Swiper (custom, no Spectra) ───────────────────────────────── */
.weco-hero-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.weco-hero-swiper.swiper {
  list-style: none;
  padding: 0;
}

.weco-hero-swiper .swiper-wrapper {
  display: flex;
  width: 100%;
}

.weco-hero-swiper .swiper-slide {
  flex-shrink: 0;
  width: 100% !important;
  height: auto;
}

.weco-hero-swiper .weco-hero-slide.wp-block-cover {
  min-height: clamp(560px, 70vh, 720px);
  width: 100%;
  margin: 0;
}

/* Fallback si swiper no inicializa: solo mostrar el primer slide */
.weco-hero-swiper--no-js .swiper-slide:not(:first-child) {
  display: none;
}

.weco-hero-pagination.swiper-pagination {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  width: auto !important;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}

.weco-hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgb(255 255 255 / 50%);
  opacity: 1;
  border-radius: 999px;
  transition: width 250ms ease, background 250ms ease;
}

.weco-hero-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 28px;
}

/* ─── Footer custom ──────────────────────────────────────────────────── */
.weco-footer {
  background: var(--navy);
  color: rgb(255 255 255 / 70%);
  margin-top: clamp(2rem, 4vw, 4rem);
}

.weco-footer__inner {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
  padding-block: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.weco-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.weco-footer p {
  color: rgb(255 255 255 / 65%);
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

.weco-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.weco-footer a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
  transition: color 180ms ease;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.55;
}

.weco-footer a:hover {
  color: var(--gold);
}

.weco-footer__brand .weco-footer__logo {
  display: block;
  max-width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.1rem;
}

.weco-footer__brand .weco-footer__title {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.weco-footer__contact svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.weco-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: var(--ink);
}

.weco-footer__bottom-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
  padding-block: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgb(255 255 255 / 50%);
  font-size: 0.85rem;
}

.weco-footer__bottom-inner a {
  color: rgb(255 255 255 / 75%);
}

.weco-footer__bottom-inner a:hover {
  color: var(--gold);
}

/* Esconder el footer default de Astra cuando exista weco-footer */
.site .ast-footer-bottom-bar,
.site footer.site-footer:not(.weco-footer) {
  display: none !important;
}

@media (max-width: 980px) {
  .weco-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .weco-footer__inner {
    grid-template-columns: 1fr;
    padding-block: 3rem 1.5rem;
  }
  .weco-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Contact card rows ──────────────────────────────────────────────── */
.weco-contact-card .weco-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.weco-contact-card .weco-contact-row:last-child {
  margin-bottom: 0;
}

.weco-contact-card .weco-contact-icon {
  background: rgb(248 201 41 / 16%);
  border-radius: 10px;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.weco-contact-card .weco-contact-row > div {
  color: var(--text);
  line-height: 1.6;
}

.weco-contact-card .weco-contact-row strong {
  color: var(--ink);
  font-weight: 900;
}

.weco-contact-card .weco-contact-row a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 700;
}

.weco-contact-card .weco-contact-row a:hover {
  color: var(--gold);
}

/* ─── Benefit cards: icono encima ────────────────────────────────────── */
.weco-benefit-card {
  text-align: center;
}

.weco-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgb(248 201 41 / 16%);
  border-radius: 12px;
  color: var(--gold-dark);
  margin: 0 auto 1.2rem;
}

.weco-card-icon {
  width: 32px;
  height: 32px;
}

/* ─── Contact form (shortcode weco_contact_form) ─────────────────────── */
.weco-form {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.weco-form__success {
  background: rgb(34 197 94 / 12%);
  border-left: 4px solid #22c55e;
  color: #14532d;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

.weco-form__error {
  background: rgb(239 68 68 / 12%);
  border-left: 4px solid #ef4444;
  color: #7f1d1d;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

.weco-form__field {
  display: grid;
  gap: 0.45rem;
}

.weco-form__field > span {
  color: var(--ink);
  font-weight: 900;
  font-size: 0.92rem;
}

.weco-form__field input,
.weco-form__field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.weco-form__field textarea {
  min-height: 132px;
  resize: vertical;
  font-family: inherit;
}

.weco-form__field input:focus,
.weco-form__field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgb(248 201 41 / 18%);
  outline: 0;
}

.weco-form__submit {
  align-items: center;
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow-gold);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  font-family: inherit;
  font-size: 1rem;
  gap: 0.55rem;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.55rem;
  transition: transform 180ms ease, background 180ms ease;
  justify-self: start;
}

.weco-form__submit:hover {
  transform: translateY(-2px);
  background: var(--gold-dark);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .weco-heading-line.is-left {
    margin-inline: auto;
  }
  .weco-catalog-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .weco-whatsapp-fab {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
  .weco-whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
}
