/* ============================================================
   KAFÉ — Tipos de café · 2026
   ============================================================ */

:root {
  --bg: #0c0805;
  --bg-2: #120d08;
  --panel: #16100a;
  --cream: #f1e6d6;
  --muted: #a89880;
  --accent: #d19a5b;
  --accent-2: #8b5e34;
  --line: rgba(241, 230, 214, 0.12);
  --font-display: "Unbounded", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-body: "Manrope", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1400px, 100% - 10vw); margin-inline: auto; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -100%;
  z-index: 250; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-label {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.preloader-count {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--cream);
}
.preloader-bar {
  width: 220px; height: 2px; margin: 1.6rem auto 0;
  background: var(--line); overflow: hidden;
}
.preloader-bar span { display: block; width: 0; height: 100%; background: var(--accent); }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  opacity: 0;
}
body.custom-cursor .cursor-dot, body.custom-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(209, 154, 91, 0.55);
  transition: background 0.35s;
  will-change: transform;
}
.cursor-ring.is-hover { background: rgba(209, 154, 91, 0.1); }
body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
body.custom-cursor input, body.custom-cursor textarea, body.custom-cursor select,
body.custom-cursor label { cursor: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 0;
  transition: padding 0.4s, background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 0.85rem 0;
  background: rgba(12, 8, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 2.2rem; }
.nav-link {
  position: relative; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--cream);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn span { pointer-events: none; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #17100a; }
.btn-solid:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: #17100a; border-color: var(--cream); }
.btn-small { padding: 0.7rem 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center;
  background: #1a120a url("https://images.unsplash.com/photo-1447933601403-0c6688de566e?q=80&w=1600&auto=format&fit=crop") center/cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 5, 0.55) 0%, rgba(12, 8, 5, 0.15) 40%, rgba(12, 8, 5, 0.88) 100%),
    radial-gradient(80% 60% at 30% 80%, rgba(12, 8, 5, 0.5), transparent);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-content { position: relative; z-index: 3; padding-bottom: 9rem; }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 10.5vw, 9rem); line-height: 0.98; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line-inner { display: inline-block; will-change: transform; }
.hero-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none; color: var(--accent); font-size: 1.04em;
}
.hero-sub { max-width: 46ch; color: var(--muted); margin-top: 1.8rem; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-bottom {
  position: absolute; left: 0; right: 0;
  bottom: 2.2rem; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint { display: flex; align-items: center; gap: 0.9rem; }
.scroll-line { position: relative; width: 46px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: scrollLine 2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.15rem 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0.12em; color: var(--cream); white-space: nowrap;
}
.marquee-item i { font-style: normal; color: var(--accent); margin-left: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones: cabecera ---------- */
.section-head { margin-bottom: 4rem; }
.section-tag {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-tag::after { content: ""; width: 60px; height: 1px; background: var(--line); }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 4.2rem); line-height: 1.08; letter-spacing: -0.01em;
}
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.section-title .wi { display: inline-block; will-change: transform; }

/* ---------- Slider ---------- */
.slider-section { background: var(--bg-2); }
.slider-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 0 3.5rem; }
.slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.slider-count { font-family: var(--font-display); font-weight: 300; color: var(--muted); font-size: 1rem; letter-spacing: 0.2em; }
.slider-count #slider-current { color: var(--accent); }

.slider-viewport { overflow: hidden; margin-top: 3.2rem; }
.slider-track { display: flex; gap: 1.8rem; width: max-content; padding-inline: 5vw; will-change: transform; }

.coffee-card {
  position: relative; flex-shrink: 0;
  width: clamp(300px, 32vw, 430px);
  background: rgba(241, 230, 214, 0.03);
  border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden;
  transition: border-color 0.4s;
}
.coffee-card:hover { border-color: rgba(209, 154, 91, 0.5); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img {
  width: 114%; height: 100%; object-fit: cover; max-width: none;
  transition: filter 0.5s; filter: saturate(0.85);
  will-change: transform;
}
.coffee-card:hover .card-media img { filter: saturate(1.1); }
.card-num {
  position: absolute; top: 0.9rem; right: 1.1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 230, 214, 0.5);
}
.card-body { padding: 1.6rem 1.6rem 1.8rem; }
.card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.card-desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; min-height: 3.2em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.card-tags span {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.card-link {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.card-link .arrow { transition: transform 0.35s var(--ease-out); }
.card-link:hover .arrow { transform: translateX(6px); }

.slider-progress { margin-top: 3rem; height: 2px; background: var(--line); }
.slider-progress .bar { width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Características ---------- */
.chars { padding: 9rem 0; }
.chars-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 4rem; align-items: start; }

.chars-list { position: sticky; top: 7rem; }
.char-tab {
  display: flex; align-items: baseline; gap: 1.1rem;
  width: 100%; text-align: left; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.7rem);
  color: var(--muted);
  transition: color 0.35s, padding-left 0.35s var(--ease-out);
}
.char-tab i { font-family: var(--font-body); font-style: normal; font-size: 0.68rem; letter-spacing: 0.25em; color: var(--accent); }
.char-tab:hover { color: var(--cream); }
.char-tab.active { color: var(--cream); padding-left: 1rem; }

.chars-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1.5rem; overflow: hidden; }
.panel-media { aspect-ratio: 16 / 7; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-body { padding: 2.4rem; }
#panel-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.panel-desc { color: var(--muted); margin-top: 0.9rem; max-width: 62ch; }

.bars { display: grid; gap: 1.05rem; margin-top: 2.2rem; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 1.1rem; }
.bar-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.bar-track { height: 6px; border-radius: 999px; background: rgba(241, 230, 214, 0.08); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar-value { font-size: 0.78rem; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: 2.2rem; }
.spec { border: 1px solid var(--line); border-radius: 0.9rem; padding: 1rem 1.1rem; }
.spec-k { display: block; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.spec-v { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; margin-top: 0.4rem; }

/* ---------- Video band ---------- */
.video-band { position: relative; height: 78vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.band-video {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover;
  background: #1a120a url("https://images.unsplash.com/photo-1461023058943-07fcbe16d735?q=80&w=1600&auto=format&fit=crop") center/cover;
}
.band-overlay { position: absolute; inset: 0; background: rgba(12, 8, 5, 0.62); }
.band-quote { position: relative; z-index: 2; text-align: center; padding: 0 6vw; }
.band-quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 4.2vw, 3.4rem); line-height: 1.25; }
.band-quote em { color: var(--accent); }
.band-quote cite { display: block; margin-top: 1.6rem; font-family: var(--font-body); font-style: normal; font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding: 9rem 0; background: var(--bg-2); }
.faq-list { max-width: 920px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: 100%; text-align: left; padding: 1.7rem 0.4rem;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1rem, 1.8vw, 1.3rem);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); }
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { height: 0; overflow: hidden; }
.faq-a-inner { padding: 0 0.4rem 2rem; color: var(--muted); max-width: 68ch; line-height: 1.75; }

/* ---------- Galería ---------- */
.gallery { padding: 9rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.g-item {
  position: relative; overflow: hidden; border-radius: 1rem; cursor: zoom-in;
  border: 1px solid var(--line);
}
.g-item img { width: 100%; height: 108%; object-fit: cover; will-change: transform; transition: filter 0.5s; filter: saturate(0.85); }
.g-item:hover img { filter: saturate(1.15); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 8, 5, 0.85));
  opacity: 0; transition: opacity 0.45s;
}
.g-item:hover::after { opacity: 1; }
.g-item figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  transform: translateY(12px); opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.45s;
}
.g-item:hover figcaption { transform: translateY(0); opacity: 1; }
.g1 { grid-column: span 7; aspect-ratio: 4 / 3; }
.g2 { grid-column: span 5; aspect-ratio: 4 / 3.06; }
.g3 { grid-column: span 4; aspect-ratio: 3 / 4; }
.g4 { grid-column: span 4; aspect-ratio: 3 / 4; }
.g5 { grid-column: span 4; aspect-ratio: 3 / 4; }
.g6 { grid-column: span 5; aspect-ratio: 4 / 3.1; }
.g7 { grid-column: span 7; aspect-ratio: 16 / 9.9; }
.g8 { grid-column: span 12; aspect-ratio: 21 / 8; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 350;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(8, 5, 3, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
  cursor: zoom-out;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 1rem; }
.lightbox-cap { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { padding: 9rem 0 10rem; background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; align-items: start; }

.field { margin-bottom: 2rem; }
.field label { display: block; font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.2rem; color: var(--cream);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.35s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px var(--bg-2) inset; -webkit-text-fill-color: var(--cream); }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d19a5b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.3rem center;
}
.field select option { background: var(--panel); color: var(--cream); }

.check { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2.2rem; font-size: 0.85rem; color: var(--muted); }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.form-success {
  display: none; margin-top: 1.6rem; padding: 1rem 1.3rem;
  border: 1px solid rgba(209, 154, 91, 0.45); border-radius: 0.9rem;
  color: var(--accent); font-size: 0.92rem;
}
.form-success.visible { display: block; }

.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.info-k { display: block; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.info-v { display: block; font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; margin-top: 0.5rem; line-height: 1.5; }
.map-wrap { margin-top: 2.6rem; height: 350px; border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; }
.map-wrap iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.9);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 5.5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; }
.footer-logo span { color: var(--accent); }
.footer-blurb { color: var(--muted); font-size: 0.92rem; max-width: 42ch; margin-top: 1.4rem; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: 0.32rem 0; font-size: 0.92rem; color: var(--cream); opacity: 0.85; transition: opacity 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.footer-col a:hover { color: var(--accent); opacity: 1; transform: translateX(5px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted);
}
#to-top {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--accent); font-size: 1.1rem;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
#to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .chars-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .chars-list { position: static; display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
  .char-tab { width: auto; border-bottom: 0; border-top: 1px solid var(--line); padding: 0.9rem 0; }
  .char-tab.active { padding-left: 0; color: var(--accent); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .g1, .g2, .g6, .g7 { grid-column: span 6; }
  .g3, .g4, .g5 { grid-column: span 6; aspect-ratio: 4 / 3; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hero-content { padding-bottom: 7.5rem; }
  .hero-meta { display: none; }
  .slider-pin { min-height: 0; padding: 5rem 0 4rem; }
  .slider-head { align-items: flex-start; }
  .slider-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .slider-viewport::-webkit-scrollbar { display: none; }
  .coffee-card { scroll-snap-align: start; width: min(78vw, 380px); }
  .slider-progress { display: none; }
  .specs { grid-template-columns: 1fr 1fr; }
  .video-band { height: 60vh; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8 { grid-column: span 12; aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .panel-body { padding: 1.6rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
  .grain { animation: none; }
  .scroll-line::after { animation: none; }
}
