/**
 * Valdi Theme — Override visual sobre storefront.css
 * Paleta y componentes inspirados en productosdentalesvaldi.com.mx
 * Carga DESPUES de storefront.css para que los overrides apliquen.
 */

:root {
  /* ═══════════════════ FASE 2 — Type scale semántica ═══════════════════
     Todos los valores son `clamp(min-mobile, viewport-vw, max-desktop)`.
     Mobile-first: el primer número es el tamaño en pantallas chicas,
     el último en desktop. El vw del medio produce escala fluida automática. */
  --fs-display-xl:  clamp(2.4rem, 7vw, 3.75rem);     /*  38 → 60px  Hero H1 */
  --fs-display-lg:  clamp(1.9rem, 5vw, 2.75rem);     /*  30 → 44px  Landing H1 / H2 grande */
  --fs-display-md:  clamp(1.6rem, 3.5vw, 2.25rem);   /*  26 → 36px  H2 principal */
  --fs-display-sm:  clamp(1.35rem, 2.4vw, 1.75rem);  /*  22 → 28px  H3 destacado */
  --fs-heading-lg:  clamp(1.15rem, 1.8vw, 1.375rem); /*  18 → 22px  Nombre producto grande, card destacada */
  --fs-heading-md:  clamp(1.0625rem, 1.3vw, 1.125rem); /* 17 → 18px  H4, títulos secundarios */
  --fs-heading-sm:  1rem;                             /*  16px       Labels, captions importantes */
  --fs-body-lg:     clamp(1rem, 1.1vw, 1.0625rem);   /*  16 → 17px  Lead paragraph */
  --fs-body-md:     1rem;                             /*  16px       Body (base) */
  --fs-body-sm:     0.875rem;                         /*  14px       Secundario, metadata */
  --fs-caption:     0.8125rem;                        /*  13px       Badges, tags, fechas */
  --fs-micro:       0.75rem;                          /*  12px       Mínimo legal — eyebrows */

  --valdi-primary:         var(--primary-color,   #142468);
  --valdi-primary-light:   var(--primary-light,   #1464a8);
  --valdi-primary-dark:    var(--primary-dark,    #1b2b66);
  --valdi-primary-darkest: var(--primary-darkest, #090c21);
  --valdi-neutral-100: #F5F6F6;
  --valdi-neutral-200: #E2E3E4;
  --valdi-neutral-300: #B2B4B6;
  --valdi-neutral-400: #6E7277;
  --valdi-neutral-500: #3E4349;
  --valdi-neutral-600: #25282C;
  --valdi-neutral-700: #0C0D0F;
  --valdi-white: #FFFFFF;
  --valdi-accent:          var(--accent-color,    #1464a8);
  --valdi-success:         var(--success-color,   #25d366);

  /* Override de variables generales del storefront */
  --color-primary: var(--valdi-primary);
  --color-primary-dark: var(--valdi-primary-dark);
  --color-accent: var(--valdi-primary-light);
  --color-text: var(--valdi-neutral-600);
  --color-text-muted: var(--valdi-neutral-400);
  --color-bg: var(--valdi-white);
  --color-bg-soft: var(--valdi-neutral-100);
  --color-border: var(--valdi-neutral-200);
}

body, .store-body {
  font-family: 'Calibri', 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--valdi-neutral-600);
  background: var(--valdi-white);
}

/* ═══════════════════════════════════════════════════════════════
   FASE 1 — Tipografía best-practice e-commerce
   ═══════════════════════════════════════════════════════════════ */

/* 1) Body a 16px (antes era 14px). Line-height relaxed para mejor lectura. */
body.store-body {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* 2) Inputs a 16px en mobile (evita auto-zoom de iOS Safari).
      Cubre el buscador del header, textareas y todos los .store-input del checkout/registro. */
.store-input,
.store-select,
.store-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea,
select {
    font-size: 16px !important;
}
/* En desktop podemos bajar a 15px para no sentir inputs "gordos" */
@media (min-width: 1024px) {
    .store-input, .store-select, .store-textarea,
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="password"], input[type="search"], input[type="number"],
    input[type="url"], textarea, select {
        font-size: 15px !important;
    }
}

/* 3) Botones a 15px (antes 14px). Mantenemos 14px en .store-btn--sm explícitos. */
.store-btn:not(.store-btn--sm),
.valdi-btn:not(.valdi-btn--sm) {
    font-size: 15px !important;
}
.store-btn--lg, .valdi-btn--lg { font-size: 16px !important; }

/* 4) Precio del product-card: el elemento MÁS grande de la card (regla de oro e-commerce) */
.product-card__price-current {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -.3px;
    color: var(--valdi-primary) !important;
}
.product-card__price-original {
    font-size: 13px !important;
    font-weight: 500 !important;
}
/* Nombre del producto: más chico que el precio para jerarquía */
.product-card__name {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--valdi-neutral-700) !important;
}
/* Versión detalle: precio muy grande */
.product-detail__price-current,
.product-detail-price__current {
    font-size: clamp(26px, 4vw, 32px) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -.5px;
    color: var(--valdi-primary) !important;
}

/* Responsive: en mobile bajamos precio y ajustamos nombre */
@media (max-width: 639px) {
    .product-card__price-current { font-size: 18px !important; }
    .product-card__name { font-size: 13px !important; }
    body.store-body { font-size: 15px !important; line-height: 1.55 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   FASE 2 — Aplicar tokens a elementos HTML semánticos globales
   Los valores ya vienen con clamp() fluido desde las variables.
   ═══════════════════════════════════════════════════════════════ */

/* Jerarquía por defecto de títulos en todas las páginas del storefront */
.store-body h1 { font-size: var(--fs-display-lg); line-height: 1.1;  letter-spacing: -.5px; }
.store-body h2 { font-size: var(--fs-display-md); line-height: 1.15; letter-spacing: -.4px; }
.store-body h3 { font-size: var(--fs-display-sm); line-height: 1.2;  letter-spacing: -.2px; }
.store-body h4 { font-size: var(--fs-heading-md); line-height: 1.3; }
.store-body h5 { font-size: var(--fs-heading-sm); line-height: 1.4; }
.store-body h6 { font-size: var(--fs-body-md);    line-height: 1.4; }

/* Párrafos: body-md por defecto */
.store-body p  { font-size: var(--fs-body-md); line-height: 1.6; }
.store-body small { font-size: var(--fs-caption); }

/* Labels de formularios (checkout, registro, login) consistentes */
.store-body label,
.store-label { font-size: var(--fs-body-sm); font-weight: 600; }

/* Breadcrumb uniforme */
.store-body .store-breadcrumb,
.store-body .store-breadcrumb a { font-size: var(--fs-caption) !important; }

/* Tablas (carrito, mis-pedidos) con tipografía legible */
.store-body table { font-size: var(--fs-body-sm); }
.store-body table th { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .5px; }

/* 5) Eliminar tamaños < 12px — todos los badges/tags tienen mínimo 12px
      (WCAG 2.2 SC 1.4.4 + legibilidad mobile) */
.product-card__badge { font-size: 12px !important; font-weight: 700; letter-spacing: .3px; }
.product-card__stock { font-size: 12px !important; }

/* Stock-out debe ser claro y legible */
.product-card__stock--out { font-weight: 700 !important; }

/* Mejorar legibilidad de eyebrows y micro-copys (garantizar ≥12px) */
.store-breadcrumb,
.store-header__cart-badge,
.bottom-nav__badge {
    font-size: 12px !important;
}

/* Enlaces del footer: mínimo 14px (estaban en 13px en algunos lugares) */
.store-footer a,
.store-footer__contact-item {
    font-size: 14px !important;
    line-height: 1.6;
}

/* Títulos de sección: letter-spacing tight en tamaños grandes
   (más profesional, mejor jerarquía visual) */
.valdi-section__title,
.valdi-catslider__title,
.valdi-section__title--center {
    letter-spacing: -.5px !important;
}
@media (max-width: 639px) {
    .valdi-section__title,
    .valdi-catslider__title { font-size: 26px !important; letter-spacing: -.3px !important; }
}

/* Botones .store-btn del storefront: forzar paleta Valdi y texto legible
   (el `a:hover { color: var(--text-link-hover) }` global de storefront.css
    pisaba el color del texto cuando el boton era un <a>) */
.store-btn--primary,
.store-btn--primary:link,
.store-btn--primary:visited,
.store-btn--primary:hover,
.store-btn--primary:focus,
.store-btn--primary:active {
    background: linear-gradient(135deg, var(--valdi-primary) 0%, var(--valdi-primary-light) 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px -6px rgba(20,36,104,.4);
}
.store-btn--primary:hover:not(:disabled) {
    filter: brightness(1.08);
    box-shadow: 0 10px 26px -6px rgba(20,36,104,.55) !important;
}
.store-btn--primary i { color: inherit !important; }

.store-btn--outline,
.store-btn--outline:link,
.store-btn--outline:visited {
    background: transparent !important;
    color: var(--valdi-primary) !important;
    border: 2px solid var(--valdi-primary) !important;
}
.store-btn--outline:hover:not(:disabled) {
    background: var(--valdi-primary) !important;
    color: #ffffff !important;
}

.store-btn--text,
.store-btn--text:link,
.store-btn--text:visited,
.store-btn--text:hover {
    color: var(--valdi-primary) !important;
}
.store-btn--text:hover { text-decoration: underline; }

/* Catálogo: forzar 2 columnas en mobile (storefront.css pasaba a 1 col bajo 399px) */
@media (max-width: 639px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .product-card__title { font-size: var(--fs-caption); }
    .product-card__price { font-size: var(--fs-body-sm); }
}
/* Muy chico: mantenemos 2 pero con gap reducido */
@media (max-width: 340px) {
    .product-grid { gap: 8px; }
}

/* Bottom-nav: fijo con glassmorphism y siempre encima del contenido al scrollear */
@media (max-width: 1023px) {
    .store-body { padding-bottom: 76px; }  /* Espacio para que el contenido no quede tapado al final */
    .bottom-nav {
        z-index: 9000 !important;
        background: rgba(255,255,255,.92) !important;
        backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        border-top: 1px solid rgba(20,36,104,.1) !important;
        box-shadow: 0 -8px 30px -10px rgba(20,36,104,.2) !important;
    }
}

/* ========== TOP BAR (informativo, sobre el header) ========== */
.valdi-topbar {
  background: var(--valdi-primary);
  color: #ffffff !important;
  font-size: var(--fs-caption);
  padding: 8px 0;
}
.valdi-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.valdi-topbar a,
.valdi-topbar a:link,
.valdi-topbar a:visited,
.valdi-topbar a:hover,
.valdi-topbar a:active,
.valdi-topbar i { color: #ffffff !important; }

.valdi-topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  font-weight: 600;
}
.valdi-topbar__phone i { font-size: var(--fs-body-sm); }
.valdi-topbar__phone:hover { opacity: .85; }
.valdi-topbar__msg { opacity: .9; color: #ffffff; }

.valdi-topbar__social { display: inline-flex; gap: 8px; align-items: center; }
.valdi-topbar__social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  transition: background .15s ease, transform .15s ease;
  font-size: var(--fs-micro);
}
.valdi-topbar__social a:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
@media (max-width: 760px) {
  .valdi-topbar__msg { display: none; }
}

/* ========== HEADER STOREFRONT (overrides) ========== */
.store-header {
  background: var(--valdi-white) !important;
  border-bottom: 1px solid var(--valdi-neutral-200);
  box-shadow: 0 2px 8px rgba(20, 36, 104, .06);
}
.store-header__container { padding: 12px 20px; }
.store-header__logo-text {
  color: var(--valdi-primary) !important;
  font-weight: 700;
}
.store-header__search-input {
  border: 1.5px solid var(--valdi-neutral-200) !important;
  background: #ffffff !important;
  color: var(--valdi-neutral-700) !important;
}
.store-header__search-input::placeholder { color: var(--valdi-neutral-400) !important; }
.store-header__search-input:focus {
  border-color: var(--valdi-primary-light) !important;
  box-shadow: 0 0 0 3px rgba(20, 100, 168, .15);
  background: #ffffff !important;
  color: var(--valdi-neutral-700) !important;
}
.store-header__search-btn,
.store-header__cart-badge {
  background: var(--valdi-primary) !important;
  color: var(--valdi-white) !important;
}
.store-header__icon-btn {
  color: var(--valdi-primary) !important;
}
.store-header__icon-btn:hover {
  background: var(--valdi-neutral-100);
}

/* ========== HEADER UNIFICADO (logo + menu + buscador + acciones en 1 linea) ========== */
.valdi-header {
    background: #ffffff;
    border-bottom: 1px solid var(--valdi-neutral-200);
    box-shadow: 0 2px 8px rgba(20, 36, 104, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.valdi-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.valdi-header__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.valdi-header__logo img { max-height: 54px; width: auto; display: block; }
.valdi-header__logo-text { color: var(--valdi-primary); font-weight: 700; font-size: 22px; }

/* Menu horizontal — toma el espacio libre central */
.valdi-header__nav { flex: 1 1 auto; min-width: 0; }
.valdi-header__menu {
    list-style: none; margin: 0; padding: 0;
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}
.valdi-header__menu > li { position: relative; }
.valdi-header__menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--valdi-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-body-md);
    letter-spacing: .2px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.valdi-header__menu > li > a:hover,
.valdi-header__menu > li:hover > a { background: var(--valdi-neutral-100); color: var(--valdi-primary-dark); }
.valdi-header__caret { font-size: var(--fs-micro); transition: transform .2s ease; }
.valdi-header__has-dropdown:hover .valdi-header__caret { transform: rotate(180deg); }

/* Dropdown / Mega-menu (abre debajo del item "Catalogo") */
.valdi-header__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--valdi-neutral-200);
    box-shadow: 0 20px 40px -12px rgba(20, 36, 104, .2);
    border-radius: 14px;
    min-width: 520px;
    padding: 18px;
    display: none;
    z-index: 200;
}

/* === MEGA-MENU con thumbnails === */
.valdi-megamenu {
    min-width: 760px;
    max-width: 800px;
    padding: 22px;
}
.valdi-megamenu__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--valdi-neutral-200);
}
.valdi-megamenu__eyebrow {
    font-size: var(--fs-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--valdi-neutral-400);
}
.valdi-megamenu__view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--valdi-primary-light);
    font-size: var(--fs-caption);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease, gap .2s ease;
}
.valdi-megamenu__view-all:hover {
    background: var(--valdi-neutral-100);
    color: var(--valdi-primary);
    gap: 10px;
}
.valdi-megamenu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.valdi-megamenu__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--valdi-primary);
    transition: background .15s ease, transform .15s ease;
}
.valdi-megamenu__item:hover {
    background: var(--valdi-neutral-100);
    transform: translateX(2px);
}
.valdi-megamenu__thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--valdi-neutral-100);
    border: 1px solid var(--valdi-neutral-200);
}
.valdi-megamenu__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.valdi-megamenu__item:hover .valdi-megamenu__thumb img { transform: scale(1.1); }
.valdi-megamenu__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.valdi-megamenu__name {
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.2;
    color: var(--valdi-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.valdi-megamenu__count {
    font-size: var(--fs-micro);
    color: var(--valdi-neutral-400);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
}
@media (max-width: 1200px) {
    .valdi-megamenu { min-width: 600px; max-width: 640px; }
    .valdi-megamenu__grid { grid-template-columns: repeat(2, 1fr); }
}
.valdi-header__has-dropdown:hover .valdi-header__dropdown,
.valdi-header__has-dropdown:focus-within .valdi-header__dropdown { display: block; }
.valdi-header__dropdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.valdi-header__dropdown-grid a {
    display: flex; justify-content: space-between;
    padding: 8px 14px;
    color: var(--valdi-primary); text-decoration: none;
    border-radius: 6px; font-size: var(--fs-caption); font-weight: 500;
    transition: background .15s ease;
}
.valdi-header__dropdown-grid a:hover { background: var(--valdi-neutral-100); color: var(--valdi-primary-dark); }
.valdi-header__dropdown-count { color: var(--valdi-neutral-400); font-size: var(--fs-micro); font-weight: 600; }
.valdi-header__dropdown-foot {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--valdi-neutral-200); text-align: right;
}
.valdi-header__dropdown-all {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--valdi-primary-light); text-decoration: none;
    font-weight: 700; font-size: var(--fs-caption);
}
.valdi-header__dropdown-all:hover { color: var(--valdi-primary); }

/* Buscador compacto en el header */
.valdi-header__search {
    flex: 0 1 260px;
    position: relative;
    display: flex;
}
.valdi-header__search-input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 14px;
    border-radius: 999px;
    border: 1.5px solid var(--valdi-neutral-200);
    background: #fff;
    color: var(--valdi-neutral-700);
    font-size: var(--fs-caption);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.valdi-header__search-input:focus {
    border-color: var(--valdi-primary-light);
    box-shadow: 0 0 0 3px rgba(20,100,168,.15);
}
.valdi-header__search-input::placeholder { color: var(--valdi-neutral-400); }
.valdi-header__search-btn {
    position: absolute; right: 4px; top: 4px;
    width: 30px; height: 30px;
    border: none; border-radius: 50%;
    background: var(--valdi-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: var(--fs-caption);
    transition: background .15s ease;
}
.valdi-header__search-btn:hover { background: var(--valdi-primary-dark); }

/* Acciones (login, carrito, hamburger) */
.valdi-header__actions {
    display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.valdi-header__iconbtn {
    width: 40px; height: 40px;
    border: none; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--valdi-primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--fs-body-md);
    position: relative;
    text-decoration: none;
    transition: background .15s ease;
}
.valdi-header__iconbtn:hover { background: var(--valdi-neutral-100); color: var(--valdi-primary-dark); }

/* Reglas responsive */
.store-header__search-toggle, .store-header__hamburger { display: none; }

@media (max-width: 1080px) {
    .valdi-header__search { display: none; }             /* ocultamos buscador desktop */
    .store-header__search-toggle { display: inline-flex; } /* mostramos solo la lupa */
}
@media (max-width: 900px) {
    .valdi-header__nav { display: none; }                /* ocultamos menu horizontal */
    .store-header__hamburger { display: inline-flex; }   /* mostramos hamburguesa */
    /* Sin el nav que ocupaba el centro, empujamos las acciones a la derecha */
    .valdi-header__actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .valdi-header__inner { padding: 8px 14px; gap: 10px; }
    .valdi-header__logo img { max-height: 42px; }
    .valdi-header__iconbtn { width: 38px; height: 38px; }
}

/* Compatibilidad: el badge del carrito sigue teniendo el CSS de storefront */
.valdi-header__iconbtn .store-header__cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--valdi-primary);
    color: #fff;
    font-size: var(--fs-micro);
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ========== MENU HORIZONTAL VIEJO (mantengo por compat si alguna página lo usa) ========== */
.valdi-mainnav {
    background: var(--valdi-white);
    border-bottom: 1px solid var(--valdi-neutral-200);
    box-shadow: 0 2px 6px rgba(20, 36, 104, .05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.valdi-mainnav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.valdi-mainnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: stretch;
    justify-content: flex-end;   /* Alineado a la derecha como en valdi.com.mx */
}
.valdi-mainnav__list > li { position: relative; }
.valdi-mainnav__list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--valdi-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-body-md);          /* Mas grande (antes 14px) */
    letter-spacing: .2px;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}
.valdi-mainnav__list > li > a:hover,
.valdi-mainnav__list > li:hover > a,
.valdi-mainnav__list > li > a:focus {
    background: var(--valdi-neutral-100);
    color: var(--valdi-primary-dark);
}
.valdi-mainnav__caret {
    font-size: var(--fs-micro);
    transition: transform .2s ease;
}
.valdi-mainnav__has-dropdown:hover .valdi-mainnav__caret { transform: rotate(180deg); }

/* Dropdown (se ancla a la derecha del link porque el menu esta alineado a la derecha) */
.valdi-mainnav__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--valdi-white);
    border: 1px solid var(--valdi-neutral-200);
    box-shadow: 0 20px 40px -12px rgba(20, 36, 104, .2);
    border-radius: 0 0 12px 12px;
    min-width: 520px;
    padding: 18px;
    display: none;
    z-index: 200;
}
.valdi-mainnav__has-dropdown:hover .valdi-mainnav__dropdown,
.valdi-mainnav__has-dropdown:focus-within .valdi-mainnav__dropdown {
    display: block;
}
.valdi-mainnav__dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.valdi-mainnav__dropdown-grid a {
    display: flex;
    justify-content: space-between;
    padding: 9px 14px;
    color: var(--valdi-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: var(--fs-caption);
    font-weight: 500;
    transition: background .15s ease;
}
.valdi-mainnav__dropdown-grid a:hover {
    background: var(--valdi-neutral-100);
    color: var(--valdi-primary-dark);
}
.valdi-mainnav__dropdown-count {
    color: var(--valdi-neutral-400);
    font-size: var(--fs-micro);
    font-weight: 600;
}
.valdi-mainnav__dropdown-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--valdi-neutral-200);
    text-align: right;
}
.valdi-mainnav__dropdown-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--valdi-primary-light);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-caption);
}
.valdi-mainnav__dropdown-all:hover { color: var(--valdi-primary); }

/* Mobile: ocultar menu horizontal (drawer hace su trabajo) */
@media (max-width: 760px) {
    .valdi-mainnav { display: none; }
}

/* Mobile drawer: secciones */
.store-nav-drawer__section {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--valdi-neutral-400) !important;
    padding: 16px 18px 6px !important;
    border: 0 !important;
    list-style: none;
}

/* Logo en el header del drawer (reemplaza la palabra "Menu") */
.store-nav-drawer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.store-nav-drawer__logo img {
    max-height: 42px;
    width: auto;
    display: block;
}

/* === Drawer mobile: grid de categorias con thumbnails === */
.valdi-drawer-cats-wrap { list-style: none !important; padding: 0 !important; border: 0 !important; }
.valdi-drawer-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 14px 10px;
}
.valdi-drawer-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--valdi-neutral-100);
    border: 1px solid var(--valdi-neutral-200);
    text-decoration: none !important;
    color: var(--valdi-primary) !important;
    transition: background .15s ease, transform .15s ease;
    min-width: 0;
}
.valdi-drawer-cat:hover,
.valdi-drawer-cat:active {
    background: #fff;
    transform: translateY(-1px);
}
.valdi-drawer-cat__thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--valdi-neutral-200);
}
.valdi-drawer-cat__name {
    flex: 1;
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.2;
    color: var(--valdi-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.valdi-drawer-cat__count {
    flex: 0 0 auto;
    font-size: var(--fs-micro);
    font-weight: 700;
    color: var(--valdi-primary-light);
    background: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--valdi-neutral-200);
}

/* ========== HERO CON SLIDER DE VIDEOS ========== */
.valdi-vhero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 560px;
    max-height: 820px;
    overflow: hidden;
    background: #000;
}
.valdi-vhero__slider { position: absolute; inset: 0; }
.valdi-vhero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}
.valdi-vhero__video.is-active { opacity: 1; }

.valdi-vhero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(20,36,104,.35) 0%, rgba(20,36,104,.55) 60%, rgba(9,12,33,.75) 100%);
    pointer-events: none;
}

.valdi-vhero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: #fff;
    max-width: 1100px;
    margin: 0 auto;
}
.valdi-vhero__logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 28px;
    /* Fuerza el logo a blanco puro: brightness(0) = todo a negro, invert(1) = negro pasa a blanco */
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,.35)) !important;
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,.35)) !important;
}
.valdi-vhero__title {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -.5px;
    /* Relieve/sombra reforzado para alta legibilidad sobre video */
    text-shadow:
        0 2px 4px rgba(0,0,0,.55),
        0 6px 24px rgba(0,0,0,.4),
        0 0 40px rgba(9,12,33,.5);
    max-width: 900px;
}
.valdi-vhero__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 500;
    margin: 0 0 36px;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0,0,0,.55),
        0 4px 16px rgba(0,0,0,.4);
    max-width: 720px;
}
.valdi-vhero__cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Animacion de entrada palabra-por-palabra + blur-in ── */
.valdi-vhero__title .word,
.valdi-vhero__subtitle .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    animation: vheroWordIn .85s cubic-bezier(.2,.7,.3,1) forwards;
    animation-delay: calc(var(--i, 0) * .08s + var(--base, .15s));
    will-change: opacity, transform, filter;
}
.valdi-vhero__subtitle .word { --base: .6s; }   /* subtitulo entra despues del titulo */

/* CTAs y logo entran al final */
.valdi-vhero__logo,
.valdi-vhero__cta-row {
    opacity: 0;
    transform: translateY(16px);
    animation: vheroWordIn .7s cubic-bezier(.2,.7,.3,1) forwards;
}
.valdi-vhero__logo     { animation-delay: 0s; }
.valdi-vhero__cta-row  { animation-delay: 1.1s; }

@keyframes vheroWordIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Clase que se toggla por JS para forzar replay de las animaciones */
.valdi-vhero.is-replay .valdi-vhero__title .word,
.valdi-vhero.is-replay .valdi-vhero__subtitle .word,
.valdi-vhero.is-replay .valdi-vhero__logo,
.valdi-vhero.is-replay .valdi-vhero__cta-row {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .valdi-vhero__title .word,
    .valdi-vhero__subtitle .word,
    .valdi-vhero__logo,
    .valdi-vhero__cta-row { animation: none; opacity: 1; transform: none; filter: none; }
}

/* Boton primary DENTRO del hero de video: contraste alto (fondo blanco + texto azul Valdi).
   Sobre el video el azul sobre azul se perdia; el blanco sobresale limpio. */
.valdi-vhero .valdi-btn--primary,
.valdi-vhero .valdi-btn--primary:link,
.valdi-vhero .valdi-btn--primary:visited {
    background: #ffffff !important;
    color: var(--valdi-primary) !important;
    border: 2px solid #ffffff !important;
    box-shadow:
        0 10px 28px -8px rgba(0,0,0,.4),
        0 4px 12px rgba(0,0,0,.25);
    font-weight: 700;
    text-shadow: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease,
                transform .2s ease, box-shadow .25s ease, letter-spacing .25s ease;
}
.valdi-vhero .valdi-btn--primary:hover,
.valdi-vhero .valdi-btn--primary:focus {
    background: var(--valdi-primary) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    letter-spacing: .4px;           /* Sutil "separacion" de letras al hover */
    box-shadow:
        0 16px 36px -8px rgba(0,0,0,.5),
        0 6px 16px rgba(0,0,0,.3);
}
.valdi-vhero .valdi-btn--primary i { color: inherit !important; transition: transform .25s ease; }
.valdi-vhero .valdi-btn--primary:hover i { transform: translateX(2px); }

/* Refuerzo de sombra + transicion en el ghost-light */
.valdi-vhero .valdi-btn--ghost-light,
.valdi-vhero .valdi-btn--ghost-light:link,
.valdi-vhero .valdi-btn--ghost-light:visited {
    box-shadow:
        0 10px 28px -8px rgba(0,0,0,.35),
        0 4px 12px rgba(0,0,0,.2);
    font-weight: 700;
    transition: background .25s ease, color .25s ease, border-color .25s ease,
                transform .2s ease, box-shadow .25s ease, letter-spacing .25s ease;
}
.valdi-vhero .valdi-btn--ghost-light:hover,
.valdi-vhero .valdi-btn--ghost-light:focus {
    letter-spacing: .4px;
    box-shadow:
        0 14px 32px -8px rgba(0,0,0,.45),
        0 6px 16px rgba(0,0,0,.25);
}
.valdi-vhero .valdi-btn--ghost-light i { color: inherit !important; transition: transform .25s ease; }
.valdi-vhero .valdi-btn--ghost-light:hover i { transform: translateX(2px); }

/* Variante ghost sobre fondo oscuro (borde blanco, fondo transparente) */
.valdi-btn--ghost-light {
    background: rgba(255,255,255,.08);
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.7);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--fs-body-md);
    text-decoration: none;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.valdi-btn--ghost-light:hover {
    background: rgba(255,255,255,.95);
    color: var(--valdi-primary) !important;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Dots indicadores */
.valdi-vhero__dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.valdi-vhero__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.valdi-vhero__dot.is-active { background: #fff; transform: scale(1.3); }
.valdi-vhero__dot:hover { background: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 768px) {
    .valdi-vhero { height: 72vh; min-height: 480px; }
    .valdi-vhero__logo { max-width: 180px; margin-bottom: 20px; }
    .valdi-vhero__subtitle { margin-bottom: 26px; }
    .valdi-vhero__cta-row { flex-direction: column; width: 100%; max-width: 300px; }
    .valdi-vhero__cta-row > a { justify-content: center; }
}
@media (max-width: 480px) {
    .valdi-vhero { height: 66vh; min-height: 420px; }
    .valdi-vhero__logo { max-width: 140px; }
    .valdi-vhero__content { padding: 30px 18px; }
}

/* ========== HERO (viejo, se conserva por si alguna pagina lo usa) ========== */
.valdi-hero {
  background: linear-gradient(135deg, var(--valdi-neutral-100) 0%, var(--valdi-white) 60%);
  padding: 60px 20px 80px;
}
.valdi-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.valdi-hero__text { max-width: 560px; }
.valdi-hero__title {
  color: var(--valdi-primary);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.5px;
}
.valdi-hero__subtitle {
  color: var(--valdi-primary-light);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 28px;
}
.valdi-hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.valdi-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-body-md);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.valdi-btn--primary {
  background: var(--valdi-primary);
  color: var(--valdi-white);
}
.valdi-btn--primary:hover {
  background: var(--valdi-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 36, 104, .25);
}
.valdi-btn--ghost,
.valdi-btn--ghost:link,
.valdi-btn--ghost:visited {
    background: transparent;
    color: var(--valdi-primary) !important;
    border-color: var(--valdi-primary);
    transition: background .25s ease, color .25s ease, border-color .25s ease,
                transform .2s ease, box-shadow .25s ease, letter-spacing .25s ease;
}
.valdi-btn--ghost:hover,
.valdi-btn--ghost:focus {
    background: var(--valdi-primary);
    color: var(--valdi-white) !important;
    border-color: var(--valdi-primary);
    transform: translateY(-2px);
    letter-spacing: .4px;
    box-shadow: 0 12px 24px -8px rgba(20, 36, 104, .35);
}
.valdi-btn--ghost i { color: inherit !important; transition: transform .25s ease; }
.valdi-btn--ghost:hover i { transform: translateX(3px); }
.valdi-hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.valdi-hero__image img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(20, 36, 104, .35);
}

/* ========== 3 BANNERS PROPUESTA VALOR (estilo cover con gradiente — replica Valdi) ========== */
.valdi-features {
    padding: 70px 20px;
    background: var(--valdi-white);
}
.valdi-features__grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.valdi-feature-cover {
    position: relative;
    aspect-ratio: 10 / 11;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: default;
}
.valdi-feature-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -18px rgba(20, 36, 104, .35);
}

/* Imagen de fondo en cover */
.valdi-feature-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform .6s ease;
}
.valdi-feature-cover:hover .valdi-feature-cover__img { transform: scale(1.04); }

/* Gradiente azul diagonal (imita el original de valdi.com.mx) */
.valdi-feature-cover__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgb(45, 109, 210) 14%, rgba(44, 107, 209, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Contenido: texto en bottom-left */
.valdi-feature-cover__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 30px;
    color: #ffffff;
}
.valdi-feature-cover__title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.valdi-feature-cover__text {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    max-width: 90%;
}

/* Responsive */
@media (max-width: 980px) {
    .valdi-features__grid { grid-template-columns: 1fr; gap: 18px; }
    .valdi-feature-cover { aspect-ratio: 16 / 9; }
    .valdi-feature-cover__body { padding: 22px 24px; }
}
@media (max-width: 560px) {
    .valdi-features { padding: 50px 16px; }
    .valdi-feature-cover { aspect-ratio: 4 / 3; }
}

/* ========== SECCIÓN GENERAL ========== */
.valdi-section {
  padding: 70px 20px;
}
.valdi-section--alt { background: var(--valdi-neutral-100); }
.valdi-section__inner { max-width: 1280px; margin: 0 auto; }
.valdi-section__title {
  text-align: center;
  color: var(--valdi-primary);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  margin: 0 0 12px;
}
.valdi-section__subtitle {
  text-align: center;
  color: var(--valdi-neutral-400);
  font-size: var(--fs-body-lg);
  margin: 0 auto 50px;
  max-width: 640px;
}

/* ========== CATEGORIAS — slider custom con fondo split azul/blanco ========== */
.valdi-catslider-wrap {
    position: relative;
    padding: 70px 0 90px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, var(--valdi-primary) 45%, var(--valdi-primary) 100%);
}
.valdi-catslider-wrap__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.valdi-catslider__title {
    text-align: center;
    color: var(--valdi-primary);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 300;
    margin: 0 0 40px;
    letter-spacing: -.3px;
}

/* Slider container */
.valdi-catslider { position: relative; }

/* Track (scroll horizontal con snap) */
.valdi-catslider__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 0 28px;
    margin: 0 -8px;
    /* hide scrollbar pero mantener funcional */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.valdi-catslider__track::-webkit-scrollbar { display: none; }

/* Cada slide */
.valdi-catslide {
    flex: 0 0 calc((100% - 44px) / 3);           /* 3 visibles desktop */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--valdi-primary);
    box-shadow: 0 14px 30px -14px rgba(9, 12, 33, .35);
    transition: transform .35s ease, box-shadow .35s ease;
    opacity: 0;
    transform: translateY(16px);
}
.valdi-catslide.is-inview {
    opacity: 1;
    transform: translateY(0);
    transition: transform .7s cubic-bezier(.2,.7,.3,1), opacity .7s ease, box-shadow .35s ease;
    transition-delay: calc(var(--delay, 0) * .08s);
}
.valdi-catslide:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px -20px rgba(9, 12, 33, .5);
}

/* Media (imagen + overlay) */
.valdi-catslide__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--valdi-neutral-100);
}
.valdi-catslide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.valdi-catslide:hover .valdi-catslide__media img { transform: scale(1.08); }

.valdi-catslide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,36,104,0) 40%, rgba(20,36,104,.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    transition: opacity .3s ease;
}
.valdi-catslide:hover .valdi-catslide__overlay { opacity: 1; }
.valdi-catslide__cta {
    color: #fff;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: var(--fs-caption);
    font-weight: 700;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,.4);
}

/* Body */
.valdi-catslide__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.valdi-catslide__name {
    font-size: var(--fs-body-lg);
    font-weight: 700;
    color: var(--valdi-primary);
    letter-spacing: -.2px;
}
.valdi-catslide__count {
    font-size: var(--fs-micro);
    color: var(--valdi-neutral-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* Flechas prev/next */
.valdi-catslider__arrow {
    position: absolute;
    top: 35%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: var(--valdi-primary);
    font-size: var(--fs-body-md);
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 10px 24px -8px rgba(9,12,33,.4);
    transition: transform .2s ease, background .2s ease, color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.valdi-catslider__arrow:hover {
    background: var(--valdi-primary);
    color: #fff;
    transform: scale(1.08) translateY(-50%);
}
.valdi-catslider__arrow { transform: translateY(-50%); }
.valdi-catslider__arrow--prev { left: -18px; }
.valdi-catslider__arrow--next { right: -18px; }
.valdi-catslider__arrow[disabled] { opacity: .4; cursor: not-allowed; }
.valdi-catslider__arrow[disabled]:hover { background: #fff; color: var(--valdi-primary); transform: translateY(-50%); }

/* Dots */
.valdi-catslider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.valdi-catslider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: 2px solid rgba(255,255,255,.7);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.valdi-catslider__dot.is-active { background: #fff; transform: scale(1.3); }

.valdi-catslider__foot {
    text-align: center;
    margin-top: 48px;
}
/* Sobre fondo azul: boton invertido (blanco con texto azul) */
.valdi-catslider-wrap .valdi-btn--primary {
    background: #ffffff;
    color: var(--valdi-primary);
    border: 2px solid #ffffff;
    font-weight: 700;
}
.valdi-catslider-wrap .valdi-btn--primary:hover {
    background: var(--valdi-primary-light);
    color: #ffffff;
    border-color: var(--valdi-primary-light);
}

/* Responsive */
@media (max-width: 980px) {
    .valdi-catslide { flex: 0 0 calc((100% - 22px) / 2); }  /* 2 visibles */
    .valdi-catslider__arrow--prev { left: 6px; }
    .valdi-catslider__arrow--next { right: 6px; }
}
@media (max-width: 560px) {
    .valdi-catslider-wrap { padding: 50px 0 70px; background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, var(--valdi-primary) 40%, var(--valdi-primary) 100%); }
    .valdi-catslide { flex: 0 0 78%; }                        /* 1.2 visibles para hint */
    .valdi-catslider__arrow { display: none; }                /* en mobile solo swipe + dots */
    .valdi-catslider__track { gap: 14px; scroll-padding-left: 20px; }
}

/* ========== CATEGORIAS viejas (se mantienen por compat) ========== */
.valdi-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.valdi-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease;
}
.valdi-category-card:hover { transform: translateY(-5px); }
.valdi-category-card__img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--valdi-white);
  border: 3px solid var(--valdi-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(20, 36, 104, .25);
  margin-bottom: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.valdi-category-card:hover .valdi-category-card__img {
  border-color: var(--valdi-primary);
  box-shadow: 0 15px 40px -10px rgba(20, 36, 104, .4);
}
.valdi-category-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.valdi-category-card__name {
  color: var(--valdi-primary);
  font-weight: 600;
  font-size: var(--fs-body-md);
}

/* ========== PRODUCTOS DESTACADOS (cards) ========== */
.valdi-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.valdi-product-card {
  background: var(--valdi-white);
  border: 1px solid var(--valdi-neutral-200);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.valdi-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(20, 36, 104, .25);
  border-color: var(--valdi-primary-light);
}
.valdi-product-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--valdi-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.valdi-product-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.valdi-product-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.valdi-product-card__name {
  color: var(--valdi-primary);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.valdi-product-card__price {
  color: var(--valdi-primary-light);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  margin-top: auto;
}
@media (max-width: 980px) {
  .valdi-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .valdi-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ========== BLOG ========== */
.valdi-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}
.valdi-blog-card {
  display: block;
  background: var(--valdi-white);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--valdi-neutral-200);
  transition: transform .25s ease, box-shadow .25s ease;
}
.valdi-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -20px rgba(20, 36, 104, .25);
}
.valdi-blog-card__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.valdi-blog-card__body { padding: 24px 28px 28px; }
.valdi-blog-card__date {
  color: var(--valdi-primary-light);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.valdi-blog-card__title {
  color: var(--valdi-primary);
  font-size: var(--fs-heading-md);
  font-weight: 600;
  margin: 8px 0 10px;
  line-height: 1.3;
}
.valdi-blog-card__excerpt {
  color: var(--valdi-neutral-500);
  font-size: var(--fs-body-md);
  line-height: 1.5;
  margin: 0;
}

/* ========== CONTACTO ========== */
.valdi-contact {
  background: var(--valdi-primary);
  color: var(--valdi-white);
  padding: 70px 20px;
}
.valdi-contact__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.valdi-contact__title {
  color: var(--valdi-white);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  margin: 0 0 16px;
}
.valdi-contact__lead {
  font-size: var(--fs-body-lg);
  margin: 0 0 28px;
  opacity: .9;
}
.valdi-contact__items { list-style: none; padding: 0; margin: 0; }
.valdi-contact__items li {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  font-size: var(--fs-body-md);
}
.valdi-contact__items i {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-body-md);
  color: #ffffff !important;           /* icono siempre blanco */
  flex-shrink: 0;
  transition: background .2s ease, transform .2s ease;
}
.valdi-contact__items li a:hover i { background: rgba(255,255,255,.28); transform: scale(1.08); }

/* Forzar color blanco en los 3 links (tel, mail, whatsapp) en TODOS los estados,
   para que el `a:hover { color: var(--text-link-hover) }` global no los pise */
.valdi-contact__items a,
.valdi-contact__items a:link,
.valdi-contact__items a:visited,
.valdi-contact__items a:hover,
.valdi-contact__items a:active,
.valdi-contact__items a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity .2s ease, text-decoration-color .2s ease;
    word-break: break-word;              /* email largo no rompe layout en mobile */
}
.valdi-contact__items a:hover {
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    opacity: .9;
}

.valdi-form {
  background: var(--valdi-white);
  color: var(--valdi-neutral-600);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.4);
}
.valdi-form__row { margin-bottom: 16px; }
.valdi-form__label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--valdi-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.valdi-form__input,
.valdi-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--valdi-neutral-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: var(--fs-body-md);
  transition: border-color .15s ease, box-shadow .15s ease;
  background: var(--valdi-white);
  color: var(--valdi-neutral-700);
}
.valdi-form__input:focus,
.valdi-form__textarea:focus {
  outline: none;
  border-color: var(--valdi-primary-light);
  box-shadow: 0 0 0 3px rgba(20, 100, 168, .15);
}
.valdi-form__textarea { min-height: 110px; resize: vertical; }
.valdi-form__msg {
  font-size: var(--fs-body-sm);
  margin: 8px 0 14px;
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
}
.valdi-form__msg--ok { display: block; background: #d1fae5; color: #065f46; }
.valdi-form__msg--err { display: block; background: #fee2e2; color: #991b1b; }

/* ========== FOOTER ========== */
.store-footer {
  background: var(--valdi-primary-darkest) !important;
  color: var(--valdi-neutral-200) !important;
}
.store-footer__col-title {
  color: var(--valdi-white) !important;
}
.store-footer a { color: var(--valdi-neutral-200) !important; }
.store-footer a:hover { color: var(--valdi-white) !important; }
.store-footer__brand-desc { color: var(--valdi-neutral-300) !important; }
.store-footer__social a {
  background: rgba(255,255,255,.08);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px;
  transition: background .2s ease, transform .2s ease;
}
.store-footer__social a:hover {
  background: var(--valdi-primary-light);
  transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .valdi-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .valdi-hero__image { order: -1; }
  .valdi-features__grid { grid-template-columns: 1fr; }
  .valdi-categories { grid-template-columns: repeat(3, 1fr); }
  .valdi-blog-grid { grid-template-columns: 1fr; }
  .valdi-contact__inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .valdi-hero { padding: 40px 16px 50px; }
  .valdi-categories { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .valdi-category-card__img { width: 130px; height: 130px; }
  .valdi-section { padding: 50px 16px; }
  .valdi-topbar__msg { display: none; }
}
