/* ============================================================
   GUANAJUATO · Inicio limpio (v27) — estructura tipo Home Burgers:
   mucho blanco, títulos grandes en mayúsculas, una sola idea por bloque.
   Colores y letras salen del módulo Diseño (variables).
   ============================================================ */
.tienda:has(.hm) { max-width: none; padding-top: 0; }
.hm { --ancho: var(--rail, 1180px); --hm-gut: clamp(16px, 4vw, 40px); }
.hm > section, .hm > .hm-dx { max-width: calc(var(--ancho) + 2 * var(--hm-gut)); margin-left: auto; margin-right: auto; padding-left: var(--hm-gut); padding-right: var(--hm-gut); }

/* Tipografía de bloques */
.hm-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rojo); }
.hm-eyebrow--c { text-align: center; }
.hm-h {
  margin: 0 0 22px; font-family: var(--fuente-titulo); font-weight: var(--peso-titulo, 900); text-transform: var(--titulo-mayus, uppercase);
  font-size: clamp(36px, 5.6vw, 76px); line-height: .96; letter-spacing: -.01em; color: var(--tinta); text-wrap: balance;
}
.hm-h em { font-style: normal; color: var(--rojo); }
.hm-h--c { text-align: center; font-size: clamp(30px, 4.4vw, 56px); margin-bottom: 10px; }
.hm-sub { margin: 0 0 34px; text-align: center; font-size: 18px; color: var(--tinta-2); }
.hm-p { margin: 0 0 14px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--tinta-2); }
.hm-p--c { margin-left: auto; margin-right: auto; text-align: center; }
.hm-acc { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 16px 30px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: .02em;
  transition: filter .2s ease, transform .15s ease; cursor: pointer;
}
.hm-btn:hover { filter: brightness(1.12); }
.hm-btn:active { transform: scale(.97); }
.hm-btn--borde { background: transparent; color: var(--tinta); border: 2px solid var(--tinta); }
.hm-btn--borde:hover { background: var(--tinta); color: var(--hoja); filter: none; }
.hm-link { color: var(--tinta); font-weight: 800; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hm-link:hover { color: var(--rojo); }

/* 1 · Video a todo el ancho */
.hm > .hm-hero { max-width: none; padding: 0; }
.hm-media { position: relative; height: min(82vh, 56.25vw); min-height: 360px; animation: none; }
.hm-media .px-lienzo { border-radius: 0; }
.hm-media .px-video { opacity: 1; }
.hm-marca-logo { width: min(520px, 60%); height: auto; }
.hm-ctrl { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hm-ctrl .px-pausa { width: 40px; height: 40px; background: rgba(255, 255, 255, .85); border: 0; }
.hm-ctrl .px-prog { width: 90px; margin: 0; }
.hm-ctrl .px-prog span { background: rgba(255, 255, 255, .45); }
.hm-ctrl .px-prog i { background: #fff; }

/* 2 · Nuestra forma */
.hm-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(60px, 9vw, 120px) !important; padding-bottom: clamp(50px, 7vw, 100px) !important; }
.hm-intro--solo { grid-template-columns: 1fr; text-align: left; }
.hm-intro-img { margin: 0; border-radius: calc(16px * var(--rf, 1)); overflow: hidden; aspect-ratio: 5 / 4; }
.hm-intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 3 · Categorías: íconos sobrios en una fila */
.hm-cats { padding-top: clamp(40px, 6vw, 80px) !important; padding-bottom: clamp(30px, 5vw, 60px) !important; border-top: var(--bw, 1px) solid var(--linea); }
.hm-cats-fila { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 34px); }
.hm-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 120px; padding: 0; border: 0; background: none; cursor: pointer; }
.hm-cat-ico { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--suave); color: var(--rojo); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.hm-cat-ico--foto img { width: 100%; height: 100%; object-fit: cover; }
.hm-cat:hover .hm-cat-ico { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--hoja), 0 0 0 5px var(--rojo); }
.hm-cat-n { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--tinta); text-align: center; }
.hm-cat:hover .hm-cat-n { color: var(--rojo); }

/* 4 · Banners grandes */
.hm-ban { position: relative; padding-top: 20px !important; padding-bottom: 30px !important; }
.hm-ban-fila { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hm-ban-fila::-webkit-scrollbar { display: none; }
.hm-ban-it { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: calc(16px * var(--rf, 1)); overflow: hidden; scroll-snap-align: start; text-decoration: none; background: var(--tinta); }
.hm-ban-it img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.hm-ban-it:hover img { transform: scale(1.05); }
.hm-ban-it::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 8, 5, .72)); }
.hm-ban-txt { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.hm-ban-txt b { display: block; font-family: var(--fuente-titulo); font-weight: var(--peso-titulo, 900); text-transform: var(--titulo-mayus, uppercase); font-size: clamp(26px, 2.8vw, 40px); line-height: .98; }
.hm-ban-txt b em { font-style: normal; color: var(--ambar); }
.hm-ban-txt small { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; opacity: .9; }
.hm-flechas { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hm-flechas button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; border: 2px solid var(--tinta); background: var(--hoja); color: var(--tinta); transition: all .2s ease; }
.hm-flechas button:hover:not(:disabled) { background: var(--tinta); color: var(--hoja); }
.hm-flechas button:disabled { opacity: .3; cursor: default; }

/* 5 · Filas destacadas dentro del inicio limpio */
.hm-dx { padding-top: 10px; padding-bottom: 20px; }

/* 6 · Sedes */
.hm-sedes { padding-top: clamp(50px, 7vw, 100px) !important; padding-bottom: clamp(40px, 6vw, 80px) !important; }
.hm-sedes-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.hm-sede { display: flex; flex-direction: column; text-decoration: none; color: var(--tinta); }
.hm-sede-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: calc(16px * var(--rf, 1)); overflow: hidden; background: var(--suave); margin-bottom: 14px; }
.hm-sede-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.hm-sede:hover .hm-sede-img img { transform: scale(1.05); }
.hm-sede-img--marca { background: linear-gradient(140deg, var(--vino), var(--rojo)); }
.hm-sede-img--marca .hm-sede-cactus { width: 34%; height: auto; object-fit: contain; }
.hm-sede-n { font-family: var(--fuente-titulo); font-weight: var(--peso-titulo, 900); text-transform: var(--titulo-mayus, uppercase); font-size: 26px; line-height: 1; }
.hm-sede-n small { display: block; font-size: 13px; letter-spacing: .14em; color: var(--rojo); margin-bottom: 4px; }
.hm-sede-dir { margin-top: 8px; font-size: 15px; color: var(--tinta-2); line-height: 1.4; }
.hm-sede-ir { margin-top: 10px; font-weight: 800; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; }
.hm-sede:hover .hm-sede-ir { color: var(--rojo); }

/* 7 · Eventos */
.hm-ev { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(50px, 7vw, 100px) !important; padding-bottom: clamp(50px, 7vw, 100px) !important; border-top: var(--bw, 1px) solid var(--linea); }
.hm-ev--solo { grid-template-columns: 1fr; }
.hm-ev-img { margin: 0; border-radius: calc(16px * var(--rf, 1)); overflow: hidden; aspect-ratio: 1; }
.hm-ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-ev .hm-btn { margin-top: 18px; }

/* 8 · Comunidad */
.hm-com { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(50px, 7vw, 90px) !important; padding-bottom: clamp(60px, 8vw, 110px) !important; border-top: var(--bw, 1px) solid var(--linea); }
.hm-com-logo { width: 64px; height: 64px; margin-bottom: 18px; }
.hm-com-t { margin: 0 0 12px; font-family: var(--fuente-titulo); font-weight: 800; font-size: clamp(24px, 3vw, 34px); color: var(--tinta); }
.hm-com .hm-btn { margin-top: 14px; }

/* Celular */
@media (max-width: 760px) {
  .hm-media { height: auto; aspect-ratio: 4 / 5; max-height: 78svh; min-height: 0; }
  .hm-intro, .hm-ev { grid-template-columns: 1fr; }
  .hm-intro-img, .hm-ev-img { order: -1; }
  .hm-h { font-size: clamp(34px, 10vw, 46px); }
  .hm-p { font-size: 17px; }
  .hm-cats-fila { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--hm-gut)); padding: 4px var(--hm-gut) 10px; gap: 14px; }
  .hm-cats-fila::-webkit-scrollbar { display: none; }
  .hm-cat { width: 86px; flex: none; }
  .hm-cat-ico { width: 78px; height: 78px; }
  .hm-cat-n { font-size: 13px; }
  .hm-ban-fila { grid-auto-columns: 78%; margin: 0 calc(-1 * var(--hm-gut)); padding: 0 var(--hm-gut); scroll-padding: 0 var(--hm-gut); gap: 12px; }
  .hm-flechas { display: none; }
  .hm-sedes-fila { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 30px calc(-1 * var(--hm-gut)) 0; padding: 0 var(--hm-gut); gap: 14px; }
  .hm-sedes-fila::-webkit-scrollbar { display: none; }
  .hm-sede { scroll-snap-align: start; }
}

/* Inicio limpio: fondo blanco como la referencia (se cambia en Diseño → Fondo de tarjetas) */
body:has(.hm) { background: var(--hoja); }
.hm .dx::before { opacity: .55; }

/* v28 · Botón "Pedir ahora" centrado sobre el video */
.hm-hero-cta { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3.2vw, 40px); z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.hm-btn--hero { pointer-events: auto; gap: 10px; padding: 19px 38px; font-size: 18px; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55); animation: hm-late 2.6s ease-in-out infinite; }
.hm-btn--hero svg { transition: transform .2s ease; }
.hm-btn--hero:hover svg { transform: translateX(4px); }
@keyframes hm-late { 0%, 100% { box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 0 rgba(255, 255, 255, .45); } 50% { box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 12px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .hm-btn--hero { animation: none; } }
@media (max-width: 760px) { .hm-hero-cta { bottom: 18px; } .hm-btn--hero { padding: 13px 24px; font-size: 14.5px; } }
