/* ==========================================================
   ARCHIVO: css/layout.css
   CONTENIDO: Estructura general: encabezado, secciones, pie de página y botón de WhatsApp
   Sitio: Clásica de Seguridad Ltda.
   ========================================================== */

/* ---------- ENCABEZADO Y NAVEGACIÓN ----------
   Barra superior fija con logo y menú (en móvil se despliega con el botón de hamburguesa).
   ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.05;
}
.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  stroke-width: 1.6;
}
.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: block;
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}
.brand-name b {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem;
  color: var(--navy);
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  border-color: var(--signal);
}

/* Enlace destacado "Pagos PSE" del menú */
.site-nav a.nav-pay {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  text-decoration: none;
}
.site-nav a.nav-pay:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- SECCIONES ----------
   Bloques de contenido genéricos: espaciado, fondo gris claro y cabecera de sección.
   ---------- */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-mist {
  background: var(--mist);
}
.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- PIE DE PÁGINA ----------
   Pie con datos de la empresa, enlaces y contacto.
   ---------- */
.site-footer {
  background: #001024;
  color: #b7c4d3;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.site-footer a {
  color: #dbe5f0;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #8fa2b7;
}
.site-footer .contact-lines .icon {
  color: var(--signal);
}

.footer-logo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.9rem;
}

/* ---------- WHATSAPP FLOTANTE ----------
   Botón verde fijo en la esquina inferior derecha.
   ---------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #128c4a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.wa-float:hover {
  background: #0f7a40;
}
.wa-float .icon {
  width: 1.9rem;
  height: 1.9rem;
  fill: #fff;
  stroke: none;
}
