/* ===== Taquería El Costeño — estilo tradicional mexicano ===== */
:root {
  --negro: #1F1612;      /* el negro del logo, cálido */
  --negro-2: #2B201A;
  --crema: #F6ECD9;      /* papel */
  --crema-2: #EBDCC0;
  --barro: #B4532A;      /* los platos de barro */
  --barro-osc: #8C3D1D;
  --rojo: #B5232B;
  --rojo-osc: #8E1A20;
  --verde: #1F6B3A;
  --verde-osc: #164F2B;
  --amarillo: #E9A527;   /* cempasúchil */
  --rosa: #D6246E;       /* rosa mexicano */
  --tinta: #2A1E17;
  --suave: #6E5A4A;
  --borde: #D9C6A5;
  --wa: #25D366;         /* verde WhatsApp */

  --display: "Alfa Slab One", Georgia, serif;
  --texto: "Work Sans", system-ui, -apple-system, sans-serif;

  --radio: 14px;
  --ancho: 1160px;

  /* textura de papel */
  --papel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--crema) var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--rojo); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.8vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin: 32px 0 0; }

/* ===== Motivos ===== */

/* Banda de barro con puntitos, como los platos */
.barro {
  height: 26px;
  background:
    radial-gradient(circle, var(--crema) 0 2.6px, transparent 3px) 0 50% / 18px 18px repeat-x,
    linear-gradient(var(--crema), var(--crema)) 0 3px / 100% 2px no-repeat,
    linear-gradient(var(--crema), var(--crema)) 0 calc(100% - 3px) / 100% 2px no-repeat,
    var(--barro);
}

/* Arco colonial para las fotos */
.arch { overflow: hidden; border-radius: 999px 999px var(--radio) var(--radio); background: var(--crema-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.btn--red { background: var(--rojo); color: #fff; }
.btn--red:hover { background: var(--rojo-osc); }
.btn--green { background: var(--verde); color: #fff; }
.btn--green:hover { background: var(--verde-osc); }
.btn--cream { background: var(--crema); color: var(--verde-osc); }
.btn--ghost { border-color: currentColor; color: var(--tinta); background: transparent; }
.btn--light { color: var(--crema); }
.btn--small { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.btn svg, .foot__links svg, .fab svg { flex: none; }
.btn--wa { background: var(--wa); color: #06311A; }
.btn--wa:hover { background: #1FBF5B; }

/* ===== Header ===== */
.top { position: sticky; top: 0; z-index: 20; background: var(--negro); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { height: 46px; width: auto; }
.top__actions { display: flex; align-items: center; gap: 12px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--crema); }
.icon-link:hover { color: var(--amarillo); }
.nav { display: none; gap: 26px; }
.nav a { color: var(--crema); text-decoration: none; font-weight: 600; opacity: .9; }
.nav a:hover { color: var(--amarillo); opacity: 1; }

/* ===== Hero ===== */
.hero { position: relative; background: var(--negro); color: var(--crema); overflow: hidden; }
.garland { height: 78px; }
.garland__svg { position: absolute; top: 0; left: 0; width: 100%; height: 96px; }
.hero__inner { position: relative; display: grid; gap: 32px; padding: 30px 16px 48px; }
.hero__kicker { margin: 0 0 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: var(--amarillo); }
.hero h1 { max-width: 13ch; }
.hl { color: var(--amarillo); }
.lead { font-size: 1.12rem; max-width: 44ch; margin: 0 0 26px; opacity: .92; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .btn--ghost { color: var(--crema); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .97rem; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perk__icon { font-size: 1.25rem; }
.hero__photo { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center; border: 6px solid var(--barro); box-shadow: 0 0 0 3px var(--crema), 0 24px 50px rgba(0,0,0,.45); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(246,236,217,.12); font-weight: 600; font-size: .9rem;
}
.status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #6EDC92; }
.status--closed::before { background: #FF8F82; }

/* ===== Secciones ===== */
.section { position: relative; padding: 64px 0; }
.section--dark { background: var(--negro-2); color: var(--crema); }
.heading { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.heading h2 { margin-bottom: .2em; }
.heading::after { /* adorno: tres rombos */
  content: "◆ ◆ ◆"; display: block; margin-top: 10px;
  color: var(--barro); font-size: .7rem; letter-spacing: .5em;
}
.heading--light::after { color: var(--amarillo); }
.heading__sub { margin: 6px 0 0; opacity: .8; }
.eyebrow { margin: 0 0 6px; font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--verde); }
.heading--light .eyebrow, .eyebrow--light { color: var(--amarillo); }

/* ===== Especialidades ===== */
.dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
.dish { text-align: center; }
.dish .arch { aspect-ratio: 1; border: 4px solid var(--barro); box-shadow: 0 0 0 2px var(--crema), 0 12px 28px rgba(60,30,10,.18); }
.dish__body { padding: 12px 4px 0; }
.dish__body p { margin: 0; color: var(--suave); font-size: .92rem; line-height: 1.45; }
.dish h3 { color: var(--rojo); font-size: 1.08rem; margin-bottom: .3em; }
.dish--big, .dish--wide { grid-column: span 2; }
.dish--big .arch { border-width: 6px; }
.dish--big h3 { font-size: 1.7rem; }
.dish--big .dish__body p { font-size: 1rem; }
.dish--wide .arch { aspect-ratio: 16 / 10; }
.tag { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--rosa); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ===== Sobre nosotros ===== */
.about { background: var(--rojo); color: var(--crema); padding: 56px 0; }
.about__inner { display: grid; gap: 28px; align-items: center; }
.about h2 { margin-bottom: .4em; }
.about p { margin: 0 0 14px; max-width: 60ch; }
.about strong { color: #FFE2A8; }
.about__photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; max-width: 280px; width: 75%; justify-self: center; border: 6px solid var(--crema); box-shadow: 0 0 0 4px var(--barro); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Preguntas frecuentes ===== */
.faq__inner { max-width: 760px; }
.faq details { background: #FFF9EE; border: 2px solid var(--borde); border-radius: var(--radio); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--barro); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--suave); }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a { display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 8px; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ===== Menú ===== */
.menu { display: grid; gap: 28px; align-items: start; }
.menu__board { display: grid; gap: 18px; }
.menu__group {
  background: #FFF9EE; border-radius: var(--radio); padding: 22px 24px;
  border: 2px solid var(--borde); box-shadow: inset 0 0 0 5px #FFF9EE, inset 0 0 0 6px var(--crema-2);
}
.menu__group h3 { color: var(--verde); }
.menu__group ul { margin: 0; padding: 0; list-style: none; }
.menu__group li { padding: 8px 0; border-bottom: 1px dashed var(--borde); font-weight: 500; }
.menu__group li:last-child { border-bottom: 0; }
.menu__group small { display: block; font-weight: 400; color: var(--suave); font-size: .88rem; }
.menu__photo { aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; border: 5px solid var(--barro); box-shadow: 0 0 0 2px var(--crema), 0 12px 28px rgba(60,30,10,.18); }
.note { margin: 28px 0 0; text-align: center; color: var(--suave); }
.note a { font-weight: 700; }

/* ===== Banda domicilio ===== */
.band { background: var(--verde); color: var(--crema); padding: 48px 0; }
.band__inner { display: grid; gap: 28px; align-items: center; }
.band h2 { margin-bottom: .3em; }
.band p { margin: 0 0 20px; opacity: .95; }
.band__photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; max-width: 260px; width: 70%; justify-self: center; border: 6px solid var(--barro); box-shadow: 0 0 0 3px var(--crema); }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Ubicación ===== */
.visit { display: grid; gap: 24px; }
.map { border-radius: var(--radio); overflow: hidden; border: 5px solid var(--barro); min-height: 320px; background: var(--crema-2); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.info address { font-style: normal; margin-bottom: 20px; }
.hours { border-collapse: collapse; width: 100%; max-width: 400px; margin-bottom: 16px; }
.hours caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.hours th { font-weight: 500; color: var(--suave); width: 50%; }
.info__phone a { font-family: var(--display); font-size: 1.6rem; color: var(--tinta); text-decoration: none; }
.info__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Reseñas ===== */
.reviews { background: var(--crema-2) var(--papel); }
.reviews__inner { text-align: center; max-width: 640px; }
.reviews .stars { font-size: 1.8rem; color: var(--amarillo); letter-spacing: .15em; margin: 0 0 8px; }
.reviews p { color: var(--suave); }

/* ===== Footer ===== */
.foot { background: var(--negro); color: #E6D7BE; padding-bottom: 96px; }
.foot__inner { display: flex; flex-direction: column; gap: 20px; padding-top: 36px; padding-bottom: 20px; }
.foot p { margin: 0 0 4px; }
.foot a { color: #fff; }
.foot__logo { height: 64px; width: auto; margin-bottom: 14px; }
.foot__links { display: flex; gap: 14px 22px; flex-wrap: wrap; }
.foot__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot__copy { font-size: .85rem; opacity: .65; }

/* ===== Botón flotante (solo celular) ===== */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; border-radius: 999px;
  background: var(--wa); color: #08361A; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ===== Pantallas medianas ===== */
@media (min-width: 720px) {
  .dishes { gap: 32px 24px; }
  .dish--big { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; text-align: left; }
  .dish--big .dish__body { padding: 0; }
  .dish--big h3 { font-size: 2.2rem; }
  .dish h3 { font-size: 1.25rem; }
  .about__inner { grid-template-columns: 280px 1fr; gap: 48px; }
  .about__photo { width: 100%; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .perks { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
  .band__inner { grid-template-columns: 260px 1fr; gap: 48px; }
  .band__photo { width: 100%; }
  .menu__board { grid-template-columns: repeat(2, 1fr); }
  .foot__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ===== Computadora ===== */
@media (min-width: 980px) {
  .nav { display: flex; }
  .garland { height: 92px; }
  .hero__inner { grid-template-columns: 1.15fr 1fr; align-items: center; padding: 20px 16px 80px; }
  .hero__photo { justify-self: end; }
  .dishes { grid-template-columns: repeat(3, 1fr); }
  .dish--big { grid-column: span 3; grid-template-columns: 1fr 1.1fr; max-width: 940px; margin: 0 auto 16px; }
  .dish--wide { grid-column: span 2; }
  .dish--wide .arch { aspect-ratio: 2 / 1; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .menu { grid-template-columns: 1.6fr 1fr; }
  .menu__photo { position: sticky; top: 100px; }
  .visit { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .fab { display: none; }
  .foot { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery img { transition: none; }
}
