/* =========================================================================
   GastroView · Bloque 5 · Cierre + pie
   Después del tostado de las Preguntas, la página vuelve al marfil para el
   último llamado y apoya el pie en espresso: la barra de arriba y el pie
   cierran la página con el mismo color.
   TEXTOS PROVISORIOS (reutilizan frases ya aprobadas): revisar con ChatGPT.
   ========================================================================= */

.cierre {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--marfil);
  padding: clamp(72px, 9vw, 132px) 0 clamp(76px, 9vw, 136px);
  text-align: center;
}
.cierre h2 { margin: 0; font-weight: 500; }

.cierre__fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cierre__luz {
  position: absolute;
  left: 50%; top: 42%;
  width: min(1000px, 96vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(198 106 69 / 0.13), rgb(215 165 116 / 0.06) 55%, transparent 75%);
}
.cierre__reticula {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(var(--espresso-rgb) / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--espresso-rgb) / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 100%);
}

.cierre__contenedor {
  display: grid;
  justify-items: center;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--margen);
}
.cierre__titulo {
  max-width: 18em;
  font-family: var(--f-titulos);
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.25rem);
  font-variation-settings: "opsz" 144;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--espresso);
  text-wrap: balance;
}
.cierre__titulo em { font-style: italic; font-weight: 400; color: var(--terracota-cta); }

.cierre__acciones {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: clamp(28px, 3.4vw, 44px);
}
.cierre__acciones .boton { min-height: 58px; }
/* WhatsApp como acción secundaria: el terracota manda, el verde acompaña */
.cierre__wa {
  width: auto;                             /* anula el ancho completo que usa la franja del Bloque 2 */
  background: transparent;
  color: #146B3A;
  box-shadow: inset 0 0 0 1.5px rgb(20 107 58 / 0.4);
}
.cierre__wa:hover { background: rgb(20 107 58 / 0.07); box-shadow: inset 0 0 0 1.5px rgb(20 107 58 / 0.6); }
.cierre__wa .boton__wa { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cierre__wa .boton__wa path + path { fill: currentColor; stroke: none; }

.cierre__nota {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--taupe-texto);
}

/* =========================================================================
   Pie · estructura de la referencia, con acabado GastroView
   Espresso profundo, filete caramelo arriba, cuatro columnas y barra inferior.
   ========================================================================= */
.pie {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(180deg, #34251E 0%, #241A15 100%);
  color: rgb(248 243 234 / 0.78);
  padding: clamp(44px, 5vw, 76px) 0 calc(clamp(16px, 2vw, 24px) + env(safe-area-inset-bottom));
}
.pie::before {                              /* filete caramelo: el remate de la página */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(215 165 116 / 0.55) 22%, rgb(198 106 69 / 0.5) 62%, transparent);
}
.pie__luz {
  position: absolute;
  left: 8%; top: -40%;
  z-index: -1;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(198 106 69 / 0.14), transparent 70%);
  pointer-events: none;
}
.pie__contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }

.pie__grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
  gap: clamp(28px, 3vw, 56px);
  padding-bottom: clamp(30px, 3.4vw, 46px);
}
.pie__sello { display: inline-flex; margin-bottom: 16px; color: var(--marfil); }
.pie__sello .gv { height: 52px; }
.pie__nombre {
  margin: 0;
  font-family: var(--f-titulos);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.015em;
  color: var(--marfil);
}
.pie__claim { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.5; color: rgb(248 243 234 / 0.68); }

.pie__redes { display: flex; gap: 10px; margin: clamp(18px, 2vw, 26px) 0 0; padding: 0; list-style: none; }
.pie__redes a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: rgb(248 243 234 / 0.78);
  box-shadow: inset 0 0 0 1px rgb(248 243 234 / 0.16);
  transition: color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.pie__redes a:hover { color: var(--marfil); background: rgb(248 243 234 / 0.08); box-shadow: inset 0 0 0 1px rgb(215 165 116 / 0.5); }
.pie__redes svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.pie__col { position: relative; }
.pie__col + .pie__col::before,
.pie__col--hablamos::before {
  content: "";
  position: absolute;
  left: calc(clamp(28px, 3vw, 56px) / -2);
  top: 2px; bottom: 2px;
  width: 1px;
  background: rgb(248 243 234 / 0.12);
}
.pie__titulo {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--marfil);
}
.pie__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pie__col a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 0.9375rem;
  color: rgb(248 243 234 / 0.7);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
.pie__col a:hover { color: var(--marfil); }
.pie__texto { margin: 0 0 18px; font-size: 0.9375rem; line-height: 1.5; color: rgb(248 243 234 / 0.62); }

.pie__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--marfil);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(215 165 116 / 0.45);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.pie__wa svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.pie__wa svg path + path { fill: currentColor; stroke: none; }
.pie__wa:hover { background: rgb(215 165 116 / 0.12); box-shadow: inset 0 0 0 1px rgb(215 165 116 / 0.75); }

/* ---------- Barra inferior ---------- */
.pie__barra {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px clamp(20px, 3vw, 48px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid rgb(248 243 234 / 0.12);
  font-size: 0.8125rem;
  color: rgb(248 243 234 / 0.5);
}
.pie__barra p { margin: 0; }
.pie__fmsi { display: inline-flex; align-items: center; gap: 9px; }
.pie__fmsi strong { color: rgb(248 243 234 / 0.82); font-weight: 700; letter-spacing: 0.02em; }
.pie__fmsi-ico { width: 18px; height: 18px; fill: none; stroke: rgb(215 165 116 / 0.75); stroke-width: 1.4; stroke-linejoin: round; }
.pie__legal { text-align: center; }
.pie__firma { display: inline-flex; align-items: center; gap: 12px; justify-self: end; color: rgb(215 165 116 / 0.78); white-space: nowrap; }
.pie__firma span { width: clamp(28px, 4vw, 64px); height: 1px; background: rgb(215 165 116 / 0.45); }

@media (max-width: 1023px) {
  .pie__grilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .pie__col + .pie__col::before, .pie__col--hablamos::before { display: none; }
  .pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .pie__grilla { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pie__barra { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; }
  .pie__legal { text-align: center; }
  .pie__firma { justify-self: center; }
  .pie__wa { width: 100%; justify-content: center; }
}

/* v15 · el pie usa el mismo logo */
.pie__sello img { height: 46px; width: auto; display: block; }
