/*
Theme Name: Argenpastry
Theme URI: https://argenpastry.com
Description: Theme propio de Argenpastry v6 — Fotografía full-bleed + glassmorphism. Conversión: CTAs sticky, descuento de bienvenida con exit-intent, marca Tuki. Sin Elementor. PHP + CSS puro sobre WordPress + WooCommerce.
Author: Fabri Velázquez
Version: 6.0.0
Text Domain: argenpastry
*/

/* ============================================================
   DESIGN TOKENS — Brand Book Argenpastry (Enero 2026)
   ============================================================ */
:root {
  --ap-navy:        #1A3A5C;
  --ap-azul:        #2a77c0;
  --ap-navy-deep:   #002f50;
  --ap-paper:       #f7f6f3;
  --ap-dulce:       #b5793f;
  --ap-surface:     #eceae6;
  --ap-white:       #ffffff;
  --ap-navy-soft:   #142d49;
  --ap-azul-light:  #85B7EB;

  --ap-text:        #1A1A1A;
  --ap-text-soft:   #555555;
  --ap-text-mute:   #888888;

  --font-body:      'Barlow', -apple-system, sans-serif;
  --font-display:   'Barlow', -apple-system, sans-serif;

  --gap-xs: 0.5rem;  --gap-sm: 1rem;  --gap-md: 2rem;
  --gap-lg: 4rem;    --gap-xl: 6.5rem;

  --radius-sm: 6px;  --radius-md: 12px;  --radius-lg: 20px;  --radius-pill: 50px;

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 2px 10px rgba(26,58,92,0.07);
  --shadow-md: 0 12px 32px rgba(26,58,92,0.14);
  --shadow-float: 0 20px 50px rgba(0,0,0,0.12);

  /* Glassmorphism tokens */
  --glass-paper:  rgba(247, 246, 243, 0.72);
  --glass-dulce:  rgba(181, 121, 63, 0.55);
  --glass-navy:   rgba(26, 58, 92, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur:   14px;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ap-paper);
  color: var(--ap-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-azul); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ap-navy); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; color: var(--ap-navy); font-weight: 900; }

/* ============================================================
   UTILIDADES
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.container--narrow { max-width: 760px; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   GLASSMORPHISM — contenedores cristal
   ============================================================ */
.glass {
  background: var(--glass-paper);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.glass--dulce {
  background: var(--glass-dulce);
  border-color: rgba(255,255,255,0.25);
}
.glass--dulce, .glass--dulce h2, .glass--dulce h3, .glass--dulce p, .glass--dulce li { color: var(--ap-white); }
.glass--navy {
  background: var(--glass-navy);
  border-color: rgba(133,183,235,0.25);
}
.glass--navy, .glass--navy h2, .glass--navy p, .glass--navy li { color: var(--ap-white); }

/* Fallback si el navegador no soporta backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(247,246,243,0.94); }
  .glass--dulce { background: rgba(181,121,63,0.92); }
  .glass--navy { background: rgba(26,58,92,0.92); }
}

/* ============================================================
   SECCIONES FULL-BLEED CON FOTO DE FONDO
   ============================================================ */
.fullbleed {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Placeholder visible cuando la foto aún no está cargada */
.fullbleed--placeholder {
  background: linear-gradient(160deg, var(--ap-surface) 0%, #ddd8d0 100%);
}
.fullbleed__slug {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 5;
  background: rgba(26,58,92,0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: none;
  font-family: monospace;
}
/* Capa oscura muy sutil para asegurar contraste general */
.fullbleed::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.16) 100%);
  pointer-events: none;
  z-index: 1;
}
.fullbleed > .container { position: relative; z-index: 2; }

/* Parallax sutil (JS agrega la clase is-parallax) */
.fullbleed.is-parallax { background-attachment: fixed; }
@media (max-width: 1024px) {
  .fullbleed.is-parallax { background-attachment: scroll; } /* iOS no soporta fixed */
}

/* ============================================================
   BOTONES — única jerarquía "clickeable"
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 800; font-size: 0.93rem;
  letter-spacing: 0.02em; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--ap-white); color: var(--ap-navy); border-color: var(--ap-white); }
.btn--primary:hover { background: var(--ap-paper); color: var(--ap-navy); }
.btn--azul { background: var(--ap-azul); color: var(--ap-white); border-color: var(--ap-azul); }
.btn--azul:hover { background: var(--ap-navy); border-color: var(--ap-navy); color: var(--ap-white); }
.btn--navy { background: var(--ap-navy); color: var(--ap-white); border-color: var(--ap-navy); }
.btn--navy:hover { background: var(--ap-navy-deep); border-color: var(--ap-navy-deep); }
.btn--outline { background: rgba(255,255,255,0.12); color: var(--ap-white); border-color: rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.btn--outline:hover { background: var(--ap-white); color: var(--ap-navy); }
.btn--ghost { background: transparent; color: var(--ap-azul); border-color: var(--ap-azul); }
.btn--ghost:hover { background: var(--ap-azul); color: var(--ap-white); }

/* ============================================================
   HEADER — Paper glass translúcido sobre la foto
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--glass-paper);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: rgba(247,246,243,0.92);
  box-shadow: 0 4px 24px rgba(26,58,92,0.08);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(247,246,243,0.95); }
}
/* Compensar el header fijo */
body { padding-top: 76px; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding-block: 0.8rem;
}
/* Logo — más grande, alineado a la izquierda */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 56px; width: auto; }
.site-logo-text { font-size: 1.75rem; font-weight: 900; color: var(--ap-navy); letter-spacing: 0.01em; }
.site-logo-text span { color: var(--ap-azul); }

/* Menú — más espaciado, ocupa el ancho */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  list-style: none;
  flex: 1;
}
.site-nav a {
  color: var(--ap-navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5rem 0.25rem;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--ap-azul);
  transition: right var(--transition);
}
.site-nav a:hover::after { right: 0; }
.site-nav a:hover { color: var(--ap-azul); }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.nav-cta {
  background: var(--ap-azul);
  color: var(--ap-white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 800 !important;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--ap-navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nav-cart { position: relative; color: var(--ap-navy); display: flex; align-items: center; }
.nav-cart__count {
  position: absolute; top: -8px; right: -8px;
  background: var(--ap-azul); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ap-navy); border-radius: 2px; transition: all var(--transition); }

/* Dropdown Mi cuenta */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; right: 0;
  background: rgba(247,246,243,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  min-width: 210px;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26,58,92,0.1);
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.3rem;
  color: var(--ap-navy) !important;
  font-size: 0.83rem !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: rgba(42,119,192,0.08); color: var(--ap-azul) !important; }

/* ============================================================
   HERO — full-bleed con foto, contenido glass flotante
   ============================================================ */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-block: var(--gap-xl);
}
.hero__panel {
  max-width: 620px;
  padding: clamp(1.8rem, 4vw, 3rem);
}
/* Tag sin marco — flota */
.hero__tag {
  display: inline-block;
  color: var(--ap-navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}
.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 900;
  color: var(--ap-navy);
  margin-bottom: 0.7rem;
}
.hero__tagline {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ap-dulce);
  margin-bottom: 1.4rem;
}
.hero__text {
  font-size: 1.06rem;
  color: var(--ap-text-soft);
  line-height: 1.75;
  margin-bottom: 2.2rem;
}
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ============================================================
   CREDENCIALES — franja flotante glass navy
   ============================================================ */
.credenciales {
  position: relative;
  z-index: 3;
  margin-top: -3rem;
  padding-bottom: var(--gap-md);
}
.credenciales__inner {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding: 1.6rem 2rem;
  flex-wrap: wrap;
  background: var(--glass-navy);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(133,183,235,0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.credencial { text-align: center; }
.credencial__num { color: var(--ap-white); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.credencial__label { color: rgba(255,255,255,0.6); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding-block: var(--gap-xl); }
.section--paper { background: var(--ap-paper); }
.section--white { background: var(--ap-white); }

.section-header { text-align: center; margin-bottom: var(--gap-lg); }
.section-header--left { text-align: left; }
.section-header__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ap-azul);
  margin-bottom: 0.6rem;
}
.section-header__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.6rem; }
.section-header__subtitle { font-size: 1.05rem; color: var(--ap-text-mute); max-width: 520px; margin-inline: auto; }
.section-header--left .section-header__subtitle { margin-inline: 0; }

/* Secciones full-bleed: header dentro del glass hereda color */
.glass .section-header__tag { color: var(--ap-navy); opacity: 0.75; }
.glass--dulce .section-header__tag,
.glass--navy .section-header__tag { color: rgba(255,255,255,0.85); }
.glass--dulce .section-header__title,
.glass--navy .section-header__title { color: var(--ap-white); }
.glass--dulce .section-header__subtitle,
.glass--navy .section-header__subtitle { color: rgba(255,255,255,0.8); }

/* ============================================================
   LA FÁBRICA — full-bleed foto + panel glass dulce de leche
   ============================================================ */
.fabrica {
  padding-block: var(--gap-xl);
  display: flex;
  align-items: center;
  min-height: 82vh;
}
.fabrica__panel {
  max-width: 560px;
  margin-left: auto;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.fabrica__list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.4rem; list-style: none; }
.fabrica__list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 1rem; }
.fabrica__list .check { flex-shrink: 0; margin-top: 0.1rem; font-weight: 900; color: var(--ap-white); }

/* ============================================================
   TIENDA / PRODUCTOS
   ============================================================ */
.productos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap-md);
}
.producto-card {
  background: var(--ap-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26,58,92,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.producto-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-float); }
.producto-card__image { aspect-ratio: 1/1; overflow: hidden; background: var(--ap-surface); }
.producto-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.producto-card:hover .producto-card__image img { transform: scale(1.06); }
.producto-card__body { padding: 1.15rem 1.25rem; }
.producto-card__name { font-size: 1.05rem; font-weight: 700; color: var(--ap-navy); margin-bottom: 0.35rem; line-height: 1.3; }
.producto-card__price { font-size: 1.35rem; font-weight: 900; color: var(--ap-navy); }

/* Placeholder de imagen de producto (mientras no hay foto) */
.photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--ap-surface), #ddd8d0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.4rem;
  color: #9b8e7e; font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 1rem;
}

/* ============================================================
   MERMAS — full-bleed unificada
   ============================================================ */
.mermas {
  padding-block: var(--gap-xl);
  display: flex;
  align-items: center;
  min-height: 78vh;
}
.mermas__panel {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: left;
}
.mermas__pregunta {
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ap-white);
  border-left: 3px solid rgba(255,255,255,0.55);
  padding-left: 1.2rem;
  margin-block: 1.4rem 1.6rem;
}
.mermas__lista { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.mermas__lista li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 1rem; color: rgba(255,255,255,0.92); }
.mermas__lista .check { flex-shrink: 0; font-weight: 900; color: var(--ap-white); }

/* ============================================================
   BANDA VENTAS
   ============================================================ */
.banda-ventas { background: var(--ap-navy-deep); padding-block: var(--gap-lg); }
.banda-ventas__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap-md);
  align-items: center;
}
.banda-ventas__num {
  background: var(--ap-navy);
  border: 1px solid rgba(133,183,235,0.2);
  border-radius: var(--radius-md);
  padding: 1.6rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-float);
}
.banda-ventas__num strong { display: block; font-size: 2.6rem; font-weight: 900; color: var(--ap-white); line-height: 1; }
.banda-ventas__num span { font-size: 0.9rem; color: var(--ap-azul-light); font-weight: 700; }
.banda-ventas__text { font-size: 1.45rem; font-weight: 700; color: var(--ap-white); line-height: 1.45; }
.banda-ventas__text em { font-style: normal; color: var(--ap-azul-light); }

/* ============================================================
   B2B / MAYORISTAS — full-bleed con glass navy
   ============================================================ */
.b2b {
  padding-block: var(--gap-xl);
  display: flex;
  align-items: center;
  min-height: 76vh;
}
.b2b__panel { max-width: 580px; padding: clamp(1.8rem, 4vw, 2.8rem); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto__form { max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.76rem; font-weight: 800; color: var(--ap-navy); letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26,58,92,0.18);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--ap-white);
  color: var(--ap-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--ap-azul);
  box-shadow: 0 0 0 3px rgba(42,119,192,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.ap-form-aviso { max-width: 480px; margin: 0 auto 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.95rem; text-align: center; }
.ap-form-aviso--ok { background: #e8f5e9; border: 1px solid #2e7d32; color: #2e7d32; }
.ap-form-aviso--error { background: #fdecea; border: 1px solid #c62828; color: #c62828; }

/* ============================================================
   FOOTER — logo blanco pequeño
   ============================================================ */
.site-footer { background: var(--ap-navy-deep); color: rgba(255,255,255,0.6); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-md); padding-block: var(--gap-md); flex-wrap: wrap; }
.footer-brand__logo { margin-bottom: 0.7rem; display: flex; align-items: center; }
.footer-brand__logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-brand__logo-text { font-size: 1.05rem; font-weight: 900; color: var(--ap-white); }
.footer-brand__logo-text span { color: var(--ap-azul-light); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.42); line-height: 1.65; }
.footer-links { display: flex; gap: 1.3rem; }
.footer-links a { font-size: 0.72rem; color: rgba(255,255,255,0.42); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.footer-links a:hover { color: var(--ap-azul-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-block: 1.2rem; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.32); }

/* ============================================================
   POP-UP DE COOKIES — glass flotante
   ============================================================ */
.cookies-popup {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 150%);
  z-index: 500;
  width: min(560px, calc(100vw - 2rem));
  padding: 1.4rem 1.6rem;
  background: rgba(247,246,243,0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
}
.cookies-popup.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookies-popup__title { font-size: 1rem; font-weight: 900; color: var(--ap-navy); margin-bottom: 0.4rem; }
.cookies-popup__text { font-size: 0.87rem; color: var(--ap-text-soft); line-height: 1.55; margin-bottom: 1rem; }
.cookies-popup__text a { text-decoration: underline; }
.cookies-popup__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookies-popup__actions .btn { padding: 0.55rem 1.3rem; font-size: 0.84rem; }

/* ============================================================
   ANIMACIONES DE ENTRADA (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fullbleed.is-parallax { background-attachment: scroll; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   v6 — CREDENCIAL D.C.A. (logo + popover "Saber más")
   ============================================================ */
.credencial--dca { position: relative; }
.credencial__logo {
  width: 78px; height: 44px;
  margin-inline: auto;
  background: var(--ap-white);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  display: flex; align-items: center; justify-content: center;
}
.credencial__logo img { max-height: 100%; width: auto; object-fit: contain; }
.credencial__saber-mas {
  background: none; border: none; cursor: pointer;
  color: var(--ap-azul-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block; margin-inline: auto;
}
.credencial__saber-mas:hover { color: var(--ap-white); }

.dca-popover {
  position: absolute;
  bottom: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(360px, calc(100vw - 2.5rem));
  padding: 1.1rem 1.25rem;
  background: rgba(247,246,243,0.96);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
  text-align: left;
}
.dca-popover.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.dca-popover::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(247,246,243,0.96);
}
.dca-popover p { font-size: 0.83rem; line-height: 1.6; color: var(--ap-text-soft); }
.dca-popover strong { color: var(--ap-navy); }

/* Credencial clickeable (+22% → mermas) */
.credencial--link { text-decoration: none; transition: transform var(--transition); }
.credencial--link:hover { transform: translateY(-3px); }
.credencial--link:hover .credencial__num { color: var(--ap-azul-light); }
.credencial--link .credencial__num { transition: color var(--transition); }

/* ============================================================
   v6 — STICKY CTAs (comprar izq. / descuento der.)
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 1.4rem;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--shadow-float);
}
.sticky-cta--left  { left: 1.4rem; }
.sticky-cta--right { right: 1.4rem; }
.sticky-ctas.is-visible .sticky-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sticky-cta__badge {
  background: var(--ap-white);
  color: var(--ap-azul);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* ============================================================
   v6 — POP-UP DESCUENTO DE BIENVENIDA
   ============================================================ */
.promo-overlay {
  position: fixed; inset: 0;
  background: rgba(0,47,80,0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 600;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.promo-overlay.is-visible { opacity: 1; }

.promo-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 610;
  width: min(460px, calc(100vw - 2rem));
  padding: 2.2rem 2rem 1.8rem;
  background: rgba(247,246,243,0.94);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.promo-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.promo-popup__close {
  position: absolute; top: 0.7rem; right: 0.95rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1;
  color: var(--ap-text-mute);
  transition: color var(--transition);
}
.promo-popup__close:hover { color: var(--ap-navy); }
.promo-popup__eyebrow {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ap-dulce);
  margin-bottom: 0.5rem;
}
.promo-popup__title {
  font-size: 1.55rem; font-weight: 900;
  color: var(--ap-navy);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.promo-popup__text { font-size: 0.95rem; color: var(--ap-text-soft); line-height: 1.65; margin-bottom: 1.5rem; }
.promo-popup__text strong { color: var(--ap-navy); }
.promo-popup__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   v6 — CONTACTO HOME full-bleed (foto b2b-mostrador)
   ============================================================ */
.contacto-home {
  padding-block: var(--gap-xl);
  display: flex;
  align-items: center;
  min-height: 62vh;
}
.contacto-home__panel {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.contacto-home__panel .section-header { margin-bottom: var(--gap-md); }

/* ============================================================
   v6 — BADGE MARCA TUKI (Brand Book Tuki 07/26)
   Rhodamine Red + Dosis, contenido en un badge para no romper
   el sistema navy/Barlow del sitio.
   ============================================================ */
.tuki-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 0.28rem;
  background: #E10098; /* Pantone Rhodamine Red C */
  color: #fff;
  font-family: 'Dosis', var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(225,0,152,0.35);
}
.tuki-badge__dot {
  width: 0.5em; height: 0.5em;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
/* El "mordisco" del alfajor: muesca en el punto, como el símbolo de la marca */
.tuki-badge__dot::after {
  content: '';
  position: absolute;
  top: -22%; right: -22%;
  width: 60%; height: 60%;
  background: #E10098;
  border-radius: 50%;
}
ul.products li.product { position: relative; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fabrica__panel { margin-inline: auto; }
  .b2b__panel { margin-inline: auto; }
}
@media (max-width: 768px) {
  body { padding-top: 68px; }
  .site-logo img { height: 44px; }
  .site-logo-text { font-size: 1.4rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,246,243,0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(26,58,92,0.08);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .banda-ventas__inner { grid-template-columns: 1fr; text-align: center; }
  .banda-ventas__num { margin-inline: auto; }
  .hero { min-height: auto; }
  .credenciales { margin-top: -1.5rem; }

  /* v6 — stickies compactos en móvil, desfasados para no pisarse */
  .sticky-cta { font-size: 0.8rem; padding: 0.65rem 1.1rem; }
  .sticky-cta--left  { left: 0.8rem; bottom: 1rem; }
  .sticky-cta--right { right: 0.8rem; bottom: 4.1rem; }
  .sticky-cta--right .sticky-cta__badge { display: none; } /* prioriza el texto */

  /* v6 — el popover del D.C.A. baja debajo de la credencial */
  .dca-popover {
    bottom: auto;
    top: calc(100% + 0.9rem);
  }
  .dca-popover::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(247,246,243,0.96);
  }
}
