/* =========================================================
   Tacos Corona — style.css
   Paleta, tipografías, layout, responsive y decoraciones.
   ========================================================= */

:root {
  --red: #e5242a;
  --red-dark: #b9171d;
  --yellow: #f5a800;
  --orange: #ffb000;
  --black: #111111;
  --white: #ffffff;
  --cream: #fff9ee;
  --gray-text: #3b3b3b;

  --header-h: 76px;
  --maxw: 1180px;
  --radius: 14px;
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);

  --font-title: "Bebas Neue", Impact, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
}

/* ------------------------------ Reset ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Botón base */
.btn {
  display: inline-block;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* Focus visible accesible */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Títulos de sección */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 1px;
  color: var(--black);
  text-align: center;
  margin: 0 0 34px;
}

.section-title .tw {
  color: var(--yellow);
  margin: 0 8px;
}

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 54px;
  width: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  position: relative;
  padding: 4px 0;
  /* Sombra ligera para legibilidad sobre el slider (header transparente) */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

.site-header.scrolled .nav-link {
  text-shadow: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.ig-link {
  color: var(--red);
  display: inline-flex;
  align-items: center;
}

.ig-link:hover {
  color: var(--red-dark);
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 26px;
  background: var(--black);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menú móvil */
.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 400px;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px 20px;
}

.mobile-nav li {
  border-bottom: 1px solid #f0e6d6;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  color: var(--black);
}

/* ------------------------------ Hero slider ------------------------------ */
.hero {
  padding-top: var(--header-h);
  background: var(--white);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(320px, 56vw, 620px);
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  z-index: 2;
}

.hero-arrow:hover {
  background: var(--red-dark);
}

.hero-prev {
  left: 18px;
}
.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: var(--red);
  border-color: var(--red);
}

/* ------------------------------ Introducción ------------------------------ */
.intro {
  background: var(--white);
  text-align: center;
  padding: 64px 0 56px;
  position: relative;
}

.intro-inner {
  position: relative;
}

.crown {
  display: inline-block;
  margin-bottom: 6px;
}

.intro-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: 2px;
  color: var(--black);
  margin: 0;
  line-height: 1;
}

.intro-subtitle {
  font-family: var(--font-title);
  color: var(--red);
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  letter-spacing: 2px;
  margin: 6px 0 18px;
}

.deco-line {
  display: block;
  width: 120px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--yellow) 60% 100%);
}

.intro-desc {
  max-width: 620px;
  margin: 0 auto;
  color: var(--gray-text);
  font-size: 1.05rem;
}

.intro-btn {
  margin-top: 26px;
  letter-spacing: 1px;
}

/* ------------------------------ Carruseles (Weekly / Weekends) ------------------------------ */
.specials {
  background: var(--black);
  /* Textura muy sutil hecha con CSS (sin imágenes) */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  padding: 64px 0 60px;
}

.specials .section-title {
  color: var(--white);
}

/* ---- Encabezado Weekly Specials ---- */
.specials-head {
  text-align: center;
  margin-bottom: 40px;
}

.specials-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.eyebrow-line {
  display: inline-block;
  width: 46px;
  height: 2px;
  background: var(--red);
}

.specials-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
}

.specials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 12px;
}

.specials-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.specials-subtitle {
  color: #d9d9d9;
  margin: 0 auto;
  max-width: 560px;
  font-size: 1rem;
}

.specials-subtitle .hl {
  color: var(--yellow);
  font-weight: 600;
}

/* ---- Tarjeta special (día amarillo / precio rojo) ---- */
.special-card {
  background: var(--cream);
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  padding: 0;
  overflow: hidden;
  min-height: 300px;
  justify-content: flex-start;
}

.special-day {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: 1.7rem;
  text-transform: uppercase;
  padding: 16px 12px;
  text-align: center;
  line-height: 1;
  border-radius: 3px 3px 0 0;
}

.special-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 20px;
}

.special-name {
  margin: 0;
  color: var(--black);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  text-align: center;
}

.special-divider {
  display: block;
  width: 54px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}

.special-price {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  padding: 16px 12px;
  white-space: pre-line;
  line-height: 1.15;
  border-radius: 0 0 3px 3px;
}

.weekends {
  padding: 64px 0 60px;
}

/* ---- Tarjeta special con foto (Weekends Only) ---- */
.special-card--photo .special-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0e6d2;
  overflow: hidden;
}

.special-card--photo .special-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.special-sub {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.9rem;
  text-align: center;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-viewport {
  overflow: hidden;
  flex: 1;
}

.car-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* La cantidad de tarjetas visibles la define JS con --per-view */
.card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * 20px) / var(--per-view));
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Tarjetas sin foto (Weekly Specials): solo cuadro con info */
.card--no-img {
  justify-content: center;
  min-height: 220px;
  border-width: 3px;
}

.card--no-img .card-body {
  padding: 26px 18px;
  justify-content: center;
  gap: 10px;
}

.card--no-img .card-day {
  font-size: 1.7rem;
}

/* Modal sin imagen */
.modal-img[style*="display: none"] + .modal-body {
  border-radius: var(--radius);
}

.card-body {
  padding: 14px 14px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.card-day {
  font-family: var(--font-title);
  letter-spacing: 1px;
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1;
}

.card-name {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.card-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--red-dark);
}

.car-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.car-arrow:hover {
  background: var(--red-dark);
}

.car-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.car-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.car-dots button.active {
  background: var(--red);
}

/* ------------------------------ Catering (row full-photo + parallax) ------------------------------ */
.catering {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  /* Foto completa de fondo con efecto parallax */
  background-image: linear-gradient(90deg, rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.15)),
    url("images/catering.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax en escritorio */
}

.catering-overlay {
  width: 100%;
}

.catering-text {
  color: var(--white);
}

.catering-title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--white);
  margin: 0 0 6px;
  line-height: 0.95;
  letter-spacing: 1px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

.catering-sub {
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 1px;
  margin: 0 0 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: var(--cream);
  border-top: 3px solid var(--yellow);
  padding: 46px 0 22px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 76px;
  width: auto;
}

.footer-info {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.footer-item {
  margin: 0;
  color: var(--black);
  font-size: 0.95rem;
}

.footer-item a:hover {
  color: var(--red);
}

.footer-map {
  flex: 0 0 auto;
}

.footer-map iframe {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 190px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.fi-icon {
  color: var(--red);
  margin-right: 8px;
}

.footer-copy {
  text-align: center;
  margin: 30px 0 0;
  font-size: 0.82rem;
  color: var(--gray-text);
  border-top: 1px solid #efe3d0;
  padding-top: 16px;
}

/* ------------------------------ Modal ------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  background: var(--red-dark);
}

.modal-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-body {
  padding: 20px 24px 26px;
  text-align: center;
}

.modal-day {
  font-family: var(--font-title);
  color: var(--red);
  font-size: 1.6rem;
  margin: 0 0 4px;
  letter-spacing: 1px;
}

.modal-title {
  color: var(--black);
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.modal-desc {
  color: var(--gray-text);
  white-space: pre-line;
  margin: 0 0 12px;
}

.modal-price {
  font-weight: 700;
  color: var(--red-dark);
  font-size: 1.15rem;
  white-space: pre-line;
  margin: 0;
}

/* Evita scroll del body cuando el modal está abierto */
body.no-scroll {
  overflow: hidden;
}

/* ------------------------------ Placeholder de imágenes ------------------------------ */
img[src$=".png"]:not([src*="logo"]) {
  background: repeating-linear-gradient(
    45deg,
    #fff4dc,
    #fff4dc 12px,
    #ffe8b8 12px,
    #ffe8b8 24px
  );
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
  .catering {
    /* background-attachment: fixed no funciona bien en móvil/tablet */
    background-attachment: scroll;
    min-height: 380px;
  }
  .footer-map iframe {
    width: 100%;
    min-width: 260px;
  }
}

/* Móvil: menú hamburguesa */
@media (max-width: 760px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-info {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .brand-logo {
    height: 46px;
  }

  .car-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .catering-btn {
    width: 100%;
    text-align: center;
  }
  .hero-arrow {
    width: 38px;
    height: 38px;
  }
}

/* ------------------------------ Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-track,
  .car-track {
    transition: none;
  }
  .modal-box {
    animation: none;
  }
  .catering {
    background-attachment: scroll;
  }
}
