/* ============================================================
   El Poli · Sabor Mediterráneo
   Hoja de estilos vanilla (CSS puro, sin dependencias).
   Sustituye a Tailwind + tokens de shadcn/ui.
   ============================================================ */

/* ---------- Tokens de diseño ---------- */
:root {
  --radius: 0.25rem;
  --background: oklch(0.982 0.011 84);
  --foreground: oklch(0.245 0.038 240);
  --primary: oklch(0.3 0.055 245);
  --primary-foreground: oklch(0.985 0.012 84);
  --secondary: oklch(0.955 0.019 85);
  --secondary-foreground: oklch(0.3 0.055 245);
  --muted: oklch(0.955 0.019 85);
  --muted-foreground: oklch(0.5 0.028 245);
  --accent: oklch(0.62 0.115 62);
  --accent-foreground: oklch(0.3 0.055 245);
  --border: oklch(0.885 0.018 85);
  --input: oklch(0.885 0.018 85);
  --ring: oklch(0.62 0.115 62);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Karla", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button {
  font: inherit;
}

/* ---------- Tipografía ---------- */
.font-display {
  font-family: var(--font-display);
  font-weight: 400;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

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

.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

.leading-105 {
  line-height: 1.05;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-2em {
  letter-spacing: 0.2em;
}

.tracking-25em {
  letter-spacing: 0.25em;
}

.tracking-3em {
  letter-spacing: 0.3em;
}

.tracking-35em {
  letter-spacing: 0.35em;
}

/* Títulos */
.title-hero {
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.05;
  color: var(--foreground);
}

.title-page {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--foreground);
}

.title-section {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--foreground);
}

.title-block {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.25;
  color: var(--foreground);
}

.title-card {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .title-hero {
    font-size: 4.5rem;
  }

  .title-page {
    font-size: 3rem;
  }
}

/* Párrafos secundarios */
.muted-lg {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.muted-base {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.muted-sm {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.muted-xs {
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---------- Colores de texto ---------- */
.text-foreground {
  color: var(--foreground);
}

.text-foreground-80 {
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-accent {
  color: var(--accent);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-accent-foreground {
  color: var(--accent-foreground);
}

/* ---------- Fondos ---------- */
.bg-background {
  background-color: var(--background);
}

.bg-background-80 {
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
}

.bg-background-85 {
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
}

.bg-background-90 {
  background-color: color-mix(in oklab, var(--background) 90%, transparent);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-accent-10 {
  background-color: color-mix(in oklab, var(--accent) 10%, transparent);
}

/* ---------- Layout ---------- */
.mx-auto {
  margin-inline: auto;
}

.section {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-tight {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-carta {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.px-5 {
  padding-inline: 1.25rem;
}

.py-4 {
  padding-block: 1rem;
}

.py-5 {
  padding-block: 1.25rem;
}

.py-14 {
  padding-block: 3.5rem;
}

.py-16 {
  padding-block: 4rem;
}

.py-20 {
  padding-block: 5rem;
}

.py-24 {
  padding-block: 6rem;
}

.py-28 {
  padding-block: 7rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.mt-half {
  margin-top: 0.125rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-7 {
  margin-top: 1.75rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-9 {
  margin-top: 2.25rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-7 {
  gap: 1.75rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-x-4 {
  column-gap: 1rem;
}

.gap-y-1 {
  row-gap: 0.25rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-16 > * + * {
  margin-top: 4rem;
}

/* ---------- Flex / Grid ---------- */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.shrink-0 {
  flex-shrink: 0;
}

.size-4 {
  width: 1rem;
  height: 1rem;
}

.size-5 {
  width: 1.25rem;
  height: 1.25rem;
}

.size-6 {
  width: 1.5rem;
  height: 1.5rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-80 {
  height: 20rem;
}

.grid-cols-3 {
  display: grid;
  gap: 2.5rem;
}

.grid-cols-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 640px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Posición / efectos ---------- */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.inset-0 {
  inset: 0;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.isolate {
  isolation: isolate;
}

.object-cover {
  object-fit: cover;
}

/* ---------- Bordes / radio ---------- */
.border-b {
  border-bottom: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-y {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.border-soft {
  border-color: color-mix(in oklab, var(--border) 60%, transparent);
}

.border-accent-soft {
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
}

.rounded-sm {
  border-radius: calc(var(--radius) - 4px);
}

.rounded-full {
  border-radius: 9999px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background-color: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
}

.btn-whatsapp {
  background-color: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent-foreground);
  border: 1px solid var(--accent);
}

.btn-whatsapp:hover {
  background-color: color-mix(in oklab, var(--accent) 20%, transparent);
}

.btn-block {
  width: 100%;
}

/* Enlaces subrayados (border-b accent) */
.link-under {
  display: inline-block;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s ease;
}

.link-under:hover {
  border-color: var(--accent);
}

.link-hover-foreground {
  transition: color 0.2s ease;
}

.link-hover-foreground:hover {
  color: var(--foreground);
}

.link-hover-accent {
  transition: color 0.2s ease;
}

.link-hover-accent:hover {
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  color: var(--foreground);
}

.brand-sub {
  display: none;
  margin-left: 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--foreground);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: var(--background);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
}

.mobile-link {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--foreground);
}

.mobile-call {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .brand-sub {
    display: inline;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: var(--secondary);
}

.footer-grid {
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--foreground);
}

.footer-desc {
  max-width: 20rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.footer-heading {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--foreground);
}

.footer-hours {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-hours li + li {
  margin-top: 0.25rem;
}

.footer-hours strong {
  color: var(--foreground);
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.footer-bottom-inner {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Estructura de página ---------- */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ---------- Héroes ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--background) 0%,
    color-mix(in oklab, var(--background) 85%, transparent) 55%,
    color-mix(in oklab, var(--background) 40%, transparent) 100%
  );
}

.hero-overlay-80 {
  position: absolute;
  inset: 0;
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
}

.hero-overlay-85 {
  position: absolute;
  inset: 0;
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
}

.hero-content {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  padding: 7rem 1.25rem;
}

.hero-content-center {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  padding: 6rem 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-content {
    padding-block: 9rem;
  }
}

/* ---------- Banda destacada (secciones alternas) ---------- */
.band {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: var(--secondary);
}

.band-top {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

/* ---------- Horario ---------- */
.hours-list {
  font-size: 0.875rem;
}

.hours-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.hours-item + .hours-item {
  margin-top: 0.75rem;
}

.hours-box {
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: calc(var(--radius) - 4px);
  background-color: var(--secondary);
  padding: 1.5rem;
}

.hours-box li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hours-box li + li {
  margin-top: 0.5rem;
}

/* ---------- Notas con icono ---------- */
.note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---------- Carta / platos ---------- */
.carta-space {
  display: grid;
  gap: 4rem;
}

.dish-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.dish-item + .dish-item {
  margin-top: 1.5rem;
}

.dish-text {
  max-width: 32rem;
}

.dish-name {
  font-size: 1rem;
  color: var(--foreground);
}

.dish-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.dish-price {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--accent);
}

.cta-box {
  margin-top: 3.5rem;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: calc(var(--radius) - 4px);
  background-color: var(--secondary);
  padding: 2rem;
}

/* ---------- Contacto ---------- */
.info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.info-value {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
}

.map-frame {
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  border: 0;
}

/* ---------- Botones de reserva (filas) ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row-center {
  justify-content: center;
}
