/* ===== Tres Delicias — estilos base (paleta café premium) ===== */

:root {
  --color-dark: #241712;
  --color-dark-soft: #34221A;
  --color-bg: #FAF3E9;
  --color-surface: #FFFFFF;
  --color-cream: #F3E7D6;
  --color-text: #2B1E17;
  --color-text-soft: #6E5C4E;
  --color-text-on-dark: #F3E7D6;
  --color-text-on-dark-soft: #C9B9A6;
  --color-accent: #9C2E56;
  --color-accent-dark: #7A2143;
  --color-accent-light: #F1DCE3;
  --color-accent-rgb: 156, 46, 86;
  --color-gold: #B4863F;
  --color-gold-rgb: 180, 134, 63;
  --color-border: #E6D9C4;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(36, 23, 18, 0.10);
  --shadow-md: 0 16px 40px rgba(36, 23, 18, 0.22);
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --header-height: 78px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 68px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "→";
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.btn:hover::after { opacity: 1; transform: translateX(0); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: var(--color-text-on-dark); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: #fff; color: var(--color-dark); }

.btn-instagram {
  background: linear-gradient(135deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-heading);
  line-height: 1.1;
}
.brand-text strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
}
.brand-text span {
  display: block;
  font-size: 0.66rem;
  color: var(--color-text-on-dark-soft);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-on-dark-soft);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.main-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--color-dark);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 20px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    padding: 16px 18px;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center 65%;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,23,18,0.55) 0%, rgba(36,23,18,0.72) 55%, rgba(36,23,18,0.92) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-soft);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow .stars { color: var(--color-gold); letter-spacing: 1px; font-size: 0.9rem; }

.hero h1 { color: #fff; }

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(243, 231, 214, 0.9);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- Feature / diferenciadores ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.icon-circle svg { width: 28px; height: 28px; stroke: var(--color-accent); }

.feature-card h3 { margin-bottom: 6px; font-size: 1.08rem; }
.feature-card p { color: var(--color-text-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Tarjetas con foto real — grilla bento asimétrica ---------- */
.feature-photo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 460px;
  gap: 20px;
}
@media (max-width: 860px) {
  .feature-photo-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

.feature-photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  --mx: 50%;
  --my: 50%;
}
.feature-photo-card .photo {
  position: relative;
  flex: 1;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  overflow: hidden;
}
.feature-photo-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.feature-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(var(--color-accent-rgb), 0.28), transparent 62%);
  transition: opacity 0.35s ease;
}
.feature-photo-card-body { padding: 20px 22px 24px; position: relative; z-index: 1; background: var(--color-surface); }
.feature-photo-card-body h3 { margin-bottom: 6px; font-size: 1.08rem; }
.feature-photo-card-body p { color: var(--color-text-soft); font-size: 0.92rem; margin: 0; }

@media (hover: hover) and (pointer: fine) {
  .feature-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -10px rgba(var(--color-accent-rgb), 0.28);
  }
  .feature-photo-card:hover .photo img { transform: scale(1.08); }
  .feature-photo-card:hover::after { opacity: 1; }
}

/* ---------- Destacados (productos estrella) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.product-photo {
  aspect-ratio: 4 / 3;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(243, 231, 214, 0.45);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.product-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-body .price {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.15rem;
  margin-top: auto;
  padding-top: 8px;
}
.product-body p { color: var(--color-text-soft); font-size: 0.9rem; margin: 0; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  margin: 0 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--color-text-on-dark-soft); max-width: 520px; margin: 0 auto 26px; }

/* ---------- Nosotros preview / historia ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .about-preview { grid-template-columns: 1fr; } }

.photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-frame:hover img { transform: scale(1.05); }
.photo-frame.crop-top img { object-position: center 15%; }

.reel-frame {
  aspect-ratio: 9 / 16;
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-surface);
}
.reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  background: repeating-linear-gradient(135deg, var(--color-cream), var(--color-cream) 12px, #fff 12px, #fff 24px);
  border: 2px dashed var(--color-gold);
  border-radius: var(--radius-md);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-family: var(--font-heading);
  text-align: center;
  padding: 20px;
}

/* ---------- Menu page ---------- */
.menu-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .menu-layout { grid-template-columns: 1fr; } }

.menu-search {
  position: relative;
  margin-bottom: 28px;
}
.menu-search input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236E5C4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center;
}
.menu-search input:focus { outline: none; border-color: var(--color-accent); }

.menu-categories-nav {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-categories-nav a {
  text-decoration: none;
  color: var(--color-text-soft);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.menu-categories-nav a:hover { background: var(--color-cream); color: var(--color-accent-dark); }

@media (max-width: 860px) {
  .menu-categories-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 12px;
  }
  .menu-categories-nav a {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--color-border);
  }
}

.menu-category { margin-bottom: 20px; scroll-margin-top: calc(var(--header-height) + 12px); }

.menu-category summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-dark);
}
.menu-category summary::-webkit-details-marker { display: none; }
.menu-category summary .count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-soft);
  font-weight: 700;
  margin-right: auto;
  margin-left: 10px;
}
.menu-category summary .chev {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  stroke: var(--color-accent);
}
.menu-category[open] summary .chev { transform: rotate(180deg); }

.menu-category-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-style: italic;
  padding: 10px 22px 0;
}
.menu-category-note a {
  color: var(--color-accent);
  font-weight: 700;
  font-style: normal;
}

.menu-item-list {
  padding: 6px 6px 14px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.menu-item:last-child { border-bottom: none; }

.menu-item-name {
  font-weight: 700;
  color: var(--color-text);
}
.menu-item-desc {
  display: block;
  font-weight: 400;
  color: var(--color-text-soft);
  font-size: 0.87rem;
  margin-top: 2px;
}
.menu-item-price {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item.is-hidden { display: none; }

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-soft);
  display: none;
}
.no-results.show { display: block; }

/* ---------- Reservas ---------- */
.reservas-hero {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
}
.reservas-hero h1 { color: #fff; }
.reservas-hero p { color: var(--color-text-on-dark-soft); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hours-table th, .hours-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.hours-table th { font-family: var(--font-body); color: var(--color-accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td.closed { color: var(--color-text-soft); font-style: italic; }

.info-note {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--color-text);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-note svg { flex-shrink: 0; margin-top: 2px; width: 22px; height: 22px; stroke: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.site-footer a { color: var(--color-text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand strong { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: #fff; }

.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list svg { width: 18px; height: 18px; stroke: var(--color-gold); flex-shrink: 0; margin-top: 2px; }

.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--color-accent); }
.social-row svg { width: 20px; height: 20px; stroke: #fff; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  width: 100%;
  height: 220px;
  filter: grayscale(0.15) contrast(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(201, 185, 166, 0.8);
  text-align: center;
}

/* ---------- Floating Instagram button ---------- */
.fab-instagram {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.fab-instagram:hover { transform: scale(1.08); }
.fab-instagram svg { width: 27px; height: 27px; stroke: #fff; }

/* ---------- Nosotros page extras ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

.bg-dark { background: var(--color-dark); color: var(--color-text-on-dark); }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: var(--color-text-on-dark-soft); }
.bg-cream { background: var(--color-cream); }

.rounded-section { border-radius: var(--radius-lg); }

.text-center { text-align: center; }

/* ---------- Animaciones ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Windows suele traer "reducir movimiento" activado por defecto sin que el
   usuario lo haya pedido. Solo el video en loop autoplay se pausa (JS) por
   ser el único movimiento realmente intrusivo — los fade-in de scroll son
   feedback funcional y se mantienen activos siempre. */

.hero .container > * {
  animation: heroRise 0.7s ease both;
}
.hero .container > *:nth-child(1) { animation-delay: 0s; }
.hero .container > *:nth-child(2) { animation-delay: 0.08s; }
.hero .container > *:nth-child(3) { animation-delay: 0.16s; }
.hero .container > *:nth-child(4) { animation-delay: 0.24s; }
.hero .container > *:nth-child(5) { animation-delay: 0.32s; }

/* ================================================================
   PREMIUM — cursor personalizado, mesh gradient, marquee, tilt,
   tarjetas flotantes de producto, testimonios, contador animado.
   ================================================================ */

/* ---------- Grano editorial sutil ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

/* ---------- Cursor personalizado (solo con mouse real) ---------- */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor .btn,
  html.has-custom-cursor summary {
    cursor: none;
  }
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    transition: opacity 0.25s ease;
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--color-gold);
    transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .cursor-dot.is-ready, .cursor-ring.is-ready { opacity: 1; }
  .cursor-ring.is-active {
    width: 56px;
    height: 56px;
    background: rgba(var(--color-accent-rgb), 0.1);
  }
}

/* ---------- Mesh gradient cálido (halo) ---------- */
.mesh-halo {
  position: absolute;
  inset: -35% -10% -35% -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px) saturate(130%);
  opacity: 0.55;
  background:
    radial-gradient(38% 45% at 22% 30%, rgba(var(--color-accent-rgb), 0.55), transparent 70%),
    radial-gradient(34% 40% at 80% 68%, rgba(var(--color-gold-rgb), 0.45), transparent 70%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(1%, -2%, 0) scale(1.08) rotate(6deg); }
}
.cta-band, .reservas-hero { position: relative; isolation: isolate; }
.cta-band > *, .reservas-hero > * { position: relative; z-index: 1; }

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden;
  background: var(--color-dark);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  padding: 16px 28px;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-text-on-dark-soft);
  white-space: nowrap;
}
.marquee-item .dot { color: var(--color-gold); font-style: normal; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header transparente sobre el hero (solo portada) ---------- */
body.has-hero .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  box-shadow: none;
}
body.has-hero .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 10, 7, 0.45), transparent);
  opacity: 1;
  transition: opacity 0.3s ease;
}
body.has-hero .site-header.is-scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
body.has-hero .site-header.is-scrolled::before { opacity: 0; }
body.has-hero .hero { padding-top: var(--header-height); }

/* ---------- Ken Burns suave en la foto del hero ---------- */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.08) translate3d(-1%, -1%, 0); }
}

/* ---------- Stats / contador animado ---------- */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 60px);
  margin-top: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--color-gold);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-soft);
}

/* ---------- Productos destacados (tarjetas flotantes) ---------- */
.product-float-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 860px) {
  .product-float-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 44px; }
}
.product-float-card { text-align: center; }
.product-float-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 230px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 55px -14px rgba(36, 23, 18, 0.38), 0 0 0 8px #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-float-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 0.6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-float-card:hover .product-float-photo {
    transform: translateY(-8px);
    box-shadow: 0 40px 65px -12px rgba(var(--color-accent-rgb), 0.35), 0 0 0 8px #fff;
  }
  .product-float-card:hover .product-float-photo img { transform: scale(1.08); }
}
.product-float-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.product-float-card .price {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
}
.product-float-card p.note { color: var(--color-text-soft); font-size: 0.88rem; margin: 4px 0 0; }

/* ---------- Testimonios ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 861px) {
  .testimonial-grid .testimonial-card:nth-child(1) { transform: rotate(-1.1deg); }
  .testimonial-grid .testimonial-card:nth-child(3) { transform: rotate(1.1deg); }
}
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: var(--shadow-md); }
}
.testimonial-quote-mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--color-accent-light);
  margin-bottom: 14px;
}
.testimonial-stars {
  display: block;
  color: var(--color-gold);
  letter-spacing: 2px;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.testimonial-card p.quote { font-size: 0.97rem; color: var(--color-text); margin-bottom: 16px; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; }
.testimonial-source { font-size: 0.78rem; color: var(--color-text-soft); }

/* ---------- Botones magnéticos ---------- */
.btn[data-magnetic] { will-change: transform; }

/* ---------- Menú: categoría activa al hacer scroll ---------- */
.menu-categories-nav a.is-active {
  background: var(--color-cream);
  color: var(--color-accent-dark);
}

/* ---------- Drop cap editorial (Nosotros) ---------- */
.drop-cap::first-letter {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 3.4em;
  float: left;
  line-height: 0.78;
  padding: 0.04em 0.09em 0 0;
  color: var(--color-accent);
}

/* Windows con "reducir movimiento" activado: el mesh, el marquee, el Ken
   Burns y el cursor son movimiento funcional/ambiental de baja intensidad,
   así que se mantienen activos siempre (ver 07-windows-troubleshooting.md).
   Solo lo realmente intrusivo (video autoplay) se pausa vía JS. */
