/* ==========================================================
   Disfruta — Catering saludable · Santa Cruz de la Sierra
   Sitio estático. Paleta y tipografía de marca.
   ========================================================== */

:root {
  --naranja: #EE7C28;
  --naranja-oscuro: #D96A18;
  --salvia: #C8D3C7;
  --salvia-profunda: #5A6F5D;
  --crema: #FAF7F1;
  --tinta: #171C17;
  --blanco: #FFFFFF;
  --texto: var(--tinta);
  --texto-suave: #5A5F5A;
  --borde: #DBDFDB;
  --wa: #25D366;

  --fuente-titulos: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fuente-cuerpo: "Karla", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radio: 1rem;
  --ancho-max: 80rem;
  --gutter: 1rem;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --naranja: oklch(0.703 0.166 51.5);
    --naranja-oscuro: oklch(0.64 0.166 51.5);
    --salvia: oklch(0.855 0.021 143.6);
    --salvia-profunda: oklch(0.52 0.038 148);
    --crema: oklch(0.976 0.008 84);
    --tinta: oklch(0.219 0.012 145);
    --texto-suave: oklch(0.48 0.01 145);
    --borde: oklch(0.9 0.008 145);
  }
}

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

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

body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
}

p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.contenedor-angosto { max-width: 48rem; }

.seccion { padding-block: 4rem; }

.etiqueta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--salvia-profunda);
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  margin-top: 1rem;
}
.titulo-centrado { text-align: center; max-width: 48rem; margin-inline: auto; margin-top: 0; }
.titulo-corto { max-width: 32rem; }

.fondo-crema { background: var(--crema); }
.fondo-salvia { background: var(--salvia); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.boton:hover { transform: translateY(-2px); }
.boton-grande { padding: 1rem 1.75rem; font-size: 1rem; }
.boton-primario { background: var(--naranja); color: var(--blanco); }
.boton-primario:hover { background: var(--naranja-oscuro); }
.boton-oscuro { background: var(--tinta); color: var(--crema); }
.boton-borde {
  border: 2px solid var(--tinta);
  color: var(--tinta);
  background: transparent;
}
.boton-borde:hover { background: var(--tinta); color: var(--crema); transform: none; }

.enlace-subrayado {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--naranja);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: color 0.2s;
}
.enlace-subrayado:hover { color: var(--naranja); }

/* ---------- Barra superior ---------- */
.barra-superior {
  background: var(--tinta);
  color: var(--crema);
  text-align: center;
  font-size: 0.875rem;
  padding: 0.6rem var(--gutter);
}
.barra-superior a {
  color: var(--naranja);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ---------- Cabecera / navegación ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}
.nav-logo img { width: 48px; height: 48px; }

.nav-enlaces {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-enlaces a { text-decoration: none; transition: color 0.2s; }
.nav-enlaces a:hover { color: var(--naranja); }
.solo-movil { display: none; }

.nav-acciones { display: flex; align-items: center; gap: 0.75rem; }

.nav-hamburguesa {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-hamburguesa span {
  display: block;
  height: 2px;
  background: var(--tinta);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegado */
@media (max-width: 767px) {
  .boton-borde { display: none; }
  .nav-enlaces.abierto {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--blanco);
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-enlaces.abierto li a { display: block; padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--borde); }
  .nav-enlaces.abierto .solo-movil { display: block; padding-top: 1rem; }
  .nav-enlaces.abierto .solo-movil a { border: 0; padding: 0.9rem 1.25rem; text-align: center; }
}

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

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-texto {
  display: flex;
  align-items: center;
  background: var(--crema);
  padding: 4rem 1.5rem;
}
.hero-texto-interior { max-width: 36rem; margin-inline: auto; }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem);
  line-height: 0.95;
}
.hero-bajada {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--texto-suave);
}
.hero-acciones {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.hero-nota { margin-top: 1.25rem; font-size: 0.875rem; color: var(--texto-suave); }
.hero-imagen { position: relative; min-height: 380px; }
.hero-imagen img, .hero-imagen video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-texto { padding: 6rem 4rem; }
  .hero-imagen { min-height: 620px; }
}

/* ---------- Credibilidad ---------- */
.credibilidad { border-block: 1px solid var(--borde); }
.credibilidad-grilla { display: grid; grid-template-columns: 1fr; }
.credibilidad-grilla > div { padding-block: 2rem; border-bottom: 1px solid var(--borde); }
.credibilidad-grilla > div:last-child { border-bottom: 0; }
.credibilidad-grilla p:last-child { margin-top: 0.5rem; font-size: 0.9rem; color: var(--texto-suave); }
.cifra {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cifra-naranja { color: var(--naranja); }

@media (min-width: 640px) {
  .credibilidad-grilla { grid-template-columns: repeat(3, 1fr); }
  .credibilidad-grilla > div { border-bottom: 0; border-right: 1px solid var(--borde); padding-inline: 2rem; }
  .credibilidad-grilla > div:first-child { padding-left: 0; }
  .credibilidad-grilla > div:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Comida real ---------- */
.comida-grilla {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.comida-foto { border-radius: var(--radio); overflow: hidden; }
.comida-foto { min-height: 360px; position: relative; }
.comida-foto img, .comida-foto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comida-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  background: var(--crema);
  border-radius: var(--radio);
  padding: 2rem;
}
.comida-texto h3 { font-size: 1.5rem; }
.comida-texto p { margin-top: 0.75rem; color: var(--texto-suave); }
.comida-texto .boton { align-self: flex-start; }

@media (min-width: 640px) { .comida-texto { padding: 3rem; } }
@media (min-width: 1024px) { .comida-grilla { grid-template-columns: 1fr 1fr; } }

/* ---------- Planes ---------- */
.seccion-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.seccion-intro { max-width: 24rem; color: var(--texto-suave); }
.seccion-intro .enlace-subrayado { display: inline-block; margin-top: 0.75rem; color: var(--texto); }

.planes-grilla {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.plan {
  display: block;
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(23, 28, 23, 0.10); }
.plan-foto { aspect-ratio: 4 / 5; overflow: hidden; }
.plan-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.plan:hover .plan-foto img { transform: scale(1.05); }
.plan-cuerpo { padding: 1.25rem; }
.plan-cuerpo h3 { font-size: 1.25rem; }
.plan-cuerpo p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--texto-suave); }
.plan-cta { display: inline-block; margin-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--naranja); }

@media (min-width: 480px) { .planes-grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .planes-grilla { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Franja marquee ---------- */
.franja {
  overflow: hidden;
  background: var(--naranja);
  color: var(--blanco);
  border-block: 1px solid var(--borde);
  padding-block: 0.75rem;
}
.franja-pista {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--fuente-titulos);
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.franja-grupo { display: flex; flex-shrink: 0; }
.franja-grupo > span { margin-inline: 1.5rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .franja-pista { animation: none; }
}

/* ---------- Método ---------- */
.metodo-grilla {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}
.paso { border-top: 4px solid var(--naranja); padding-top: 1.25rem; }
.paso-numero {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--naranja);
}
.paso h3 { margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.3; }
.paso p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--texto-suave); }

@media (min-width: 640px) { .metodo-grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metodo-grilla { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Nosotros ---------- */
.nosotros-grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.nosotros-foto { border-radius: var(--radio); overflow: hidden; max-width: 420px; }
.nosotros-foto img { width: 100%; object-fit: cover; }
.nosotros-texto {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(23, 28, 23, 0.8);
}
.firma-nombre { margin-top: 1.5rem; font-weight: 700; }
.firma-cargo { font-size: 0.875rem; color: var(--texto-suave); }

@media (min-width: 1024px) {
  .nosotros-grilla { grid-template-columns: 420px 1fr; }
}

/* ---------- Preguntas ---------- */
.faq {
  margin-top: 2.5rem;
  border-block: 1px solid var(--borde);
}
.faq-item { border-bottom: 1px solid var(--borde); padding-block: 1.25rem; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--fuente-titulos);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mas {
  color: var(--naranja);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] .faq-mas { transform: rotate(45deg); }
.faq-item p { margin-top: 0.75rem; color: var(--texto-suave); }

/* ---------- Cierre ---------- */
.cierre {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--crema);
  text-align: center;
}
.cierre-fondo, .cierre-fondo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cierre-velo { position: absolute; inset: 0; background: rgba(23, 28, 23, 0.7); z-index: -1; }
.cierre-contenido { padding-block: 6rem; }
.cierre h2 { margin-top: 0; color: var(--crema); }
.cierre p { margin: 1.25rem auto 0; max-width: 36rem; font-size: 1.125rem; color: rgba(250, 247, 241, 0.8); }
.cierre .boton { margin-top: 2.25rem; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: var(--crema); padding-block: 3rem; }
.pie-grilla {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pie-marca { display: flex; align-items: center; gap: 1rem; }
.pie-marca p { font-size: 0.875rem; color: rgba(250, 247, 241, 0.7); }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.875rem; font-weight: 600; }
.pie-enlaces a { text-decoration: none; }
.pie-enlaces a:hover { color: var(--naranja); }
.pie-copy { margin-top: 2.5rem; font-size: 0.75rem; color: rgba(250, 247, 241, 0.5); }

@media (min-width: 768px) {
  .pie-grilla { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: var(--blanco);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.wa-flotante:hover { transform: translateY(-2px); }
@media (max-width: 480px) {
  .wa-flotante span { display: none; }
  .wa-flotante { padding: 0.9rem; }
  .wa-flotante svg { width: 26px; height: 26px; }
}

/* ---------- Revelado al hacer scroll ---------- */
.js .revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Ajustes de escritorio ---------- */
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .seccion { padding-block: 5rem; }
}
