
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Roboto+Slab:wght@500;700;900&display=swap');

:root {
  --red:#821e22;
  --red-dark:#541417;
  --dark:#201b19;
  --cream:#fff8eb;
  --gold:#c69a57;
  --muted:#675e57;
  --border:#e8ddcc;
  --white:#fff;
  --container:1160px;
}

* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:110px }
body {
  margin:0;
  font-family:'DM Sans',sans-serif;
  background:var(--cream);
  color:var(--dark);
  line-height:1.6;
}
img { max-width:100%; display:block }
a { text-decoration:none; color:inherit }
button { font:inherit; cursor:pointer }
h1,h2,h3 { font-family:'Roboto Slab',serif; line-height:1.2 }
h1 { font-size:clamp(2.5rem,6vw,5rem) }
h2 { font-size:clamp(1.9rem,3.8vw,3rem) }
.container { width:min(100% - 36px,var(--container)); margin-inline:auto }
.section { padding:75px 0 }
.section-title { margin:0 0 12px }
.eyebrow {
  text-transform:uppercase;
  letter-spacing:3px;
  font-size:.78rem;
  font-weight:800;
  color:var(--red);
}
.lead { color:var(--muted); max-width:720px }
.center { text-align:center }
.center .lead { margin-inline:auto }

/* ENCABEZADO */
.site-header {
  position:sticky;
  top:0;
  z-index:100;
  background:var(--dark);
  color:white;
  border-bottom:3px solid var(--gold);
}
.header-inner {
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand img { width:118px; max-height:76px; object-fit:contain }
.nav-links { display:flex; align-items:center; gap:25px }
.nav-links a { font-weight:800; font-size:.92rem }
.nav-links a:hover,.nav-links a.active { color:var(--gold) }
.menu-toggle {
  display:none;
  background:none;
  border:1px solid #75645b;
  color:white;
  padding:9px 12px;
  border-radius:6px;
}

/* BOTONES */
.btn {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:13px 24px;
  background:var(--gold);
  color:var(--dark);
  border-radius:5px;
  font-weight:800;
  transition:.2s;
}
.btn:hover { transform:translateY(-2px); filter:brightness(1.08) }
.btn-outline { border:1px solid var(--gold); background:transparent; color:white }
.btn-red { background:var(--red); color:white }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:25px }

/* PORTADA */
.hero {
  background:
    linear-gradient(100deg,rgba(25,15,13,.92),rgba(90,19,21,.75)),
    url('../assets/alimentos_index.png')
    center/cover;
  color:white;
  min-height:570px;
  display:flex;
  align-items:center;
}
.hero-content { max-width:760px; padding:75px 0 }
.hero .eyebrow { color:var(--gold) }
.hero h1 { margin:15px 0 }
.hero p { font-size:1.12rem; max-width:620px }
.hero-small {
  min-height:320px;
  background:linear-gradient(120deg,var(--dark),var(--red));
  text-align:center;
}
.hero-small .hero-content { margin:auto; padding:60px 0 }

/* TARJETAS Y SECCIONES */
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px }
.card {
  background:white;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 20px #24150e0a;
}
.card img { width:100%; height:210px; object-fit:cover }
.card-body { padding:23px }
.card h3 { margin:0 0 9px }
.card p { color:var(--muted) }
.card .btn { margin-top:8px }
.dark-section { background:var(--dark); color:white }
.dark-section .lead { color:#d8c9bd }
.red-section { background:var(--red); color:white }
.red-section .eyebrow { color:#f4ce91 }
.split {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:55px;
}
.split img { width:100%; border-radius:12px; max-height:440px; object-fit:cover }
.platforms { display:flex; justify-content:center; flex-wrap:wrap; gap:15px; margin-top:30px }
.platform {
  background:white;
  color:var(--dark);
  padding:16px 25px;
  border-radius:8px;
  font-weight:800;
  min-width:160px;
  text-align:center;
}
.platform:hover { background:var(--gold) }

/* MENÚ DE ALIMENTOS */
.category-nav {
  background:#fff5e5;
  border-bottom:1px solid var(--border);
  padding:14px 0;
}
.category-links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
}
.category-links a {
  background:#efe1cd;
  border-radius:25px;
  padding:8px 16px;
  font-size:.85rem;
  font-weight:800;
}
.category-links a:hover { background:var(--red); color:white }
.menu-section { padding:48px 0 12px }
.menu-section h2 { margin:8px 0 26px }
.menu-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
.menu-item {
  background:white;
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px;
}
.menu-item-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
}
.menu-item h3 { margin:0; font-size:1.08rem }
.menu-item p { margin:10px 0 0; color:var(--muted); font-size:.94rem }
.price { color:var(--red); font-weight:900; white-space:nowrap }
.note { margin-top:35px; font-size:.88rem; color:var(--muted) }

/* PIE */
.site-footer { background:#161210; color:#ded0c3; padding:45px 0 20px }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:35px }
.footer-grid img { width:115px; margin-bottom:15px }
.footer-grid h3 { color:white; font-size:1rem }
.footer-grid a { display:block; margin:7px 0 }
.footer-grid a:hover { color:var(--gold) }
.copyright {
  text-align:center;
  border-top:1px solid #453832;
  padding-top:20px;
  margin-top:35px;
  font-size:.82rem;
}

/* TABLET */
@media(max-width:900px) {
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .split { gap:25px }
  .footer-grid { grid-template-columns:1fr 1fr }
}

/* CELULARES */
@media(max-width:680px) {
  .header-inner { min-height:75px }
  .brand img { width:94px; max-height:62px }
  .menu-toggle { display:block }
  .nav-links {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--dark);
    padding:20px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    border-bottom:3px solid var(--gold);
  }
  .nav-links.open { display:flex }
  .nav-links a { padding:13px 8px; border-bottom:1px solid #463b35 }
  .hero { min-height:470px }
  .hero-content { padding:55px 0 }
  .hero-small { min-height:290px }
  .section { padding:55px 0 }
  .grid,.split,.menu-grid,.footer-grid { grid-template-columns:1fr }
  .split { gap:25px }
  .actions { flex-direction:column; align-items:stretch }
  .actions .btn { width:100% }
  .category-links { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding-bottom:5px }
  .category-links a { white-space:nowrap }
  .menu-item { padding:18px }
  .platform { width:100% }
}


/* Encabezado de cada categoría */
.category-feature {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
  min-height: 250px;
  margin-bottom: 25px;
  background: #f0e3d0;
  border-radius: 12px;
  overflow: hidden;
}

.category-photo {
  position: relative;
  min-height: 250px;
  background: #e1d2ba;
}

.category-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 25px;
  color: #806f5c;
  font-weight: 700;
  text-align: center;
  border: 2px dashed #b8a48b;
}

.photo-placeholder[hidden] {
  display: none;
}

.category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
}

.category-info h2 {
  margin: 10px 0 0;
}

.menu-section {
  scroll-margin-top: 110px;
}

/* Adaptación para celulares */
@media (max-width: 680px) {
  .category-feature {
    grid-template-columns: 1fr;
  }

  .category-photo,
  .photo-placeholder {
    min-height: 210px;
  }

  .category-info {
    padding: 25px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }
}


/* PLATAFORMAS DE ENTREGA */

.delivery-section {
  background: #ffd599;
}

.delivery-section .eyebrow {
  color: var(--red);
}

.delivery-section .lead {
  margin-bottom: 0;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.delivery-card {
  min-height: 160px;
  padding: 25px 15px;
  background: #fff;
  border: 1px solid #e4d6c6;
  box-shadow: 0 15px 30px rgba(50, 30, 15, .07);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;

  text-align: center;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.delivery-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 35px rgba(50, 30, 15, .14);
}

.delivery-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.delivery-logo {
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.delivery-subtitle {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* DiDi Food */
.didi-logo {
  color: #ff7b22;
  letter-spacing: -2px;
}

.didi-subtitle {
  color: #39a85c;
}

/* Uber Eats */
.uber-logo {
  color: #080808;
  letter-spacing: -2px;
}

.uber-subtitle {
  color: #080808;
}

/* Rappi */
.rappi-logo {
  color: #ff4d32;
  font-style: italic;
  letter-spacing: -1.5px;
}

.rappi-subtitle {
  color: #94614f;
  letter-spacing: 0;
  font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    gap: 14px;
  }

  .delivery-card {
    min-height: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-card {
    transition: none;
  }
}


/* Deli App */
.deli-logo {
  color: #FE0001;
  font-weight: 900;
  letter-spacing: -2px;
}

.deli-subtitle {
  color: #FE0001;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Cuatro plataformas: distribución equilibrada */
@media (min-width: 769px) {
  .delivery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Logotipo PNG de Deli App */
.delivery-logo-img {
  display: block;
  width: 120px;
  height: 42px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.deli-subtitle {
  color: ##FE0001;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

