/* Landing de golf de HuellaMX: página aparte, tema de campo de golf. */
:root {
  --bosque: #0c2e22;
  --bosque-2: #12402f;
  --pasto: #1d5c43;
  --menta: #9fd3b4;
  --crema: #f4efe3;
  --crema-2: #ebe3d0;
  --oro: #d9b44a;
  --oro-2: #c49b2e;
  --tinta: #10231b;
  --texto: #3d4a43;
  --blanco: #fffdf8;
  --radio: 18px;
  --serif: "Fraunces", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--texto); font: 16px/1.6 "Plus Jakarta Sans", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--tinta); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--oro-2); font-weight: 400; }
.g-contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }
.g-centro { text-align: center; }
.g-sobre { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 700; color: var(--oro-2); margin: 0 0 1rem; }

/* Botones */
.g-boton { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.g-boton svg { width: 20px; height: 20px; }
.g-boton:hover { transform: translateY(-2px); }
.g-boton--oro { background: var(--oro); color: var(--bosque); box-shadow: 0 10px 30px rgba(217, 180, 74, .3); }
.g-boton--oro:hover { background: #e6c35d; }
.g-boton--linea { border-color: rgba(255, 255, 255, .45); color: #fff; }
.g-boton--linea:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.g-boton--linea-oscuro { border-color: var(--bosque); color: var(--bosque); }
.g-boton--linea-oscuro:hover { background: var(--bosque); color: #fff; }
.g-boton--grande { font-size: 1.05rem; padding: 1em 1.8em; }

/* Cabecera */
.g-cab { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 4vw, 48px); color: #fff; transition: background .3s, padding .3s, box-shadow .3s; }
.g-cab--solida { background: rgba(12, 46, 34, .92); backdrop-filter: blur(10px); padding-block: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.g-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.g-marca em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--oro); }
.g-marca__bandera { width: 22px; height: 30px; color: #fff; }
.g-menu { display: flex; gap: 26px; margin-left: auto; }
.g-menu a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.g-menu a:hover { opacity: 1; }
.g-volver { text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .45em 1em; }
.g-volver:hover { background: rgba(255, 255, 255, .1); }
.g-cab__cta { padding: .6em 1.1em; }
.ondea { transform-box: fill-box; transform-origin: left center; animation: ondear 2.6s ease-in-out infinite; }
@keyframes ondear { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.9); } }

/* Portada */
.g-portada { position: relative; min-height: min(100svh, 1000px); background: radial-gradient(1200px 700px at 75% 30%, rgba(29, 92, 67, .72), rgba(12, 46, 34, .94) 65%), url(/img/golf/fondo-campo.webp) center / cover var(--bosque); color: #e3efe8; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 120px 0 140px; }
.g-portada__campo { position: absolute; inset: 0; pointer-events: none; }
.g-curvas { width: 100%; height: 100%; }
.g-curvas path { fill: none; stroke: rgba(159, 211, 180, .12); stroke-width: 1.5; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: trazar 3.5s ease-out forwards; }
.g-curvas path:nth-child(2) { animation-delay: .2s; } .g-curvas path:nth-child(3) { animation-delay: .4s; }
.g-curvas path:nth-child(4) { animation-delay: .3s; } .g-curvas path:nth-child(5) { animation-delay: .5s; }
@keyframes trazar { to { stroke-dashoffset: 0; } }
.g-portada__fila { position: relative; width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.g-portada__fila > * { min-width: 0; }
.g-portada h1 { color: #fff; font-size: clamp(3rem, 7.5vw, 6.2rem); }
.g-portada h1 em { color: var(--oro); }
.g-portada .g-sobre { color: var(--menta); }
.g-portada__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; margin: 0 0 2rem; color: #cfe2d8; }
.g-botones { display: flex; flex-wrap: wrap; gap: 14px; }
.entra { opacity: 0; transform: translateY(26px); animation: entrar .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.15s + var(--d, 0) * .14s); }
@keyframes entrar { to { opacity: 1; transform: none; } }
.g-portada__fotos { position: relative; height: min(560px, 62vw); }
.flota { position: absolute; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); opacity: 0; animation: aparecer 1.1s cubic-bezier(.2, .7, .2, 1) forwards; will-change: transform; }
.flota img { width: 100%; height: 100%; object-fit: contain; }
.f1 { width: 48%; aspect-ratio: 3 / 4; left: 4%; top: 6%; animation-delay: .5s; }
.f2 { width: 52%; aspect-ratio: 1; right: 0; top: 0; animation-delay: .7s; }
.f3 { width: 40%; aspect-ratio: 1; right: 14%; bottom: 0; animation-delay: .9s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
.flota img { animation: mecer 7s ease-in-out infinite; }
.f2 img { animation-delay: -2s; } .f3 img { animation-delay: -4s; }
@keyframes mecer { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }

/* Green con pelota que entra al hoyo */
.g-green { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18)); }
.g-green svg { width: min(600px, 90%); height: 100%; margin-left: auto; margin-right: 6%; display: block; overflow: visible; }
.g-green__hoyo { fill: #06180f; }
.g-green__asta { stroke: #f4efe3; stroke-width: 2.5; stroke-linecap: round; }
.g-pelota { fill: #fff; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); offset-path: path("M-40 88 C 120 70, 300 96, 470 86"); offset-rotate: 0deg; animation: rodar 3.2s 1.2s cubic-bezier(.25, .6, .3, 1) forwards; offset-distance: 0%; }
@keyframes rodar { 0% { offset-distance: 0%; opacity: 1; } 88% { offset-distance: 100%; opacity: 1; transform: scale(1); } 100% { offset-distance: 100%; opacity: 0; transform: scale(.4) translateY(6px); } }
.g-bajar { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; transform: translateX(-50%); }
.g-bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: bajar 1.8s infinite; }
@keyframes bajar { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquesina */
.g-marquesina { background: var(--oro); color: var(--bosque); overflow: hidden; padding: 14px 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.g-marquesina__pista { display: flex; width: max-content; animation: desfilar 38s linear infinite; }
.g-marquesina span { padding: 0 28px; white-space: nowrap; }
.g-marquesina span::after { content: "●"; font-style: normal; font-size: .6em; margin-left: 56px; vertical-align: middle; opacity: .5; }
@keyframes desfilar { to { transform: translateX(-50%); } }

/* Secciones */
.g-seccion { padding: clamp(72px, 10vw, 120px) 0; }
.g-titulo { max-width: 720px; margin-bottom: 48px; }
.g-titulo h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.g-titulo p:not(.g-sobre) { font-size: 1.08rem; margin: 0; }
.g-titulo--claro h2 { color: #fff; }
.revelar { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * .1s); }
.revelar.visible { opacity: 1; transform: none; }

/* Hoyos (productos) */
.g-rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hoyo { background: var(--blanco); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(16, 35, 27, .06); transition: transform .35s, box-shadow .35s; }
.hoyo:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(16, 35, 27, .14); }
.hoyo__foto { aspect-ratio: 1; display: grid; place-items: center; background: #fff; overflow: hidden; }
.hoyo__foto img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hoyo:hover .hoyo__foto img { transform: scale(1.06); }
.hoyo__info { padding: 18px 20px 20px; border-top: 1px dashed var(--crema-2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hoyo__num { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--pasto); }
.hoyo h3 { font-size: 1.15rem; line-height: 1.2; margin: 0; flex: 1; }
.hoyo__acciones { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.hoyo__ver { font-weight: 600; color: var(--pasto); font-size: .92rem; }
.hoyo__cta { font-weight: 700; color: var(--oro-2); text-decoration: none; font-size: .92rem; }
.hoyo__cta span { display: inline-block; transition: transform .2s; }
.hoyo__cta:hover span { transform: translateX(4px); }

/* Para quién */
.g-quien { background: linear-gradient(90deg, rgba(12, 46, 34, .95) 30%, rgba(12, 46, 34, .72)), url(/img/golf/fondo-amanecer.webp) center / cover var(--bosque); color: #cfe2d8; position: relative; overflow: hidden; }
.g-quien::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 80px, transparent 80px 160px); }
.g-quien .g-contenedor { position: relative; }
.g-quien__fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g-quien__item { border: 1px solid rgba(159, 211, 180, .22); border-radius: var(--radio); padding: 32px 28px; background: rgba(255, 255, 255, .03); }
.g-quien__item h3 { color: #fff; font-size: 1.6rem; }
.g-quien__item p { margin: 0; }
.g-icono { font-size: 2rem; display: block; margin-bottom: 14px; }

/* Cómo funciona */
.g-golpes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.g-golpes::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; border-top: 2px dashed var(--crema-2); }
.g-golpes li { position: relative; background: var(--blanco); border-radius: var(--radio); padding: 28px; }
.g-golpes span { display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--bosque); background: var(--menta); padding: .35em .9em; border-radius: 999px; margin-bottom: 14px; }
.g-golpes h3 { font-size: 1.5rem; }
.g-golpes p { margin: 0; }

/* Ideas del catálogo */
.g-ideas { background: var(--blanco); }
.g-ideas__fila { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.idea { text-decoration: none; border-radius: var(--radio); background: #fff; border: 1px solid var(--crema-2); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.idea:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 35, 27, .1); }
.idea img { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 14px; }
.idea span { display: block; padding: 12px 16px 16px; font-weight: 600; color: var(--tinta); }

/* Final */
.g-final { background: radial-gradient(900px 500px at 50% 45%, rgba(12, 46, 34, .72), rgba(12, 46, 34, .92) 75%), url(/img/golf/fondo-tee.webp) center / cover var(--bosque); color: #cfe2d8; padding: clamp(80px, 11vw, 130px) 0; }
.g-final h2 em { color: var(--oro); }
.g-final h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; margin-inline: auto; }
.g-final p:not(.g-sobre) { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.g-final .g-sobre { color: var(--oro); }
.g-pie { background: #071c14; color: #9fb9ab; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(16px, 4vw, 48px); font-size: .9rem; }
.g-pie img { background: #fff; border-radius: 8px; padding: 5px 9px; height: 34px; width: auto; }
.g-pie a { color: #dfeee6; }
.g-wa { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #1faa53; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.g-wa svg { width: 30px; height: 30px; }

/* Ventana de detalle */
.g-modal { width: min(980px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 24px; background: var(--blanco); color: var(--texto); overflow: visible; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.g-modal::backdrop { background: rgba(7, 28, 20, .72); backdrop-filter: blur(4px); }
.g-modal[open] { animation: modal-entra .35s cubic-bezier(.2, .7, .2, 1); }
.g-modal[open]::backdrop { animation: aparecer-fondo .35s ease; }
@keyframes modal-entra { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes aparecer-fondo { from { opacity: 0; } }
.g-modal__cuerpo { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100svh - 48px); overflow: auto; border-radius: 24px; }
.g-modal__galeria { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.g-modal__foto { width: 100%; aspect-ratio: 1; object-fit: contain; }
.g-modal__minis { display: flex; gap: 8px; flex-wrap: wrap; }
.g-modal__minis button { width: 58px; height: 58px; padding: 4px; border-radius: 10px; border: 2px solid var(--crema-2); background: #fff; cursor: pointer; }
.g-modal__minis button[aria-current="true"] { border-color: var(--pasto); }
.g-modal__minis img { width: 100%; height: 100%; object-fit: contain; }
.g-modal__info { padding: 44px 36px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.g-modal__info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0; }
.g-modal__sku { font-size: .85rem; color: #7a867f; margin: 0 0 8px; }
.g-modal__desc { margin: 0 0 8px; max-height: 9.6em; overflow: auto; }
.g-modal__desc:empty { display: none; }
.g-modal__nota { margin: 0 0 18px; font-weight: 600; color: var(--pasto); }
.g-modal__ficha { margin-top: 14px; font-weight: 600; color: var(--pasto); }
.g-modal__cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--crema); color: var(--tinta); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.g-modal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--oro); color: var(--tinta); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.g-modal__nav--ant { left: -24px; }
.g-modal__nav--sig { right: -24px; }
.g-modal__nav[hidden] { display: none; }
body.modal-abierta { overflow: hidden; }

/* Celular */
@media (max-width: 960px) {
  .g-menu { display: none; }
  .g-volver { margin-left: auto; }
  .g-portada__fila { grid-template-columns: 1fr; }
  .g-portada__fotos { height: 74vw; max-height: 440px; }
  .g-rejilla, .g-ideas__fila { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .g-quien__fila, .g-golpes { grid-template-columns: 1fr; }
  .g-golpes::before { display: none; }
}
@media (max-width: 560px) {
  .g-cab { gap: 12px; }
  .g-cab__cta span, .g-volver__txt { display: none; }
  .hoyo__acciones { flex-wrap: wrap; gap: 4px 12px; }
  .g-portada { padding-top: 100px; }
  .hoyo__foto img { padding: 12px; }
  .hoyo__info { padding: 12px 14px 14px; }
  .hoyo h3 { font-size: 1rem; }
  .g-green { height: 80px; }
  .g-bajar { display: none; }
  .g-modal__cuerpo { grid-template-columns: 1fr; }
  .g-modal__galeria { padding: 18px 18px 8px; }
  .g-modal__foto { max-height: 42svh; }
  .g-modal__info { padding: 16px 20px 24px; }
  .g-modal__nav { top: auto; bottom: -24px; translate: none; }
  .g-modal__nav--ant { left: calc(50% - 56px); }
  .g-modal__nav--sig { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .entra, .flota, .revelar { opacity: 1 !important; transform: none !important; }
  .g-curvas path { stroke-dashoffset: 0; }
  .g-pelota { offset-distance: 100%; opacity: 0; }
  html { scroll-behavior: auto; }
}
