/* ============================================================
   TAQUERÍA BACHILLERES 4 – Design System
   Modern Street Food / High-Impact Red Edition
   ============================================================ */

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

:root {
  --red:       #E3120B;
  --red-dark:  #b50d08;
  --red-light: #ff3b33;
  --green:     #2E8B57;
  --green-dark:#1e6b41;
  --black:     #1A1A1A;
  --white:     #FFFFFF;
  --gray-50:   #f9f9f9;
  --gray-100:  #f2f2f2;
  --gray-200:  #e5e5e5;
  --gray-400:  #999;
  --gray-600:  #555;

  --font-head: 'Bungee', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --nav-h:  68px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-md: 0 8px 40px rgba(0,0,0,.15);
  --shadow-red: 0 8px 32px rgba(227,18,11,.30);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--red);
  box-shadow: 0 2px 24px rgba(227,18,11,.12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  color: var(--black); padding: 6px 14px; border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--gray-100); color: var(--red); }

.nav-cta {
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  background: var(--red); color: var(--white);
  padding: 8px 22px; border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(227,18,11,.25);
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 4px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--black);
  border-radius: 2px; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: 100px; border: none; cursor: pointer;
  transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-dark); transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(227,18,11,.45);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-3px);
}
.btn-lg { font-size: 1.1rem; padding: 16px 40px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.04); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(227,18,11,.82) 0%,
    rgba(26,26,26,.75) 60%,
    rgba(26,26,26,.9) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 20px;
  max-width: 720px;
  animation: heroIn 1s ease both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,139,87,.25); border: 1px solid var(--green);
  color: #6dffb3; font-weight: 600; font-size: .85rem;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px; background: #6dffb3;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--white); line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 4px 32px rgba(0,0,0,.4);
  margin-bottom: 16px;
}
.hero-title-accent { color: #FBBF24; }

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  line-height: 1.7; margin-bottom: 36px;
}

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

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 500;
  animation: fadeIn 2s 1s ease both;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-props {
  padding: 60px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.value-card--red {
  background: var(--red); color: var(--white);
  border: none; box-shadow: var(--shadow-red);
}
.value-card--red h3, .value-card--red p { color: var(--white); }
.value-card--red:hover { box-shadow: 0 12px 48px rgba(227,18,11,.45); }

.value-icon {
  font-size: 2.5rem; margin-bottom: 16px;
  display: inline-block;
  animation: iconPop 0.4s ease both;
}
.value-card h3 {
  font-family: var(--font-head); font-size: 1.15rem;
  margin-bottom: 10px; color: var(--black);
}
.value-card p { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.section-eyebrow--light { color: rgba(255,200,200,.85); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--black); line-height: 1.1; margin-bottom: 12px;
}
.section-title--light { color: var(--white); }
.section-sub { color: var(--gray-600); font-size: .95rem; }

/* ============================================================
   MENU SECTION
   ============================================================ */
.menu-section {
  padding: 80px 0;
  background: var(--white);
}

/* Tabs */
.menu-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.tab-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .875rem;
  padding: 10px 20px; border-radius: 100px; border: 2px solid var(--gray-200);
  background: var(--white); color: var(--gray-600); cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--red); color: var(--red); }
.tab-btn.active {
  background: var(--red); color: var(--white);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

/* Panels */
.menu-panel { display: none; animation: panelIn .35s ease both; }
.menu-panel.active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-panel-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 28px;
}
.menu-panel-header h3 {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--black);
}
.panel-note {
  font-size: .8rem; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.menu-grid--center { justify-content: center; max-width: 680px; margin-inline: auto; }

/* Cards */
.menu-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow);
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.menu-card--large { min-height: 320px; }
.menu-card--highlight { border-left: 4px solid var(--red); }
.menu-card--veggie { border-left: 4px solid var(--green); }

.menu-card-img-wrap { position: relative; overflow: hidden; height: 180px; }
.menu-card--large .menu-card-img-wrap { height: 220px; }
.menu-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s ease;
}
.menu-card:hover .menu-card-img { transform: scale(1.08); }

.menu-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}
.menu-badge--green { background: var(--green); }

.menu-card-body {
  padding: 18px 20px;
}
.menu-card-body--simple {
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
}
.menu-card-body h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  color: var(--black); margin-bottom: 6px;
}
.menu-desc { font-size: .85rem; color: var(--gray-600); line-height: 1.5; margin-bottom: 12px; }

.menu-price-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
}
.menu-price-row--big { margin-top: 12px; }
.price-label { font-size: .72rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; }
.price-tag {
  font-family: var(--font-head); font-size: 1.2rem;
  color: var(--red);
}
.price-tag--big { font-size: 1.6rem; }
.price-tag--single { font-size: 1.4rem; color: var(--red); }
.price-sep { color: var(--gray-200); font-size: .9rem; }

.specialty-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 100px;
  background: rgba(227,18,11,.1); color: var(--red);
  margin-bottom: 6px;
}
.specialty-tag--green { background: rgba(46,139,87,.1); color: var(--green); }

.menu-cta-wrap {
  margin-top: 56px; text-align: center;
}

/* ============================================================
   EXPERIENCIA SECTION
   ============================================================ */
.experiencia-section {
  padding: 80px 0;
  background: var(--black);
}
.section-header--light { margin-bottom: 48px; }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
  margin-bottom: 56px;
}
.exp-col {
  display: flex; flex-direction: column; gap: 16px;
}
.exp-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--gray-100);
  cursor: default;
}
.exp-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s ease;
  min-height: 220px;
}
.exp-card:hover img { transform: scale(1.06); }
.exp-card--tall img { min-height: 460px; }

.exp-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  padding: 32px 16px 14px;
}
.exp-card-label span {
  color: var(--white); font-size: .85rem; font-weight: 600;
}

/* Trust Bar */
.trust-bar {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
  background: var(--red);
  border-radius: var(--radius);
  padding: 28px 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 32px; flex: 1; min-width: 140px;
}
.trust-num {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--white);
}
.trust-label {
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.75);
  text-transform: uppercase; letter-spacing: .06em; text-align: center;
}
.trust-divider {
  width: 1px; height: 48px; background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ============================================================
   UBICACION SECTION
   ============================================================ */
.ubicacion-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.ubicacion-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
  align-items: start;
}
.ubicacion-info {
  display: flex; flex-direction: column; gap: 20px;
}
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 20px; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-card h4 { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.info-card p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }

.mapa-wrap {
  height: 420px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--red);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  height: 80px;
  width: auto;
  border-radius: 8px;
}
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.7; }

.footer-links h5, .footer-social h5 {
  font-family: var(--font-head); font-size: .9rem;
  color: var(--white); margin-bottom: 16px; letter-spacing: .05em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.6); font-size: .875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }

.social-links { display: flex; gap: 12px; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  transition: all var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--red); transform: translateY(-3px); }
.social-btn--green:hover { background: var(--green); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

/* ============================================================
   FLOATING WhatsApp BUTTON
   ============================================================ */
.fab-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: var(--white);
  padding: 14px 22px; border-radius: 100px;
  box-shadow: 0 8px 32px rgba(46,139,87,.45);
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  transition: all var(--transition);
  text-decoration: none;
}
.fab-wa svg { width: 22px; height: 22px; flex-shrink: 0; }
.fab-wa:hover {
  background: var(--green-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(46,139,87,.55);
}
.fab-wa-label { white-space: nowrap; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

  /* ---- Navbar ---- */
  :root { --nav-h: 60px; }

  .nav-toggle { display: flex; }

  /* Ocultar links por defecto – display none es más fiable que transform */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 20px;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 999;
  }
  .nav-links.open { display: flex; }

  .nav-link {
    width: 100%; text-align: center;
    padding: 12px 16px; border-radius: 12px;
    font-size: 1rem;
  }
  .nav-cta {
    width: 100%; text-align: center;
    padding: 12px 16px; margin: 4px 0 0 0;
    border-radius: 12px; font-size: 1rem;
    justify-content: center; display: flex;
  }

  /* ---- Logo en navbar tablet ---- */
  .nav-logo-img { height: 46px; width: auto; }

  /* Value grid */
  .value-grid { grid-template-columns: 1fr; }

  /* Exp grid */
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .exp-card--tall { grid-column: span 2; }
  .exp-card--tall img { min-height: 280px; }

  /* Ubicacion */
  .ubicacion-grid { grid-template-columns: 1fr; }
  .mapa-wrap { height: 280px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  /* Trust bar */
  .trust-divider { display: none; }
}

/* ============================================================
   RESPONSIVE — MÓVIL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {

  /* ---- Navbar ---- */
  :root { --nav-h: 56px; }

  .nav-inner { padding-inline: 16px; }
  .nav-logo-img { height: 42px; width: auto; }

  /* ---- Hero ---- */
  .hero { min-height: 100svh; }
  .hero-title {
    font-size: clamp(2.4rem, 14vw, 4rem);
    margin-bottom: 12px;
  }
  .hero-sub { font-size: .9rem; margin-bottom: 28px; }
  .hero-badge { font-size: .78rem; padding: 5px 14px; }

  /* Botones hero en columna, ancho completo */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { width: 100%; justify-content: center; font-size: .95rem; padding: 13px 24px; }

  /* ---- Experiencia grid ---- */
  .exp-grid { grid-template-columns: 1fr; }
  .exp-card--tall { grid-column: auto; }

  /* ---- Menú ---- */
  .menu-section { padding: 56px 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; font-size: .8rem; padding: 8px 16px; }

  /* ---- Trust bar ---- */
  .trust-bar { padding: 20px 12px; }
  .trust-item { padding: 10px 12px; min-width: 100px; }
  .trust-num { font-size: 1.2rem; }

  /* ---- Footer ---- */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; align-items: center; text-align: center; }
  .footer-logo { height: 72px; width: 72px; }
  .footer-links, .footer-social { text-align: center; }
  .footer-links ul { align-items: center; }
  .social-links { justify-content: center; }

  /* ---- FAB WhatsApp ---- */
  .fab-wa-label { display: none; }
  .fab-wa {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px; right: 20px;
  }
}
