/* ============================================================
   GRUPO BAFORTE — grupobaforte.ar
   CSS artesanal, sin frameworks. Mobile-first.
   Paleta: navy #10141C · tarjetas #161B26 · texto #E8E6E1
   Acentos: dorado #C9A45C · verde #4A7C59
   ============================================================ */

:root {
  --fondo: #10141C;
  --fondo-2: #0C0F16;
  --tarjeta: #161B26;
  --tarjeta-borde: rgba(232, 230, 225, 0.07);
  --texto: #E8E6E1;
  --texto-suave: #A9A69E;
  --dorado: #C9A45C;
  --verde: #4A7C59;
  --acento: #C9A45C;
  --acento-tinta: #10141C; /* texto sobre el acento */
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --ancho: 1080px;
}

/* Acento por unidad */
body.pag-norstream { --acento: #2E6FED; --acento-tinta: #fff; }
body.pag-tp        { --acento: #A0622D; --acento-tinta: #fff; }
body.pag-vivero    { --acento: #4A7C59; --acento-tinta: #fff; }
body.pag-ecostop   { --acento: #4A7C59; --acento-tinta: #fff; }
body.pag-alvaro    { --acento: #C9A45C; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--dorado); color: var(--fondo); }

.contenedor {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Encabezado ---------- */
.encabezado {
  border-bottom: 1px solid var(--tarjeta-borde);
  background: rgba(16, 20, 28, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.encabezado .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.marca img { height: 42px; width: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  align-items: center;
}
.nav a {
  color: var(--texto-suave);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0;
}
.nav a:hover { color: var(--texto); text-decoration: none; }
.nav a.activo {
  color: var(--acento);
  border-bottom: 2px solid var(--acento);
}

@media (max-width: 760px) {
  .encabezado { position: static; }
  .marca img { height: 34px; }
  .nav { gap: 0.15rem 1rem; }
  .nav a { font-size: 0.74rem; }
}

/* ---------- Héroes ---------- */
.heroe {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.heroe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(12, 15, 22, 0.95) 25%,
              rgba(12, 15, 22, 0.55) 60%,
              rgba(12, 15, 22, 0.35));
}
.heroe .contenedor {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  animation: aparecer 0.9s ease both;
}
.heroe h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  max-width: 17ch;
}
.heroe .bajada {
  margin-top: 1.4rem;
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--texto);
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .heroe .contenedor { animation: none; }
}

/* Héroe partido (páginas de unidad) */
.heroe-unidad {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.heroe-unidad .foto img {
  border-radius: 14px;
  border: 1px solid var(--tarjeta-borde);
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}
@media (min-width: 800px) {
  .heroe-unidad { grid-template-columns: 1.05fr 0.95fr; padding-top: 4.5rem; }
}

.antetitulo {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acento);
  margin-bottom: 1rem;
}
h1.titulo, h2.titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.15;
}
.heroe-unidad .bajada,
.seccion .bajada {
  margin-top: 1.2rem;
  color: var(--texto-suave);
  max-width: 58ch;
}
.heroe-unidad .acciones { margin-top: 2rem; }

/* ---------- Secciones ---------- */
.seccion { padding: 4.2rem 0; }
.seccion + .seccion { padding-top: 0.5rem; }
.seccion h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1.6rem;
}
.seccion h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--acento);
  margin-top: 0.7rem;
  border-radius: 2px;
}
.seccion-oscura {
  background: var(--fondo-2);
  border-top: 1px solid var(--tarjeta-borde);
  border-bottom: 1px solid var(--tarjeta-borde);
}

/* ---------- Tarjetas ---------- */
.tarjetas {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
a.tarjeta { color: var(--texto); }
a.tarjeta:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(232, 230, 225, 0.18);
}
.tarjeta .foto {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tarjeta .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tarjeta .cuerpo { padding: 1.3rem 1.4rem 1.5rem; }
.tarjeta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.tarjeta .rubro {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: block;
}
.tarjeta p { color: var(--texto-suave); font-size: 0.95rem; }
.tarjeta .mas {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

/* Colores del rubro por unidad (en la home) */
.rubro-norstream { color: #2E6FED; }
.rubro-tp        { color: #A0622D; }
.rubro-vivero    { color: #4A7C59; }
.rubro-ecostop   { color: #4A7C59; }
.rubro-alvaro    { color: #C9A45C; }
.rubro-alvarito  { color: #8FA95B; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: filter 0.2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn-primario { background: var(--acento); color: var(--acento-tinta); }
.btn-secundario {
  border-color: rgba(232, 230, 225, 0.25);
  color: var(--texto);
  background: transparent;
}
.btn-wa { background: #1DAB55; color: #fff; }
.btn svg { flex-shrink: 0; }
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* ---------- Listas de servicios / datos ---------- */
.filas { display: grid; gap: 1rem; }
.fila {
  background: var(--tarjeta);
  border: 1px solid var(--tarjeta-borde);
  border-left: 3px solid var(--acento);
  border-radius: 10px;
  padding: 1.15rem 1.4rem;
}
.fila h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.fila p { color: var(--texto-suave); font-size: 0.95rem; }

.dato-clave {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.8rem;
}
.dato-clave div { min-width: 130px; }
.dato-clave .cifra {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--acento);
  display: block;
}
.dato-clave .detalle {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

/* ---------- Tabla de precios ---------- */
.tabla-envoltura { overflow-x: auto; }
table.precios {
  width: 100%;
  border-collapse: collapse;
  background: var(--tarjeta);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.98rem;
}
table.precios caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.6rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
}
table.precios th, table.precios td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--tarjeta-borde);
}
table.precios th {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-suave);
  background: rgba(0, 0, 0, 0.25);
}
table.precios tr:last-child td { border-bottom: none; }
table.precios td.importe {
  font-variant-numeric: tabular-nums;
  color: var(--acento);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Galería ---------- */
.galeria {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.galeria figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tarjeta-borde);
  background: var(--tarjeta);
}
.galeria img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.galeria figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: var(--texto-suave);
}

/* ---------- Franja con foto de fondo ---------- */
.franja {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4.5rem 0;
}
.franja::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 22, 0.82);
}
.franja .contenedor { position: relative; }

/* ---------- Bloque logo Norstream ---------- */
.logo-negro {
  background: #000;
  border-radius: 14px;
  border: 1px solid var(--tarjeta-borde);
  padding: 1.8rem;
  display: flex;
  justify-content: center;
}
.logo-negro img { max-height: 300px; width: auto; }

/* ---------- Página Paltas Alvarito (identidad propia) ---------- */
body.pag-alvarito {
  background: #F2ECDC;
  color: #27351D;
  --acento: #3E6B2E;
  --acento-tinta: #fff;
  --tarjeta: #FBF7EA;
  --tarjeta-borde: rgba(62, 107, 46, 0.18);
  --texto-suave: #5C6B4C;
}
body.pag-alvarito .encabezado {
  background: rgba(242, 236, 220, 0.94);
  border-bottom-color: rgba(62, 107, 46, 0.15);
}
body.pag-alvarito .nav a { color: #5C6B4C; }
body.pag-alvarito .nav a:hover { color: #27351D; }
body.pag-alvarito .nav a.activo { color: #3E6B2E; border-color: #3E6B2E; }
body.pag-alvarito ::selection { background: #3E6B2E; color: #fff; }
body.pag-alvarito .pie {
  background: #E9E1CC;
  border-top-color: rgba(62, 107, 46, 0.15);
}
body.pag-alvarito .pie, body.pag-alvarito .pie a { color: #45543A; }
body.pag-alvarito .pie h4 { color: #27351D; }
.sello-redondo {
  width: min(300px, 70vw);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(39, 53, 29, 0.25);
}

/* ---------- Pie ---------- */
.pie {
  background: var(--fondo-2);
  border-top: 1px solid var(--tarjeta-borde);
  padding: 3.5rem 0 2.5rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
}
.pie .columnas {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pie h4 {
  color: var(--texto);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.pie ul { list-style: none; }
.pie li { margin-bottom: 0.45rem; }
.pie a { color: var(--texto-suave); }
.pie a:hover { color: var(--texto); }
.pie .legal {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--tarjeta-borde);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
.pie .simbolo { height: 54px; width: auto; margin-bottom: 1rem; opacity: 0.9; }

/* ---------- Página 404 ---------- */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-404 .contenedor { width: 100%; }
.error-404 .cifra {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--acento);
}

/* ---------- Utilidades ---------- */
.nota {
  font-size: 0.88rem;
  color: var(--texto-suave);
}
.margen-arriba { margin-top: 1.8rem; }
.texto-centrado { text-align: center; }
