/*
 * bellotero.css — Bellotero Agronegocios (/bellotero)
 *
 * Identidad propia, separada del sitio financiero: clásico mexicano del
 * campo, minimalista. Cal (fondo), tierra roja, azul agave y tinta.
 * Tipografía del sistema (serif clásica + versalitas espaciadas), sin
 * fuentes externas: no se agrega ningún tercero (docs/cumplimiento.md §1.2).
 * Contrastes revisados: texto ≥ 4.5:1 sobre cal y sobre azul agave.
 */

:root {
  --b-cal: #f3ece0;
  --b-cal-honda: #e9dfcd;
  --b-tinta: #231c17;
  --b-tinta-suave: #5a4d43;
  --b-tierra: #8e3b1f;
  --b-tierra-honda: #6f2c16;
  --b-agave: #2f4a4c;
  --b-agave-claro: #9fb7b3;
  --b-linea: #cdbfa8;
  --b-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --b-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --b-ancho: 1160px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.b-cuerpo {
  margin: 0;
  background: var(--b-cal);
  color: var(--b-tinta);
  font-family: var(--b-serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a { color: var(--b-tierra); text-underline-offset: 3px; }
a:hover { color: var(--b-tierra-honda); }

:focus-visible { outline: 3px solid var(--b-tierra); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.b-oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.b-salto {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--b-tinta); color: var(--b-cal); padding: 10px 16px; text-decoration: none;
}
.b-salto:focus { top: 12px; color: var(--b-cal); }

.b-contenedor { width: 100%; max-width: var(--b-ancho); margin: 0 auto; padding: 0 24px; }

/* Versalitas espaciadas: la voz de los letreros pintados a mano. */
.b-antetitulo {
  font-family: var(--b-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--b-tierra);
  margin-bottom: 1.1em;
}

/* ---------- Encabezado ---------- */
.b-encabezado {
  border-bottom: 1px solid var(--b-linea);
  background: var(--b-cal);
}
.b-encabezado-fila {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.b-marca {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--b-tinta); text-decoration: none;
}
.b-marca:hover { color: var(--b-tierra); }
.b-marca-icono { width: 42px; height: 42px; color: var(--b-tierra); flex: none; }
.b-marca-texto { display: flex; flex-direction: column; line-height: 1; }
.b-marca-nombre { font-size: 1.5rem; letter-spacing: .18em; text-transform: uppercase; }
.b-marca-sub {
  font-family: var(--b-sans); font-size: .66rem; letter-spacing: .42em;
  text-transform: uppercase; color: var(--b-tinta-suave); margin-top: 6px;
}
.b-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 28px; flex-wrap: wrap; }
.b-nav a {
  font-family: var(--b-sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--b-tinta); text-decoration: none; display: inline-block; padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.b-nav a:hover { color: var(--b-tierra); border-bottom-color: var(--b-tierra); }

/* ---------- Portada ---------- */
.b-portada { padding-bottom: 72px; }
.b-portada-imagen { position: relative; }
.b-portada-imagen .b-foto,
.b-portada-imagen .cr-imagen-pendiente {
  width: 100%; height: clamp(320px, 62vh, 640px); object-fit: cover; object-position: center 85%;
}
.b-portada-texto {
  position: relative; margin-top: -120px;
}
.b-portada-texto > * { max-width: 820px; }
.b-portada-texto {
  background: transparent;
}
.b-portada-texto::before {
  content: ""; position: absolute; inset: 0 auto 0 24px; width: min(880px, calc(100% - 48px));
  background: var(--b-cal); z-index: -1;
}
.b-portada-texto { z-index: 1; padding-top: 48px; padding-left: 64px; }
.b-entrada { font-size: 1.3rem; color: var(--b-tinta-suave); max-width: 640px; }

.b-acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.b-acciones-centro { justify-content: center; }

.b-boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--b-sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; transition: background-color .2s, color .2s;
}
@media (prefers-reduced-motion: reduce) { .b-boton { transition: none; } }
.b-boton-primario { background: var(--b-tierra); color: #fff; border-color: var(--b-tierra); }
.b-boton-primario:hover { background: var(--b-tierra-honda); color: #fff; }
.b-boton-linea { color: var(--b-tinta); border-color: var(--b-tinta); }
.b-boton-linea:hover { background: var(--b-tinta); color: var(--b-cal); }
.b-boton-claro { background: var(--b-cal); color: var(--b-agave); }
.b-boton-claro:hover { background: #fff; color: var(--b-agave); }
.b-boton-linea-claro { color: var(--b-cal); border-color: var(--b-cal); text-transform: none; letter-spacing: .02em; font-size: .95rem; font-weight: 500; }
.b-boton-linea-claro:hover { background: var(--b-cal); color: var(--b-agave); }
.b-contacto :focus-visible { outline-color: var(--b-cal); }

/* ---------- Secciones ---------- */
.b-seccion { padding: 88px 0; }
.b-dos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.b-dos-invertido { align-items: start; }
.b-texto { max-width: 560px; }
.b-texto p { color: var(--b-tinta-suave); }
.b-texto-centrado { text-align: center; margin: 0 auto 56px; max-width: 720px; }

.b-figura { margin: 0; }
.b-figura .b-foto, .b-figura .cr-imagen-pendiente {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--b-linea); padding: 10px; background: var(--b-cal);
}
.b-figura figcaption {
  font-style: italic; font-size: .95rem; color: var(--b-tinta-suave);
  margin-top: 12px; text-align: center;
}

/* Greca: línea, tres rombos, línea. */
.b-divisor {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 360px; margin: 0 auto; padding: 0 24px;
}
.b-divisor span { flex: 1; height: 1px; background: var(--b-linea); }
.b-divisor i { width: 9px; height: 9px; background: var(--b-tierra); transform: rotate(45deg); }
.b-divisor i:nth-of-type(2) { width: 12px; height: 12px; background: var(--b-agave); }

/* Pasos del contrato */
.b-pasos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--b-tinta);
}
.b-pasos li { padding: 28px 24px 8px 0; border-right: 1px solid var(--b-linea); padding-left: 24px; }
.b-pasos li:first-child { padding-left: 0; }
.b-pasos li:last-child { border-right: 0; }
.b-paso-numero {
  display: block; font-size: 2.6rem; line-height: 1; color: var(--b-tierra); margin-bottom: 18px;
  font-variant-numeric: oldstyle-nums;
}
.b-pasos p { color: var(--b-tinta-suave); font-size: 1.02rem; }

/* Banda de fotos */
.b-banda { background: var(--b-cal-honda); padding: 72px 0; }
.b-galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Lista orgánica */
.b-lista { list-style: none; margin: 0; padding: 0; }
.b-lista li {
  position: relative; padding: 20px 0 20px 34px; border-bottom: 1px solid var(--b-linea);
  color: var(--b-tinta-suave);
}
.b-lista li:first-child { border-top: 1px solid var(--b-linea); }
.b-lista li::before {
  content: ""; position: absolute; left: 4px; top: 30px;
  width: 9px; height: 9px; background: var(--b-agave); transform: rotate(45deg);
}
.b-lista strong { color: var(--b-tinta); font-weight: 600; }

/* Tarjetas */
.b-tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-tarjeta {
  border: 1px solid var(--b-linea); padding: 36px 30px; text-align: center; position: relative;
}
.b-tarjeta::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--b-linea); pointer-events: none;
}
.b-tarjeta p { color: var(--b-tinta-suave); margin: 0; font-size: 1.02rem; }

/* Contacto */
.b-contacto { background: var(--b-agave); color: var(--b-cal); padding: 96px 0; text-align: center; }
.b-contacto-caja { max-width: 760px; }
.b-contacto .b-marca-icono { width: 56px; height: 56px; color: var(--b-agave-claro); margin: 0 auto 28px; }
.b-contacto p { color: #e4ddd1; font-size: 1.2rem; }

/* Pie */
.b-pie { background: var(--b-tinta); color: #d9cfc1; font-family: var(--b-sans); font-size: .9rem; padding: 32px 0; }
.b-pie a { color: #f3ece0; }
.b-pie a:hover { color: #fff; }
.b-pie :focus-visible { outline-color: var(--b-cal); }
.b-pie p { margin: 0; }
.b-pie-fila { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.b-pie-enlaces { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.b-pie-enlaces a { display: inline-block; padding: 4px 0; }

/* Marcador si falta la imagen (cr_imagen) */
.cr-imagen-pendiente { background: var(--b-cal-honda); display: flex; align-items: center; justify-content: center; color: var(--b-tinta-suave); font-family: var(--b-sans); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .b-pasos { grid-template-columns: 1fr 1fr; }
  .b-pasos li { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--b-linea); padding-right: 16px; }
  .b-pasos li:nth-child(odd) { border-right: 1px solid var(--b-linea); }
  .b-pasos li:nth-child(even) { padding-left: 24px; }
}

@media (max-width: 860px) {
  body.b-cuerpo { font-size: 1.06rem; }
  .b-seccion { padding: 64px 0; }
  .b-dos { grid-template-columns: 1fr; gap: 40px; }
  .b-galeria { grid-template-columns: 1fr; gap: 28px; }
  .b-tarjetas { grid-template-columns: 1fr; }
  .b-portada-texto { margin-top: -64px; padding-left: 40px; padding-top: 32px; }
  .b-encabezado-fila { justify-content: center; }
  .b-nav ul { justify-content: center; gap: 0 20px; }
}

@media (max-width: 560px) {
  .b-contenedor { padding: 0 16px; }
  .b-pasos { grid-template-columns: 1fr; }
  .b-pasos li, .b-pasos li:nth-child(even) { padding-left: 0; border-right: 0; }
  .b-pasos li:nth-child(odd) { border-right: 0; }
  .b-portada-texto { margin-top: -40px; padding-left: 32px; }
  .b-portada-imagen .b-foto, .b-portada-imagen .cr-imagen-pendiente { height: 44vh; min-height: 260px; }
  .b-portada-texto::before { left: 16px; width: calc(100% - 32px); }
  .b-acciones .b-boton { width: 100%; }
  .b-nav a { font-size: .72rem; letter-spacing: .12em; }
  .b-contacto .b-boton-linea-claro { word-break: break-all; }
}
