/* ===========================
   GLOBAL STYLES — EL GUZZ
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --white: #ffffff;
  --gray: #888888;
  --gray-light: #cccccc;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.red { color: var(--red); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-primary:hover { background: transparent; color: var(--red); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-secondary:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.7);
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  position: relative;
  transition: height 0.4s ease;
}
.navbar.scrolled .nav-container {
  height: 72px;
}

/* Links */
.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  height: 100px;
  transition: height 0.4s ease;
}
.navbar.scrolled .nav-links { height: 72px; }
.nav-links.nav-left  {
  justify-content: space-around;
  padding-right: 5rem;
  padding-left: 1rem;
}
.nav-links.nav-right {
  justify-content: space-around;
  padding-left: 5rem;
  padding-right: 1rem;
}
.nav-links a {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Logo central — absoluto para no afectar el flex de los links */
.nav-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -10px;
  z-index: 20;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: auto;
}

@media (min-width: 901px) {
  .nav-logo-center { top: -10px; }
}

/* Contenedor escudo + logo superpuesto */
.nav-logo-badge {
  position: relative;
  width: 190px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
}

/* Escudo de fondo */
.nav-shield {
  width: 190px;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  display: block;
  margin-top: 0;
  position: relative;
  top: 0;
  visibility: visible;
  z-index: 1;
}
.nav-shield img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Logo superpuesto sobre el escudo */
.nav-logo-badge > img {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  height: 100px;
  width: auto;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.3s, height 0.4s;
  filter: none;
}
.nav-logo-badge > img:hover {
  transform: translateX(-50%) scale(1.08);
}

/* Marco — eliminado */
.nav-badge-frame { display: none; }

/* Al hacer scroll: ocultar escudo, reducir logo */
.navbar.scrolled .nav-shield {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  z-index: -1;
}
.navbar.scrolled .nav-logo-badge > img {
  height: 48px;
  top: 8px;
}

/* WhatsApp btn */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--red);
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-whatsapp:hover { background: transparent; color: var(--red); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.page-hero:hover .page-hero-bg { transform: scale(1); }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.75) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  margin-top: 5rem;
}
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0.5rem 0 1rem;
}
.page-hero-content p { color: var(--gray-light); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--black-2); border-top: 3px solid var(--red); }
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo { display: flex; align-items: center; margin-bottom: 1rem; }
.footer-logo img {
  height: 80px; width: auto; object-fit: contain;
  animation: logoFloat 4s ease-in-out infinite;
  transition: transform 0.3s, filter 0.3s;
}
.footer-logo img:hover {
  animation: none;
  transform: scale(1.1);
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.8));
}
@keyframes logoFloat {
  0%   { transform: translateY(0px);  filter: drop-shadow(0 4px 8px rgba(255,255,255,0.2)); }
  50%  { transform: translateY(-8px); filter: drop-shadow(0 12px 20px rgba(255,255,255,0.6)); }
  100% { transform: translateY(0px);  filter: drop-shadow(0 4px 8px rgba(255,255,255,0.2)); }
}
.footer-brand p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-links h4, .footer-contact h4 {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid #222;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  color: var(--gray); font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s;
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-links a::before { content: '—'; color: var(--red); font-size: 0.7rem; opacity: 0; transition: opacity 0.3s; }
.footer-links a:hover { color: var(--white); padding-left: 0.5rem; }
.footer-links a:hover::before { opacity: 1; }
.footer-contact p { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.footer-contact p i { color: var(--red); width: 16px; }
.footer-contact a { color: var(--gray); transition: color 0.3s; }
.footer-contact a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.9rem; transition: all 0.3s;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); background: rgba(204,0,0,0.08); }
.footer-bottom { border-top: 1px solid #1e1e1e; padding: 1.5rem 2rem; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { color: #444; font-size: 0.8rem; }

/* ── SOCIAL SECTION ──────────────────────────────────────── */
.social-section { padding: 5rem 2rem; background: var(--black-2); }
.social-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.social-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.2rem 2rem; border: 1px solid #333;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em;
  transition: all 0.3s; color: var(--white);
}
.social-card i { font-size: 1.4rem; }
.social-card:hover { transform: translateY(-4px); }
.social-card.instagram:hover { border-color: #E1306C; color: #E1306C; }
.social-card.facebook:hover  { border-color: #1877F2; color: #1877F2; }
.social-card.whatsapp:hover  { border-color: #25D366; color: #25D366; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Los links se apilan en un solo dropdown */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,0.99);
    border-top: 2px solid var(--red);
    padding: 1rem 2rem;
    gap: 0;
    height: auto;
    z-index: 999;
  }
  .nav-links.nav-left,
  .nav-links.nav-right {
    padding: 0.5rem 2rem;
    justify-content: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #222; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    line-height: 1.5;
  }
  .nav-links a::after { bottom: 0; }

  .hamburger { display: flex; }
  .btn-whatsapp { display: none; }

  /* Logo centrado correctamente en móvil */
  .nav-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }
  .nav-logo-badge { width: 120px; }
  .nav-shield     { width: 120px; }
  .nav-logo-badge > img { height: 60px; top: 6px; }

  /* Altura del navbar en móvil */
  .nav-container {
    height: 72px;
  }
  .navbar.scrolled .nav-container { height: 60px; }
  .nav-links { top: 72px; }
  .navbar.scrolled .nav-links { top: 60px; }
}
@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .social-links { flex-direction: column; align-items: center; }
  .social-card { width: 100%; max-width: 300px; justify-content: center; }
}

/* ── REVEAL ANIMATIONS (global) ─────────────────────────── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal         { transform: translateY(30px); }
.reveal-left    { transform: translateX(-40px); }
.reveal-right   { transform: translateX(40px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ── FLY-TO-CART CLONE ───────────────────────────────────── */
.fly-clone {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border-radius: 4px;
  overflow: hidden;
  opacity: 1;
  box-shadow: 0 8px 30px rgba(204,0,0,0.4);
  transition: top 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              left 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              width 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              height 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.65s ease,
              border-radius 0.65s ease;
}

/* ── MOBILE MENU — panel lateral ────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: rgba(10,10,10,0.98);
  border-left: 2px solid var(--red);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-links li { border-bottom: 1px solid #1e1e1e; }
.mobile-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.mobile-links a i { color: var(--red); font-size: 1rem; width: 20px; }
.mobile-links a:hover,
.mobile-links a.active { color: var(--red); }
.mobile-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #222;
}
.mobile-social a {
  width: 42px; height: 42px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1.1rem;
  transition: all 0.3s;
}
.mobile-social a:hover { border-color: var(--red); color: var(--red); }

/* Overlay oscuro detrás del panel */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.mobile-overlay.open { display: block; }
