/*
Theme Name: Hello Elementor Child — Healthy Wifey
Description: Capa premium de Healthy Wifey sobre Hello Elementor + WooCommerce.
Template: hello-elementor
Version: 1.0.0
*/

/* Los tokens de marca (:root) y las fuentes vienen de healthy-wifey-core (hw-front.css). */

/* ============ Base ============ */
body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--hw-sans);
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--hw-serif);font-weight:400;color:var(--ink);letter-spacing:-.01em;}
a{color:var(--plum-700);}
.page-header .entry-title, h1.entry-title{font-size:clamp(30px,6vw,44px);}

/* contenedor cómodo */
.site-main, main.site-main{max-width:1120px;margin-inline:auto;padding-inline:20px;}

/* ============ Botones Woo ============ */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce button.button.alt,
.wc-block-components-button, .elementor-button{
  background:var(--terracotta)!important;
  color:#FFF7F3!important;
  border:none!important;
  border-radius:999px!important;
  padding:13px 26px!important;
  font-weight:600!important;
  font-family:var(--hw-sans)!important;
  font-size:15px!important;
  transition:background .16s ease, transform .16s cubic-bezier(.34,1.56,.64,1);
  box-shadow:0 2px 6px rgba(42,31,36,.05), 0 10px 28px rgba(134,101,121,.07);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover{
  background:var(--terracotta-700)!important;color:#fff!important;
}
.woocommerce a.button:active, .woocommerce button.button:active{transform:scale(.97);}
.woocommerce a.button.hw-secondary{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;}

/* ============ Grid de tienda ============ */
/* WooCommerce trae un clearfix ::before/::after (content:" ";display:table) en
   ul.products. Pensado para float, pero en un contenedor grid/flex se vuelven
   ITEMS reales y ocupan celdas → hueco en blanco antes del primer producto. */
.woocommerce ul.products::before,
.woocommerce ul.products::after{content:none!important;display:none!important;}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,1fr);gap:16px;margin:0 0 40px!important;}
@media(min-width:640px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr);}}
@media(min-width:900px){.woocommerce ul.products{grid-template-columns:repeat(4,1fr);gap:20px;}}
.woocommerce ul.products li.product{
  width:auto!important;margin:0!important;padding:0!important;
  background:var(--surface);border:1px solid var(--line);border-radius:18px;
  overflow:hidden;box-shadow:0 1px 2px rgba(42,31,36,.05);
  transition:transform .24s cubic-bezier(.22,1,.36,1), box-shadow .24s;
  display:flex;flex-direction:column;
}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 2px 6px rgba(42,31,36,.05),0 10px 28px rgba(134,101,121,.12);}
.woocommerce ul.products li.product a img{margin:0!important;aspect-ratio:1;object-fit:cover;width:100%;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--hw-serif);font-size:17px!important;font-weight:400;padding:14px 15px 4px!important;line-height:1.15;
}
.woocommerce ul.products li.product .price{
  color:var(--ink)!important;font-weight:600;font-size:15px!important;padding:0 15px;font-variant-numeric:tabular-nums;
}
.woocommerce ul.products li.product .button{margin:12px 15px 16px!important;text-align:center;}
.woocommerce ul.products li.product .onsale{
  background:var(--terracotta);border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.03em;
  text-transform:uppercase;padding:5px 10px;min-height:0;min-width:0;line-height:1;top:12px;left:12px;right:auto;
}
.woocommerce .woocommerce-result-count{color:var(--ink-faint);font-size:13px;}
.woocommerce .woocommerce-ordering select{
  border:1.5px solid var(--line);border-radius:999px;padding:9px 16px;background:var(--surface);
  font-family:var(--hw-sans);font-size:13.5px;color:var(--ink);
}

/* ============ Producto individual ============ */
.single-product div.product{position:relative;}
.woocommerce div.product div.images,
.woocommerce div.product div.summary{
  width:100%!important;float:none!important;margin-bottom:0!important;
}
.hw-single-badge{position:absolute!important;top:16px;left:16px;z-index:3;}
/* meta: ocultar SKU (es el slug interno) */
.woocommerce div.product .product_meta .sku_wrapper{display:none;}
.woocommerce div.product div.images img{border-radius:26px;}

/* — Escritorio: 2 columnas, galería en el flujo normal (nada pegajoso:
     seguía el scroll y se leía como una imagen flotante) — */
@media(min-width:900px){
  .single-product div.product{
    display:grid!important;grid-template-columns:1fr 1fr;gap:16px 48px;align-items:start;
  }
  .woocommerce div.product div.images{position:relative!important;top:auto!important;z-index:auto!important;}
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related.products,
  .woocommerce div.product .up-sells{grid-column:1/-1;}
}

/* — Móvil: una sola columna, NADA pegajoso (evita que la galería flote
     sobre el contenido). El !important vence al inline de Woo. — */
@media(max-width:899px){
  .single-product div.product{display:block!important;}
  .woocommerce div.product div.images{
    position:static!important;z-index:auto!important;margin-bottom:20px!important;
  }
  .woocommerce div.product div.summary{margin-top:0!important;}
  .single-product form.cart{display:flex;flex-direction:column;gap:12px;}
  .single-product form.cart div.quantity{align-self:flex-start;}
}
.woocommerce div.product .product_title{font-size:clamp(26px,5vw,38px);line-height:1.05;}
.woocommerce div.product p.price{
  color:var(--ink)!important;font-size:20px;font-weight:600;font-family:var(--hw-sans);font-variant-numeric:tabular-nums;
}
.woocommerce div.product .woocommerce-product-details__short-description{
  color:var(--ink-soft);font-size:15px;line-height:1.6;max-width:46ch;
}
.woocommerce div.product form.cart{margin-top:8px;}
.woocommerce div.product form.cart div.quantity .qty{
  border:1.5px solid var(--line);border-radius:999px;height:48px;width:70px;
  font-family:var(--hw-sans);font-size:15px;background:var(--surface);
}
.woocommerce div.product form.cart .button{height:48px;}
.woocommerce div.product .product_meta{color:var(--ink-faint);font-size:12.5px;border-top:1px solid var(--line-soft);padding-top:14px;margin-top:20px;}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0!important;margin-bottom:0!important;}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-color:var(--line)!important;}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  background:transparent!important;border:none!important;border-radius:0!important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--ink-faint);font-weight:600;}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--terracotta);}
.woocommerce div.product .woocommerce-tabs .panel{color:var(--ink-soft);line-height:1.6;}
.related.products > h2, .woocommerce .cross-sells > h2{font-size:24px;margin:16px 0 18px;}

/* ============ Carrito ============ */
.woocommerce table.shop_table{
  border:1px solid var(--line)!important;border-radius:18px;overflow:hidden;border-collapse:separate!important;border-spacing:0;
  background:var(--surface);
}
.woocommerce table.shop_table th{font-family:var(--hw-sans);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint);background:var(--surface-warm);}
.woocommerce table.shop_table td{border-top:1px solid var(--line-soft)!important;vertical-align:middle;}
.woocommerce table.shop_table td.product-name{font-weight:600;}
.woocommerce table.shop_table dl.variation{margin:6px 0 0;}
.woocommerce table.shop_table dl.variation dt{font-weight:600;color:var(--ink);margin:0;padding:0;font-size:12px;}
.woocommerce table.shop_table dl.variation dd{margin:0 0 3px;padding:0;color:var(--ink-soft);font-size:12px;}
.woocommerce table.shop_table img{border-radius:12px;width:60px!important;}
.woocommerce a.remove{color:var(--ink-faint)!important;}
.woocommerce a.remove:hover{background:var(--terracotta);color:#fff!important;}
.woocommerce .cart_totals h2, .woocommerce #order_review_heading{font-size:24px;}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{font-size:16px!important;}

/* ============ Checkout ============ */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single{
  border:1.5px solid var(--line)!important;border-radius:12px!important;padding:12px 15px!important;
  background:var(--surface)!important;font-family:var(--hw-sans)!important;font-size:15px!important;color:var(--ink)!important;
  height:auto!important;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus{
  outline:none!important;border-color:var(--plum)!important;box-shadow:0 0 0 3px var(--thistle-tint)!important;
}
.woocommerce form .form-row label{font-size:12.5px;font-weight:600;color:var(--ink-soft);}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:1.6!important;color:var(--ink)!important;}
.woocommerce-checkout #payment{background:var(--surface-warm)!important;border-radius:18px;border:1px solid var(--line);}
.woocommerce-checkout #payment div.payment_box{background:var(--thistle-tint)!important;color:var(--ink-soft);border-radius:12px;}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--thistle-tint)!important;}
#add_payment_method #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line)!important;}

/* ============ Mi cuenta ============ */
.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%;}

/* — Navegación: pastillas con icono; móvil = tira con scroll horizontal — */
.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%;margin-bottom:22px;}
.hw-acnav ul{
  display:flex;gap:8px;list-style:none;margin:0;padding:2px;
  overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.hw-acnav ul::-webkit-scrollbar{display:none;}
.hw-acnav li{margin:0;flex:0 0 auto;}
.hw-acnav li a{
  display:inline-flex;align-items:center;gap:7px;min-height:40px;
  padding:9px 16px;border-radius:999px;background:var(--surface);
  border:1px solid var(--line);font-size:13.5px;font-weight:600;color:var(--ink-soft);text-decoration:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
  white-space:nowrap;
}
.hw-acnav li a:active{transform:scale(.97);}
.hw-acnav li.is-active a,
.hw-acnav li a:hover{background:var(--plum);border-color:var(--plum);color:#fff;}
.hw-acnav li a:focus-visible{outline:2px solid var(--plum);outline-offset:2px;}
/* "Salir": acción destructiva, separada y en tono discreto */
.hw-acnav li.woocommerce-MyAccount-navigation-link--customer-logout{margin-left:auto;}
.hw-acnav li.woocommerce-MyAccount-navigation-link--customer-logout a{
  background:transparent;border-color:transparent;color:var(--ink-faint);
}
.hw-acnav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover{
  background:var(--terracotta-tint);border-color:var(--terracotta-tint);color:var(--terracotta);
}
@media(min-width:900px){.hw-acnav ul{flex-wrap:wrap;overflow:visible;}}

/* — Panel: saludo + tarjeta Glow + accesos rápidos — */
.hw-acgreet h2{font-family:var(--hw-serif);font-weight:400;font-size:clamp(24px,6vw,32px);margin:0 0 2px;color:var(--ink);}
.hw-acgreet p{margin:0 0 18px;color:var(--ink-faint);font-size:14px;}

.hw-acglow{
  display:flex;align-items:center;gap:14px;text-decoration:none;
  background:linear-gradient(135deg,var(--plum) 0%,#4d3745 100%);
  border-radius:18px;padding:16px 18px;margin-bottom:14px;
  transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s ease;
}
.hw-acglow:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(134,101,121,.28);}
.hw-acglow-medal{flex:0 0 auto;display:flex;}
.hw-acglow-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;}
.hw-acglow-tier{font-family:var(--hw-serif);font-size:18px;color:#fff;line-height:1.1;}
.hw-acglow-bar{display:block;height:7px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden;}
.hw-acglow-bar b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--peach),var(--terracotta));}
.hw-acglow-pts{font-size:11.5px;color:rgba(255,255,255,.75);}
.hw-acglow-go{flex:0 0 auto;color:rgba(255,255,255,.6);}

.hw-acgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.hw-accard{
  display:flex;flex-direction:column;gap:4px;text-decoration:none;
  background:var(--surface);border:1px solid var(--line-soft);border-radius:18px;
  padding:16px;min-height:96px;
  transition:transform .2s cubic-bezier(.22,1,.36,1),border-color .16s ease;
}
.hw-accard:hover{transform:translateY(-2px);border-color:var(--line);}
.hw-accard svg{color:var(--terracotta);margin-bottom:4px;}
.hw-accard b{font-size:14.5px;color:var(--ink);font-weight:600;}
.hw-accard span{font-size:12px;color:var(--ink-faint);line-height:1.4;}
@media(min-width:640px){.hw-acgrid{grid-template-columns:repeat(4,1fr);}}

/* — Mis pedidos: tarjetas con chip de estado — */
.hw-orders{display:flex;flex-direction:column;gap:10px;}
.hw-ocard{
  display:block;text-decoration:none;
  background:var(--surface);border:1px solid var(--line-soft);border-radius:18px;
  padding:15px 16px;
  transition:transform .2s cubic-bezier(.22,1,.36,1),border-color .16s ease;
}
.hw-ocard:hover{transform:translateY(-2px);border-color:var(--line);}
.hw-ocard-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.hw-ocard-id{font-weight:700;font-size:14px;color:var(--ink);}
.hw-ostatus{
  font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  border-radius:999px;padding:4px 11px;line-height:1.3;
}
.hw-ostatus.st-processing{background:#F7E3D3;color:#8a4a35;}
.hw-ostatus.st-completed{background:#E4E8D4;color:#5a6242;}
.hw-ostatus.st-on-hold{background:var(--thistle-tint);color:var(--plum);}
.hw-ostatus.st-pending{background:var(--cream-deep);color:var(--ink-soft);}
.hw-ostatus.st-cancelled,.hw-ostatus.st-refunded{background:var(--cream-deep);color:var(--ink-faint);}
.hw-ostatus.st-failed{background:var(--terracotta-tint);color:var(--terracotta);}
.hw-ocard-items{margin-top:8px;font-size:14px;color:var(--ink);line-height:1.45;}
.hw-ocard-items .more{color:var(--ink-faint);font-size:12.5px;}
.hw-ocard-foot{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  margin-top:9px;padding-top:9px;border-top:1px solid var(--line-soft);
}
.hw-ocard-date{font-size:12px;color:var(--ink-faint);}
.hw-ocard-total{font-weight:700;font-size:14.5px;color:var(--ink);}
.hw-ocard-actions{display:flex;gap:8px;margin-top:10px;}
.hw-oact{
  display:inline-flex;align-items:center;min-height:34px;padding:6px 14px;
  border-radius:999px;font-size:12.5px;font-weight:600;cursor:pointer;
  background:var(--cream-deep);color:var(--ink-soft);
  transition:background .16s ease,color .16s ease;
}
.hw-oact:hover{background:var(--plum);color:#fff;}
.hw-oact.pay{background:var(--terracotta);color:#FFF7F3;}
.hw-oact.pay:hover{background:var(--terracotta-700);}
.hw-oact.cancel:hover{background:var(--terracotta-tint);color:var(--terracotta);}
.hw-oact:focus-visible{outline:2px solid var(--plum);outline-offset:2px;}
.hw-opag{display:flex;justify-content:center;gap:10px;margin-top:16px;}
.hw-opag .hw-drawer-btn{display:inline-block;}

.hw-oempty{text-align:center;padding:48px 16px;color:var(--ink-faint);}
.hw-oempty svg{margin-bottom:12px;}
.hw-oempty p{font-size:14.5px;margin:0 0 18px;}
.hw-oempty .hw-drawer-btn{display:inline-block;}

/* — Formularios de cuenta (direcciones, datos, acceso) — */
.woocommerce-account .woocommerce-MyAccount-content fieldset{border:none;padding:0;margin:22px 0 0;}
.woocommerce-account .woocommerce-MyAccount-content fieldset legend{
  font-family:var(--hw-serif);font-size:19px;color:var(--ink);margin-bottom:10px;
}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .woocommerce-Address{
  background:var(--surface);border:1px solid var(--line-soft);border-radius:18px;padding:18px;
}
.woocommerce-account .woocommerce-Address address{font-style:normal;color:var(--ink-soft);line-height:1.65;}
.woocommerce-account .woocommerce-Address-title h2,.woocommerce-account .woocommerce-Address-title h3{
  font-family:var(--hw-serif);font-weight:400;font-size:19px;
}
.woocommerce-account .woocommerce-Address-title .edit{font-size:12.5px;font-weight:600;color:var(--terracotta);}
.woocommerce-account .col2-set{display:grid;gap:12px;}
@media(min-width:640px){.woocommerce-account .col2-set{grid-template-columns:1fr 1fr;}}
.woocommerce-account .col2-set .col-1,.woocommerce-account .col2-set .col-2{width:100%!important;float:none!important;max-width:none!important;}

/* acceso / registro como tarjeta centrada */
.woocommerce-account:not(.logged-in) .woocommerce > h2{
  font-family:var(--hw-serif);font-weight:400;text-align:center;
}
.woocommerce-account form.login,.woocommerce-account form.register,
.woocommerce-ResetPassword{
  max-width:420px;margin:0 auto;border:1px solid var(--line-soft)!important;
  border-radius:18px!important;background:var(--surface);padding:24px!important;
}

/* ============ Avisos ============ */
.woocommerce-message, .woocommerce-info, .woocommerce-error{
  border-radius:14px!important;border-top:none!important;background:var(--surface)!important;
  border:1px solid var(--line)!important;color:var(--ink)!important;font-size:14px;
  box-shadow:0 1px 2px rgba(42,31,36,.05);
}
.woocommerce-message::before{color:var(--matcha-deep)!important;}
.woocommerce-info::before{color:var(--plum)!important;}
.woocommerce-error{border-color:var(--terracotta-tint)!important;}
.woocommerce-error::before{color:var(--terracotta)!important;}

/* ============ Migas / extras ============ */
.woocommerce .woocommerce-breadcrumb{font-size:12px;color:var(--ink-faint);text-transform:uppercase;letter-spacing:.06em;}
.woocommerce .woocommerce-breadcrumb a{color:var(--ink-faint);}
.woocommerce nav.woocommerce-pagination ul{border:none!important;display:flex;gap:6px;justify-content:center;}
.woocommerce nav.woocommerce-pagination ul li{border:none!important;}
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span{
  border-radius:999px;min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  color:var(--ink-soft);font-weight:600;
}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--terracotta);color:#fff;}

/* precio formato es-MX */
.woocommerce .price .woocommerce-Price-amount{font-variant-numeric:tabular-nums;}

/* estrella de reviews fuera de la marca — ocultamos rating en loop */
.woocommerce ul.products li.product .star-rating{display:none;}

/* ============ Plantillas Elementor (clases hw-*) ============ */

/* Header */
.hw-eheader{
  position:sticky;top:0;z-index:90;
  background:rgba(249,242,239,.82);
  backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid var(--line);
}
.hw-eheader .elementor-widget-container{display:flex;align-items:center;}
.hw-lockup h1,.hw-lockup h2,.hw-lockup .elementor-heading-title{
  font-family:var(--hw-serif);font-size:24px;color:var(--plum);line-height:1;margin:0;
}
.hw-lockup .hw-script{font-family:var(--hw-script);font-size:30px;margin-left:5px;margin-right:-3px;}
/* logo oficial: sólo la "w" es script; "ifey." sigue en serif */
.hw-lockup .hw-wrest{font-family:var(--hw-serif);}
.hw-eheader .elementor-nav-menu a{
  font-family:var(--hw-sans);font-size:14px;font-weight:600;color:var(--ink-soft);
}
.hw-eheader .elementor-nav-menu a:hover,.hw-eheader .elementor-nav-menu .current-menu-item a{color:var(--terracotta);}
.hw-eheader .elementor-menu-cart__toggle .elementor-button{
  background:transparent!important;color:var(--plum)!important;box-shadow:none;padding:8px!important;
}
.hw-eheader .elementor-menu-cart__toggle .elementor-button-icon{font-size:20px;}

/* — Móvil: ☰ + logo a la izquierda, carrito a la derecha —
   Los widgets viven dentro de .e-con-inner (contenedor "boxed" de Elementor). */
@media(max-width:899px){
  .hw-eheader > .e-con-inner{
    flex-direction:row!important;flex-wrap:nowrap!important;
    align-items:center!important;gap:10px!important;
  }
  .hw-eheader .hw-emenu{order:-1!important;width:max-content!important;flex:0 0 auto!important;}
  /* el desplegable se posiciona respecto al widget: forzarlo a todo el ancho */
  .hw-eheader .hw-emenu .elementor-nav-menu--dropdown{
    /* left compensa el padding lateral del header (20px) para que el
       desplegable quede a ras del viewport y no se desborde */
    position:absolute!important;top:100%!important;left:-20px!important;
    width:100vw!important;max-width:100vw!important;
    background:var(--cream)!important;border-bottom:1px solid var(--line);
    box-shadow:0 12px 30px rgba(42,31,36,.12);
  }
  .hw-eheader .hw-emenu .elementor-nav-menu--dropdown a{
    font-family:var(--hw-sans);font-size:15px;font-weight:600;color:var(--ink)!important;
    padding:15px 22px!important;background:transparent!important;
  }
  .hw-eheader .hw-emenu .elementor-nav-menu--dropdown a:hover{color:var(--terracotta)!important;background:var(--surface-warm)!important;}
  .hw-eheader .hw-lockup{order:0!important;width:auto!important;flex:1 1 auto!important;text-align:left!important;}
  .hw-eheader .elementor-widget-woocommerce-menu-cart{
    order:1!important;width:auto!important;flex:0 0 auto!important;margin-left:auto!important;
  }
  /* el toggle del menú como botón limpio */
  .hw-eheader .elementor-menu-toggle{
    background:transparent!important;color:var(--plum)!important;padding:4px!important;
  }
  .hw-eheader .hw-lockup .elementor-heading-title{font-size:21px;}
  .hw-eheader .hw-lockup .hw-script{font-size:27px;}
}

/* Hero */
.hw-hero{
  min-height:min(82svh,680px);border-radius:0 0 26px 26px;overflow:hidden;position:relative;
  display:flex;align-items:flex-end;
}
/* Desktop: más altura y contenido en caja centrada (no pegado al borde) */
@media(min-width:900px){
  .hw-hero{
    min-height:min(88vh,800px);
    padding-left:max(40px, calc(50% - 548px))!important;
    padding-right:max(40px, calc(50% - 548px))!important;
    padding-bottom:72px!important;
  }
}
/* El CSS de Elementor carga después del tema hijo: forzamos columna
   en nuestras secciones (sin esto los widgets fluyen en fila). */
.hw-hero, .hw-clubteaser, .hw-feat,
.hw-quote, .e-con:has(> .hw-sec-title), .e-con:has(.hw-sec-title){
  display:flex!important;flex-direction:column!important;
}
.hw-hero{align-items:flex-start!important;justify-content:flex-end!important;gap:14px!important;}
.hw-feat{align-items:flex-start!important;justify-content:flex-end!important;gap:6px!important;}
.hw-clubteaser{align-items:flex-start!important;gap:8px!important;}
.hw-quote{align-items:center!important;}
.e-con:has(.hw-sec-title){align-items:flex-start!important;}
/* tarjetas destacadas: lado a lado en escritorio, apiladas en móvil */
@media(max-width:899px){
  .e-con:has(> .hw-feat){flex-direction:column!important;}
  .hw-feat{width:100%!important;}
}
/* Velo negro → transparente: el texto blanco tiene que leerse sobre
   cualquier foto del carrusel (arriba también, por las barras de progreso). */
.hw-hero::before{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(0deg,  rgba(0,0,0,.78) 0%, rgba(0,0,0,.46) 26%, rgba(0,0,0,0) 58%),
    linear-gradient(180deg,rgba(0,0,0,.40) 0%, rgba(0,0,0,0) 22%);
  pointer-events:none;
}
.hw-hero > .e-con-inner, .hw-hero > div{position:relative;z-index:1;}
.hw-hero .hw-eyebrow .elementor-heading-title{
  font-family:var(--hw-sans);font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(255,255,255,.86);font-weight:600;
}
.hw-hero h1.elementor-heading-title, .hw-hero .hw-h1 .elementor-heading-title{
  font-family:var(--hw-serif);font-size:clamp(38px,9vw,64px);line-height:1;color:#fff;
  text-shadow:0 2px 30px rgba(42,31,36,.35);
}
.hw-hero .hw-script{font-family:var(--hw-script);font-size:1.18em;font-weight:400;}
.hw-hero .hw-lead .elementor-heading-title{
  font-family:var(--hw-sans);font-size:clamp(15px,4vw,18px);color:rgba(255,255,255,.92);font-weight:400;
}

/* Tarjetas destacadas */
.hw-feat{
  min-height:230px;border-radius:26px;overflow:hidden;position:relative;display:flex;align-items:flex-end;
  box-shadow:0 2px 6px rgba(42,31,36,.05),0 10px 28px rgba(134,101,121,.07);
  transition:transform .24s cubic-bezier(.22,1,.36,1);
}
.hw-feat:hover{transform:translateY(-3px);}
.hw-feat::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(0,0,0,.80) 0%,rgba(0,0,0,.42) 34%,rgba(0,0,0,0) 72%);
}
.hw-feat > .e-con-inner, .hw-feat > div{position:relative;z-index:1;}
/* Toda la tarjeta es clicable (el enlace lo inyecta hw-front.js). El enlace va
   DEBAJO del contenido; .e-con-inner cubre la tarjeta entera y se comía los
   clics, así que lo dejamos "transparente" al puntero y solo el botón real los
   vuelve a capturar. Subir el enlace con z-index no sirve: .e-con-inner crea su
   propio contexto de apilamiento y el botón no puede salir de él. */
.hw-feat .hw-feat-link{position:absolute;inset:0;z-index:1;display:block;border-radius:inherit;}
.hw-feat > .e-con-inner, .hw-feat > .e-con-inner > *{pointer-events:none;}
.hw-feat .elementor-button{pointer-events:auto;}
.hw-feat .elementor-heading-title{font-family:var(--hw-serif);color:#fff;font-size:26px;}
.hw-feat .hw-feat-sub .elementor-heading-title{font-family:var(--hw-sans);font-size:13px;color:rgba(255,255,255,.9);font-weight:400;}
/* botón de tarjeta = texto + flecha circular (port del chip-row original) */
.hw-feat .elementor-button{
  background:transparent!important;box-shadow:none!important;border:none!important;
  padding:6px 0!important;color:#fff!important;font-size:13.5px!important;
  display:inline-flex;align-items:center;gap:10px;
}
.hw-feat .elementor-button::after{
  content:"";width:34px;height:34px;border-radius:50%;flex:0 0 auto;
  background-color:rgba(255,255,255,.16);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:16px;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  transition:background-color .16s ease, transform .24s cubic-bezier(.22,1,.36,1);
}
.hw-feat:hover .elementor-button::after{background-color:rgba(255,255,255,.28);transform:translateX(3px);}

/* Título de sección */
.hw-sec-eyebrow .elementor-heading-title{
  font-family:var(--hw-sans);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--ink-faint);font-weight:600;
}
.hw-sec-title .elementor-heading-title{font-family:var(--hw-serif);font-size:clamp(24px,5.4vw,34px);}

/* Club teaser — tarjeta centrada, no banda de borde a borde */
.hw-clubteaser{
  background:linear-gradient(160deg,var(--plum) 0%,var(--plum-700) 58%,#4d3745 100%)!important;
  border-radius:34px;overflow:hidden;position:relative;
  box-shadow:0 8px 20px rgba(42,31,36,.08),0 24px 60px rgba(134,101,121,.12);
  max-width:880px!important;
  width:calc(100% - 40px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(min-width:900px){
  .hw-clubteaser{padding:46px 52px 42px!important;}
  .hw-clubteaser .elementor-heading-title{max-width:22ch;}
  .hw-clubteaser .hw-club-sub .elementor-heading-title{max-width:44ch;}
}
.hw-clubteaser::before{
  content:"";position:absolute;top:-40%;right:-20%;width:70%;height:120%;
  background:radial-gradient(circle,rgba(233,186,152,.4),transparent 62%);pointer-events:none;
}
.hw-clubteaser .elementor-heading-title{color:#fff;font-family:var(--hw-serif);}
.hw-clubteaser .hw-club-eyebrow .elementor-heading-title{
  font-family:var(--hw-sans);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.72);font-weight:600;
}
.hw-clubteaser .hw-club-sub .elementor-heading-title{
  font-family:var(--hw-sans);font-size:13.5px;color:rgba(255,255,255,.82);font-weight:400;line-height:1.55;
}

/* Cita — medida de lectura acotada */
.hw-quote .elementor-heading-title{
  font-family:var(--hw-serif);font-style:italic;font-size:clamp(22px,5.6vw,32px);line-height:1.25;color:var(--ink);
  max-width:24ch;margin-inline:auto;
}
.hw-quote .hw-cite .elementor-heading-title{
  font-family:var(--hw-sans);font-style:normal;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-faint);
}

/* Footer */
.hw-efooter{border-top:1px solid var(--line);background:var(--cream);}
.hw-efooter .elementor-heading-title{font-family:var(--hw-serif);color:var(--plum);}
.hw-efooter .hw-foot-note .elementor-heading-title{
  font-family:var(--hw-sans);font-size:12px;color:var(--ink-faint);
}
.hw-efooter .elementor-icon-list-item a{font-family:var(--hw-sans);font-size:13.5px;color:var(--ink-soft);}
.hw-efooter .elementor-icon-list-item a:hover{color:var(--terracotta);}
