/* ============================================================
   CARTEL DEL PAN — Estilos Globales
   Tema: Noir / Mafioso | Paleta: Negro, Dorado, Rojo
   ============================================================ */

/* ---------- Fuentes ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600&family=Bebas+Neue&display=swap');

/* ---------- Variables ---------- */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #9a7a32;
  --red: #b01c1c;
  --red-dark: #7a1010;
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --gray: #888;
  --gray-light: #aaa;
  --white: #f5f0e8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-impact: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 70px;
  --max-w: 1200px;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: auto;
}
.nav__logo span { color: var(--white); }
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__cta {
  margin-left: 32px;
  padding: 9px 22px;
  background: var(--gold);
  color: var(--black) !important;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botón WhatsApp flotante ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  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,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Secciones / Layout ---------- */
.section {
  padding: 100px 40px;
}
.section--dark { background: var(--black); }
.section--dark2 { background: var(--dark); }
.section--dark3 { background: var(--dark2); }

.container { max-width: var(--max-w); margin: 0 auto; }

.section__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section__title em { font-style: italic; color: var(--gold); }
.section__subtitle {
  font-size: 1rem;
  color: var(--gray-light);
  max-width: 560px;
  line-height: 1.7;
}

.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0;
}

/* ---------- Animaciones de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  transform: translateX(-30px);
}
.reveal--left.visible {
  transform: translateX(0);
}
.reveal--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal--scale {
  transform: scale(0.93);
}
.reveal--scale.visible {
  transform: scale(1);
}

/* Stagger delays */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }
.stagger > *:nth-child(7) { transition-delay: 0.48s; }
.stagger > *:nth-child(8) { transition-delay: 0.56s; }
.stagger > *:nth-child(9) { transition-delay: 0.64s; }
.stagger > *:nth-child(10) { transition-delay: 0.72s; }
.stagger > *:nth-child(11) { transition-delay: 0.80s; }
.stagger > *:nth-child(12) { transition-delay: 0.88s; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn--gold {
  background: var(--gold);
  color: var(--black);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}
.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover {
  background: #cc2020;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,28,28,0.3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 60px 40px 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  max-width: var(--max-w);
  margin: 0 auto 50px;
}
.footer__brand {}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 300px;
}
.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}
.footer__col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray);
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a:hover { color: var(--gold); }

/* ---------- Ornamento decorativo ---------- */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.ornament__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4));
}
.ornament__line--right {
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}
.ornament__icon {
  font-size: 1.1rem;
  color: var(--gold);
}

/* ---------- Horario badge ---------- */
.horario-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}
.horario-badge .dot {
  width: 7px; height: 7px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Alergenos badges ---------- */
.alergeno-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  font-size: 0.68rem;
  color: var(--gray);
  text-transform: capitalize;
}

/* ---------- Tags vegetariano/vegano ---------- */
.tag-veg {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-veg--v { background: rgba(76,175,80,0.2); color: #81c784; }
.tag-veg--vg { background: rgba(76,175,80,0.35); color: #66bb6a; }

/* ---------- Parallax container ---------- */
.parallax-container,
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
  }
  .nav__links.open a { font-size: 1.1rem; }
  .nav__cta { margin-left: 0; }
  .section { padding: 70px 20px; }
  .footer { padding: 50px 20px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 16px; }
  .whatsapp-btn { bottom: 18px; right: 18px; width: 50px; height: 50px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
