/* =========================================================
   PALETA OFICIAL TAQUERÍA MARY
   ========================================================= */
:root {
  --parchment-light: #faf3e6;
  --parchment-warm: #f5d693;
  --mary-red: #9e1b1b;
  --mary-red-dark: #680f0f;
  --mary-red-bright: #c92424;
  --mary-gold: #f59e0b;
  --mary-gold-bright: #ffd700;
  --mary-green: #166534;
  --mary-brown-dark: #240a04;
  --mary-brown-text: #3b1309;
  --mary-brown-muted: #6b3421;
}

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

body {
  width: 100%;
  background-color: var(--mary-brown-dark);
  color: var(--mary-brown-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: clip;
}

/* =========================================================
   BARRA DE NAVEGACIÓN SUPERIOR CON DESPLEGABLES
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  background: rgba(36, 10, 4, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--mary-gold-bright);
  box-shadow: 0 6px 24px rgba(36, 10, 4, 0.45);
}

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

.nav-logo-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mary-gold-bright);
  background: var(--parchment-light);
}

.nav-subtitle {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--mary-gold-bright);
}

.nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--parchment-light);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--mary-gold-bright);
  background: rgba(255, 215, 0, 0.1);
}

.nav-link.promo-nav-link {
  color: var(--mary-gold-bright);
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: rgba(158, 27, 27, 0.4);
}

/* DESPLEGABLES DE MENÚ Y PAQUETES */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--parchment-light);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown.open .nav-dropdown-btn {
  color: var(--mary-gold-bright);
  background: rgba(255, 215, 0, 0.12);
}

.nav-dropdown-btn .caret {
  font-size: 0.75rem;
  color: var(--mary-gold-bright);
  transition: transform 0.2s;
}

.nav-dropdown:hover .caret,
.nav-dropdown.open .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: linear-gradient(180deg, #2d0c05 0%, #1c0703 100%);
  border: 2px solid var(--mary-gold-bright);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 300;
}

/* Puente invisible para que no se cierre al bajar el cursor */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--mary-gold-bright);
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 0.18s, transform 0.18s;
}

.nav-dropdown-menu a small {
  color: var(--parchment-light);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}

.nav-dropdown-menu a:hover {
  background: rgba(158, 27, 27, 0.65);
  transform: translateX(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.delivery-pill {
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid var(--mary-gold-bright);
  color: var(--mary-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 1px;
}

.cta-whatsapp-nav {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 9px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.45);
}

/* =========================================================
   ANIMACIONES A PANTALLA COMPLETA (LÓGICA DE FRAMES)
   ========================================================= */
.fullscreen-anim-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #120704;
  border-top: 3px solid var(--mary-gold);
  border-bottom: 3px solid var(--mary-gold);
}

.anim-spacer {
  width: 100%;
  background: linear-gradient(180deg, #240a04 0%, #4a0a0a 50%, #240a04 100%);
  line-height: 1.8;
}

.canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.canvas-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.banner-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 60%, rgba(24, 7, 3, 0.45) 100%);
}

/* =========================================================
   LETREROS EN PARTE SUPERIOR IZQUIERDA (MISMA FILA DESLIZANDO)
   ========================================================= */
.top-left-signs-row {
  position: absolute;
  top: 80px;
  left: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.anim-sign {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateX(80px);
  will-change: transform, opacity;
}

.anim-sign.sign-title {
  background: linear-gradient(90deg, #4a0a0a 0%, #8f1515 50%, #4a0a0a 100%);
  border: 2px solid #ffd700;
  color: #ffd700;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.anim-sign.sign-hero-logo {
  padding: 6px;
  border-radius: 18px;
  background: #faf3e6;
  border: 2.5px solid #ffd700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.hero-corner-logo {
  width: 150px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.anim-sign.sign-title .sign-main-name {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd700;
  line-height: 1.1;
}

.anim-sign.sign-title .sign-flavors {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #faf3e6;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.anim-sign.sign-solos {
  background: rgba(36, 10, 4, 0.94);
  border: 2px solid #ffd700;
  color: #faf3e6;
  font-size: 1.02rem;
}

.anim-sign.sign-solos strong {
  color: #ffd700;
  font-size: 1.15rem;
  font-weight: 900;
}

.anim-sign.sign-gift {
  background: linear-gradient(90deg, #14532d 0%, #166534 100%);
  border: 2px solid #ffd700;
  color: #faf3e6;
  font-size: 0.98rem;
}

.anim-sign.sign-gift strong {
  color: #ffd700;
  font-size: 1.08rem;
  font-weight: 900;
}

.anim-sign.sign-prepared {
  background: linear-gradient(90deg, #6e1010 0%, #9e1b1b 100%);
  border: 2px solid #ffd700;
  color: #ffffff;
  font-size: 1.02rem;
}

.anim-sign.sign-prepared strong {
  color: #ffd700;
  font-size: 1.28rem;
  font-weight: 900;
}

/* INDICADOR DE SCROLL */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(36, 10, 4, 0.85);
  border: 1.5px solid var(--mary-gold-bright);
  color: var(--mary-gold-bright);
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.mouse-icon {
  width: 20px;
  height: 30px;
  border: 2px solid var(--mary-gold-bright);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.mouse-icon .wheel {
  width: 3px;
  height: 7px;
  background: var(--mary-gold-bright);
  border-radius: 2px;
  animation: wheelMove 1.4s infinite;
}

@keyframes wheelMove {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP DE SIEMPRE (ESQUINA INFERIOR DERECHA)
   ========================================================= */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  border: 2.5px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(37, 211, 102, 0.55);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
}

.wa-float-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2s infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wa-float-tooltip {
  position: absolute;
  right: 74px;
  background: rgba(36, 10, 4, 0.95);
  color: #ffd700;
  border: 1.5px solid #ffd700;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.floating-whatsapp-btn:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   SECCIÓN 11: METODOLOGÍA DE COMPRA (CUADRÍCULA 4 PASOS A LA IZQUIERDA)
   ========================================================= */
.compra-active-header {
  position: absolute;
  top: 78px;
  right: 28px;
  z-index: 12;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background: linear-gradient(90deg, rgba(74, 10, 10, 0.94) 0%, rgba(143, 21, 21, 0.96) 100%);
  border: 2px solid #ffd700;
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.compra-header-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 900;
  color: #faf3e6;
  letter-spacing: 1px;
}

.compra-header-step {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.compra-left-grid {
  position: absolute;
  top: 76px;
  bottom: 18px;
  left: 20px;
  width: 450px;
  z-index: 11;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  pointer-events: none;
}

.compra-step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(36, 10, 4, 0.95) 0%, rgba(74, 10, 10, 0.94) 100%);
  border: 2px solid #ffd700;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateX(26vw) scale(1.16);
  will-change: transform, opacity;
  overflow: hidden;
}

.step-card-thumb-wrap {
  position: relative;
  width: 128px;
  height: 100%;
  min-height: 72px;
  max-height: 115px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #ffd700;
  flex-shrink: 0;
  background: #120704;
}

.step-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-card-num {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #9e1b1b;
  color: #ffd700;
  border: 1px solid #ffd700;
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.step-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.step-card-info h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1.2;
}

.step-card-info p {
  font-size: 0.82rem;
  color: #faf3e6;
  line-height: 1.32;
}

.step-card-info p strong {
  color: #ffd700;
}

/* =========================================================
   FOOTER FINAL — TAQUERÍA MARY
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, #240a04 0%, #140502 100%);
  border-top: 4px solid var(--mary-gold-bright);
  color: var(--parchment-light);
  padding: 56px 28px 28px;
  position: relative;
  z-index: 20;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--mary-gold-bright);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.footer-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--mary-gold-bright);
  display: block;
}

.footer-brand-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(250, 243, 230, 0.88);
  margin-bottom: 16px;
}

.footer-Desc strong,
.footer-desc strong {
  color: var(--mary-gold-bright);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  background: rgba(158, 27, 27, 0.45);
  border: 1px solid var(--mary-gold-bright);
  color: var(--mary-gold-bright);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--mary-gold-bright);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.28);
  padding-bottom: 8px;
}

.footer-links,
.footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--parchment-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--mary-gold-bright);
  transform: translateX(4px);
}

.footer-info-list li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(250, 243, 230, 0.92);
}

.footer-info-list strong {
  color: var(--mary-gold-bright);
}

.footer-info-list a {
  color: #4ade80;
  font-weight: 800;
  text-decoration: none;
}

.footer-wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 30px;
  border: 2px solid #ffd700;
  box-shadow: 0 8px 22px rgba(22, 101, 52, 0.5);
  transition: transform 0.2s;
}

.footer-wa-cta:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1240px;
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  text-align: center;
  font-size: 0.84rem;
  color: rgba(250, 243, 230, 0.75);
}

.footer-bottom strong {
  color: var(--mary-gold-bright);
}

/* =========================================================
   RESPONSIVE (TABLET Y CELULAR)
   ========================================================= */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 12px;
    height: 58px;
    gap: 8px;
  }

  .nav-subtitle,
  .delivery-pill,
  .cta-whatsapp-nav {
    display: none;
  }

  .nav-title {
    font-size: 1.05rem;
  }

  .nav-logo-thumb {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link,
  .nav-dropdown-btn {
    font-size: 0.74rem;
    padding: 6px 8px;
  }

  .nav-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 240px;
  }

  .top-left-signs-row {
    top: 68px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .anim-sign {
    padding: 6px 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .anim-sign.sign-title {
    padding: 5px 10px;
  }

  .hero-corner-logo {
    width: 100px;
  }

  .anim-sign.sign-title .sign-main-name {
    font-size: 0.74rem;
  }

  .anim-sign.sign-title .sign-flavors {
    font-size: 0.62rem;
  }

  .anim-sign.sign-solos,
  .anim-sign.sign-gift,
  .anim-sign.sign-prepared {
    font-size: 0.7rem;
  }

  .anim-sign.sign-solos strong,
  .anim-sign.sign-gift strong,
  .anim-sign.sign-prepared strong {
    font-size: 0.82rem;
  }

  .floating-whatsapp-btn {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 18px;
  }

  .wa-float-tooltip {
    display: none;
  }

  .compra-active-header {
    top: 64px;
    right: 10px;
    left: 10px;
    align-items: flex-start;
    padding: 6px 12px;
  }

  .compra-header-badge {
    font-size: 0.65rem;
  }

  .compra-header-step {
    font-size: 0.8rem;
  }

  .compra-left-grid {
    top: 122px;
    bottom: 14px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 360px;
    gap: 6px;
  }

  .compra-step-card {
    padding: 6px 10px;
    gap: 10px;
    border-radius: 10px;
  }

  .step-card-thumb-wrap {
    width: 84px;
    min-height: 52px;
  }

  .step-card-info h4 {
    font-size: 0.74rem;
  }

  .step-card-info p {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding: 40px 18px 90px;
  }
}
