/* =========================================
   La Cocina de Romelia - chuchitos.css v2.0
   Hecho por FrijolGt con cariño chapín
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700;800&display=swap');

:root{
  --rojo: #C31D32;
  --rojo-hover: #a51627;
  --crema: #fffaf3;
  --texto: #333;
  --borde: #f0e6d8;
  --sombra: 0 4px 10px rgba(0,0,0,0.08);
  --sombra-hover: 0 8px 20px rgba(0,0,0,0.12);
}

*{
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background: var(--crema);
  margin: 0;
  padding: 0;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--rojo);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar img { 
  width: 60px; 
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out; 
}
.navbar img:hover { 
  transform: scale(1.1) rotate(5deg); 
  filter: brightness(1.2); 
}
.navbar h1 { 
  font-size: 1.4rem; 
  font-weight: 800; 
  margin: 0;
  letter-spacing: 0.5px;
}

/* HERO SLIDESHOW */
.hero {
  position: relative;
  height: 55vh;
  height: 55dvh;
  min-height: 360px;
  max-height: 520px;
  overflow: hidden;
  background: #222;
}
.slideshow-container { position: absolute; inset: 0; }
.mySlides {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease-in-out;
  will-change: opacity;
}
.mySlides img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mySlides.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 20px;
}
.hero-content h2 { 
  font-size: clamp(1.6rem, 4vw, 2.4rem); 
  font-weight: 800; 
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 1.2;
}

/* CARROUSEL */
.carousel-container {
  position: relative; 
  overflow: hidden;
  max-width: 1100px;
  width: 92%; 
  margin: 30px auto;
  padding: 10px 0 20px;
}
.carousel-track {
  display: flex; 
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.dia {
  min-width: 220px; 
  margin: 0 8px;
  background: #fff; 
  border-radius: 16px;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
  padding: 20px 18px; 
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.dia:hover{
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}
.dia h3 { margin: 0 0 8px; color: var(--rojo); font-size: 1.1rem; font-weight: 800; }
.dia p { margin: 5px 0; font-size: 0.95rem; line-height: 1.4; }
.dia p strong{ font-size: 1.1rem; color: #111; }

/* Botón CTA - clase específica */
.btn-cta {
  display: inline-block; 
  margin-top: 12px;
  background: var(--rojo); 
  color: #fff;
  padding: 10px 22px; 
  border-radius: 25px;
  text-decoration: none; 
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(195,29,50,0.3);
}
.btn-cta:hover { background: var(--rojo-hover); transform: scale(1.05); }
.btn-cta:active { transform: scale(0.96); }

/* Día de hoy resaltado */
.hoy-activo{
  transform: scale(1.05);
  border: 2px solid var(--rojo)!important;
  background: #fffbe6!important;
  box-shadow: 0 8px 22px rgba(195,29,50,0.22)!important;
}
.hoy-activo h3::after{
  content: " - HOY 🔥";
  color: var(--rojo);
  font-size: 0.8em;
}

/* Flechas */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(195,29,50,0.9); color: #fff;
  border: none; width: 42px; height: 42px;
  cursor: pointer; font-size: 18px;
  border-radius: 50%; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}
.carousel-btn:hover{ background: var(--rojo); transform: translateY(-50%) scale(1.1); }
.carousel-btn:active{ transform: translateY(-50%) scale(0.95); }
.carousel-btn.left { left: 6px; }
.carousel-btn.right { right: 6px; }

/* FOOTER */
footer {
  text-align: center; 
  padding: 28px 20px;
  background: #1a1a1a; 
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 4px solid var(--rojo);
  margin-top: 20px;
}
footer div{ margin-top: 6px; opacity: 0.7; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 480px) {
  .navbar img{ width: 48px; height: 48px; }
  .navbar h1{ font-size: 1.15rem; }
  .hero{ height: 50dvh; min-height: 320px; }
  .dia { min-width: 78vw; margin: 0 6px; }
  .carousel-btn{ width: 36px; height: 36px; font-size: 16px; }
}

@media (min-width: 768px){
  .dia{ min-width: 260px; }
}