/* ===================================================================
   Taquizas El Salvador — estilos
   Paleta tomada del logo: dorado, vino oscuro, chocolate, crema.
=================================================================== */

:root {
  --dorado: #d99b32;
  --dorado-suave: #f0c877;
  --vino: #5c1a1a;
  --vino-oscuro: #3f1212;
  --chocolate: #3a2a20;
  --crema: #fbf4e8;
  --crema-suave: #f4e8d3;
  --texto: #2c2119;
  --texto-suave: #6b5c4d;
  --blanco: #ffffff;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 20px 40px -18px rgba(60, 30, 10, 0.35);
  --easing: cubic-bezier(.22, .8, .32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--vino-oscuro);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--texto-suave); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--dorado);
  margin-bottom: .6em;
}
.eyebrow.center { display: block; }

.lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: var(--crema-suave); }

.section-cta {
  background: linear-gradient(160deg, var(--vino-oscuro), var(--vino) 65%, #7a2a1e);
}
.section-cta h2, .section-cta .eyebrow { color: var(--dorado-suave); }
.section-cta .lead { color: rgba(255,255,255,.82); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .9em 1.6em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing), background .25s;
  white-space: nowrap;
}
.btn .icon { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; }

.btn-whatsapp {
  background: #25d366;
  color: #0b3d22;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(37, 211, 102, .65); }

.btn-outline {
  border-color: rgba(255,255,255,.7);
  color: var(--blanco);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 244, 232, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 30, 10, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-logo { height: 56px; width: auto; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--dorado);
  transition: width .25s var(--easing);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { padding: .65em 1.3em; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--vino-oscuro);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--chocolate);
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-media.img-placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(217,155,50,.35), transparent 55%),
    linear-gradient(135deg, var(--vino-oscuro), var(--chocolate));
}
.hero-media.img-placeholder::before {
  content: "Espacio para imagen\A" attr(data-placeholder);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  border: 2px dashed rgba(255,255,255,.22);
  margin: 18px;
  border-radius: var(--radius);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,.55) 0%, rgba(20,10,5,.55) 40%, rgba(20,10,5,.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding-top: 120px;
  padding-bottom: 64px;
  max-width: 460px;
}
.hero-content .eyebrow { color: var(--dorado-suave); margin-bottom: .4em; }
.hero-content h1 {
  color: var(--blanco);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: .4em;
}
.hero-text { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--dorado-suave);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- Mini features ---------- */
.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.mini-feature {
  text-align: center;
  padding: 28px 20px;
  background: var(--blanco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mini-feature h3 { color: var(--vino); }
.mini-feature p { font-size: .95rem; margin: 0; }

/* ---------- Menú ---------- */
/* flex en vez de grid: así la última fila incompleta (3 tarjetas) queda
   centrada bajo las 4 de arriba, en vez de pegada a la izquierda. */
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 48px;
}
.menu-card {
  flex: 0 1 calc((100% - 3 * 22px) / 4);
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--easing);
}
.menu-card:hover { transform: translateY(-6px); }

.menu-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--crema-suave);
}
.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.menu-card h3 { margin: 0; text-align: center; }

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.step {
  position: relative;
  padding: 30px 22px 24px;
  border: 1px solid rgba(60,30,10,.1);
  border-radius: var(--radius);
  background: var(--blanco);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--vino);
  color: var(--dorado-suave);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}
.step p { font-size: .92rem; margin: 0; }

/* ---------- Galería con revelado ---------- */
.gallery .container { margin-bottom: 40px; }

.reveal-image {
  position: relative;
  width: 100%;
  height: min(70vh, 620px);
  overflow: hidden;
  margin: 0 0 6px;
  background: var(--chocolate);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--easing);
}
.reveal-image.is-visible { clip-path: inset(0 0 0 0); }

.reveal-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.4s var(--easing);
}
.reveal-image.is-visible img { transform: scale(1); }

.reveal-image.img-placeholder {
  background:
    radial-gradient(circle at 70% 30%, rgba(217,155,50,.3), transparent 55%),
    linear-gradient(135deg, var(--vino-oscuro), var(--chocolate));
}
.reveal-image.img-placeholder::before {
  content: "Espacio para imagen\A" attr(data-placeholder);
  white-space: pre-line;
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  border: 2px dashed rgba(255,255,255,.22);
  border-radius: var(--radius);
}

.reveal-image figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px clamp(20px, 6vw, 70px);
  background: linear-gradient(0deg, rgba(15,8,4,.75), transparent);
}
.reveal-image figcaption h3 {
  color: var(--blanco);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--easing) .35s, transform .8s var(--easing) .35s;
}
.reveal-image.is-visible figcaption h3 { opacity: 1; transform: translateY(0); }

/* ---------- Videos (YouTube) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.video-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--chocolate);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.video-item iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,10,5,.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s;
}
.video-play:hover { background: rgba(20,10,5,.4); }
.video-play .play-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
  transition: transform .25s var(--easing);
}
.video-play:hover .play-circle { transform: scale(1.08); }
.video-play .play-circle svg {
  width: 22px; height: 22px;
  fill: var(--vino);
  margin-left: 3px;
}

.video-item.img-placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(217,155,50,.3), transparent 55%),
    linear-gradient(135deg, var(--vino-oscuro), var(--chocolate));
}
.video-item.img-placeholder::before {
  content: "Espacio para video\A pegá el link de YouTube";
  white-space: pre-line;
  position: absolute;
  inset: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  border: 2px dashed rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 10px;
}

@media (max-width: 640px) {
  .video-grid { gap: 10px; }
  .video-play .play-circle { width: 44px; height: 44px; }
  .video-play .play-circle svg { width: 16px; height: 16px; }
}

/* ---------- Contacto ---------- */
.social-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.social-row a {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  transition: transform .25s var(--easing), background .25s;
}
.section-cta .social-row a { background: rgba(255,255,255,.12); }
.site-footer .social-row a { background: rgba(255,255,255,.08); }
.social-row a:hover { transform: translateY(-3px); background: var(--dorado); }
.social-row .icon { width: 20px; height: 20px; fill: var(--blanco); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--vino-oscuro);
  padding: 50px 0 26px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 46px; filter: brightness(0) invert(1); opacity: .9; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-right: auto; }
.footer-nav a { color: rgba(255,255,255,.75); font-size: .9rem; font-family: var(--font-display); font-weight: 600; }
.footer-nav a:hover { color: var(--dorado-suave); }
.footer-copy {
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  margin: 34px 0 0;
}
.footer-credit {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  margin: 8px 0 0;
}
.footer-credit a {
  color: rgba(255,255,255,.65);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover { color: var(--dorado-suave); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,.4);
  z-index: 90;
  animation: floatPulse 3s ease-in-out infinite;
}
.whatsapp-float .icon { width: 28px; height: 28px; fill: var(--blanco); }
@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Reveal genérico (fade-up) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-card { flex-basis: calc((100% - 22px) / 2); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mini-features { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--crema);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid rgba(60,30,10,.08);
    transform: translateY(-130%);
    transition: transform .3s var(--easing);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(60,30,10,.06); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 640px) {
  .menu-card { flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; }
  .reveal-image { height: 46vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
