/* =========================================
   TACOS SITE — LIGHT, CLEAN, RESPONSIVE
   Includes Gallery + Filter Buttons + Lightbox
   ========================================= */

:root {
  --bg: #fff8f1;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #6f6f6f;
  --red: #e63946;
  --green: #2a9d8f;
  --gold: #f4a261;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.brand span {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition: 0.2s ease;
  white-space: nowrap;
}
.nav a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}
.nav a.active {
  color: var(--red);
  font-weight: 800;
  background: rgba(230, 57, 70, 0.08);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, opacity 0.2s ease;
}
.btn:hover {
  opacity: 0.92;
}
.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.92rem;
}
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(42, 157, 143, 0.08);
}

/* ---------- HERO / PAGE HEAD ---------- */
.hero {
  padding: 48px 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.lead {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 18px;
}
.hero-actions .btn {
  white-space: nowrap;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.page-head {
  padding: 34px 0 14px;
}
.page-head h1 {
  margin: 0 0 6px;
}

.section {
  padding: 40px 0;
}
.section.alt {
  background: #fff1e6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.muted {
  color: var(--muted);
}
.mini {
  font-size: 0.92rem;
}
.center {
  text-align: center;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-card h3 {
  margin-top: 0;
}

/* ---------- GRIDS ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

/* ---------- LINKS ---------- */
.link {
  color: var(--green);
  font-weight: 900;
}
.link:hover {
  opacity: 0.85;
}

/* ---------- LISTS ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  color: var(--muted);
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

/* ---------- CALLOUT ---------- */
.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-top: 10px;
}
.callout-label {
  color: var(--muted);
  font-size: 0.92rem;
}
.callout-value {
  font-weight: 900;
}

/* ---------- MENU ROWS ---------- */
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.menu-item:last-child {
  border-bottom: none;
}
.price {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

/* ---------- FORMS ---------- */
.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 1rem;
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(42, 157, 143, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}

/* ---------- ALERTS ---------- */
.alert {
  padding: 12px;
  border-radius: 12px;
  margin: 10px 0 14px;
  border: 1px solid var(--border);
}
.alert.success {
  background: #e6f6f3;
  color: var(--green);
}
.alert.error {
  background: #fdecea;
  color: var(--red);
}

/* ---------- TAGS ---------- */
.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}

.filter-btn.active {
  border-color: rgba(230, 57, 70, 0.35);
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--text);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: min(950px, 96vw);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.lightbox-inner img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.lightbox-actions {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.lightbox-nav {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 20px;
}
.site-footer h4 {
  margin: 0 0 10px;
}
.site-footer a {
  display: block;
  color: var(--muted);
  margin: 6px 0;
}
.site-footer a:hover {
  color: var(--red);
}
.footer-brand {
  font-weight: 900;
  margin-bottom: 6px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 130px; /* ajusta tamaño */
  width: auto;
}

.copyright {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 34px 0 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .card {
    padding: 16px;
  }
  .nav a {
    padding: 10px 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 240px;
  }
}
