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

:root {
  /* LIGHT THEME VARIABLES */
  --color-bg: #ffffff;
  /* Fondo blanco principal */
  --color-surface: #f5f5f5;
  /* Gris muy sutil para contenedores y tarjetas */
  --color-accent: #111111;
  /* Acento principal en negro casi puro (estilo Gozney) */
  --color-accent-alt: #e63329;
  /* Rojo original mantenido para los precios / badges */
  --color-text: #111111;
  /* Texto principal oscuro */
  --color-text-muted: #666666;
  /* Gris intermedio para textos secundarios */
  --color-border: #e0e0e0;
  /* Gris muy claro para delimitadores si se necesitan */
  --color-mystery: #f5f5f5;
  /* Gris sutil para la pizza misterio en luz */
  --color-glow: #11111120;
  /* Sombra sutil y difusa */

  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-quote: 'Playfair Display', serif;
}

/* ==================
   RESET & BASE 
================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Censored Effect */
.censored {
  filter: blur(4px);
  user-select: none;
  display: inline-block;
}

/* Layout Classes */
.container {
  max-width: 1400px;
  /* Ampliado para tarjetas más grandes */
  margin: 0 auto;
  padding: 0 5%;
}

.container-narrow {
  max-width: 1200px;
}

.section {
  padding: 8rem 0;
  /* Más respiro vertical para estilo limpio */
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 4rem;
  /* Títulos más grandes */
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

/* ==================
   HEADER 
================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 5%;
  transition: background-color 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--color-border);
}

.header-canvas {
  display: none;
  /* Quitamos partículas del header en estilo limpio */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo-desktop img {
  height: 35px;
  /* Ligeramente más fino */
  display: none;
  /* Si el logo es blanco, aplicamos un filtro para volverlo negro en el tema claro */
  filter: invert(1);
}

.logo-mobile img {
  height: 35px;
  display: block;
  filter: invert(1);
}

.nav-desktop {
  display: none;
  gap: 2.5rem;
  font-family: var(--font-body);
  /* Cambiamos a Inter para limpieza (Gozney style) */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-desktop a {
  transition: color 0.2s ease;
  color: var(--color-text);
}

.nav-desktop a:hover {
  color: var(--color-text-muted);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
  z-index: 101;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  /* Pantalla completa en mobile */
  height: 100vh;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 99;
}

.nav-drawer.is-open {
  right: 0;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  font-family: var(--font-title);
  font-size: 3rem;
}

@media (min-width: 1024px) {
  .logo-desktop img {
    display: block;
  }

  .logo-mobile {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .nav-drawer {
    display: none;
  }
}

/* ==================
   HERO (Split Layout)
================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  /* Offset para el header */
  background-color: var(--color-bg);
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5%;
  position: relative;
  z-index: 10;
}

.hero-right {
  flex: 1;
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
  /* Default fallback */
  overflow: hidden;
}

/* Image background on the right */
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/trump.webp');
  background-size: cover;
  background-position: center 20%;
}

.badge-demo {
  display: inline-block;
  background-color: var(--color-accent-alt);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
  margin-bottom: 2rem;
}

.typewriter-container {
  font-size: 3.5rem;
  color: var(--color-accent);
  min-height: 180px;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: var(--color-accent);
  animation: blink 1s step-end infinite;
  vertical-align: bottom;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.stock-counter {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-weight: 500;
}

/* Pill Button Style */
.cta-btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  /* Estilo píldora */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background-color: #333333;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  #hero {
    flex-direction: row;
    padding-top: 0;
    /* Header superpuesto o pegado en light theme */
  }

  .hero-left {
    padding: 0 5% 0 10%;
  }

  .hero-right {
    min-height: 100vh;
  }

  .typewriter-container {
    font-size: 5rem;
    min-height: 240px;
  }
}

/* ==================
   PIZZAS 
================== */
.price-copy {
  margin-top: 2rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.price-copy p:first-child {
  font-size: 3rem;
  color: var(--color-accent-alt);
  font-family: var(--font-title);
  margin-bottom: 0.5rem;
}

.pizzas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card-inner {
  background-color: var(--color-surface);
  border-radius: 16px;
  /* Bordes suaves */
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pizza-card:hover .card-inner {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.pizza-overlay {
  display: none;
  /* Quitamos overlays de color en diseño limpio */
}

.pizza-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-content {
  padding: 2.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

.card-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ingredients {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.sold-out-msg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-accent);
  font-family: var(--font-title);
  font-size: 3rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.pizza-card.sold-out .sold-out-msg {
  display: flex;
}

.pizza-card.sold-out {
  pointer-events: none;
}

/* Card Misterio */
.card-misterio .card-inner {
  background-color: var(--color-surface);
  border: 4px dashed var(--color-border);
}

.empty-wrap {
  background-color: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-misterio {
  width: 80% !important;
  height: 80% !important;
  display: block;
}

@media (min-width: 768px) {
  .pizzas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pizzas-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Cambio a 2 para ser más grandes */
    gap: 3rem;
  }

  /* Make Misterio center in bottom row */
  .pizza-card[data-id="misterio"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 1.5rem);
    /* Mantener tamaño consistente */
  }
}

/* ==================
   QUIENES SOMOS
================== */
#quienes {
  text-align: center;
  background-color: var(--color-surface);
  border-radius: 24px;
  margin: 0 2%;
  padding: 6rem 5%;
}

#quienes h2 {
  font-size: 4rem;
  margin-bottom: 2.5rem;
}

.existential-paragraph {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .existential-paragraph {
    font-size: 2.2rem;
  }
}

.info-block {
  background-color: var(--color-bg);
  border-radius: 16px;
  padding: 3rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.info-block>p:first-child {
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.info-list {
  list-style: none;
  margin-bottom: 2rem;
}

.info-list li {
  margin-bottom: 0.8rem;
  color: var(--color-text-muted);
}

.info-list span {
  font-weight: 600;
  color: var(--color-text);
  margin-right: 0.5rem;
}

.warning-text {
  color: var(--color-accent-alt);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ==================
   TESTIMONIOS
================== */
.testimonials-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  padding-bottom: 2rem;
  /* Hide scrollbar */
  scrollbar-width: none;
}

.testimonials-container::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta h4 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
}

.rating {
  color: var(--color-accent-alt);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .testimonials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .testimonial-card {
    flex: auto;
  }
}

/* ==================
   FOOTER
================== */
#contacto {
  position: relative;
  background-color: var(--color-bg);
  padding: 6rem 5% 3rem;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.footer-canvas {
  display: none;
  /* Quitamos canvas del footer */
}

.relative-z {
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  filter: invert(1);
}

.footer-info p {
  margin-bottom: 0.8rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.footer-info a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-info a:hover {
  color: var(--color-accent-alt);
}

.footer-info .schedule {
  margin-top: 2rem;
  font-style: italic;
}

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-qr img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.footer-qr p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 200px;
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom a {
  color: var(--color-text);
  font-weight: 600;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

/* ==================
   ANIMATIONS (JS triggers)
================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-blur {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.reveal-blur.active {
  opacity: 1;
}