/* =========================================================
   Sagche's Coffee House — estilos del sitio (rediseño 2026-10)
   ========================================================= */

:root {
  --cream: #FFF5E3;
  --cream-2: #FBEAD0;
  --paper: #FFFBF4;
  --ink: #2B2118;
  --muted: #7A6A5C;
  --coffee: #5B3518;
  --coffee-2: #7A4A22;
  --accent: #E8731C;
  --accent-hover: #C95F12;
  --accent-soft: #FDE9D6;
  --terracotta: #B4472B;
  --teal: #1F6F78;
  --line: rgba(91, 53, 24, 0.14);
  --shadow-sm: 0 2px 10px rgba(60, 35, 15, 0.07);
  --shadow-md: 0 10px 30px rgba(60, 35, 15, 0.12);
  --shadow-lg: 0 24px 60px rgba(60, 35, 15, 0.22);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;

  /* franja inspirada en los tejidos guatemaltecos */
  --textile: repeating-linear-gradient(90deg,
    #E8731C 0 22px, #B4472B 22px 30px, #F2C14E 30px 44px, #1F6F78 44px 58px,
    #C2185B 58px 66px, #6A9A3A 66px 80px, #5B3518 80px 86px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.15; color: var(--coffee); }
.script { font-family: 'Dancing Script', cursive; font-weight: 700; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0.3rem 0 0.6rem;
}
.section-head p { color: var(--muted); }

.textile-band { height: 10px; background: var(--textile); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font: 600 0.95rem/1 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(232, 115, 28, 0.35); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(232, 115, 28, 0.45); }
.btn-ghost { color: var(--coffee); border-color: rgba(91, 53, 24, 0.3); background: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--coffee); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: #fff; color: var(--coffee); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled,
.navbar.solid {
  background: rgba(255, 245, 227, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(60, 35, 15, 0.06);
}
.navbar-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.4s var(--ease);
}
.navbar.scrolled .navbar-inner { height: 64px; }
.brand { display: flex; align-items: center; }
.logo { height: 46px; width: auto; transition: height 0.4s var(--ease), transform 0.3s var(--ease); }
.navbar.scrolled .logo { height: 38px; }
.brand:hover .logo { transform: rotate(-3deg) scale(1.04); }

.nav-links ul { list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  position: relative;
  display: block;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--coffee);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .nav-cta {
  margin-left: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* navbar sobre fotos oscuras (antes de hacer scroll) */
.navbar.on-dark:not(.scrolled) .nav-links a:not(.nav-cta) { color: #fff; }
.navbar.on-dark:not(.scrolled) .nav-toggle span { background: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--coffee);
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0 at calc(100% - 38px) 38px);
    transition: clip-path 0.6s var(--ease);
  }
  .nav-links.active { clip-path: circle(150% at calc(100% - 38px) 38px); }
  .nav-links ul { flex-direction: column; gap: 0.6rem; }
  .nav-links li { opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.5s var(--ease); }
  .nav-links.active li { opacity: 1; transform: none; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.16s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.24s; }
  .nav-links a { font-family: 'Dancing Script', cursive; font-size: 2.3rem; color: var(--coffee) !important; }
  .nav-links .nav-cta { font-family: 'Poppins', sans-serif; font-size: 1rem; margin: 0.8rem 0 0; color: #fff !important; }
  .navbar.menu-open .nav-toggle span { background: var(--coffee) !important; }
}

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -4% 0;
  z-index: -2;
  background: url("assets/web/_DSC3014.jpg") center 40% / cover no-repeat;
  animation: heroZoom 18s var(--ease) both;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 16, 8, 0.85) 0%, rgba(28, 16, 8, 0.55) 45%, rgba(28, 16, 8, 0.15) 100%),
    linear-gradient(0deg, rgba(28, 16, 8, 0.6) 0%, transparent 35%);
}
@keyframes heroZoom { from { transform: scale(1.15); } to { transform: scale(1); } }

.hero-content { max-width: 640px; padding: calc(var(--nav-h) + 2rem) 0 5rem; }
.hero .eyebrow { color: #F7B779; }
.hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 1.02;
  color: #fff;
  margin: 0.6rem 0 1.2rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 .accent { color: #F7B779; }
.hero-text { font-size: 1.08rem; color: rgba(255, 255, 255, 0.88); max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { width: 18px; height: 18px; color: #F7B779; }
.open-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4CC35E;
  box-shadow: 0 0 0 0 rgba(76, 195, 94, 0.6);
  animation: pulse 2.2s infinite;
}
.open-dot.closed { background: #E25B4B; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 195, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(76, 195, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 195, 94, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* entrada escalonada del hero */
.intro > * { opacity: 0; transform: translateY(26px); animation: introUp 0.9s var(--ease) forwards; }
.intro > *:nth-child(1) { animation-delay: 0.15s; }
.intro > *:nth-child(2) { animation-delay: 0.3s; }
.intro > *:nth-child(3) { animation-delay: 0.45s; }
.intro > *:nth-child(4) { animation-delay: 0.6s; }
.intro > *:nth-child(5) { animation-delay: 0.75s; }
@keyframes introUp { to { opacity: 1; transform: none; } }

/* ---------- Franja de frases (marquee) ---------- */
.marquee {
  overflow: hidden;
  background: var(--coffee);
  color: var(--cream);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 40s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  white-space: nowrap;
}
.marquee span::after { content: "✦"; font-family: 'Poppins', sans-serif; font-size: 0.8rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de especialidades ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.4rem; }
.card-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.card-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }
.card-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coffee);
}

/* ---------- Historia (split) ---------- */
.story { background: var(--paper); }
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-photos { position: relative; aspect-ratio: 1 / 1.05; }
.story-photos figure {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.story-photos img { width: 100%; height: 100%; object-fit: cover; }
.story-photos .p1 { inset: 0 22% 18% 0; }
.story-photos .p2 { inset: 45% 0 0 40%; border: 8px solid var(--paper); }
.story-badge {
  position: absolute;
  top: 6%; right: 4%;
  width: 118px; height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.story-badge strong { display: block; font-family: 'Dancing Script', cursive; font-size: 2.1rem; line-height: 1; }
.story-badge small { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

.story-text h2 { font-family: 'Dancing Script', cursive; font-size: clamp(2.4rem, 4.6vw, 3.4rem); margin: 0.4rem 0 1rem; }
.story-text p { color: var(--muted); margin-bottom: 1rem; }
.story-points { list-style: none; display: grid; gap: 0.8rem; margin: 1.6rem 0 2rem; }
.story-points li { display: flex; gap: 0.8rem; align-items: flex-start; }
.story-points .ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.story-points .ico svg { width: 20px; height: 20px; }
.story-points strong { display: block; color: var(--coffee); font-family: 'Playfair Display', serif; }
.story-points span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.8rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(25, 16, 10, 0.75));
  transition: padding 0.5s var(--ease);
}
.gallery-grid figure:hover figcaption { padding-bottom: 1.2rem; }

/* ---------- Bloque con foto de fondo (parallax) ---------- */
.parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 12vw, 8rem) 0;
}
.parallax-bg {
  position: absolute;
  inset: -20% 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  will-change: transform;
}
.parallax::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 16, 8, 0.62); }
.parallax h2 { font-family: 'Dancing Script', cursive; color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0.4rem 0 1rem; }
.parallax p { max-width: 560px; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.88); }
.parallax .eyebrow { color: #F7B779; }
.parallax .hero-actions { justify-content: center; }

/* ---------- Visítanos ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}
.visit-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.visit-card h2 { font-family: 'Dancing Script', cursive; font-size: clamp(2.2rem, 4vw, 3rem); margin: 0.3rem 0 1.4rem; }
.info-list { list-style: none; display: grid; gap: 1.2rem; margin-bottom: 1.8rem; }
.info-list li { display: flex; gap: 0.9rem; }
.info-list .ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-family: 'Playfair Display', serif; color: var(--coffee); }
.info-list p, .info-list a { font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.info-list a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 0.35rem 0; color: var(--muted); }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--coffee); font-weight: 600; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 380px; background: var(--cream-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(3rem, 7vw, 5rem);
}
.page-hero .hero-bg { animation-duration: 14s; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 16, 8, 0.55), rgba(28, 16, 8, 0.78));
}
.page-hero h1 { font-family: 'Dancing Script', cursive; color: #fff; font-size: clamp(3rem, 8vw, 5rem); margin: 0.4rem 0 0.6rem; }
.page-hero p { max-width: 560px; color: rgba(255, 255, 255, 0.88); }
.page-hero .eyebrow { color: #F7B779; }
.page-hero.center { text-align: center; }
.page-hero.center p { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: #24170D; color: rgba(255, 245, 227, 0.75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding: 4rem 0 3rem;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 0.8rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3)); }
.footer-tagline { font-family: 'Dancing Script', cursive; font-size: 1.5rem; color: var(--cream); }
.footer-col h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F7B779;
  margin-bottom: 1rem;
}
.footer-col p { font-size: 0.93rem; margin: 0.25rem 0; }
.footer-col a { text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: #F7B779; }
.footer-link { display: inline-flex; margin-top: 0.6rem; color: #F7B779; font-weight: 600; font-size: 0.9rem; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 245, 227, 0.08);
  color: var(--cream);
  transition: background-color 0.3s, transform 0.3s var(--ease), color 0.3s;
}
.footer-socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 245, 227, 0.1);
  padding: 1.3rem 0 1.6rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 245, 227, 0.5);
}

/* ---------- Botón volver arriba ---------- */
#toTopBtn {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 115, 28, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease), background-color 0.3s;
}
#toTopBtn svg { width: 20px; height: 20px; }
#toTopBtn.visible { opacity: 1; transform: none; pointer-events: auto; }
#toTopBtn:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; }

.no-js .reveal, .no-js .intro > * { opacity: 1; transform: none; animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .cards .card:last-child .card-img { aspect-ratio: 16 / 7; }
  .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-photos { max-width: 520px; width: 100%; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .cards .card:last-child .card-img { aspect-ratio: 4 / 3; }
  .hero-content { padding-bottom: 6rem; }
  .hero::before { background: linear-gradient(0deg, rgba(28, 16, 8, 0.9) 0%, rgba(28, 16, 8, 0.55) 60%, rgba(28, 16, 8, 0.35) 100%); }
  .gallery-grid { grid-auto-rows: 140px; gap: 0.6rem; }
  .gallery-grid figcaption { font-size: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .story-badge { width: 96px; height: 96px; }
  .story-badge strong { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .intro > * { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Extras ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--coffee);
  color: #fff;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid rgba(232, 115, 28, 0.6); outline-offset: 3px; }
.gallery-grid.strip { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
@media (max-width: 980px) { .gallery-grid.strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
/* evita que las animaciones laterales ensanchen la página en celular */
main, .section { overflow-x: clip; }
