/* Dirección premium: la granja 3D como protagonista, tipografía limpia, píldoras. */
:root { --bg: #050507; --text: #F3F3F6; --mute: #9C9CAA; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.22); --amber: #FFB347; --violet: #8B6CFF; --cyan: #FFB347; --panel-solid: #0b0b10; --r: 22px; }
html { background: var(--bg); }
body { font-family: "Manrope", system-ui, sans-serif; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
::selection { background: var(--amber); color: #120a00; }
:focus-visible { outline-color: var(--amber); }

.demo-bar { background: transparent; color: var(--mute); border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: .01em; font-size: .78rem; }
.top { background: rgba(5, 5, 7, .55); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand b { color: var(--mute); font-weight: 500; margin-left: 4px; }
.brand-mark path:first-child { stroke: #F3F3F6; }
.top nav a { font-weight: 600; color: var(--mute); letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { color: var(--text); } }
.basket-btn { clip-path: none; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); padding: 6px 6px 6px 14px; font-weight: 700; letter-spacing: 0; }
.basket-btn svg { color: var(--text); }
.basket-count { border-radius: 999px; background: var(--text); color: #050507; }

.btn { clip-path: none; border-radius: 999px; letter-spacing: -0.005em; font-weight: 700; font-size: 1rem; padding: 14px 22px; }
.btn-primary, .btn-white { background: #F4F4F6; color: #07070a; }
.btn-white { padding: 7px 7px 7px 22px; gap: 14px; }
.btn-dot { width: 36px; height: 36px; border-radius: 999px; background: #07070a; color: #fff; display: grid; place-items: center; transition: transform 220ms var(--ease-out); }
.btn-dot svg { width: 16px; height: 16px; }
.btn-ghost, .btn-line { background: rgba(255,255,255,.05); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-white:hover { background: #fff; }
  .btn-white:hover .btn-dot { transform: rotate(45deg); }
  .btn-ghost:hover, .btn-line:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
}
.icon-btn { border-radius: 999px; border-color: var(--line-2); background: rgba(255,255,255,.05); }

/* ---------- Hero: la granja a pantalla completa ---------- */
.hero { display: block; position: relative; min-height: calc(100svh - 92px); padding: 0; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,7,.9) 0%, rgba(5,5,7,.55) 30%, rgba(5,5,7,0) 58%), linear-gradient(0deg, rgba(5,5,7,1) 0%, rgba(5,5,7,0) 20%), linear-gradient(180deg, rgba(5,5,7,.6) 0%, rgba(5,5,7,0) 16%); }
.hero-copy { position: absolute; z-index: 1; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(560px, 44vw); max-width: none; align-self: auto; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; color: #D4D4DC; }
.eyebrow-pill .dot { border-radius: 999px; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,179,71,.2); }
.hero h1 { font-size: clamp(2.7rem, 5.2vw, 4.9rem); letter-spacing: -0.048em; line-height: .97; }
.hero .lead { color: #BDBDC9; margin: 22px 0 30px; font-size: clamp(1rem, 1.25vw, 1.14rem); max-width: 44ch; }
.hero-buy { gap: 10px; align-items: center; }
.readline { margin: 22px 0 0; font-size: .86rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.hero-foot { position: absolute; z-index: 1; left: var(--gutter); bottom: 26px; margin: 0; display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--mute); }
.hero-foot span { width: 46px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-foot span::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: translateX(-100%); animation: sweep 2.4s var(--ease-in-out) infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.no-webgl .hero { background: radial-gradient(60% 70% at 70% 50%, #2a1b12 0%, #050507 70%); }
.hero-copy > * { animation: rise 900ms var(--ease-out) both; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 50vh var(--gutter) 56px; }
  .hero::after { background: linear-gradient(180deg, rgba(5,5,7,.4) 0%, rgba(5,5,7,0) 18%, rgba(5,5,7,0) 36%, rgba(5,5,7,.92) 58%, rgba(5,5,7,1) 100%); }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; width: 100%; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero-foot { display: none; }
}

/* ---------- Secciones ---------- */
.panel { background: var(--bg); backdrop-filter: none; border-top: 1px solid var(--line); }
.panel::before { display: none; }
.cat-head h2, .days h2, .contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.chip { border-radius: 999px; letter-spacing: 0; font-weight: 600; font-size: .9rem; color: var(--mute); }
.chip[aria-pressed="true"] { background: #F4F4F6; color: #07070a; border-color: #F4F4F6; }
.search input, .sort select { border-radius: 999px; background-color: #0c0c12; }
.sort select { background-repeat: no-repeat; }
.sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23F3F3F6' stroke-width='2.2'/%3E%3C/svg%3E"); }
.cat-count { letter-spacing: .02em; font-weight: 600; }
.roster { gap: 14px; background: none; border: 0; }
.pal { border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, #0f0f16, #08080c); }
.pal::after { display: none; }
.pal-no { color: var(--mute); letter-spacing: .04em; }
.tech { stroke: #E8E8F0; }
.tech .c { stroke: var(--violet); }
.tech .a { stroke: var(--amber); }
.pal-name { font-weight: 700; letter-spacing: -0.02em; font-size: 1.35rem; }
.pal-spec { color: var(--amber); letter-spacing: 0; font-weight: 700; }
.pal-foot { border-top-color: var(--line); }
.add { border-radius: 999px; background: #F4F4F6; color: #07070a; letter-spacing: 0; font-weight: 700; padding: 10px 16px; }
.pal[data-in="true"] .add { box-shadow: inset 0 0 0 1px var(--line-2); }
.stamp { border-radius: 999px; color: var(--amber); letter-spacing: .02em; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .pal:hover { background: linear-gradient(180deg, #14141d, #0a0a0f); border-color: rgba(255,255,255,.2); } }
.readouts, .contact-list { border-radius: var(--r); overflow: hidden; }
.readouts dt, .contact-list span, .specs dt, .quote label, .total span, .ribbon { letter-spacing: .02em; }
.contact-list a, .foot a { color: var(--text); }
.sheet { border-radius: 28px; border-color: var(--line-2); }
.sheet-art { background-image: none; background: radial-gradient(80% 80% at 50% 40%, #1d1630 0%, #08080c 70%); }
.drawer { border-radius: 28px 0 0 28px; }
.lines { border-radius: 18px; overflow: hidden; }
.qty { border-radius: 999px; }
.qty button { color: var(--text); }
.quote input, .quote textarea { border-radius: 14px; }
.total strong { color: var(--text); }
.hud-bar, .hud { display: none; }

/* ---------- Pulido: 21 días, tarjetas y transición del hero ---------- */
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--amber) var(--p, 30%), rgba(255,255,255,.12) var(--p, 30%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; border-radius: 999px; border: 0; background: #F4F4F6; box-shadow: 0 0 0 6px rgba(255,179,71,.18), 0 4px 14px rgba(0,0,0,.5); transform: none; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 999px; border: 0; background: #F4F4F6; box-shadow: 0 0 0 6px rgba(255,179,71,.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.readouts { gap: 0; background: rgba(255,255,255,.03); border-color: var(--line); }
.readouts div { background: transparent; }
.readouts div + div { border-left: 1px solid var(--line); }
.days-copy > p:first-of-type { color: #BDBDC9; }
.candler svg { filter: drop-shadow(0 30px 60px rgba(255,140,60,.18)); }

/* tarjetas: luz cálida que sigue al cursor */
.pal { position: relative; overflow: hidden; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.pal::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 240ms ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,179,71,.12), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .pal:hover::before { opacity: 1; } }
.pal-open { border-radius: 16px; background: radial-gradient(90% 80% at 50% 100%, rgba(255,179,71,.08), transparent 70%), #0b0b11; }

/* transición del hero al contenido */
.hero + .panel, #catalogo { border-top: 0; }
#catalogo { position: relative; }
#catalogo::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,179,71,.45), transparent); }
@media (prefers-reduced-motion: reduce) { .pal, .pal::before { transition: none; } }
