/* ============================================
   TACOS EL REGIO — warm taquería, modern minimal
   Palette: chile red #C8102E · cream · dark cacao
   Fonts: Clash Display (display) + Satoshi (body)
   ============================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* Color — warm cream surfaces, chile red accent */
  --color-bg: #FAF5EC;
  --color-surface: #FFFCF5;
  --color-surface-offset: #F2EADC;
  --color-divider: #E7DCC8;
  --color-text: #2A1A12;
  --color-text-muted: #7C6A58;
  --color-primary: #C8102E;
  --color-primary-hover: #A50D26;
  --color-primary-highlight: #F6DEE1;
  --color-dark: #241510;
  --color-dark-2: #2E1B14;
  --color-cream-on-dark: #F7EEE0;
  --color-muted-on-dark: #C9B6A4;

  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 4px 16px rgba(42, 26, 18, 0.08);
  --shadow-lg: 0 16px 48px rgba(42, 26, 18, 0.18);

  --content-default: 1080px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

h1, h2, h3 { text-wrap: balance; line-height: 1.12; }

p, li { text-wrap: pretty; }

::selection { background: var(--color-primary); color: #fff; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--content-default), 100% - 2.5rem); margin-inline: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive), color var(--transition-interactive),
              transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }
.btn--ghost {
  color: var(--color-cream-on-dark);
  border: 1.5px solid rgba(247, 238, 224, 0.5);
}
.btn--ghost:hover { border-color: var(--color-cream-on-dark); background: rgba(247, 238, 224, 0.08); }
.btn--sm { padding: var(--space-2) var(--space-4); }

/* ============ Header ============ */
.header__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.language-toggle {
  min-height: 44px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-primary); border-radius: var(--radius-full);
  background: transparent; color: var(--color-primary); cursor: pointer;
  font: 700 var(--text-sm) var(--font-body); white-space: nowrap;
}
.language-toggle:hover { background: var(--color-primary-highlight); }
.language-toggle[hidden] { display: none; }
@media (max-width: 520px) {
  .header__actions { gap: var(--space-2); }
  .header .btn--sm { min-width: 44px; min-height: 44px; justify-content: center; padding: var(--space-3); }
  .brand { gap: var(--space-2); }
  .brand__logo { width: 36px; height: 36px; }
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.header--hidden { transform: translateY(-100%); }
.header--scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand__logo { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--color-primary); }
.nav { display: flex; gap: var(--space-6); }
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.nav__link:hover { color: var(--color-primary); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  color: var(--color-cream-on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, rgba(20, 10, 6, 0.82) 0%, rgba(20, 10, 6, 0.55) 45%, rgba(20, 10, 6, 0.2) 100%),
    url('assets/hero-trompo.webp');
  background-size: cover;
  background-position: center;
}
.hero__inner {
  position: relative;
  padding-block: var(--space-24) var(--space-24);
  max-width: 640px;
}
.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #EFC58F;
  margin-bottom: var(--space-4);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.hero__lead {
  font-size: var(--text-lg);
  color: var(--color-muted-on-dark);
  margin-bottom: var(--space-8);
  max-width: 34ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ============ Marquee ============ */
.marquee {
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  padding-block: var(--space-3);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__dot { font-size: 0.5em; opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.section__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

/* Nosotros */
.nosotros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.nosotros__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-list { display: grid; gap: var(--space-5); list-style: none; }
.feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.feature__title { font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.feature__text { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Catering — dark */
.section--dark {
  background: var(--color-dark);
  color: var(--color-cream-on-dark);
}
.section--dark .section__lead { color: var(--color-muted-on-dark); }
.catering {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.catering__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.steps { list-style: none; display: grid; gap: var(--space-5); margin-bottom: var(--space-8); counter-reset: step; }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.step__title { font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.step__text { font-size: var(--text-sm); color: var(--color-muted-on-dark); }

/* Contacto */
.contacto {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contacto__logo { width: 110px; height: 110px; margin-bottom: var(--space-5); }
.contacto .section__lead { margin-inline: auto; }
.contacto__phone {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.contacto__phone:hover { color: var(--color-primary-hover); }
.contacto__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ============ Footer ============ */
.footer { background: var(--color-dark); color: var(--color-cream-on-dark); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-block: var(--space-10);
}
.footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.footer__logo { width: 40px; height: 40px; }
.footer__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.footer__tag { font-size: var(--text-xs); color: var(--color-muted-on-dark); }
.footer__meta { text-align: right; }
.footer__phone { color: var(--color-cream-on-dark); font-weight: 700; text-decoration: none; font-size: var(--text-base); }
.footer__phone:hover { color: #EFC58F; }
.footer__site { font-size: var(--text-xs); color: var(--color-muted-on-dark); margin-top: 2px; }
.footer__bottom { border-top: 1px solid rgba(247, 238, 224, 0.12); padding-block: var(--space-4); }
.footer__bottom p { font-size: var(--text-xs); color: var(--color-muted-on-dark); }

/* ============ Reveal animation ============ */
/* Hidden state applies only when JS is available (html.js); content stays visible without it */
html:not(.js) .reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal--visible { opacity: 1; transform: none; }

/* Image-disclosure notes */
.media-note {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.media-note--dark { color: var(--color-muted-on-dark); }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer__disclosure { font-size: var(--text-xs); color: var(--color-muted-on-dark); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .nav { display: none; }
  .nosotros, .catering { grid-template-columns: 1fr; }
  .catering__media { order: -1; }
  .footer__meta { text-align: left; }
}

@media (max-width: 520px) {
  .header .btn__label { display: none; }
  .brand__name { font-size: var(--text-base); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
