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

:root {
  --color-rojo: #C8102E;
  --color-amarillo: #FFC72C;
  --color-negro: #0D0D0D;
  --color-crema: #F5F0E8;
  --color-gris: #1A1A1A;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-negro);
  color: var(--color-crema);
  overflow-x: hidden;
}

h1, h2, h3, .bebas {
  font-family: 'Bebas Neue', cursive;
  font-weight: normal;
  letter-spacing: 1px;
}

.playfair {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .split-text-container::before, .split-text-container::after {
    animation: none !important;
  }
}

/* SECTION 1 - HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-negro);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 20px;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-logo {
  margin-bottom: 20px;
}

.hero-logo h1 {
  font-size: clamp(50px, 15vw, 90px);
  color: var(--color-amarillo);
  line-height: 1;
}

.hero-logo p {
  font-weight: 300;
  font-size: clamp(12px, 3vw, 18px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-crema);
  margin-top: 5px;
}

.hero-separator {
  width: 80px;
  height: 2px;
  background-color: var(--color-rojo);
  margin: 30px auto;
}

/* Split Text Effect Responsivo, Animado y con Transparencia */
.split-text-container {
  position: relative;
  display: inline-block;
  font-family: 'Bebas Neue', cursive;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: clamp(40px, 12vw, 120px);
  line-height: 1;
  margin-bottom: 20px;
  color: transparent; /* El texto base define el tamaño pero es invisible */
  white-space: nowrap;
}

.split-text-container::before,
.split-text-container::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: 'Bebas Neue', cursive;
  font-weight: normal;
  letter-spacing: 1px;
}

.split-text-container::before {
  color: var(--color-rojo);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  /* Animación desde la izquierda */
  animation: slideInLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.split-text-container::after {
  color: var(--color-amarillo);
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  /* Animación desde la derecha */
  animation: slideInRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInLeft {
  0% { transform: translateX(-100px); opacity: 0; filter: blur(4px); }
  100% { transform: translateX(0); opacity: 0.75; filter: blur(0); }
}

@keyframes slideInRight {
  0% { transform: translateX(100px); opacity: 0; filter: blur(4px); }
  100% { transform: translateX(0); opacity: 0.75; filter: blur(0); }
}

.hero-subtitle {
  font-size: clamp(16px, 4vw, 22px);
  color: var(--color-crema);
  margin-top: 10px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-amarillo);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

/* SECTION 2 - EL CONCEPTO */
.section-concepto {
  background-color: var(--color-negro);
  padding: 100px 20px;
  text-align: center;
}

.section-title {
  font-size: clamp(40px, 5vw, 60px);
  color: var(--color-amarillo);
  margin-bottom: 60px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cards-container {
    flex-direction: row;
  }
}

.concept-card {
  flex: 1;
  background-color: var(--color-gris);
  border-top: 3px solid var(--color-rojo);
  padding: 40px 20px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:nth-child(1) { transition-delay: 0.1s; }
.concept-card:nth-child(2) { transition-delay: 0.2s; }
.concept-card:nth-child(3) { transition-delay: 0.3s; }

.concept-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition-delay: 0s !important;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.concept-card h3 {
  color: var(--color-crema);
  font-size: 28px;
  margin-bottom: 15px;
}

.concept-card p {
  color: rgba(245, 240, 232, 0.8);
  font-size: 16px;
  line-height: 1.6;
}

/* SECTION 3 - GALERIA */
.section-galeria {
  background-color: var(--color-gris);
  padding: 100px 20px;
  text-align: center;
}

.section-galeria .section-title {
  color: #FFFFFF;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16/9;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.gallery-item.active {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.gallery-label {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px;
  color: white;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 0;
}

/* SECTION 4 - GUADALAJARA */
.section-guadalajara {
  position: relative;
  background: linear-gradient(135deg, var(--color-rojo) 0%, #8B0000 100%);
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
}

.guadalajara-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  background-image: url('../img/delivery.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45; /* Aumentada transparencia/visibilidad del fondo */
  mix-blend-mode: multiply; /* Se funde espectacularmente con el rojo */
  z-index: 1;
}

.section-guadalajara .content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.section-guadalajara h2 {
  font-size: clamp(45px, 6vw, 70px);
  color: #FFF;
  margin-bottom: 20px;
}

.section-guadalajara p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* SECTION 5 - DELIVERY */
.section-delivery {
  background-color: var(--color-negro);
  padding: 80px 20px 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.delivery-icon {
  margin-bottom: 20px;
}

.delivery-icon svg {
  width: 80px;
  height: 80px;
  fill: var(--color-crema);
}

.section-delivery h2 {
  font-size: clamp(40px, 5vw, 55px);
  color: var(--color-amarillo);
  margin-bottom: 20px;
}

.section-delivery p {
  font-size: 18px;
  color: var(--color-crema);
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* SECTION 5.5 - APP TEASER */
.section-app-teaser {
  background-color: #111; /* Ligeramente más claro para distinguirlo del footer y delivery */
  padding: 60px 20px 100px 20px;
}

.app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .app-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .app-text {
    flex: 1;
    text-align: left;
    padding-right: 40px;
  }
}

.app-text {
  text-align: center;
  max-width: 500px;
}

.app-text h2 {
  font-size: clamp(35px, 4.5vw, 50px);
  color: var(--color-rojo);
  margin-bottom: 20px;
}

.app-text p {
  font-size: 18px;
  color: var(--color-crema);
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.badge-app {
  display: inline-block;
  background-color: var(--color-rojo);
  color: white;
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  padding: 10px 30px;
  border-radius: 30px;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

.app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.app-mockup {
  max-width: 300px;
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(200, 16, 46, 0.3);
  transform: rotateY(-15deg) rotateX(5deg) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.app-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* SECTION 6 - FOOTER */
.footer {
  background-color: #0D0D0D;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer h4 {
  color: var(--color-amarillo);
  font-size: 28px;
  margin-bottom: 10px;
}

.footer p {
  color: var(--color-crema);
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer .copyright {
  font-size: 12px;
  opacity: 0.5;
}

.footer-separator {
  width: 40px;
  height: 1px;
  background-color: var(--color-rojo);
  margin: 15px auto;
}

/* WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* COUNTDOWN TITLE */
.countdown-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--color-crema);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

/* COUNTDOWN (MIN, SEC, MSEC) */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 70px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.countdown-item .bebas {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--color-rojo);
  line-height: 1;
}

.cd-label {
  font-size: 11px;
  color: var(--color-crema);
  opacity: 0.8;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 1px;
}

.countdown-separator {
  font-size: clamp(20px, 3.5vw, 30px);
  color: var(--color-amarillo);
  font-family: 'Bebas Neue', cursive;
  padding-bottom: 15px;
}

@media (max-width: 600px) {
  .countdown-container {
    flex-direction: column;
    gap: 15px;
  }
  .countdown-item {
    width: 100%;
    max-width: 250px;
    padding: 15px;
  }
  .countdown-item .bebas {
    font-size: 36px;
    word-break: break-all;
  }
  .cd-label {
    font-size: 14px;
  }
  .countdown-separator {
    display: none;
  }
}
