/**
 * Páginas del embudo: /llamada, /agendar, /fin.
 *
 * Misma paleta, tipografía y piezas que meta-asistente-telefonico-ia.
 * Sin navegación: solo marca y enlaces legales.
 */

:root {
  --verde-principal: #0F2A22;
  --verde-secundario: #1F4A40;
  --verde-medio: #236B4D;
  --verde-vibrante: #7ED957;
  --tinta: #14211C;
  --cuerpo: #3D4742;
  --gris-sobrio: #6B6B6B;
  --fondo-arena: #F7F5F2;
  --gris-contorno: #E0DDD8;
  --blanco: #FFFFFF;
}

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

html {
  min-width: 320px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--cuerpo);
  background: var(--blanco);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--verde-principal);
  background: var(--verde-vibrante);
}

p {
  margin: 0;
  text-wrap: pretty;
}

strong {
  color: var(--tinta);
  font-weight: 600;
}

/* ---------- Cabecera ---------- */

.cabecera {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem 0;
  background: var(--fondo-arena);
}

.cabecera img {
  display: block;
  height: 2.15rem;
  width: auto;
}

/* ---------- Cuerpo ---------- */

.embudo {
  flex: 1 0 auto;
  padding-block: clamp(2.75rem, 7vw, 4.5rem) clamp(3.5rem, 8vw, 5rem);
  background: linear-gradient(180deg, var(--fondo-arena) 0%, var(--blanco) 62%);
}

/* El margen lateral va en el ancho, no en el padding: .contenedor y .bloque
   son el mismo elemento y el padding de la tarjeta pisaría al del contenedor. */
.contenedor {
  width: min(100% - 2.5rem, 43rem);
  margin-inline: auto;
}

/* El contenido va sobre una tarjeta: sin ella el texto flotaba suelto en la
   página y no había nada que sostuviera la composición. */
.bloque {
  padding: clamp(1.5rem, 5vw, 2.75rem);
  background: var(--blanco);
  border: 1px solid var(--gris-contorno);
  border-radius: 14px;
  box-shadow: 0 18px 40px -28px rgb(15 42 34 / 35%);
}

h1 {
  margin: 0 0 1.5rem;
  color: var(--verde-principal);
  font-size: clamp(1.6rem, 4.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.paso {
  margin-bottom: 0.6rem;
  color: var(--gris-sobrio);
  font-size: 0.95rem;
  font-style: italic;
}

.bloque > p + p {
  margin-top: 1.15rem;
}

/* El momento de revelación destaca por color y peso, no por tamaño: una
   marca verde al margen basta. Centrarlo entre reglas rompía la columna. */
.revelacion {
  margin-block: 1.85rem;
  padding-left: 1.15rem;
  border-left: 3px solid var(--verde-vibrante);
  color: var(--verde-principal);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.numero {
  color: var(--verde-medio);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Botones ---------- */

.cta {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  color: var(--blanco);
  background: var(--verde-principal);
  border: 1px solid var(--verde-principal);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 160ms ease;
}

.cta:hover {
  background: var(--verde-secundario);
}

.cta:focus-visible {
  outline: 3px solid var(--verde-vibrante);
  outline-offset: 3px;
}

/* Botón y cierre siguen la misma columna que el texto: centrarlos dejaba la
   mitad inferior de la página descolgada del resto. */
.accion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2rem;
}

.cierre {
  margin-top: 1.1rem;
  color: var(--gris-sobrio);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Calendario ---------- */

.calendario {
  margin-top: 2rem;
}

/* Cal ajusta la altura solo; el mínimo evita el salto mientras carga. */
#cal-inline {
  min-height: 40rem;
  width: 100%;
}

/* El contenedor no puede recortar el desplegable de meses de Cal. */
.calendario,
#cal-inline {
  overflow: visible;
}

.aviso {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  color: var(--verde-principal);
  background: rgb(126 217 87 / 12%);
  border-left: 3px solid var(--verde-vibrante);
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}

/* ---------- Módulo extra de /fin ---------- */

#modulo-extra:empty {
  display: none;
}

#modulo-extra {
  margin-top: 2.5rem;
}

/* ---------- Pie ---------- */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 42px 0 34px;
  background: var(--verde-principal);
}

.footer-minimal {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-legal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 42%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgb(255 255 255 / 72%);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgb(255 255 255 / 100%);
}

.footer-copy {
  font-size: 0.76rem;
  color: rgb(255 255 255 / 34%);
  margin: 0;
}
