/* Colmenas San Gabriel — landing page v2 (ambiental + glass)
   Paleta: noche de campo, miel, cera, sol de tarde, azul del logo */
:root {
  --night: #161a10;
  --night-2: #222a17;
  --leaf: #3d5226;
  --honey: #ffc53d;
  --amber: #f29a1f;
  --wax: #f8eed6;
  --sun: #fff3d2;
  --ink: #2a1c0c;
  --sky: #2f9fdc;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --header-h: 4.2rem;
  --glass-dark: rgb(255 255 255 / .09);
  --glass-dark-line: rgb(255 255 255 / .22);
  --glass-light: rgb(255 255 255 / .52);
  --glass-light-line: rgb(255 255 255 / .85);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1.5rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 120;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: 1.02; letter-spacing: -0.028em; font-weight: 560; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.15; font-variation-settings: "SOFT" 100, "opsz" 36; letter-spacing: -0.01em; }
p { max-width: 62ch; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sec-night :focus-visible, .sec-photo:not(.sec-sun) :focus-visible, .hdr :focus-visible, .foot :focus-visible { outline-color: var(--honey); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--honey); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { position: relative; z-index: 2; width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--glass-light);
  border: 1px solid var(--glass-light-line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 24px 60px -24px rgb(90 55 8 / .35);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
}
.sec-night .glass, .sec-photo:not(.sec-sun) .glass {
  background: var(--glass-dark);
  border-color: var(--glass-dark-line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 30px 70px -30px rgb(0 0 0 / .7);
  color: var(--wax);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 700 1rem/1 var(--f-body);
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--honey); color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgb(255 197 61 / .65), inset 0 1px 0 rgb(255 255 255 / .55);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgb(255 197 61 / .85), inset 0 1px 0 rgb(255 255 255 / .55); }
.btn-ghost {
  background: rgb(255 255 255 / .12); color: inherit; border-color: rgb(255 255 255 / .4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sec-sun .btn-ghost, .sec-gold .btn-ghost { background: rgb(255 255 255 / .55); border-color: rgb(42 28 12 / .35); color: var(--ink); }
.btn-ghost:hover { background: rgb(255 255 255 / .24); }
.sec-sun .btn-ghost:hover, .sec-gold .btn-ghost:hover { background: rgb(255 255 255 / .85); }
.btn svg { width: 1.2rem; height: 1.2rem; }
.btn-wa { background: #25c466; color: #06240f; box-shadow: 0 10px 30px -10px rgb(37 196 102 / .7), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn-wa:hover { box-shadow: 0 16px 36px -10px rgb(37 196 102 / .9), inset 0 1px 0 rgb(255 255 255 / .5); }

/* ---------- Header: píldora de vidrio ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  padding-top: .8rem; height: calc(var(--header-h) + .8rem);
  margin-bottom: calc(-1 * (var(--header-h) + .8rem));
  pointer-events: none;
}
.hdr .wrap {
  pointer-events: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 .65rem 0 .65rem;
  background: rgb(22 26 16 / .64); color: var(--wax);
  border: 1px solid rgb(255 255 255 / .2); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 18px 50px -18px rgb(0 0 0 / .6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
}
.brand { display: block; width: 3.2rem; height: 3.2rem; flex: none; background: var(--wax); border-radius: 50%; padding: .28rem; transition: transform .3s ease; }
.brand:hover { transform: rotate(-8deg) scale(1.06); }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .35rem 0; position: relative; color: rgb(248 238 214 / .88); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="true"] { color: var(--honey); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: -.1rem; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--honey); clip-path: var(--hex); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scale(1.4); }
.nav .btn { padding: .8rem 1.25rem; font-size: .92rem; color: #06240f; }
.menu-btn { display: none; background: var(--honey); color: var(--ink); border: 0; border-radius: 999px; padding: .7rem 1.2rem; font: 700 .95rem var(--f-body); cursor: pointer; }

@media (max-width: 62rem) {
  .menu-btn { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + .6rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgb(22 26 16 / .82); border: 1px solid rgb(255 255 255 / .2); border-radius: 28px;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    padding: .6rem 1.4rem 1.3rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; border-bottom: 0; }
}

/* ---------- Secciones ---------- */
.sec { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.sec-head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); display: grid; gap: 1.1rem; }
.sec-head p { font-size: 1.15rem; }

/* Noche de campo: verde profundo con luces de miel */
.sec-night {
  background:
    radial-gradient(48rem 34rem at 82% 8%, rgb(255 197 61 / .30), transparent 62%),
    radial-gradient(40rem 30rem at 6% 92%, rgb(242 154 31 / .20), transparent 60%),
    radial-gradient(60rem 40rem at 50% 50%, rgb(61 82 38 / .55), transparent 70%),
    var(--night);
  color: var(--wax);
}
/* Sol de tarde: crema cálida con halos */
.sec-sun {
  background:
    radial-gradient(40rem 28rem at 92% 6%, rgb(255 197 61 / .55), transparent 65%),
    radial-gradient(34rem 26rem at 2% 70%, rgb(242 154 31 / .22), transparent 62%),
    radial-gradient(30rem 24rem at 60% 100%, rgb(47 159 220 / .12), transparent 65%),
    var(--sun);
}
.sec-gold {
  background:
    radial-gradient(36rem 28rem at 8% 0%, rgb(255 255 255 / .45), transparent 62%),
    radial-gradient(40rem 30rem at 100% 100%, rgb(242 154 31 / .6), transparent 62%),
    var(--honey);
}
/* Foto desenfocada de fondo */
.sec-photo { color: var(--wax); background: none; overflow: hidden; }
.bg-steps { --bg: url("../img/g-colmenas-arboles.webp"); }
.bg-contact { --bg: url("../img/g-campo-flores.webp"); }
.sec-photo::before {
  content: ""; position: absolute; inset: -2rem; z-index: -2;
  background: var(--bg) center / cover no-repeat;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.06);
}
.sec-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(22 26 16 / .62), rgb(22 26 16 / .82));
}
.sec-sun.sec-photo { color: var(--ink); }
.sec-sun.sec-photo::after { background: linear-gradient(180deg, rgb(255 243 210 / .78), rgb(255 243 210 / .9)); }

.honey-pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffc53d' stroke-width='1.4' stroke-opacity='.16'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.sec-sun.honey-pattern::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23f29a1f' stroke-width='1.4' stroke-opacity='.28'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { padding-block: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)) clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.7rem; justify-items: start; }
.hero-copy .lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 34rem; color: rgb(248 238 214 / .86); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); margin-top: clamp(1rem, 3vw, 2.5rem); font-weight: 600; font-size: 1rem; }
.facts li {
  display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.1rem 1.3rem; border-radius: 22px;
  background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 18px 40px -22px rgb(0 0 0 / .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  transition: transform .25s ease, background-color .25s ease;
}
.facts li:hover { transform: translateY(-2px); background: rgb(255 255 255 / .15); }
.facts svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--honey); }

.hexes {
  --gap: 2.17%;
  position: relative; width: 100%; aspect-ratio: 1 / .94;
  container-type: inline-size;
  filter: drop-shadow(0 26px 40px rgb(0 0 0 / .5));
}
.hex {
  position: absolute; width: 29%; aspect-ratio: .866;
  left: calc(var(--c) * 33.333% + var(--gap)); top: calc(var(--r) * 30.77% + 1.38%);
  background: rgb(255 255 255 / .42);
  clip-path: var(--hex);
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px);
  transition: translate .25s ease-out, scale .35s cubic-bezier(.3, 1.5, .5, 1);
}
.hex:hover { scale: 1.04; z-index: 2; }
.hex > div { position: absolute; inset: 3px; clip-path: var(--hex); overflow: hidden; background: var(--night-2); display: grid; place-content: center; text-align: center; }
.hex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hex-main { background: rgb(255 197 61 / .95); }
.hex-tile .t-big { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 120; font-weight: 600; font-size: 9cqw; line-height: 1; letter-spacing: -.03em; }
.hex-tile .t-small { font-size: 3.1cqw; font-weight: 600; line-height: 1.2; margin-top: .3em; }
.hex-honey > div { background: var(--honey); color: var(--ink); }
.hex-glass { background: rgb(255 255 255 / .5); }
.hex-glass > div { background: rgb(22 26 16 / .55); color: var(--wax); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

@media (prefers-reduced-motion: no-preference) {
  .hex { animation: hexIn .8s cubic-bezier(.2, .9, .3, 1.2) backwards; }
  .hex:nth-child(2) { animation-delay: .08s; } .hex:nth-child(3) { animation-delay: .16s; }
  .hex:nth-child(4) { animation-delay: .24s; } .hex:nth-child(5) { animation-delay: .32s; }
  .hex:nth-child(6) { animation-delay: .4s; } .hex:nth-child(7) { animation-delay: .48s; }
  @keyframes hexIn { from { opacity: 0; scale: .5; rotate: -12deg; } }
}
@media (max-width: 52rem) {
  .facts { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hexes { max-width: 30rem; margin-inline: auto; }
}

/* ---------- Productos ---------- */
.feat { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(1rem, 2.4vw, 1.75rem); align-items: stretch; }
.feat + .feat { margin-top: clamp(1.25rem, 2.6vw, 1.75rem); }
.feat.reverse { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
.feat.reverse .feat-media { order: 2; }
.feat-media { border-radius: 36px; overflow: hidden; background: var(--amber); border: 1px solid rgb(255 255 255 / .8); box-shadow: 0 40px 70px -30px rgb(90 55 8 / .55); }
.feat-media { position: relative; }
.feat-media video, .feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-cera .feat-media { min-height: 24rem; }
.feat-miel .feat-media { aspect-ratio: 1; }
.feat-body { display: grid; gap: 1.1rem; justify-items: start; align-content: center; padding: clamp(1.6rem, 3.4vw, 2.8rem); border-radius: 36px; }
.feat-body > p { font-size: 1.08rem; }

.price-list { width: min(100%, 31rem); display: grid; gap: .35rem; margin-block: .3rem; }
.price-list li { display: flex; align-items: baseline; gap: .6rem; font-weight: 600; }
.price-list li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgb(42 28 12 / .4); transform: translateY(-.25em); }
.price-list span:first-child { order: 0; }
.price-list strong { order: 2; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 48; font-size: 1.45rem; font-weight: 650; white-space: nowrap; }
.price-list small { font-family: var(--f-body); font-weight: 500; font-size: .9rem; }
.note { font-size: .96rem; opacity: .8; }

.mini-row { margin-top: clamp(1.25rem, 2.6vw, 1.75rem); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1rem, 2.4vw, 1.75rem); }
.mini { display: grid; grid-template-columns: 11rem 1fr; gap: 1.3rem; align-items: center; border-radius: 30px; padding: 1rem; }
.mini img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.mini h3 { margin-bottom: .5rem; }
.mini p { font-size: 1rem; }
.mini .btn { margin-top: .9rem; padding: .7rem 1.15rem; font-size: .92rem; }
@media (max-width: 62rem) {
  .feat, .feat.reverse { grid-template-columns: 1fr; }
  .feat.reverse .feat-media { order: 0; }
  .mini-row { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) { .mini { grid-template-columns: 1fr; } .mini img { aspect-ratio: 16 / 10; } }

/* ---------- Paso a paso ---------- */
.steps { --p: 0; position: relative; padding-top: 3rem; }
.steps-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: calc(3rem - 3px); height: 6px; border-radius: 6px; z-index: 1; }
.steps::before { right: 0; background: rgb(255 255 255 / .18); }
.steps::after { width: calc(var(--p) * 100%); background: var(--honey); box-shadow: 0 0 20px rgb(255 197 61 / .8); }
.bee-rider { position: absolute; left: calc(var(--p) * 100%); top: 3rem; width: 2.3rem; height: 2.3rem; translate: -50% -78%; z-index: 4; pointer-events: none; }
.step { position: relative; z-index: 2; display: grid; gap: .7rem; align-content: start; justify-items: start; padding: 4.2rem 1.5rem 1.7rem; border-radius: 28px; }
.step-n {
  position: absolute; top: 0; left: 1.3rem; translate: 0 -50%; z-index: 3;
  width: 5.2rem; aspect-ratio: .866; clip-path: var(--hex);
  display: grid; place-items: center; background: #3a4a28; color: var(--wax);
  font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 650; font-size: 2rem; padding-top: .15rem;
  transition: background-color .5s ease, color .5s ease, scale .5s cubic-bezier(.3, 1.6, .5, 1);
}
.step.on .step-n { background: var(--honey); color: var(--ink); scale: 1.12; }
.step p { font-size: .98rem; color: rgb(248 238 214 / .85); }
.steps-cta { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.steps-cta p { font-weight: 600; max-width: 30rem; }

@media (max-width: 62rem) {
  .steps-list { grid-template-columns: 1fr; gap: 3rem; }
  .steps { padding-top: 1.6rem; }
  .steps::before, .steps::after, .bee-rider { display: none; }
}

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 40px; border: 1px solid rgb(255 255 255 / .8); box-shadow: 0 40px 70px -30px rgb(90 55 8 / .6); }
.about-copy { display: grid; gap: 1.3rem; padding: clamp(1.6rem, 3.6vw, 3rem); border-radius: 36px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.2rem clamp(1.4rem, 4vw, 3rem); margin-block: .5rem; }
.stats strong { display: block; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 120; font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .95rem; }
@media (max-width: 62rem) { .about { grid-template-columns: 1fr; } .about-photo img { aspect-ratio: 1 / 1; border-radius: 32px; } }

/* ---------- Galería ---------- */
.gallery { position: relative; container-type: inline-size; width: 100%; max-width: 68rem; margin-inline: auto; aspect-ratio: 1 / .706; --w: 23.5cqw; --hp: 12.5cqw; --rp: 21.65cqw; }
.gallery figure { position: absolute; margin: 0; width: var(--w); aspect-ratio: .866; left: calc(var(--c) * var(--hp)); top: calc(var(--r) * var(--rp)); filter: drop-shadow(0 18px 22px rgb(0 0 0 / .45)); transition: transform .45s cubic-bezier(.3,1.5,.5,1), z-index 0s; }
.gallery figure::before { content: ""; position: absolute; inset: -3.5%; clip-path: var(--hex); background: linear-gradient(150deg, rgb(255 255 255 / .55), var(--honey) 45%, var(--amber)); opacity: .0; transition: opacity .3s; }
.gallery figure:hover, .gallery figure:focus-within { transform: translateY(-6px) scale(1.07); z-index: 2; }
.gallery figure:hover::before, .gallery figure:focus-within::before { opacity: 1; }
.gallery button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--night-2); clip-path: var(--hex); overflow: hidden; cursor: pointer; }
.gallery button:focus-visible { outline: none; }
.gallery figure:has(button:focus-visible)::before { opacity: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; }
.gallery button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(22 26 16 / .55)), radial-gradient(circle at 50% 50%, rgb(255 197 61 / .0), rgb(255 197 61 / .0)); opacity: .0; transition: opacity .35s; }
.gallery button:hover::after { opacity: 1; }
.gallery button:hover img { transform: scale(1.12); }
.gallery figure:nth-child(1){--c:0;--r:0}
.gallery figure:nth-child(2){--c:2;--r:0}
.gallery figure:nth-child(3){--c:4;--r:0}
.gallery figure:nth-child(4){--c:6;--r:0}
.gallery figure:nth-child(5){--c:1;--r:1}
.gallery figure:nth-child(6){--c:3;--r:1}
.gallery figure:nth-child(7){--c:5;--r:1}
.gallery figure:nth-child(8){--c:0;--r:2}
.gallery figure:nth-child(9){--c:2;--r:2}
.gallery figure:nth-child(10){--c:4;--r:2}
.gallery figure:nth-child(11){--c:6;--r:2}
@media (max-width: 40rem) {
  .gallery { aspect-ratio: 1 / 1.52; --w: 31.5cqw; --hp: 16.667cqw; --rp: 28.87cqw; }
  .gallery figure:nth-child(1){--c:0;--r:0}
  .gallery figure:nth-child(2){--c:2;--r:0}
  .gallery figure:nth-child(3){--c:4;--r:0}
  .gallery figure:nth-child(4){--c:1;--r:1}
  .gallery figure:nth-child(5){--c:3;--r:1}
  .gallery figure:nth-child(6){--c:0;--r:2}
  .gallery figure:nth-child(7){--c:2;--r:2}
  .gallery figure:nth-child(8){--c:4;--r:2}
  .gallery figure:nth-child(9){--c:1;--r:3}
  .gallery figure:nth-child(10){--c:3;--r:3}
  .gallery figure:nth-child(11){--c:2;--r:4}
}
.sec-night .sec-head p { color: rgb(248 238 214 / .8); }

dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lb::backdrop { background: rgb(14 17 9 / .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lb-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 4rem 1rem 2rem; }
.lb img { max-width: min(100%, 72rem); max-height: 100%; object-fit: contain; border-radius: 20px; box-shadow: 0 40px 100px rgb(0 0 0 / .6); }
.lb button { position: absolute; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .14); color: var(--wax); border-radius: 999px; font: 700 .95rem var(--f-body); padding: .7rem 1.2rem; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lb button:hover { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.lb .x { top: 1rem; right: 1rem; }
.lb .prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb .next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- Contacto ---------- */
#contacto { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
#contacto .sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); gap: .7rem; }
#contacto h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
#contacto .sec-head p { font-size: 1.05rem; }
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1rem, 2.5vw, 1.8rem); align-items: stretch; }
.contact-form { display: grid; gap: .85rem; align-content: start; border-radius: 28px; padding: clamp(1.1rem, 2.2vw, 1.7rem); }
.contact-form h3 { font-size: 1.35rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: rgb(255 255 255 / .75); border: 1px solid rgb(42 28 12 / .25); border-radius: 14px; padding: .6rem .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgb(47 159 220 / .25); background: #fff; }
.field textarea { resize: vertical; min-height: 4.2rem; }
.two { display: grid; grid-template-columns: 1.4fr .8fr; gap: .8rem; }
.contact-form .btn { padding: .9rem 1.4rem; }
.contact-side { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); grid-template-rows: auto 1fr; }
.info { border-radius: 28px; padding: clamp(1rem, 2vw, 1.5rem); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
.info-grid li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .7rem; align-items: start; font-size: .93rem; line-height: 1.4; }
.info-grid li.wide { grid-column: 1 / -1; }
.info-grid i { width: 2.5rem; height: 2.5rem; border-radius: 14px; background: linear-gradient(145deg, #ffd766, var(--amber)); color: var(--ink); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 8px 16px -8px rgb(190 110 10 / .7); transition: transform .25s cubic-bezier(.3,1.4,.5,1), rotate .25s; }
.info-grid li:hover i { transform: translateY(-2px) scale(1.06); rotate: -6deg; }
.info-grid i svg { width: 1.3rem; height: 1.3rem; }
.info-grid b { display: block; line-height: 1.2; font-size: .95rem; }
.info-grid a { display: block; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--amber); overflow-wrap: anywhere; }
.map { position: relative; min-height: 11rem; border: 1px solid rgb(255 255 255 / .85); border-radius: 28px; overflow: hidden; background: rgb(255 255 255 / .5); box-shadow: 0 30px 60px -28px rgb(90 55 8 / .5); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-btn { position: absolute; left: .8rem; bottom: .8rem; padding: .6rem 1rem; font-size: .85rem; }
@media (max-width: 62rem) { .contact { grid-template-columns: 1fr; } .map { min-height: 14rem; } }
@media (max-width: 36rem) { .info-grid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: #0f120a; color: rgb(248 238 214 / .85); padding-block: 2.2rem; border-top: 1px solid rgb(255 255 255 / .1); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .95rem; }
.foot a { text-underline-offset: 3px; text-decoration-color: var(--honey); }

/* ---------- Cursor ---------- */

.cur { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label, body.has-cursor select { cursor: none; }
  body.has-cursor input, body.has-cursor textarea { cursor: text; }
  .cur { display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; }
  .cur-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px rgb(255 255 255 / .6); transition: background-color .2s; }
  .cur-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; }
  .cur-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: scale .3s cubic-bezier(.3, 1.6, .5, 1), rotate .6s ease; }
  .cur-ring polygon { fill: rgb(255 255 255 / .06); stroke: var(--ink); stroke-width: 2; transition: fill .25s, stroke .2s; }
  .cur-label { position: relative; font: 800 .72rem var(--f-body); color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cur.hot .cur-ring svg { scale: 1.9; rotate: 30deg; }
  .cur.hot .cur-ring polygon { fill: rgb(255 197 61 / .94); stroke: rgb(255 255 255 / .9); }
  .cur.hot.sm .cur-ring svg { scale: 1.05; }
  .cur.hot.sm.down .cur-ring svg { scale: .9; }
  .cur.hot .cur-label { opacity: 1; }
  .cur.hot .cur-dot { opacity: 0; }
  .cur.dark .cur-dot { background: var(--honey); box-shadow: 0 0 0 2px rgb(0 0 0 / .35); }
  .cur.dark .cur-ring polygon { stroke: var(--honey); }
  .cur.dark.hot .cur-ring polygon { stroke: rgb(255 255 255 / .9); }
  .cur.down .cur-ring svg { scale: .7; }
  .cur.hot.down .cur-ring svg { scale: 1.5; }
}
.puff { position: fixed; z-index: 199; width: 12px; height: 14px; clip-path: var(--hex); background: var(--amber); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .cur, .puff { display: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
}

/* Productos: espaciado compacto */
#productos { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
#productos .sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); gap: .7rem; }
