/* ============================================================
   BEYOND LIMITS — public-base.css
   ------------------------------------------------------------
   Estilos de BASE (reset, tokens, tipografia, componentes
   verdadeiramente partilhados pelas 4 páginas públicas).

   Este ficheiro assume a versão MOBILE do layout — ou seja,
   tudo aqui já funciona no ecrã mais pequeno sem precisar de
   nenhuma media query.

   Os ajustes que só se aplicam a partir de certas larguras
   estão TODOS em:
       public-responsive.css

   O que é específico de cada página está em:
       index.css      → homepage
       contacto.css   → "Fale Connosco"
       sobre.css      → "Sobre Nós"
       selenv.css     → "Selecionar Companhia e Ambiente"

   Ordem de carregamento nos HTML:
     Bootstrap → public-base.css → [css da página] → public-responsive.css
   ============================================================ */

/* ============================================================
   1) RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  /* overflow-x: hidden removido — as causas reais de overflow estão
     corrigidas nos elementos (containers fluidos, iframes com altura
     fluida, wrappers de tabela). Esconder overflow era máscara. */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--bl-ink);
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.fw-bold.display-5 {
  font-family: 'Poppins', sans-serif;
}

/* Imagens, SVGs e vídeos nunca ultrapassam o container.
   iframes ficam à parte: forçar height:auto num iframe (ex.: o embed
   do Google Maps em contacto.html) colapsa-o, porque um iframe não
   tem altura intrínseca como uma imagem. */
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  max-width: 100%;
  border: 0;
}

/* Mapa da página de contacto: altura fluida em vez do valor fixo de
   350px que vem inline no HTML, sem depender de height:auto */
.map-wrapper iframe {
  width: 100%;
  height: clamp(220px, 42vw, 380px);
}

/* NOTA: propositadamente sem max-width aqui. O Bootstrap já limita a
   largura do TEXTO através do .container/.container-fluid interno de
   cada secção; se <main> também tivesse um max-width, secções "full
   bleed" (hero, estatísticas, CTA com fundo colorido) ficariam com
   margens laterais em ecrãs largos, em vez de tocar as bordas. */
main {
  width: 100%;
}

.container,
.container-fluid {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bl-cyan);
  outline-offset: 2px;
}

/* ============================================================
   2) TOKENS DE MARCA
   ============================================================ */
:root {
  --bl-navy: rgb(25, 53, 105);
  --bl-navy-deep: rgb(15, 35, 70);
  --bl-cyan: #00d4ff;
  --bl-bg: #f5f7fb;
  --bl-ink: #1f2937;
  --bl-muted: #6b7280;
  --bl-radius: 1.1rem;
  --tablet-max-width: 1280px;
  --tablet-bezel: 3.125%;
}

/* ============================================================
   3) TIPOGRAFIA FLUIDA
   Nota: isto NÃO são media queries — são clamp(), por isso ficam
   aqui e não no ficheiro responsivo. clamp() escala continuamente
   com a largura do ecrã, sem "saltos" bruscos em breakpoints.
   ============================================================ */
h1, .display-3 {
  font-size: clamp(1.9rem, 4.2vw + 0.9rem, 4.2rem);
}

h2, .display-4, .display-5 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.75rem);
}

h3, .section-title {
  font-size: clamp(1.3rem, 1.6vw + 1rem, 1.75rem);
}

.lead {
  font-size: clamp(0.98rem, 0.6vw + 0.85rem, 1.25rem);
}

/* ============================================================
   4) KEYFRAMES
   ============================================================ */
@keyframes bl-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.scroll-fade-in        { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.scroll-fade-in-left   { animation: fadeInLeft 0.8s ease-out forwards; opacity: 0; }
.scroll-fade-in-right  { animation: slideInRight 0.8s ease-out forwards; opacity: 0; }

/* ============================================================
   5) NAVBAR
   ============================================================ */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-custom {
  background-color: var(--bl-navy) !important;
}

.navbar-brand img {
  max-height: 45px; /* ampliado para 60px a partir de tablets — ver responsive.css */
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  transition: all 0.3s ease;
  position: relative;
  margin: 0 5px;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--bl-cyan) !important;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 12px;
}

/* Dropdown do utilizador (avatar) — nunca esticar/quebrar em ecrãs pequenos */
#area-auth {
  position: relative;
}

#area-auth .dropdown-menu,
.navbar .dropdown-menu {
  position: absolute !important;
  inset: auto 0 auto auto !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  width: max-content;
  max-width: min(85vw, 300px);
  margin-top: 0.5rem;
  border-radius: 0.75rem !important;
  white-space: normal;
}

#area-auth .dropdown-menu .dropdown-item,
.navbar .dropdown-menu .dropdown-item {
  white-space: normal;
  word-break: break-word;
}

/* Estado autenticado: o user.js injeta em #area-auth um
   ".nav-item.d-flex...rounded-pill" com o nome (span), o link
   "ambiente • companhia" (<a href="/ambiente">) e o dropdown do
   avatar. Nome/companhia podem ser longos — truncar em vez de
   deixar a pill esticar ou o navbar partir. NUNCA usar overflow:hidden
   no contentor da pill: o .dropdown-menu do avatar está dentro dele
   no HTML e ficaria cortado quando aberto.
   Larguras máximas em vw/px são ajustadas por breakpoint no
   ficheiro responsive.css. */
#area-auth .rounded-pill.border > span {
  max-width: 38vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

#area-auth a[href="/ambiente"] {
  max-width: 30vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   6) BOTÕES
   ============================================================ */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 24px;
  min-height: 44px; /* alvo de toque adequado */
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bl-navy), var(--bl-navy-deep));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--bl-navy-deep), var(--bl-navy));
}

.btn-login {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
  margin: 5px;
  border-radius: 4px;
}

.btn-login:hover {
  background-color: white;
  color: var(--bl-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-signup {
  background: linear-gradient(135deg, var(--bl-cyan), #0099cc);
  color: white;
  border: none;
  transition: all 0.3s ease;
  margin: 5px;
  border-radius: 4px;
}

.btn-signup:hover {
  background: linear-gradient(135deg, #0099cc, var(--bl-cyan));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Família de botões "gradiente navy" (CTA, hero, envio, submit) */
.btn-send,
.btn-cta-primary,
.btn-cta,
.btn-submit,
.btn-hero {
  background: linear-gradient(135deg, var(--bl-navy), var(--bl-navy-deep));
  border: none;
  font-weight: 600;
  border-radius: 0.7rem;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-send:hover:not(:disabled),
.btn-cta-primary:hover,
.btn-cta:hover,
.btn-submit:hover:not(:disabled),
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 35, 70, 0.25);
  color: #fff;
}

.btn-send:disabled,
.btn-submit:disabled {
  opacity: 0.75;
  cursor: progress;
}

.spinner-border-sm-custom {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.btn-outline-custom,
.btn-cancel {
  border: 2px solid var(--bl-navy);
  color: var(--bl-navy) !important;
  background: transparent;
  font-weight: 600;
  border-radius: 0.7rem;
  min-height: 44px;
  transition: all 0.25s;
}

.btn-outline-custom:hover,
.btn-cancel:hover {
  background: rgba(25, 53, 105, 0.06);
  border-color: var(--bl-navy);
}

.btn-cancel:hover {
  background: var(--bl-navy);
  color: #fff !important;
}

.btn-submit {
  padding: 0.7rem 1rem;
}

.btn-submit:disabled {
  opacity: 0.7;
}

/* ============================================================
   7) HERO — partes verdadeiramente partilhadas
   ============================================================
   O que cada página traz para o seu hero:
     index.css     → .hero-carousel-wrapper (altura + linha animada)
     contacto.css  → .hero-contact (fundo + linha animada)
     sobre.css     → .hero-about (fundo + linha animada)
   ============================================================ */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7f8ff;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bl-cyan);
  animation: bl-pulse 2s ease-out infinite;
}

.hero-contact h1,
.hero-about h1,
.hero-overlay h1 {
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-contact .lead,
.hero-about .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-contact .badge,
.hero-stat-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--bl-navy) !important;
  font-weight: 600;
  border: none;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(15, 35, 70, 0.78) 0%, rgba(25, 53, 105, 0.55) 100%);
  padding: 0 1rem; /* alargado a partir de ~phablet — ver responsive.css */
}

/* ============================================================
   8) SECÇÕES / ESPAÇAMENTO (partilhado)
   ============================================================ */
section.py-5 {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   9) CARDS GENÉRICOS E ELEMENTOS PARTILHADOS
   ============================================================ */

/* Card genérico do Bootstrap (override suave) */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  border-radius: var(--bl-radius) !important;
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 35, 70, 0.1) !important;
}

.p-4.border {
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.p-4.border:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.col-lg-4 .p-4.border {
  position: relative;
  overflow: hidden;
}

.col-lg-4 .p-4.border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bl-navy), var(--bl-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.col-lg-4 .p-4.border:hover::before {
  transform: scaleX(1);
}

.eyebrow-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bl-navy);
  background: linear-gradient(135deg, rgba(25, 53, 105, 0.08), rgba(0, 212, 255, 0.12));
  padding: 0.45rem 1rem;
  border-radius: 50px;
}

/* Ícone de topo dos cartões (usado por contacto + index) */
.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--bl-navy);
  background: linear-gradient(135deg, rgba(25, 53, 105, 0.1), rgba(0, 212, 255, 0.16));
}

.partner-badge {
  background: rgba(25, 53, 105, 0.06) !important;
  color: var(--bl-navy) !important;
  font-weight: 600;
  border: 1px solid rgba(25, 53, 105, 0.1);
}

/* ============================================================
   10) LINKS SOCIAIS
   ============================================================ */
.social-link-circle,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link-circle {
  background: rgba(25, 53, 105, 0.08);
  color: var(--bl-navy);
}

.social-link-circle:hover {
  background: var(--bl-navy);
  color: white;
  transform: translateY(-3px);
}

.social-link {
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--bl-cyan);
  color: var(--bl-navy-deep) !important;
  transform: translateY(-2px);
}

/* ============================================================
   11) FORMULÁRIOS (partilhado)
   ============================================================ */
.form-control,
.form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0.6rem;
  border: 1px solid rgba(25, 53, 105, 0.16);
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bl-navy);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.18);
}

.form-label {
  color: var(--bl-navy);
  margin-bottom: 8px;
}

.invalid-feedback {
  display: block;
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

#formFeedbackMsg[data-state="success"] { color: #16794f; }
#formFeedbackMsg[data-state="error"]   { color: #b3261e; }

form {
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   12) PAINEL RCF (não é desta pasta, mas evita regressão se a
   página for aberta a partir daqui)
   ============================================================ */
body:has(#modulosGrid) {
  background: linear-gradient(135deg, #f5f7fc 0%, #e9edf2 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(#modulosGrid) main.container {
  flex: 1 0 auto;
}

.welcome-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(25, 53, 105, 0.07);
  border-radius: var(--bl-radius);
  box-shadow: 0 0.75rem 2rem rgba(15, 35, 70, 0.06);
  padding: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
  flex-direction: column; /* passa a "row" ≥576px — ver responsive.css */
  text-align: center;     /* passa a "left" ≥576px — ver responsive.css */
}

.welcome-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bl-cyan), var(--bl-navy) 60%, var(--bl-cyan));
  background-size: 200% 100%;
  animation: bl-flow 6s linear infinite;
}

.user-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--bl-navy);
  background: linear-gradient(135deg, rgba(25, 53, 105, 0.1), rgba(0, 212, 255, 0.18));
  flex-shrink: 0;
  margin-bottom: 0.5rem; /* removido ≥576px — ver responsive.css */
}

#welcomeUserName {
  color: var(--bl-navy);
}

#modulosGrid {
  margin-bottom: 2rem;
}

.dashboard-card {
  height: 100%;
  border: none;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.card-body-icon {
  width: clamp(55px, 8vw, 70px);
  height: clamp(55px, 8vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(145deg, rgba(25, 53, 105, 0.1), rgba(0, 212, 255, 0.14));
  transition: background 0.3s;
}

.dashboard-card:hover .card-body-icon {
  background: linear-gradient(145deg, rgba(25, 53, 105, 0.16), rgba(0, 212, 255, 0.2));
}

.card-icon {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--bl-navy);
}

.btn-dashboard {
  width: 100%;
  min-height: 44px;
  background-color: var(--bl-navy);
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: transform 0.25s, letter-spacing 0.25s;
}

.btn-dashboard:hover {
  transform: scale(1.02);
  letter-spacing: 0.3px;
}

/* ============================================================
   13) CTA FINAL (usado em sobre.html)
   O CTA específico da homepage (.cta-contact) vive em index.css.
   ============================================================ */
.cta-final {
  position: relative;
  background: linear-gradient(120deg, #f5f7fb 0%, #eaf0fb 100%);
  border-radius: var(--bl-radius);
  overflow: hidden;
  padding: 1.75rem 1rem; /* aumentado ≥577px — ver responsive.css */
}

.cta-final::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 70%);
}

/* ============================================================
   14) COMPONENTE DECORATIVO — moldura de tablet
   O tamanho máximo (.tablet-asset) é reduzido progressivamente
   em telas menores — ver responsive.css.
   ============================================================ */
.tablet-asset {
  position: relative;
  width: 100%;
  max-width: var(--tablet-max-width);
  min-width: 200px;
  margin: 0 auto;
  display: block;
  border-radius: clamp(12px, 2.5vw, 28px);
  box-shadow: 0 20px 60px rgba(15, 35, 70, 0.35);
  background-color: var(--bl-navy-deep);
  background-image: url("../imagens/tablet-1280x800.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  aspect-ratio: 16 / 10;
}

.tablet-screen {
  position: absolute;
  inset: var(--tablet-bezel);
  border-radius: clamp(8px, 1.8vw, 12px);
  overflow: hidden;
  background: var(--bl-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-screen > img,
.tablet-screen > iframe,
.tablet-screen > .content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.tablet-caption {
  font-size: 0.75rem;
  color: rgba(15, 35, 70, 0.72);
  text-align: center;
  margin-top: 0.5rem;
}

.tablet-asset.scaled {
  transform-origin: center;
  transform: scale(var(--scale, 1));
}

.tablet-asset[aria-hidden="true"] {
  background-image: none;
}

.tablet-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

/* ============================================================
   15) TABELAS (se existirem no site)
   Wrap com .table-responsive já é o padrão Bootstrap — reforço
   para garantir que a rolagem fica presa à tabela, não à página.
   ============================================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 480px; /* evita colunas espremidas ao ponto de ficarem ilegíveis */
}

/* ============================================================
   16) MODAIS
   ============================================================ */
.modal-dialog {
  width: min(94vw, 600px);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   17) RODAPÉ
   ============================================================ */
footer {
  transition: all 0.3s ease;
}

footer a {
  transition: all 0.3s ease;
  position: relative;
}

footer a:hover {
  color: var(--bl-cyan) !important;
  transform: translateX(5px);
}

footer .bi {
  transition: transform 0.3s ease;
}

footer a:hover .bi {
  transform: scale(1.2);
}

footer .row.mb-2,
footer .row.mb-4 {
  text-align: center; /* passa a "left" ≥576px — ver responsive.css */
}

/* ============================================================
   18) FERRAMENTA DE DIAGNÓSTICO (opcional)
   Não é aplicada por defeito. Adiciona a classe .debug-viewport a
   um elemento (ex.: um <div> fixo) e o teu JS pode preencher o
   conteúdo com window.innerWidth/innerHeight, devicePixelRatio,
   screen.width/height e orientação — útil para confirmar o
   viewport CSS real do tablet Tab 6 antes de afinar breakpoints.
   ============================================================ */
.debug-viewport {
  position: fixed;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 9999;
  background: rgba(15, 35, 70, 0.85);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  pointer-events: none;
  max-width: 90vw;
  overflow-wrap: break-word;
}