/* ============================================================
   COSMESS EDIFICA · estilos generales de la web
   Un solo archivo para todas las páginas.
   ============================================================ */

/* ---------- 1. Colores y medidas (cambiar acá cambia toda la web) ---------- */
:root {
  --rojo: #D10014;
  --rojo-oscuro: #A30010;
  --negro: #141414;
  --gris-texto: #3D3D3B;
  --gris-suave: #6B6B69;
  --gris-borde: #E2E2DF;
  --gris-fondo: #F6F6F4;
  --verde: #1E6B45;
  --blanco: #FFFFFF;
  --ancho: 1280px;
  --fuente-titulos: "Archivo", sans-serif;
  --fuente-texto: "Public Sans", system-ui, sans-serif;
  --fuente-mono: "IBM Plex Mono", monospace;

  /* Escala de títulos: los mismos tamaños en todas las páginas */
  --titulo-portada: clamp(40px, 5.4vw, 64px);
  --titulo-pagina: clamp(32px, 4vw, 48px);
  --titulo-seccion: clamp(28px, 3.2vw, 40px);
  --titulo-tarjeta: 22px;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: var(--rojo); }
a:hover { color: var(--rojo-oscuro); }
h1, h2, h3 { font-family: var(--fuente-titulos); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { text-wrap: pretty; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 32px; }
.seccion { padding: 88px 0; }
/* Dos secciones blancas seguidas: una línea fina las separa */
.seccion:not(.seccion-gris):not(.seccion-oscura) + .seccion:not(.seccion-gris):not(.seccion-oscura) { border-top: 1px solid var(--gris-borde); }
.seccion-gris { background: var(--gris-fondo); border-top: 1px solid var(--gris-borde); border-bottom: 1px solid var(--gris-borde); }
.etiqueta {
  margin: 0 0 12px;
  font-family: var(--fuente-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rojo);
}
.titulo-seccion { font-size: var(--titulo-seccion); margin-bottom: 16px; }
.bajada { font-size: 18px; color: var(--gris-texto); max-width: 680px; line-height: 1.6; margin: 0 0 40px; }

/* ---------- 3. Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.boton-rojo { background: var(--rojo); color: var(--blanco); }
.boton-rojo:hover { background: var(--rojo-oscuro); color: var(--blanco); }
.boton-negro { background: var(--negro); color: var(--blanco); }
.boton-negro:hover { background: #000000; color: var(--blanco); }
.boton-borde { background: var(--blanco); color: var(--negro); border-color: var(--negro); }
.boton-borde:hover { background: var(--gris-fondo); color: var(--negro); }

/* ---------- 4. Barra negra de arriba ---------- */
.barra-top { background: var(--negro); color: #CFCFCC; font-size: 14px; }
.barra-top .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.barra-top a { color: #CFCFCC; text-decoration: none; }
.barra-top a:hover { color: var(--blanco); }
.barra-top-redes { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* ---------- 5. Encabezado y menú ---------- */
.encabezado { position: sticky; top: 0; z-index: 30; background: var(--blanco); border-bottom: 1px solid var(--gris-borde); }
.encabezado .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--negro); }
.logo img { height: 42px; width: auto; }
.logo-texto { display: flex; flex-direction: column; line-height: 1.05; }
.logo-nombre { font-family: var(--fuente-titulos); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; }
.logo-sub { font-family: var(--fuente-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--gris-suave); }
.menu { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 600; }
.menu a { color: var(--negro); text-decoration: none; }
.menu a:hover { color: var(--rojo); }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.boton-menu { display: none; }
.menu-celular { display: none; border-top: 1px solid var(--gris-borde); padding: 8px 20px 18px; flex-direction: column; font-size: 18px; font-weight: 700; }
.menu-celular a { color: var(--negro); text-decoration: none; padding: 14px 0; border-bottom: 1px solid #ECECE8; }
.menu-celular .boton { margin-top: 12px; border-bottom-width: 1.5px; border-bottom-style: solid; }
.menu-celular .boton-borde { border-color: var(--negro); }
.menu-celular .boton-rojo { color: var(--blanco); border-color: var(--rojo); }
.menu-celular.abierto { display: flex; }

/* ---------- 6. Barra para volver ---------- */
.barra-volver { background: var(--gris-fondo); border-bottom: 1px solid var(--gris-borde); }
.barra-volver .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.migas a { color: var(--gris-texto); text-underline-offset: 3px; }
.migas span[aria-current] { font-weight: 700; }
.migas .separador { color: #A8A8A6; }

/* ---------- 7. Pie ---------- */
.pie { background: var(--negro); color: #CFCFCC; }
.pie .contenedor { padding-top: 56px; padding-bottom: 32px; }
.pie-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pie h3 { font-family: var(--fuente-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--blanco); margin-bottom: 14px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pie a { color: #CFCFCC; text-decoration: none; }
.pie a:hover { color: var(--blanco); }
.pie-consumidor { margin: 32px 0 0; font-size: 14px; color: #CFCFCC; }
.pie .pie-consumidor a { color: var(--blanco); text-decoration: underline; text-underline-offset: 3px; }
.pie-final {
  margin-top: 40px;
  padding: 18px 0 104px; /* espacio abajo para que el botón de WhatsApp no tape el logo GB */
  border-top: 1px solid #2A2A28;
  font-size: 14px;
  color: #8F8F8C;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.firma-gb { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- 8. Botón flotante de WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--verde);
  color: var(--blanco);
  text-decoration: none;
  padding: 13px 18px 13px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.whatsapp-flotante:hover { color: var(--blanco); background: #175536; }
.whatsapp-flotante.arriba { bottom: 108px; }
.enlace-fuerte { font-weight: 700; font-size: 15px; text-underline-offset: 3px; } /* en páginas con barra fija abajo */

/* ---------- 9. Celular y tablet ---------- */
/* Pantallas medianas (notebooks chicas, tablets): el menú pasa al botón "☰ Menú" y quedan los dos botones */
@media (max-width: 1240px) {
  .menu { display: none; }
  .boton-menu { display: inline-flex; }
  .encabezado .acciones { margin-left: auto; }
}

@media (max-width: 860px) {
  .contenedor { padding: 0 16px; }
  .seccion { padding: 64px 0; }
  .bajada { font-size: 17px; margin-bottom: 32px; }
  .menu, .encabezado .acciones { display: none; }
  .boton-menu { display: inline-flex; }
  .barra-top-extra { display: none; }
  /* WhatsApp: en el celular sólo el círculo con el ícono, para no tapar contenido */
  .whatsapp-flotante { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; right: 14px; bottom: 18px; }
  .whatsapp-flotante svg { width: 28px; height: 28px; }
  .whatsapp-flotante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .whatsapp-flotante.arriba { bottom: 96px; }
  /* Links de texto: más zona para tocar con el dedo */
  .enlace-fuerte { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Sello "imagen ilustrativa" sobre los renders */
.foto-ilustrativa { position: relative; }
.foto-ilustrativa img { display: block; }
.sello-ilustrativa { position: absolute; left: 10px; top: 10px; padding: 4px 8px; background: rgba(20,20,20,.72); color: #fff; font-family: var(--fuente-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; pointer-events: none; }
.foto-ilustrativa[hidden] { display: none; }

.sin-corte { white-space: nowrap; }
