/* PALETA OFICIAL MIXI & TIPOGRAFÍAS */
:root {
  --chocolate: #3E2016; /* Marrón Chocolate (Oscuro / Base) */
  --red:       #9E1E24; /* Rojo Listón (Acento / Energía - CTAs) */
  --gold:      #BD8247; /* Dorado Canela (Calidez / Premium) */
  --cream:     #FCF6EE; /* Crema Vainilla (Lienzo / Fondo) */
  --white:     #FFFFFF; /* Blanco Puro (Contraste) */

  --ff-display: 'Fredoka', sans-serif;
  --ff-body:    'Quicksand', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--chocolate);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 48px;
  transition: background 0.5s, padding 0.4s, box-shadow 0.3s;
}

header.scrolled {
  background: rgba(62, 32, 22, 0.98); /* Chocolate translúcido */
  backdrop-filter: blur(12px);
  padding: 10px 48px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-img {
  height: 65px;
  width: auto;
  display: block;
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 38px;
  list-style: none;
  align-items: center;
}

nav a {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--chocolate);
  text-decoration: none;
  transition: color 0.3s;
}

header.scrolled nav a { color: var(--cream); }
nav a:hover, header.scrolled nav a:hover { color: var(--gold); }

/* Botón CTA del Header */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--red); /* Rojo Listón */
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px; /* Bordes redondeados amigables */
  transition: background 0.3s, transform 0.2s;
}

.cart-btn:hover { 
  background: #7a151b; /* Rojo más oscuro */
  transform: translateY(-2px);
}

#cart-count {
  background: var(--white);
  color: var(--red);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--chocolate);
}

/* ── FONDO CON IMAGEN LADO IZQUIERDO ────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
  /* Aquí agregamos la foto de unas galletas espectaculares */
  background-image: url('https://images.unsplash.com/photo-1499636136210-6f4ee915583e?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}

/* El filtro chocolate translúcido (Opacidad bajada al 70%) */
.hero-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(62, 32, 22, 0.70); /* Bajamos la opacidad para que se vea el postre */
  z-index: 1;
}

/* Levantamos TODO el texto y el botón para que queden sobre la foto y el filtro */
.hero-left > * {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 32px;
}

.hero-desc {
  font-family: var(--ff-body);
  font-size: 18px;
  color: var(--white);
  max-width: 380px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Botón CTA Principal */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  width: fit-content;
}

.hero-cta:hover {
  background: #7a151b;
  transform: scale(1.05);
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-right:hover img { transform: scale(1.08); }

.hero-badge {
  position: absolute;
  bottom: 48px;
  left: -20px;
  background: var(--gold);
  color: var(--chocolate);
  padding: 20px 28px;
  border-radius: 0 20px 20px 0;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-badge .num {
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.hero-badge .lbl {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Efecto scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MARQUEE STRIP ────────────────────────────── */
.marquee-strip {
  background: var(--gold);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 50px;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--chocolate);
}

.marquee-track .dot {
  color: var(--red);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ABOUT ───────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--cream);
}

.about-image { position: relative; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text {
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--red);
}

.about-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--chocolate);
  line-height: 1.1;
  margin-bottom: 28px;
}

.about-text p {
  color: var(--chocolate);
  font-size: 18px;
  margin-bottom: 18px;
}

/* ── MENÚ ESPECIAL (LISTA) ───────────────────── */
.menu-section {
  padding: 100px 80px;
  background: var(--white);
}

.menu-header {
  text-align: center;
  margin-bottom: 60px;
}

.menu-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(42px, 5vw, 60px);
  color: var(--chocolate);
  margin-bottom: 15px;
}

.menu-note {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--chocolate);
  opacity: 0.8;
}

/* Estructura de Lista Limpia */
.menu-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 2px dashed var(--gold);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-left {
  flex: 1;
  padding-right: 30px;
}

.menu-item-left h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  color: var(--chocolate);
  margin-bottom: 8px;
}

.menu-item-left p {
  font-size: 16px;
  color: var(--chocolate);
  opacity: 0.9;
}

.menu-price {
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--red);
  background: var(--cream);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ── TIENDA ────────────────────────────────────── */
.shop {
  padding: 100px 60px;
  background: var(--cream);
}

.shop-header {
  text-align: center;
  margin-bottom: 70px;
}

.shop-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(42px, 5vw, 68px);
  color: var(--chocolate);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(62,32,22,0.08);
  transition: transform 0.3s;
}

.product-card:hover { transform: translateY(-8px); }

.card-img-wrap {
  height: 250px;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-price-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--ff-display);
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-body { padding: 30px; text-align: center; }

.card-body h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--chocolate);
  margin-bottom: 12px;
}

.card-body p {
  font-size: 15px;
  color: var(--chocolate);
  opacity: 0.8;
  margin-bottom: 25px;
  height: 45px;
}

/* Botón Añadir al carrito (CTA) */
.btn-add {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  padding: 14px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add:hover, .btn-add.added {
  background: var(--red);
  color: var(--white);
}

/* ── MOCKUP DEL CARRITO (Adaptado a MIXI) ────── */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(62, 32, 22, 0.7); /* Chocolate translúcido */
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-panel-glass {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 480px;
    background: var(--white); 
    border: 3px solid var(--cream);
    border-radius: 30px 30px 0 0;
    padding: 30px;
    z-index: 1001;
    box-shadow: 0 -15px 40px rgba(62, 32, 22, 0.3);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-panel-glass.active { bottom: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px dashed var(--gold);
    padding-bottom: 15px;
}

.cart-header h3 {
    font-family: var(--ff-display);
    font-size: 26px;
    color: var(--chocolate);
}

.close-cart {
    background: var(--cream);
    border: none;
    color: var(--chocolate);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

.close-cart:hover {
    background: var(--red);
    color: var(--white);
}

.cart-items-container {
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding-right: 5px;
}

.cart-items-container::-webkit-scrollbar { width: 6px; }
.cart-items-container::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Píldoras */
.cart-pill {
    display: flex;
    align-items: center;
    background: var(--cream);
    padding: 15px;
    border-radius: 15px;
    transition: transform 0.2s;
}

.cart-pill:hover { transform: translateX(5px); }

.pill-qty {
    background: var(--gold);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    margin-right: 15px;
}

.pill-name {
    flex-grow: 1;
    font-family: var(--ff-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--chocolate);
}

.pill-price {
    font-family: var(--ff-display);
    font-size: 18px;
    color: var(--red);
    margin-right: 35px;
}

.btn-remove-pill {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--chocolate);
    opacity: 0.5;
    cursor: pointer;
    transition: color 0.2s, opacity 0.2s;
    font-size: 16px;
}

.btn-remove-pill:hover {
    color: var(--red);
    opacity: 1;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--chocolate);
  opacity: 0.5;
  text-align: center;
  gap: 15px;
}
.cart-empty i { font-size: 45px; }

.cart-summary {
    background: var(--cream);
    padding: 25px;
    border-radius: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--chocolate);
    font-family: var(--ff-body);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-total-price {
    font-family: var(--ff-display);
    font-size: 32px;
    color: var(--red);
}

/* Botón CTA del carrito (Rojo Listón según instrucciones) */
.btn-whatsapp {
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 16px;
    font-family: var(--ff-body);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, background 0.3s;
}

.btn-whatsapp:hover {
    background: #7a151b;
    transform: scale(1.02);
}

.btn-whatsapp:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

/* ── ANIMACIÓN DEL CAMIÓN ──────────────────────── */
.delivery-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(62, 32, 22, 0.95); /* Chocolate oscuro */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.delivery-overlay.active { opacity: 1; pointer-events: all; }

.truck-container {
    text-align: center;
    transform: translateX(-100vw);
}

.delivery-overlay.active .truck-container {
    animation: driveTruck 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.truck-container i {
    font-size: 90px;
    color: var(--gold); /* Dorado Canela */
    margin-bottom: 25px;
}

.truck-container p {
    font-family: var(--ff-display);
    font-size: 36px;
    color: var(--white);
}

@keyframes driveTruck {
    0%   { transform: translateX(-100vw); }
    40%  { transform: translateX(0); }
    60%  { transform: translateX(0); }
    100% { transform: translateX(100vw); }
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--chocolate);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}

.footer-brand p {
  font-size: 16px;
  opacity: 0.8;
  margin-top: 15px;
  margin-bottom: 25px;
  max-width: 300px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.9;
}

.contact-list i { color: var(--gold); }

.footer-col h4 {
  font-family: var(--ff-body);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 25px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  transition: color 0.3s, opacity 0.3s;
}

.footer-col ul li a:hover { color: var(--gold); opacity: 1; }

.footer-col p {
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(252, 246, 238, 0.1);
  padding: 30px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.6;
}

.social-row { display: flex; gap: 20px; }

.social-row a {
  color: var(--cream);
  font-size: 20px;
  opacity: 0.6;
  transition: color 0.3s, opacity 0.3s;
}

.social-row a:hover { color: var(--gold); opacity: 1; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  header { padding: 15px 24px; }
  nav { display: none; }

  /* 1. Ocultar el texto del carrito en móviles */
  .cart-text { display: none; }
  
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-left { padding: 120px 30px 60px; }

  /* 2. Arreglo del logo y el badge en móviles */
  .hero-right { 
    height: auto; /* Quitamos la altura fija que recortaba el logo */
    padding: 60px 20px 90px 20px; /* Damos espacio arriba y abajo */
  }
  .logo-center { 
    width: 90%; 
    max-width: 320px; 
  }
  .hero-badge { 
    left: 50%; /* Centramos el badge */
    transform: translateX(-50%); 
    bottom: 20px; 
    border-radius: 20px; /* Redondeamos todos los bordes */
  }

  .about { grid-template-columns: 1fr; }
  .about-image { height: 300px; }
  .about-text { padding: 60px 30px; }

  .menu-section { padding: 70px 24px; }
  .menu-item { flex-direction: column; align-items: flex-start; gap: 15px; }
  .menu-price { align-self: flex-start; }

  .shop { padding: 70px 20px; }
  .shop-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 50px 24px 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}