/* ============================================
   LOS CARRILLOS — Styles
   Teal + Slate | Minimalist | Magazine Layout
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-800);
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--teal-600);
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--slate-600);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--teal-700);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal-600);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff !important;
  background: var(--teal-600);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--slate-700);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--slate-800);
  padding: 16px 0;
  transition: color 0.2s;
  border-bottom: 1px solid var(--slate-200);
  width: 80%;
  text-align: center;
}

.mobile-menu-link:last-child {
  border-bottom: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--teal-600);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mobile-menu-link:hover {
  color: var(--teal-600);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  padding: 64px 24px 0;
  display: flex;
  align-items: center;
  background: var(--slate-50);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  padding-right: 24px;
  padding-top: 40px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal-400);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal-700);
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-600);
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-ghost:hover {
  border-color: var(--teal-400);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-image-inner {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
  background: var(--slate-200);
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero-image:hover .hero-image-inner img {
  transform: scale(1.03);
}

.hero-accent {
  position: absolute;
  bottom: -24px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-accent-line {
  width: 48px;
  height: 1px;
  background: var(--teal-400);
}

.hero-accent-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

/* Decorative line on hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-300), transparent 60%);
}

/* --- SECTION COMMON --- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.section-title--center {
  text-align: center;
}

/* --- ABOUT --- */
.about {
  padding: 120px 0;
  background: var(--slate-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 120px;
}

.about-right p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--slate-200);
}

.stat {
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  background: var(--slate-200);
  align-self: stretch;
  flex-shrink: 0;
  margin: 4px 0;
}

/* --- DIVIDER --- */
.divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, var(--slate-200), var(--teal-200), var(--slate-200));
}

/* --- MENU --- */
.menu {
  padding: 120px 0;
  background: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 64px;
}

.menu-column-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-200);
}

.menu-column-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  color: var(--teal-600);
}

.menu-column-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--slate-900);
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
  gap: 16px;
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate-800);
  letter-spacing: 0.01em;
}

.menu-item-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: italic;
}

/* --- GALLERY --- */
.gallery {
  padding: 0 24px 120px;
  background: var(--slate-50);
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  background: var(--slate-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

/* --- HOURS --- */
.hours {
  padding: 120px 0;
  background: var(--slate-800);
  color: #fff;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.hours .section-eyebrow {
  color: var(--teal-400);
}

.hours .section-title {
  color: #fff;
}

.hours-table {
  display: flex;
  flex-direction: column;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-size: 0.9375rem;
  color: var(--slate-300);
  font-weight: 400;
}

.hours-time {
  font-size: 0.9375rem;
  color: var(--teal-300);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.hours-row--closed .hours-day {
  color: var(--slate-500);
}

.hours-row--closed .hours-time {
  color: var(--slate-500);
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.875rem;
}

/* --- CONTACT --- */
.contact {
  padding: 120px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-detail-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-family: var(--font-mono);
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--slate-800);
  line-height: 1.6;
}

.contact-detail-link {
  font-size: 1rem;
  color: var(--teal-600);
  transition: color 0.2s, text-decoration 0.2s;
  border-bottom: 1px solid transparent;
  display: inline-block;
  width: fit-content;
}

.contact-detail-link:hover {
  color: var(--teal-700);
  border-bottom-color: var(--teal-300);
}

/* Form */
.contact-form-wrap {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--slate-800);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-400);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--teal-800);
}

.form-success.visible {
  display: block;
}

/* --- FOOTER --- */
.footer {
  padding: 64px 0 40px;
  background: var(--slate-900);
  color: var(--slate-400);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand .nav-logo-mark {
  width: 40px;
  height: 40px;
  font-size: 0.75rem;
}

.footer-name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-300);
  font-weight: 400;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--slate-500);
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--slate-600);
  letter-spacing: 0.02em;
}

/* --- SCROLL REVEAL (progressive enhancement) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .about-grid,
  .hours-grid,
  .contact-grid {
    gap: 48px;
  }

  .about-left {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text {
    padding-right: 0;
    padding-top: 0;
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-image-inner {
    aspect-ratio: 4/3;
  }

  .hero-accent {
    bottom: -20px;
    left: 0;
  }

  .hero::after {
    display: none;
  }

  .about,
  .menu,
  .hours,
  .contact {
    padding: 80px 0;
  }

  .about-grid,
  .menu-grid,
  .hours-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .footer-inner {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .menu-grid {
    gap: 48px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
