/* ========== RESET & GLOBALS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--texto);
  background: #fff;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ========== CSS VARIABLES ========== */
:root {
  /* Paleta IPADE - congreso (tomada de los globals de ipade.mx) */
  --azul: #002D74;              /* primario institucional */
  --azul-oscuro: #001B46;
  --azul-claro: #BBEBFF;        /* pill del selector de idioma del sitio */
  --ambar: #F0A327;             /* color de accion del congreso (botones) */
  --ambar-oscuro: #C47900;
  --dorado: #BC955C;            /* acento institucional (logo, filos) */
  --dorado-oscuro: #7E5F30;     /* dorado para texto sobre fondo claro */
  --dorado-medio: #C5AB83;
  --dorado-claro: #F8F5ED;
  --crema: #F8F5ED;
  --gris-seccion: #F6F6F6;      /* fondo de secciones alternas y del footer */
  --texto: #333333;
  --texto-suave: #5E5D60;
  --texto-sobre-azul: #DCE3F0;
  --linea: #EAEAEA;
  --radio: 10px;                /* el congreso usa esquinas de 10px */
  --header-h: 5.5rem;
  --max: 72rem;
  --pad: clamp(1.25rem, 5vw, 3rem);

  /* Escala heredada de hogar, re-mapeada al congreso.
     brand-black = "oscuro" de fondos y bordes (azul); el texto oscuro usa var(--texto). */
  --brand-black: #002D74;
  --brand-white: #ffffff;
  --brand-100: #F6F6F6;
  --brand-200: #EAEAEA;
  --brand-300: #D9D0C1;
  --brand-400: #8D8A8F;
  --brand-500: #5E5D60;
  --brand-600: #333333;
  --brand-700: #001B46;
  --brand-800: #001B46;
  --wa-green: #25D366;
  --wa-green-hover: #1EB457;
  --emerald-400: #F0A327;
  /* Signika es la fuente del sitio de IPADE (Google Fonts, publica) */
  --font-display: "Signika", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Signika", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-heading: var(--font-display);
  --font-banner: "Signika", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (max-width: 40rem) { :root { --header-h: 4.25rem; } }

/* ========== UTILITIES ========== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.rule { display: block; width: 3.5rem; height: 3px; background: var(--dorado); margin-bottom: 1.25rem; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== NAVBAR ========== */
/* Barra dorada unica estilo IPADE: [logo] [menu en linea] [iconos] */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--brand-white);
  border-bottom: 3px solid var(--dorado);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  height: var(--header-h);
  position: relative;
}
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  color: var(--azul);
}
.navbar-logo img {
  height: calc(var(--header-h) - 1rem);
  max-height: calc(var(--header-h) - 1rem);
  width: auto;
}
.navbar-menu {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  height: 100%;
}
.navbar-icons {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.navbar-icon-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--azul);
  transition: background 0.2s, color 0.2s;
}
.navbar-icon-link:hover {
  color: var(--azul);
  background: var(--gris-seccion);
}
.navbar-icon-link svg { width: 20px; height: 20px; }
.navbar-hamburger {
  color: var(--azul);
  padding: 8px;
}
.navbar-hamburger svg { width: 22px; height: 22px; }
.navbar :focus-visible { outline-color: var(--azul); }

/* Items del menu (menu_item.html) */
.navbar-cat-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.navbar-cat-link {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--azul);
  white-space: nowrap;
  text-decoration: none;
}
.navbar-cat-link:hover {
  color: var(--dorado-oscuro);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.menu-arrow {
  font-size: 0.6rem;
  margin-left: 2px;
}

/* Dropdown (2 niveles): panel blanco con filo dorado */
.menu-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--brand-white);
  border-top: 3px solid var(--dorado);
  box-shadow: 0 18px 40px rgba(65,64,66,.14);
  padding: 0.5rem 0;
  z-index: 100;
}
.navbar-cat-item.menu-item-has-children:hover > .menu-dropdown-content {
  display: block;
}
.menu-dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--texto);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.menu-dropdown-link:hover {
  color: var(--dorado-oscuro);
  background: var(--dorado-claro);
}

/* Mega menu (3 niveles) */
.menu-mega-content {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--brand-white);
  border-top: 3px solid var(--dorado);
  box-shadow: 0 18px 40px rgba(65,64,66,.14);
  padding: 1.75rem 2rem;
  z-index: 100;
}
.navbar-cat-item.menu-item-is-megamenu {
  position: static;
}
.navbar-cat-item.menu-item-is-megamenu:hover > .menu-mega-content {
  display: block;
}
.menu-mega-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.menu-mega-col {
  min-width: 160px;
}
.menu-mega-title,
.menu-mega-col-title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dorado-oscuro);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--linea);
}
.menu-mega-link {
  display: block;
  padding: 0.3rem 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--texto-suave);
  text-decoration: none;
  transition: color 0.2s;
}
.menu-mega-link:hover {
  color: var(--azul);
}

/* Mobile menu (panel azul; mobilemenu_item_big_item*.html usan label/link) */
.mobile-menu-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado);
  margin: 0.5rem 0;
}
.mobile-menu-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--texto-sobre-azul);
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--brand-white); }
.mobile-menu-divider {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 1rem;
  padding-top: 1rem;
}
.mobile-icon-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--texto-sobre-azul);
  transition: color 0.2s;
}
.mobile-icon-link:hover { color: var(--brand-white); }
.mobile-icon-link svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .navbar-icons { display: flex; }
  .navbar-menu { display: flex; }
  .navbar-hamburger { display: none; }
}

/* ========== HERO ========== */
/* Hero IPADE: fondo azul, imagen con velo radial azul, texto centrado con linea dorada */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--azul);
}
.hero-slide {
  position: relative;
  min-height: clamp(26rem, 78vh, 44rem);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--azul-oscuro);
}
.hero-slide.active {
  display: flex;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,45,116,.62) 0%, rgba(0,45,116,.35) 45%, rgba(0,45,116,.05) 80%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}
.hero-line {
  display: block;
  width: clamp(3.5rem, 7vw, 5.5rem);
  height: 2px;
  margin: 0 auto 1.1rem;
  background: var(--dorado);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  align-items: center;
}
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.hero-dot.active {
  background: var(--dorado);
}
.hero h1 {
  font-family: var(--font-banner);
  font-weight: 500;
  color: var(--brand-white);
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  max-width: 20ch;
  margin: 0 auto .9rem;
  text-shadow: 0 2px 18px rgba(0,10,40,.35);
}
.hero h1 em {
  font-style: normal;
  color: var(--dorado);
}
.hero-desc {
  font-family: var(--font-banner);
  font-weight: 600;
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-white);
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0,10,40,.45);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: rgba(188,149,92,.8);
  animation: bounce 2s infinite;
}
.hero :focus-visible { outline-color: #fff; }

/* ========== BOTONES (ambar del congreso, esquinas de 10px) ========== */
.btn-primary,
.btn-primary-lg,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.1rem;
  padding: .8rem 1.75rem;
  background: var(--ambar);
  color: var(--brand-white);
  font: 700 1rem/1 var(--font-body);
  border: 2px solid transparent;
  border-radius: var(--radio);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary:hover,
.btn-primary-lg:hover,
.btn-dark:hover { background: var(--ambar-oscuro); color: var(--brand-white); }
.btn-primary svg, .btn-primary-lg svg, .btn-dark svg { transition: transform .2s; }
.btn-primary:hover svg, .btn-primary-lg:hover svg, .btn-dark:hover svg { transform: translateX(3px); }
/* Sobre fondo azul: boton blanco que pasa a dorado al hover */
.hero .btn-primary,
.cta-section .btn-primary,
.cta-section .btn-primary-lg {
  background: var(--ambar);
  color: var(--brand-white);
}
.hero .btn-primary:hover,
.cta-section .btn-primary:hover,
.cta-section .btn-primary-lg:hover {
  background: var(--ambar-oscuro);
  color: var(--brand-white);
}
.btn-linea {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .8rem 1.75rem;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: var(--radio);
  color: var(--brand-white);
  font: 700 1rem/1 var(--font-body);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-linea:hover { background: var(--brand-white); color: var(--azul); border-color: var(--brand-white); }
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--wa-green);
  color: var(--brand-white);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.26); }
.btn-wa svg { width: 22px; height: 22px; }

/* ========== CATEGORIES ========== */
.categories { padding: 6rem 1.5rem; }
@media (min-width: 1024px) { .categories { padding: 6rem 3rem; } }
.categories-header {
  text-align: center;
  margin-bottom: 4rem;
}
.categories-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  color: var(--texto);
  margin-top: 0.75rem;
}
.categories-header h2 em { font-style: italic; color: var(--brand-500); }
.categories-header p {
  color: var(--brand-500);
  margin-top: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .categories-header h2 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}
.cat-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radio);
  display: block;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,30,79,0.75), rgba(1,30,79,0.20), transparent);
}
.cat-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
}
.cat-card-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-white);
  line-height: 1.2;
}
@media (min-width: 768px) { .cat-card-content h3 { font-size: 1.125rem; } }
.cat-card-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--brand-200);
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card:hover .cat-card-cta { opacity: 1; }

/* ========== FEATURES STRIP ========== */
.features-strip {
  background: var(--brand-black);
  padding: 4rem 1.5rem;
}
@media (min-width: 1024px) { .features-strip { padding: 4rem 3rem; } }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-600);
}
.feature-icon svg { width: 20px; height: 20px; color: var(--brand-white); stroke: var(--brand-white); }
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--brand-white);
}
.feature-item p {
  font-size: 0.875rem;
  color: var(--brand-400);
  margin-top: 0.25rem;
}

/* ========== HORECA ========== */
.horeca {
  padding: 6rem 1.5rem;
  background: var(--brand-100);
}
@media (min-width: 1024px) { .horeca { padding: 6rem 3rem; } }
.horeca-header {
  max-width: 640px;
  margin-bottom: 4rem;
}
.horeca-header .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.horeca-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  color: var(--texto);
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .horeca-header h2 { font-size: 3rem; } }
.horeca-header h2 em { font-style: italic; color: var(--brand-500); }
.horeca-header p {
  color: var(--brand-500);
  line-height: 1.6;
}
.horeca-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .horeca-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .horeca-grid { grid-template-columns: repeat(3, 1fr); } }
.horeca-card {
  background: var(--brand-white);
  border-radius: var(--radio);
  padding: 2rem;
  transition: box-shadow 0.3s;
}
.horeca-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.horeca-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}
.horeca-card:hover .horeca-card-icon { transform: scale(1.05); }
.horeca-card-icon svg { width: 20px; height: 20px; stroke: var(--brand-white); }
.horeca-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--texto);
  margin-bottom: 0.5rem;
}
.horeca-card p {
  font-size: 0.875rem;
  color: var(--brand-500);
  line-height: 1.6;
}
/* CTA card */
.horeca-cta-card {
  background: var(--brand-black);
  border-radius: var(--radio);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.horeca-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.horeca-cta-card h3 em { font-style: italic; color: var(--brand-300); }
.horeca-cta-card p {
  font-size: 0.875rem;
  color: var(--brand-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.btn-horeca-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.875rem;
  color: var(--texto);
  background: var(--brand-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radio);
  transition: background 0.3s;
}
.btn-horeca-cta:hover { background: var(--brand-200); }
.btn-horeca-cta svg { width: 16px; height: 16px; }

/* ========== ABOUT ========== */
.about {
  padding: 6rem 1.5rem;
  background: var(--brand-100);
}
@media (min-width: 1024px) { .about { padding: 6rem 3rem; } }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.about-text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  color: var(--texto);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .about-text h2 { font-size: 3rem; } }
.about-text h2 em { font-style: italic; color: var(--brand-500); }
.about-text p {
  color: var(--brand-500);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.about-text p:last-of-type { margin-bottom: 2rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.stat-card {
  background: var(--brand-white);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radio);
}
.stat-card .number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--texto);
  margin-bottom: 0.5rem;
}
.stat-card .label {
  font-size: 0.875rem;
  color: var(--brand-400);
}

/* ========== WHOLESALE ========== */
.wholesale {
  width: 100%;
}
.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
}
@media (min-width: 1024px) { .wholesale-grid { grid-template-columns: 1fr 1fr; } }
.wholesale-left {
  background: var(--brand-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2.5rem;
}
@media (min-width: 768px) { .wholesale-left { padding: 4rem; } }
@media (min-width: 1024px) { .wholesale-left { padding: 6rem 5rem; } }
.wholesale-left h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  color: var(--brand-white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .wholesale-left h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .wholesale-left h2 { font-size: 3rem; } }
.wholesale-left h2 em { font-style: italic; color: var(--brand-300); }
.wholesale-left p {
  color: var(--brand-300);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 28rem;
}
@media (min-width: 768px) { .wholesale-left p { font-size: 1.125rem; } }
.wholesale-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .wholesale-buttons { flex-direction: row; } }
.btn-wa-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--brand-white);
  transition: background 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-wa-lg:hover { background: var(--wa-green-hover); }
.btn-wa-lg svg { width: 24px; height: 24px; }
.wholesale-right {
  background: var(--brand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
}
.wholesale-illustrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 480px;
  width: 100%;
}
@media (min-width: 768px) { .wholesale-illustrations { gap: 2rem; } }
.wholesale-illustrations svg {
  width: 100%;
  height: auto;
}

/* ========== CTA ========== */
.cta-section {
  padding: 7rem 1.5rem;
  background: var(--brand-black);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .cta-section { padding: 7rem 3rem; } }
.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  color: var(--brand-white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
@media (min-width: 768px) { .cta-content h2 { font-size: 3.75rem; } }
.cta-content h2 em { font-style: italic; color: var(--brand-300); }
.cta-content p {
  color: var(--brand-300);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ========== TITULOS DE SECCION (componentes del home) ========== */
/* Regla dorada sobre cada titulo, como en IPADE */
.section-header::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--dorado);
  margin: 0 auto 1.25rem;
}
.imagentexto-content .section-header::before { margin-left: 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--texto);
}
.categories-header h2 em,
.horeca-header h2 em,
.about-text h2 em,
.wholesale-left h2 em,
.cta-content h2 em { font-style: normal; color: var(--dorado-oscuro); }
.wholesale-left h2 em,
.cta-content h2 em { color: var(--dorado); }

/* ========== FOOTER ========== */
/* Footer gris claro con links azules (como ipade.mx) */
.footer {
  background: var(--gris-seccion);
  color: var(--texto);
  border-top: 1px solid var(--linea);
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
}
.footer a { color: var(--azul); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: var(--azul); }

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--linea);
}
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    gap: 3rem;
  }
}
.footer-brand { flex-shrink: 0; }
.footer-logo-link { display: inline-block; }
.footer-logo-link img { width: 7rem; max-height: 5rem; height: auto; object-fit: contain; }

/* Columnas de menu (bottommenu_item.html) */
.footer-menu-col {
  min-width: 130px;
  flex: 1;
}
.footer-menu-title {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.75rem;
}
.footer-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--azul);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contacto */
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}
@media (min-width: 768px) {
  .footer-contact-col { margin-left: auto; }
}
.footer-contact {
  display: grid;
  gap: .35rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  justify-content: inherit;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--texto);
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--azul); }
.footer-contact-item a { color: var(--azul); }
/* Ocultar renglones de contacto vacios */
.footer-contact-item:has(span:empty),
.footer-contact-item:has(a:empty) {
  display: none;
}

/* Redes */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .footer-social { justify-content: flex-start; } }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand-white);
  color: var(--azul);
  border: 1px solid var(--linea);
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.social-icon:hover { opacity: .75; transform: translateY(-2px); }
.social-icon-name {
  font-size: 0;
  overflow: hidden;
  width: 0;
  height: 0;
}
.social-icon::before {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.social-icon[data-network="facebook"]::before { content: "f"; }
.social-icon[data-network="instagram"]::before { content: "ig"; }
.social-icon[data-network="twitter"]::before { content: "x"; }
.social-icon[data-network="x"]::before { content: "x"; }
.social-icon[data-network="tiktok"]::before { content: "tk"; }
.social-icon[data-network="youtube"]::before { content: "yt"; }
.social-icon[data-network="linkedin"]::before { content: "in"; }
.social-icon[data-network="pinterest"]::before { content: "p"; }
.social-icon[data-network="whatsapp"]::before { content: "wa"; }

/* Formas de pago */
.footer-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linea);
}
.footer-payments img {
  height: 24px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-payments img:hover { opacity: 1; }

/* Barra inferior */
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.9rem;
  color: var(--texto-suave);
}
.footer-selectors {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
}

/* WhatsApp small button */
.btn-wa-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--brand-white);
  transition: background 0.3s;
}
.btn-wa-sm:hover { background: var(--wa-green-hover); }
.btn-wa-sm svg { width: 16px; height: 16px; }
.page-banner .breadcrumb {
    color: #FFF;
}
.tachado {
    text-decoration: line-through;
    color: var(--brand-400) !important;
    font-weight: normal !important;
    font-size: 1rem !important;
}
.btn.btn-outline.filter-toggle {
    margin-top: 10px;
    margin-bottom: 0px;
}
/* ========== AJUSTES IPADE ========== */
/* Espaciado de secciones del home (especificidad 0: lo pisa cualquier padding propio del componente) */
:where(section[id^="index_"]:not(.hero):not(.index-slideshow2)) { padding-block: clamp(3.5rem, 8vw, 6rem); }
/* Precios en azul, precio anterior gris */
.price-current { color: var(--azul) !important; }
.price-compare { color: var(--brand-400) !important; }
.index-products .product-card-price { justify-content: center; }
