/* =============================================================
   CASTAPAN — Hoja de estilos principal
   Fuentes objetivo: Uto (display) + Korolev (body)
   Temporal: Nunito (display) + Inter (body)
   ============================================================= */

/* =============================================================
   1. Tokens de diseño
   ============================================================= */
:root {
  /* Paleta de marca */
  --vinotinto:   #762218;
  --vinotinto-2: #5E1A13;
  --vinotinto-3: #8A2B20;
  --dorado:      #F0DE91;
  --dorado-2:    #D4C17A;
  --dorado-3:    #9A8950;
  --oscuro:      #3B2625;
  --oscuro-2:    #2E1D1C;
  --crema:       #FBF5E6;
  --crema-2:     #F2E8CC;

  /* Semánticos */
  --bg:          var(--crema);
  --bg-alt:      #FFFFFF;
  --bg-dark:     var(--oscuro);
  --bg-vino:     var(--vinotinto);
  --text:        var(--oscuro);
  --text-soft:   #5C3F3D;
  --text-muted:  #8A6B69;
  --line:        rgba(118,34,24,.15);
  --line-light:  rgba(240,222,145,.18);

  /* Tipografía */
  --display:  "Nunito", "Uto", -apple-system, sans-serif;
  --body:     "Inter", "Korolev", -apple-system, system-ui, sans-serif;

  /* Espaciado */
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --max-w:   1200px;
  --nav-h:   62px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  font-size: 92%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: none; border: 0; background: none; }
a { color: inherit; text-decoration: none; cursor: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; }
::selection { background: var(--vinotinto); color: var(--dorado); }
:focus-visible { outline: 2px solid var(--vinotinto); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--vinotinto); color: var(--dorado);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Cursor custom (bolita) — solo en desktop con mouse fino */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--vinotinto);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  margin-left: -6px;
  margin-top: -6px;
  /* Sin transition en transform — posición instantánea */
  transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background .2s ease, opacity .25s ease;
  opacity: 0;
  will-change: transform;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-pointer {
  width: 28px; height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  background: var(--dorado);
}
.cursor-dot.is-down {
  width: 8px; height: 8px;
  margin-left: -4px;
  margin-top: -4px;
}
@media (hover: none) or (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Reveal delay */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.eyebrow {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--vinotinto);
}
.eyebrow-light { color: var(--dorado-2); }

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--oscuro);
  letter-spacing: -.02em;
}
.section-title-light { color: var(--dorado); }

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--vinotinto);
}
.section-title-light em { color: var(--dorado-2); }

.section-sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: var(--text-soft);
  max-width: 58ch;
  line-height: 1.75;
}
.section-sub-light { color: rgba(251,245,230,.75); }

/* Separador vinotinto */
.divider {
  width: 44px; height: 3px;
  background: var(--vinotinto);
  border-radius: 3px;
  margin: 1.25rem 0;
}
.divider-center { margin-inline: auto; }
.divider-dorado { background: var(--dorado); }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2.25rem;
  border-radius: 100px;
  font-family: var(--body);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-vino {
  background: var(--vinotinto);
  color: var(--dorado);
}
.btn-vino:hover { background: var(--vinotinto-2); box-shadow: 0 8px 28px rgba(118,34,24,.4); }

.btn-dorado {
  background: var(--dorado);
  color: var(--oscuro);
}
.btn-dorado:hover { background: #f5e89a; box-shadow: 0 8px 28px rgba(240,222,145,.4); }

.btn-ghost-vino {
  border: 2px solid var(--vinotinto);
  color: var(--vinotinto);
  background: transparent;
}
.btn-ghost-vino:hover { background: var(--vinotinto); color: var(--dorado); }

.btn-ghost-light {
  border: 2px solid rgba(240,222,145,.5);
  color: var(--dorado);
  background: transparent;
}
.btn-ghost-light:hover { background: rgba(240,222,145,.12); border-color: var(--dorado); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
}
.btn-whatsapp:hover { background: #20b954; box-shadow: 0 8px 28px rgba(37,211,102,.35); }

/* --- Navegación --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .4s var(--ease-out), box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(59,38,37,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(251,245,230,.75);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--dorado);
  transition: width .3s var(--ease-out);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--dorado); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { margin-left: .8rem; padding: .6rem 1.45rem; font-size: .8rem; font-weight: 700; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--dorado);
  transition: transform .3s var(--ease-out), opacity .3s;
  border-radius: 2px;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  background: rgba(59,38,37,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1.5rem var(--gutter) 2rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  z-index: 99;
  border-top: 1px solid rgba(240,222,145,.12);
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: all; }
.nav-mobile a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(251,245,230,.78);
  padding: .85rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(240,222,145,.08);
  transition: color .25s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--dorado); }
.nav-mobile .btn { border-bottom: none; margin-top: 1.25rem; width: auto; padding: .7rem 2rem; }

/* --- Placeholder imágenes --- */
.img-ph {
  background: var(--crema-2);
  border: 2px dashed rgba(118,34,24,.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 2.5rem 1.5rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.img-ph::before { content: '📷'; font-size: 2.25rem; }
.img-ph-dark {
  background: rgba(59,38,37,.5);
  border-color: rgba(240,222,145,.15);
  color: rgba(240,222,145,.5);
}

/* --- Cards de producto --- */
.product-card {
  background: #fff;
  border: 1px solid rgba(118,34,24,.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(118,34,24,.15);
  }
}
.product-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-card-body { padding: 1.75rem; }
.product-card-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oscuro);
  margin-bottom: .5rem;
}
.product-card-body p { font-size: .9rem; color: var(--text-soft); line-height: 1.65; }
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--vinotinto);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: gap .3s var(--ease-out);
}
.product-card-link:hover { gap: .6rem; }

/* --- Sección genérica --- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: var(--oscuro); }
.section-vino { background: var(--vinotinto); }
.section-crema { background: var(--crema-2); }

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.centered { text-align: center; }
.section-header.centered .divider { margin-inline: auto; }
.section-header.centered .section-sub { margin-inline: auto; }

/* --- Splash --- */
.splash {
  position: fixed; inset: 0;
  background: var(--oscuro);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .7s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash.is-out { opacity: 0; pointer-events: none; }
.splash-logo {
  width: 160px;
  animation: splashPulse 1.8s var(--ease-soft) infinite alternate;
}
@keyframes splashPulse {
  from { opacity: .5; transform: scale(.96); }
  to   { opacity: 1;  transform: scale(1.02); }
}

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
@media (hover: hover) {
  .wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Footer */
.footer { background: var(--oscuro); padding: 4.5rem 0 1.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 3.5rem; } }
.footer-col h4 {
  font-size: .7rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dorado);
  margin-bottom: 1.15rem; font-family: var(--body);
  position: relative; padding-bottom: .6rem;
}
.footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--vinotinto); border-radius: 2px;
}
.footer-logo img { height: 42px; width: auto; margin-bottom: 1.1rem; }
.footer-tagline {
  font-size: .85rem; color: rgba(240,222,145,.65);
  max-width: 32ch; line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-tagline strong { color: var(--dorado); font-weight: 700; }

/* Socials */
.footer-socials {
  display: flex; gap: .55rem;
  margin-top: .5rem;
}
.footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(240,222,145,.08);
  border: 1px solid rgba(240,222,145,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--dorado);
  transition: all .3s var(--ease-out);
}
.footer-social:hover {
  background: var(--vinotinto);
  border-color: var(--vinotinto);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Navegación / contacto */
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; padding: 0; margin: 0; }
.footer-nav a, .footer-contact a {
  font-size: .87rem; color: rgba(240,222,145,.72);
  transition: color .25s; line-height: 1.55;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--dorado); }

/* Contacto */
.footer-contact ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: rgba(240,222,145,.72); line-height: 1.55; }
.footer-contact-icon {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--vinotinto);
  margin-top: .15rem;
}
.footer-contact-icon svg { width: 100%; height: 100%; fill: currentColor; }
.footer-contact small {
  display: block; font-size: .72rem; color: rgba(240,222,145,.5);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: .2rem; font-weight: 600;
}

/* Línea ética */
.footer-etica-card {
  background: rgba(118,34,24,.18);
  border: 1px solid rgba(118,34,24,.4);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.footer-etica-card p {
  font-size: .78rem; color: rgba(240,222,145,.7); line-height: 1.55;
  margin-bottom: .65rem;
}
.footer-etica-card a {
  font-size: .85rem; color: var(--dorado); font-weight: 700;
  word-break: break-all;
}
.footer-etica-card a:hover { color: #fff; }

/* Bottom */
.footer-bottom {
  margin-top: 0; padding-top: 1.75rem;
  border-top: 1px solid rgba(240,222,145,.1);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.footer-legal { font-size: .72rem; color: rgba(240,222,145,.4); line-height: 1.65; }
.footer-legal strong { color: rgba(240,222,145,.65); font-weight: 600; }
.footer-policies {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .72rem;
}
.footer-policies a {
  color: rgba(240,222,145,.5); transition: color .25s;
}
.footer-policies a:hover { color: var(--dorado); }

/* =============================================================
   6. Secciones específicas — inicio
   ============================================================= */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--oscuro);
  display: grid;
  grid-template-columns: 3fr 2fr;
  overflow: hidden;
}
.hero-image-col {
  position: relative;
  min-height: 60vw;
}
.hero-image-col .img-ph {
  height: 100%;
  border-radius: 0;
  border: none;
  min-height: 100%;
  border-right: 4px solid var(--vinotinto);
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--oscuro) 100%);
  pointer-events: none;
}
.hero-image-caption {
  position: absolute;
  top: calc(var(--nav-h) + 8rem);
  left: 55%;
  z-index: 2;
  pointer-events: none;
  max-width: 40%;
  text-align: left;
}
.hero-image-caption .hero-slogan {
  margin-bottom: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
@media (max-width: 767px) {
  .hero-image-caption { top: calc(var(--nav-h) + 1rem); left: 1.25rem; right: auto; max-width: 70%; }
}
.hero-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  position: relative;
  z-index: 2;
}
.hero-logo {
  width: clamp(180px, 22vw, 280px);
  margin-bottom: 2rem;
}
.hero-slogan {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dorado);
  line-height: 1.2;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.hero-slogan strong {
  font-weight: 800;
  font-style: normal;
  color: #fff;
}
.hero-tagline {
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: rgba(251,245,230,.6);
  max-width: 38ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border: 1px solid rgba(240,222,145,.15);
  border-radius: 100px;
  width: fit-content;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--vinotinto);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(118,34,24,.5); }
  50%       { opacity: .8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(118,34,24,0); }
}
.hero-badge-text { font-size: .75rem; font-weight: 600; color: rgba(240,222,145,.6); letter-spacing: .08em; text-transform: uppercase; }

/* --- FRANJA VINOTINTO (sección narrativa) --- */
.franja-narrativa {
  background: var(--vinotinto);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
/* watermark CASTAPAN removido por solicitud */
.narrativa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.narrativa-item {
  padding: 2rem var(--gutter);
  border-bottom: 1px solid rgba(240,222,145,.12);
  position: relative;
}
.narrativa-item:last-child { border-bottom: none; }
.narrativa-frase {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--dorado);
  line-height: 1.2;
  margin-bottom: .4rem;
}
.narrativa-desc {
  font-size: .88rem;
  color: rgba(240,222,145,.6);
  font-style: italic;
  line-height: 1.55;
}

/* --- HISTORIA PREVIEW --- */
.historia-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.historia-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--vinotinto);
  line-height: 1.35;
  border-left: 4px solid var(--vinotinto);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* --- PRODUCTOS PREVIEW --- */
.productos-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --- CTA FINAL --- */
.cta-block {
  background: var(--oscuro);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block .section-sub { margin-inline: auto; }
.cta-block .eyebrow { display: block; }
.cta-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(118,34,24,.4), transparent 70%);
  pointer-events: none;
}
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- página interna hero --- */
.page-hero {
  background: var(--oscuro);
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(118,34,24,.5), transparent 65%);
  pointer-events: none;
}

/* --- Timeline historia --- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--vinotinto), transparent);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; padding-left: 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: .45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--vinotinto); border: 2px solid var(--crema-2);
}
.timeline-year {
  font-family: var(--display); font-size: 1.3rem; font-weight: 800;
  color: var(--vinotinto); margin-bottom: .3rem;
}
.timeline-text { font-size: .92rem; color: var(--text-soft); line-height: 1.7; }

/* --- Certificaciones badges --- */
.cert-badges, .cert-badges-hero {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.cert-badges-hero {
  justify-content: center;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  background: rgba(118,34,24,.08);
  border: 1.5px solid rgba(118,34,24,.2);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--vinotinto);
  font-family: var(--body);
}
.cert-badges-hero .cert-badge {
  background: rgba(240,222,145,.12);
  border-color: rgba(240,222,145,.3);
  color: var(--dorado);
}
.cert-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--vinotinto);
  color: var(--dorado);
  font-size: .65rem;
  font-weight: 900;
}
.cert-badges-hero .cert-check {
  background: var(--dorado);
  color: var(--vinotinto);
}

/* --- Canales (Instituciones / Distribuidores) — Acordeón --- */
.canales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .canales-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.canal-card {
  background: #fff;
  border: 1.5px solid rgba(118,34,24,.12);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .35s, box-shadow .35s var(--ease-out);
}
.canal-card.is-open {
  border-color: var(--vinotinto);
  box-shadow: 0 16px 48px rgba(118,34,24,.14);
}
/* Si solo una card está abierta y la hermana cerrada, la abierta se expande */
.canales-grid:has(.canal-card.is-open):has(.canal-card:not(.is-open)) .canal-card.is-open {
  grid-column: 1 / -1;
}
@media (hover: hover) {
  .canal-card:hover:not(.is-open) {
    border-color: rgba(118,34,24,.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(118,34,24,.08);
  }
}
.canal-card-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  transition: background .25s;
}
.canal-card-toggle:hover { background: rgba(118,34,24,.025); }
.canal-card-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: var(--vinotinto);
  color: var(--dorado);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.canal-card-text {
  flex: 1;
  min-width: 0;
}
.canal-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--oscuro);
  margin-bottom: .25rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.canal-card-sub {
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: .5rem;
}
.canal-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--vinotinto);
}
.canal-card-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--crema-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vinotinto);
  transition: transform .4s var(--ease-bounce), background .25s;
}
.canal-card.is-open .canal-card-arrow {
  transform: rotate(180deg);
  background: var(--vinotinto);
  color: var(--dorado);
}

/* Panel colapsable */
.canal-card-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-out);
}
.canal-card.is-open .canal-card-panel { max-height: 3000px; }
.canal-card-panel-inner {
  padding: 0 2rem 2rem;
  border-top: 1px solid rgba(118,34,24,.08);
  padding-top: 1.5rem;
}
.canal-products .product-item {
  background: var(--crema);
  border-color: rgba(118,34,24,.08);
}

/* Nota explicativa dentro del panel */
.canal-note {
  background: rgba(118,34,24,.05);
  border-left: 3px solid var(--vinotinto);
  padding: .9rem 1.15rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.canal-note strong {
  color: var(--vinotinto);
  font-weight: 700;
}
.canal-note-desc {
  margin: 0 0 .65rem;
}
.canal-note-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.canal-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  background: #fff;
  border: 1px solid rgba(118,34,24,.12);
  border-radius: 100px;
  font-size: .78rem;
  white-space: nowrap;
}
.canal-pill strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: .85rem;
}
.canal-pill em {
  font-style: italic;
  font-size: .72rem;
  color: var(--text-muted);
}

/* --- Modal de Producto --- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59,38,37,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.product-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: scale(.94) translateY(20px);
  transition: transform .4s var(--ease-bounce);
}
.product-modal.is-open .product-modal-content {
  transform: scale(1) translateY(0);
}
.product-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--oscuro);
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform .3s var(--ease-out), background .25s;
}
.product-modal-close:hover {
  background: var(--vinotinto);
  transform: rotate(90deg) scale(1.05);
}
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .product-modal-grid { grid-template-columns: 1fr 1fr; }
}
.product-modal-media {
  background: var(--crema-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
@media (min-width: 720px) {
  .product-modal-media {
    border-top-right-radius: 0;
    border-bottom-left-radius: 24px;
    min-height: 100%;
  }
}
.product-modal-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  min-height: 280px;
}
.product-modal-img span { font-size: 3rem; opacity: .35; }
.product-modal-img p {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.product-modal-img em {
  font-style: normal;
  font-size: .7rem;
  color: var(--vinotinto);
}
.product-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-modal-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #100808;
  min-height: 280px;
}
.canal-inst .product-item-img img,
.canal-inst .product-item-img video,
#productModal.modal-inst .product-modal-img img,
#productModal.modal-inst .product-modal-img video {
  filter: brightness(1.04) contrast(1.08) saturate(1.1);
}
.product-modal-info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-modal-info h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--oscuro);
  letter-spacing: -.02em;
  margin: .35rem 0 .25rem;
  line-height: 1.15;
}
.product-modal-info .divider { margin: 1rem 0; }
.product-modal-presentation {
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--vinotinto);
  font-weight: 700;
  margin-bottom: 1rem;
}
.product-modal-desc {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* Body scroll lock cuando modal abierto */
body.modal-open { overflow: hidden; }


/* --- CTA "¿No encuentras lo que buscas?" --- */
.no-encuentro {
  background: linear-gradient(135deg, var(--vinotinto), var(--vinotinto-2));
  border-radius: 18px;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.no-encuentro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(240,222,145,.12), transparent 60%);
  pointer-events: none;
}
.no-encuentro p {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--dorado);
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin: 0;
}
.no-encuentro .btn {
  position: relative;
  z-index: 1;
}
@media (min-width: 540px) {
  .no-encuentro {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Fundadores (4 hermanos) --- */
.fundadores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 460px;
  margin-inline: auto;
}
.fundador {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
.fundador-foto {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--crema-2);
  border: 3px solid var(--vinotinto);
  padding: 4px;
  position: relative;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  box-shadow: 0 6px 24px rgba(59,38,37,.18);
}
.fundador-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
@media (hover: hover) {
  .fundador:hover .fundador-foto {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 36px rgba(118,34,24,.28);
  }
  .fundador:hover .fundador-foto img {
    filter: grayscale(0%) brightness(1.05);
  }
}
.fundador-foto img {
  transition: filter .5s var(--ease-out);
}
.fundador figcaption {
  font-family: var(--display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 800;
  color: var(--oscuro);
  letter-spacing: -.01em;
}
.fundador figcaption::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--vinotinto);
  margin: .35rem auto 0;
  border-radius: 2px;
}

/* --- Vertical Timeline alternada (Historia) --- */
.vtimeline {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto 2rem;
  padding: 1rem 0;
}

/* Línea vertical central */
.vtimeline-line {
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--vinotinto) 6%,
    var(--vinotinto) 94%,
    transparent 100%
  );
}

/* Cada fila */
.vtimeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
  align-items: start;
}
.vtimeline-row:last-child { margin-bottom: 0; }

/* Punto en la línea */
.vtimeline-dot {
  position: absolute;
  left: 21px; top: .65rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--vinotinto);
  border: 3px solid var(--crema-2);
  box-shadow: 0 0 0 3px rgba(118,34,24,.15);
  z-index: 2;
}
.vtimeline-dot-glow {
  background: var(--dorado);
  border-color: var(--vinotinto);
  box-shadow: 0 0 0 3px rgba(240,222,145,.4), 0 0 20px rgba(240,222,145,.5);
  animation: vtDotPulse 2s ease-in-out infinite;
}
@keyframes vtDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .85; }
}

/* Media (foto placeholder o real) */
.vtimeline-media {
  grid-column: 2;
  grid-row: 1;
  order: 2;
}

/* Contenido */
.vtimeline-content {
  grid-column: 2;
  grid-row: 2;
  order: 3;
  padding-top: .75rem;
}

/* Foto */
.vtimeline-photo {
  background: var(--crema-2);
  border: 2px dashed rgba(118,34,24,.18);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}
.vtimeline-photo span { font-size: 2rem; }
.vtimeline-photo p {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.5;
}
.vtimeline-photo em {
  font-style: normal;
  font-size: .7rem;
  color: var(--vinotinto);
  letter-spacing: .1em;
}
/* Cuando haya imagen real */
.vtimeline-photo-real {
  padding: 0;
  border: none;
}
.vtimeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* Tratamientos visuales por época */
.vtimeline-bw img { filter: grayscale(100%) contrast(1.08); }
.vtimeline-sepia img { filter: sepia(.6) contrast(1.05) saturate(.85); }
.vtimeline-glow {
  box-shadow: 0 12px 50px rgba(240,222,145,.25), 0 0 0 2px var(--dorado);
}

/* Año */
.vtimeline-year {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--vinotinto);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
}

/* Título */
.vtimeline-title {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  color: var(--oscuro);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: .85rem;
}

/* Texto */
.vtimeline-text {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 56ch;
}

/* --- Responsive: 2 columnas alternadas --- */
@media (min-width: 880px) {
  .vtimeline { max-width: 1100px; }
  .vtimeline-line {
    left: 50%;
    transform: translateX(-1px);
  }
  .vtimeline-row {
    grid-template-columns: 1fr 56px 1fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
  }
  .vtimeline-dot {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
  }
  /* Filas pares: foto a la IZQ, texto a la DER */
  .vtimeline-row:nth-child(odd) .vtimeline-media {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }
  .vtimeline-row:nth-child(odd) .vtimeline-content {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
    padding-top: 0;
  }
  /* Filas impares: texto a la IZQ, foto a la DER */
  .vtimeline-row:nth-child(even) .vtimeline-media {
    grid-column: 3;
    grid-row: 1;
  }
  .vtimeline-row:nth-child(even) .vtimeline-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-top: 0;
  }
  .vtimeline-row:nth-child(even) .vtimeline-text {
    margin-left: auto;
  }
}

/* --- Trabajos vacantes --- */
.jobs-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.job-card {
  background: #fff; border: 1.5px solid rgba(118,34,24,.1); border-radius: 14px;
  padding: 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: border-color .3s, transform .3s var(--ease-out);
}
@media (hover: hover) { .job-card:hover { border-color: var(--vinotinto); transform: translateY(-2px); } }
.job-info h3 { font-size: 1rem; color: var(--oscuro); font-weight: 700; margin-bottom: .2rem; }
.job-meta { font-size: .8rem; color: var(--text-muted); }
.job-tag {
  font-size: .72rem; padding: .35rem .9rem; border-radius: 100px;
  background: rgba(118,34,24,.08); border: 1px solid rgba(118,34,24,.2);
  color: var(--vinotinto); font-weight: 600; white-space: nowrap;
}

/* --- Contacto --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-card {
  background: #fff; border: 1.5px solid rgba(118,34,24,.1); border-radius: 20px;
  padding: 2rem; text-align: center;
  transition: border-color .3s, transform .3s var(--ease-out);
}
@media (hover: hover) { .contact-card:hover { border-color: var(--vinotinto); transform: translateY(-3px); } }
.contact-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--vinotinto); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.4rem;
  color: var(--dorado);
}
.contact-icon-wa { background: #25D366; color: #fff; }
.contact-card h3 { font-size: 1.05rem; color: var(--oscuro); font-weight: 700; margin-bottom: .4rem; }
.contact-card p { font-size: .88rem; color: var(--text-soft); margin-bottom: 1.25rem; line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff; border: 1.5px solid rgba(118,34,24,.1); border-radius: 14px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item.is-open { border-color: var(--vinotinto); box-shadow: 0 10px 28px rgba(118,34,24,.1); }
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; color: var(--oscuro); font-weight: 700; font-size: .98rem; cursor: pointer;
  transition: background .2s; font-family: inherit;
}
.faq-q:hover { background: rgba(118,34,24,.03); }
.faq-item.is-open .faq-q { color: var(--vinotinto); }
.faq-q svg {
  flex-shrink: 0; width: 22px; height: 22px;
  stroke: var(--vinotinto); fill: none; stroke-width: 2.5;
  transition: transform .35s var(--ease-out);
  background: rgba(118,34,24,.06); border-radius: 50%; padding: 4px;
}
.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
  background: var(--vinotinto);
  stroke: var(--dorado);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), padding .3s;
  padding: 0 1.5rem; color: var(--text-soft); font-size: .92rem; line-height: 1.75;
}
.faq-a p { margin-bottom: .75rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--oscuro); font-weight: 700; }
.faq-item.is-open .faq-a { max-height: 600px; padding: .25rem 1.5rem 1.5rem; }

/* Layout planta — img y horario con misma altura */
.planta-layout {
  align-items: stretch;
}
.planta-layout > div {
  display: flex;
  min-height: 100%;
}
.planta-media, .planta-info {
  width: 100%;
  display: flex;
}
.planta-media .img-ph {
  width: 100%;
  min-height: 380px;
  height: 100%;
  flex: 1;
}
.planta-info .horario-card {
  width: 100%;
  flex: 1;
}

/* Horario card */
.horario-card {
  background: var(--oscuro);
  color: var(--dorado);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  width: 100%;
}
.horario-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(118,34,24,.55), transparent 70%),
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(118,34,24,.35), transparent 65%);
  pointer-events: none;
}
.horario-card h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--dorado);
  margin-bottom: 1.75rem;
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}
.horario-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: rgba(240,222,145,.1);
  border-radius: 10px;
  border: 1px solid rgba(240,222,145,.18);
}
.horario-dia {
  font-family: var(--body);
  font-weight: 700;
  font-size: .92rem;
  color: var(--dorado);
}
.horario-hora {
  font-family: var(--display);
  font-weight: 800;
  font-size: .98rem;
  color: #fff;
  letter-spacing: -.01em;
}
.horario-row-closed {
  background: rgba(0,0,0,.15);
  opacity: .7;
}
.horario-row-closed .horario-hora { color: var(--dorado); font-style: italic; font-weight: 600; }
.horario-direccion {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(240,222,145,.18);
  position: relative;
  z-index: 1;
}
.horario-direccion-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vinotinto);
  background: var(--dorado);
  padding: .35rem .7rem;
  border-radius: 100px;
  margin-bottom: .6rem;
}
.horario-direccion p {
  font-size: .9rem;
  color: rgba(240,222,145,.85);
  line-height: 1.55;
  font-weight: 500;
}

/* Lista de productos (texto simple) */
.products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: .85rem; }
.products-list .product-item {
  background: #fff; border: 1.5px solid rgba(118,34,24,.08); border-radius: 12px; padding: 1rem 1.15rem;
  transition: border-color .3s, transform .3s var(--ease-out);
}
@media (hover: hover) { .products-list .product-item:hover { border-color: var(--vinotinto); transform: translateY(-2px); } }
.products-list .product-item h4 {
  font-size: .88rem; color: var(--oscuro); font-weight: 700; margin-bottom: .2rem;
  line-height: 1.25; text-wrap: balance;
}
.products-list .product-item p { font-size: .76rem; color: var(--text-muted); line-height: 1.4; }

/* Grid de productos con imagen */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
@media (min-width: 540px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.products-grid .product-item {
  background: #fff;
  border: 1.5px solid rgba(118,34,24,.08);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
@media (hover: hover) {
  .products-grid .product-item:hover {
    border-color: var(--vinotinto);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(118,34,24,.12);
  }
}
.product-item-img {
  aspect-ratio: 3 / 4;
  min-height: 0 !important;
  padding: .5rem !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(118,34,24,.06) !important;
}
.product-item-img::before { display: none; }
.product-item-img span { font-size: 1.4rem; opacity: .35; }
.product-item-info {
  padding: .85rem 1rem;
}
.product-item-info h4 {
  font-size: .85rem;
  color: var(--oscuro);
  font-weight: 700;
  margin-bottom: .2rem;
  line-height: 1.25;
}
.product-item-info p {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Cuando haya imagen real */
.product-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.product-item-img.has-image {
  padding: 0 !important;
  border: none !important;
}

/* --- Formulario multi-perfil (Trabaja con nosotros) --- */
.profile-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .profile-tabs { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.profile-tab {
  background: #fff;
  border: 2px solid rgba(118,34,24,.1);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  font-family: inherit;
}
@media (hover: hover) {
  .profile-tab:hover:not(.is-active) {
    border-color: rgba(118,34,24,.35);
    transform: translateY(-2px);
  }
}
.profile-tab.is-active {
  background: var(--vinotinto);
  border-color: var(--vinotinto);
  color: var(--dorado);
  box-shadow: 0 16px 40px rgba(118,34,24,.25);
  transform: translateY(-3px);
}
.profile-tab-icon {
  font-size: 2.25rem;
  line-height: 1;
}
.profile-tab-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: inherit;
  letter-spacing: -.01em;
}
.profile-tab.is-active .profile-tab-label { color: var(--dorado); }
.profile-tab-sub {
  font-size: .78rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.profile-tab.is-active .profile-tab-sub { color: rgba(240,222,145,.75); }

/* Forms */
.profile-forms { position: relative; }
.profile-form {
  display: none;
  background: #fff;
  border: 1.5px solid rgba(118,34,24,.1);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 12px 40px rgba(59,38,37,.08);
}
.profile-form.is-active {
  display: block;
  animation: profileFormFade .4s var(--ease-out);
}
@keyframes profileFormFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.profile-form-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--oscuro);
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.profile-form-intro {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 75ch;
}
.profile-form-intro strong { color: var(--vinotinto); }

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--oscuro);
  letter-spacing: -.01em;
}
.form-field .req { color: var(--vinotinto); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--body);
  font-size: .92rem;
  color: var(--oscuro);
  background: var(--crema);
  border: 1.5px solid rgba(118,34,24,.12);
  border-radius: 10px;
  padding: .75rem .95rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: .8; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--vinotinto);
  box-shadow: 0 0 0 3px rgba(118,34,24,.12);
}
.form-field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

/* Checkboxes */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--vinotinto);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: .05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.form-check input[type="checkbox"]:checked {
  background: var(--vinotinto);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0DE91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 7 12.5 13 4'/></svg>");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Checkboxes inline (líneas de producto) */
.form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .25rem;
}
.form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .95rem;
  background: var(--crema);
  border: 1.5px solid rgba(118,34,24,.12);
  border-radius: 100px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--oscuro);
  font-weight: 600;
  transition: all .25s;
}
.form-check-inline:hover { border-color: rgba(118,34,24,.4); }
.form-check-inline input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 2px solid var(--vinotinto);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-check-inline input[type="checkbox"]:checked {
  background: var(--vinotinto);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0DE91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 7 12.5 13 4'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.form-check-inline:has(input:checked) {
  background: var(--vinotinto);
  border-color: var(--vinotinto);
  color: var(--dorado);
}
.form-check-inline:has(input:checked) input[type="checkbox"] {
  border-color: var(--dorado);
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0DE91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 7 12.5 13 4'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-submit {
  width: 100%;
  justify-content: center;
  padding: 1.05rem 2rem;
  font-size: .95rem;
}
@media (min-width: 540px) {
  .profile-submit { width: auto; min-width: 220px; }
}
.profile-submit:disabled {
  opacity: .7;
  cursor: wait;
  transform: none !important;
}

/* File upload */
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.5rem 1.25rem;
  background: var(--crema);
  border: 2px dashed rgba(118,34,24,.25);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.file-upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.file-upload:hover {
  border-color: var(--vinotinto);
  background: #fff;
}
.file-upload-icon { font-size: 1.8rem; }
.file-upload-text {
  font-size: .92rem;
  font-weight: 700;
  color: var(--oscuro);
}
.file-upload-hint {
  font-size: .75rem;
  color: var(--text-muted);
}
.file-upload.has-file {
  border-color: var(--vinotinto);
  border-style: solid;
  background: rgba(118,34,24,.05);
}
.file-upload.has-file .file-upload-text { color: var(--vinotinto); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-right: .35rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal de éxito */
.form-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.form-success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.form-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59,38,37,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.form-success-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: scale(.92) translateY(20px);
  transition: transform .4s var(--ease-bounce);
}
.form-success-modal.is-open .form-success-content {
  transform: scale(1) translateY(0);
}
.form-success-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(118,34,24,.08);
  color: var(--vinotinto);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, transform .3s;
}
.form-success-close:hover { background: var(--vinotinto); color: var(--dorado); transform: rotate(90deg); }

/* Header horizontal: check + título */
.form-success-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-success-icon {
  flex-shrink: 0;
  animation: successPop .6s var(--ease-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.form-success-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--vinotinto);
  letter-spacing: -.02em;
  margin: 0;
  text-align: left;
}
.form-success-desc {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.form-success-actions {
  display: flex;
  justify-content: center;
}
.form-success-actions .btn { min-width: 140px; justify-content: center; }

/* Valores */
.valores-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.valor-card {
  background: #fff; border: 1.5px solid rgba(118,34,24,.1); border-radius: 16px; padding: 1.75rem 1.5rem; text-align: center;
}
.valor-icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.valor-card h3 { font-size: 1rem; color: var(--oscuro); font-weight: 700; margin-bottom: .35rem; }
.valor-card p { font-size: .85rem; color: var(--text-soft); line-height: 1.6; }

/* =============================================================
   7. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .narrativa-grid { grid-template-columns: repeat(2, 1fr); }
  .narrativa-item { border-bottom: none; border-right: 1px solid rgba(240,222,145,.12); }
  .narrativa-item:nth-child(2n) { border-right: none; }
  .narrativa-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 720px) {
  .nav-hamburger { display: none; }
  .nav-links { display: flex !important; }
  .historia-split { grid-template-columns: 1fr 1fr; }
  .productos-grid-home { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .narrativa-grid { grid-template-columns: repeat(4, 1fr); }
  .narrativa-item { border-right: 1px solid rgba(240,222,145,.12); border-bottom: none; }
  .narrativa-item:last-child { border-right: none; }
}
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image-col { min-height: 55vw; max-height: 60vw; }
  .hero-image-col .img-ph { border-right: none; border-bottom: 4px solid var(--vinotinto); }
  .hero-image-overlay { background: linear-gradient(to bottom, transparent 60%, var(--oscuro) 100%); }
  .hero-content-col { padding-top: 2rem; }
}
@media (max-width: 719px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
}
@media (min-width: 960px) {
  .valores-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
  .hero-badge-dot { animation: none; }
}
