/* Pizzas Alejandro's — hoja de estilos del sitio público.
   Paleta tomada de la fachada real del local (ver DECISIONES.md §3).
   Mobile-first: todo se diseña para ~390px y luego crece. */

:root {
  --rojo:        #C1121F;
  --rojo-osc:    #8E0D14;
  --rojo-claro:  #E23A44;
  --amarillo:    #F2A81D;
  --amarillo-cl: #FFD98A;
  --crema:       #FFF8EE;
  --crema-2:     #F3E5D3;
  --blanco:      #FFFFFF;
  --tinta:       #231F20;
  --gris:        #6E6259;
  --verde:       #2E7D32;
  --sombra:      0 2px 10px rgba(35, 31, 32, .09);
  --sombra-alta: 0 8px 28px rgba(35, 31, 32, .16);
  --radio:       14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* Espacio para que el botón flotante no tape el final de la página. */
  padding-bottom: 84px;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 .4em;
  font-weight: 800;
}

a { color: var(--rojo); }

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

.envoltura { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }

.seccion { padding: 3rem 0; }
.seccion:nth-child(even) { background: var(--blanco); }

.seccion-tit {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: .3em;
  color: var(--rojo-osc);
}
.seccion-tit::after {
  content: "";
  display: block;
  width: 62px; height: 4px;
  margin: .5rem auto 0;
  border-radius: 99px;
  background: var(--amarillo);
}
.seccion-entrada {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--gris);
}

/* ── Botones ─────────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit;
}
.boton:active { transform: translateY(1px); }

.boton-principal {
  background: var(--rojo);
  color: #fff;
  box-shadow: var(--sombra-alta);
}
.boton-principal:hover { background: var(--rojo-osc); }

.boton-amarillo {
  background: var(--amarillo);
  color: var(--tinta);
  box-shadow: var(--sombra);
}
.boton-amarillo:hover { background: #dd970f; }

.boton-borde {
  background: transparent;
  color: var(--rojo-osc);
  border-color: var(--rojo);
}
.boton-borde:hover { background: rgba(193, 18, 31, .07); }

.boton svg { width: 1.15em; height: 1.15em; fill: currentColor; }

/* ── Encabezado ──────────────────────────────────────────────────── */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rojo);
  color: #fff;
  box-shadow: var(--sombra);
}
.cabecera .envoltura {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 60px;
}
.marca {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .2px;
  /* El nombre es largo: en pantallas chicas se queda en una línea y, si de
     plano no cabe, se recorta con puntos suspensivos en vez de partirse. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marca span { overflow: hidden; text-overflow: ellipsis; }
/* El logo real del negocio viene de una foto cuadrada: se recorta en círculo. */
.marca img {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.cabecera-tel {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  padding: .4em .8em;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.cabecera-tel svg { width: 1em; height: 1em; fill: currentColor; }

/* ── Portada ─────────────────────────────────────────────────────── */

.portada {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 3.4rem 0 3.6rem;
  background:
    linear-gradient(rgba(35,31,32,.78), rgba(142,13,20,.86)),
    var(--rojo-osc) center/cover no-repeat;
}
/* La foto del local es muy rotulada: el velo va fuerte o el titular no se lee. */
.portada.con-foto {
  background-image:
    radial-gradient(ellipse at center, rgba(35,31,32,.55), rgba(35,31,32,.2) 70%),
    linear-gradient(rgba(35,31,32,.72), rgba(142,13,20,.88)),
    var(--portada-img);
}

.portada-lema {
  display: inline-block;
  background: var(--amarillo);
  color: var(--tinta);
  font-weight: 800;
  font-size: .95rem;
  padding: .38em 1.1em;
  border-radius: 999px;
  margin-bottom: 1rem;
  transform: rotate(-1.2deg);
}
.portada h1 {
  font-size: 2.1rem;
  margin-bottom: .45em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.portada p {
  max-width: 620px;
  margin: 0 auto 1.7rem;
  font-size: 1.05rem;
  color: #FFF0DF;
}
.portada-botones {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: 1.5rem;
  font-size: .93rem;
  font-weight: 700;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4em 1em;
  border-radius: 999px;
  color: #fff;
}
.punto { width: .6em; height: .6em; border-radius: 50%; background: #9AA0A6; }
.punto.si { background: #46D160; box-shadow: 0 0 0 4px rgba(70,209,96,.22); }

/* ── Promociones ─────────────────────────────────────────────────── */

.promos {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.promo {
  position: relative;
  background: var(--blanco);
  border: 2px solid var(--crema-2);
  border-radius: var(--radio);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.promo:first-child {
  border-color: var(--amarillo);
  background: linear-gradient(180deg, #FFFDF7, var(--blanco));
}
.promo h3 { font-size: 1.2rem; margin: 0; color: var(--rojo-osc); padding-right: 4.5rem; }
.promo p { margin: 0; color: var(--gris); font-size: .96rem; }
.promo-precio {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--rojo);
  color: #fff;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  padding: .2em .65em;
  border-radius: 10px;
  box-shadow: var(--sombra);
}
.nota {
  text-align: center;
  color: var(--gris);
  font-size: .87rem;
  margin: 1.4rem auto 0;
  max-width: 640px;
}

/* ── Menú ────────────────────────────────────────────────────────── */

.menu-grupo { margin-bottom: 2.2rem; }
.menu-grupo:last-child { margin-bottom: 0; }
.menu-grupo h3 {
  font-size: 1.28rem;
  color: var(--rojo-osc);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}
.menu-grupo h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--crema-2) 0 6px, transparent 6px 12px);
}
.menu-lista { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--crema-2);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item-txt { flex: 1; min-width: 0; }
.menu-item-nom { font-weight: 700; }
.menu-item-det { display: block; color: var(--gris); font-size: .88rem; line-height: 1.45; }
.menu-item-precio {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  color: var(--rojo);
  white-space: nowrap;
  font-size: 1.02rem;
}

/* ── Por qué ─────────────────────────────────────────────────────── */

.ventajas {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ventaja {
  background: var(--blanco);
  border: 2px solid var(--crema-2);
  border-radius: var(--radio);
  padding: 1.1rem 1.2rem;
  text-align: center;
}
.ventaja-ico {
  width: 46px; height: 46px;
  margin: 0 auto .6rem;
  border-radius: 50%;
  background: var(--amarillo-cl);
  color: var(--rojo-osc);
  display: grid;
  place-items: center;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}
.ventaja h3 { font-size: 1.06rem; margin-bottom: .25em; }
.ventaja p { margin: 0; color: var(--gris); font-size: .93rem; }

/* ── Horario y ubicación ─────────────────────────────────────────── */

.ubica { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.ficha {
  background: var(--blanco);
  border: 2px solid var(--crema-2);
  border-radius: var(--radio);
  padding: 1.3rem;
}
.ficha h3 { font-size: 1.1rem; color: var(--rojo-osc); margin-bottom: .5em; }
.dato { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; }
.dato + .dato { border-top: 1px dashed var(--crema-2); }
.dato svg { width: 20px; height: 20px; fill: var(--rojo); flex: 0 0 20px; margin-top: .18rem; }
.dato-txt { flex: 1; min-width: 0; }
.dato-et { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 700; }
.dato strong { font-weight: 700; }
.dato a { text-decoration: none; font-weight: 700; }
.dato a:hover { text-decoration: underline; }
.ficha-foto { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.ficha-foto img { width: 100%; }
.ficha-foto figcaption { background: var(--tinta); color: #E9E2DA; font-size: .82rem; padding: .6rem .9rem; }

/* ── Galería ─────────────────────────────────────────────────────── */
/* Una sola columna en móvil, para que cada foto se vea grande de verdad. */

.galeria {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.galeria-item figure {
  margin: 0;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--tinta);
}
.galeria-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.galeria-item figcaption {
  color: #E9E2DA;
  font-size: .85rem;
  font-weight: 700;
  padding: .6rem .9rem;
}

/* ── Contacto ────────────────────────────────────────────────────── */

.contacto { text-align: center; }
.contacto-botones {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

/* ── Redes sociales ──────────────────────────────────────────────── */

.redes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.redes a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rojo);
  color: #fff;
  transition: transform .12s ease, background .12s ease;
}
.redes a:hover { background: var(--rojo-osc); transform: translateY(-2px); }
.redes svg { width: 22px; height: 22px; fill: currentColor; }

.pie .redes a { background: rgba(255,255,255,.14); }
.pie .redes a:hover { background: var(--amarillo); color: var(--tinta); }

/* ── Pie ─────────────────────────────────────────────────────────── */

.pie {
  background: var(--tinta);
  color: #D8D0C8;
  padding: 2.4rem 0 2rem;
  text-align: center;
  font-size: .92rem;
}
.pie-marca {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: .2rem;
}
.pie-lema { color: var(--amarillo); font-weight: 700; margin-bottom: 1.2rem; }
.pie-datos { margin: 0 0 1.3rem; line-height: 1.75; }
.pie-datos a { color: #F0E7DE; text-decoration: none; }
.pie-datos a:hover { text-decoration: underline; }

/* Crédito obligatorio: discreto pero legible, con contraste suficiente. */
.credito {
  margin: 1.5rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .84rem;
  color: #A9A099;
  line-height: 1.7;
}
.credito a { color: #D8D0C8; text-decoration: underline; }
.credito a:hover { color: #fff; }

/* ── Botón flotante de contacto ──────────────────────────────────── */

.flotante {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 50;
  width: calc(100% - 2.2rem);
  max-width: 420px;
  box-shadow: 0 6px 22px rgba(142, 13, 20, .42);
}
.flotante:active { transform: translateX(-50%) translateY(1px); }

/* ── Escritorio ──────────────────────────────────────────────────── */

@media (min-width: 700px) {
  body { font-size: 18px; padding-bottom: 0; }
  .marca { font-size: 1.2rem; }
  .marca img { width: 36px; height: 36px; flex-basis: 36px; }
  .cabecera-tel { font-size: .98rem; padding: .5em 1em; }
  .seccion { padding: 4.2rem 0; }
  .seccion-tit { font-size: 2.1rem; }
  .portada { padding: 5.5rem 0 5.8rem; }
  .portada h1 { font-size: 3.1rem; }
  .portada p { font-size: 1.15rem; }
  .promos { grid-template-columns: repeat(2, 1fr); }
  .promos .promo:first-child { grid-column: 1 / -1; }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .ventajas { grid-template-columns: repeat(4, 1fr); }
  .ubica { grid-template-columns: 1fr 1fr; align-items: start; }
  .menu-columnas { columns: 2; column-gap: 2.6rem; }
  .menu-grupo { break-inside: avoid; }

  /* En escritorio el botón vuelve a su esquina; en móvil ocupa el ancho. */
  .flotante {
    left: auto; right: 22px;
    transform: none;
    bottom: 22px;
    width: auto;
  }
  .flotante:active { transform: translateY(1px); }
}

@media (min-width: 980px) {
  .menu-columnas { column-gap: 3.4rem; }
}

/* Respeto por quien pide menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
