/* =====================================================================
   HUMEDAL — formato común del sistema de plataformas (CONAF / SBAP)
   Misma estructura que RECOGE PH y POA: menú lateral oscuro contraíble,
   barra superior con título y estado, portadas con foto, tarjetas de
   cifras con franja de color, ⓘ y «⤢ Ampliar» en los gráficos.
   Color de identidad de Humedales: celeste agua.
   ===================================================================== */

/* ---------- Tipografía local (sin CDN) ---------- */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/source-sans-3-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens de Humedales (celeste agua) ---------- */
:root {
  --agua-noche: #083344;     /* fondo del menú lateral */
  --agua-oscuro: #0b4a5c;
  --primario: #0e7490;       /* color de identidad */
  --primario-2: #0891b2;
  --acento: #22d3ee;
  --acento-suave: #a5f3fc;
  --verde: #10b981; --ambar: #f59e0b; --rojo: #ef4444; --violeta: #7c3aed;
  --texto: #1f2937; --gris: #64748b;
  --hielo: #eff8fa;          /* fondo general */
  --linea: #d6e9ee;
  --sombra: 0 1px 2px rgba(8,51,68,.05), 0 6px 20px rgba(8,51,68,.07);
  --fuente: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Bootstrap toma el color de identidad */
  --bs-primary: #0e7490; --bs-primary-rgb: 14,116,144;
  --bs-info: #0891b2;    --bs-info-rgb: 8,145,178;
  --bs-link-color: #0e7490; --bs-link-color-rgb: 14,116,144;
  --bs-link-hover-color: #0b4a5c; --bs-link-hover-color-rgb: 11,74,92;
  --bs-body-font-family: var(--fuente);
  --bs-body-color: #1f2937;
  --bs-body-bg: #eff8fa;
  --bs-primary-text-emphasis: #0b4a5c;
  --bs-primary-bg-subtle: #def4f8;
  --bs-primary-border-subtle: #a9dde8;
}
.btn-primary { --bs-btn-bg: #0e7490; --bs-btn-border-color: #0e7490; --bs-btn-hover-bg: #0b5f76; --bs-btn-hover-border-color: #0b5f76;
  --bs-btn-active-bg: #0b4a5c; --bs-btn-active-border-color: #0b4a5c; --bs-btn-disabled-bg: #0e7490; --bs-btn-disabled-border-color: #0e7490; }
.btn-outline-primary { --bs-btn-color: #0e7490; --bs-btn-border-color: #0e7490; --bs-btn-hover-bg: #0e7490; --bs-btn-hover-border-color: #0e7490;
  --bs-btn-active-bg: #0b4a5c; --bs-btn-active-border-color: #0b4a5c; }
.btn-info { --bs-btn-bg: #0891b2; --bs-btn-border-color: #0891b2; --bs-btn-color: #fff; --bs-btn-hover-bg: #0e7490; --bs-btn-hover-color: #fff; }
.nav-tabs .nav-link.active { color: var(--primario); font-weight: 600; }
.nav-tabs .nav-link { color: var(--gris); }
.form-control:focus, .form-select:focus { border-color: var(--acento); box-shadow: 0 0 0 .2rem rgba(34,211,238,.25); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { font-size: 16px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fuente); font-size: 1rem; line-height: 1.5; color: var(--texto);
  background: var(--hielo);
  background-image: radial-gradient(1200px 600px at 100% -10%, #d3f1f7 0%, transparent 55%),
                    radial-gradient(900px 500px at -10% 0%, #e2f5f2 0%, transparent 45%);
  min-height: 100vh;
}
img, svg, canvas { max-width: 100%; }
.leaflet-container img, .leaflet-container svg, .highcharts-container svg { max-width: none; }
table { max-width: 100%; }

/* ---------- Estructura: menú lateral + contenido ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s; }
#nav-panel {
  background: linear-gradient(180deg, var(--agua-noche) 0%, var(--agua-oscuro) 60%, #0e5f73 100%);
  color: #d5eef3; padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto; z-index: 1040;
}
#nav-panel .brand { display: block; text-align: center; margin: 0 0 1rem; text-decoration: none; }
#nav-panel .brandlogo { width: 112px; max-width: 80%; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
#nav-panel .brandsub { display: block; color: #8fd3e0; font-size: .74rem; line-height: 1.3; margin-top: .45rem; }
#nav-panel .brandmini { display: none; width: 40px; height: auto; margin: 0 auto; }
.nav-toggle { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
  background: rgba(255,255,255,.08); color: #c6e9f0; border: 0; border-radius: 10px; padding: .4rem;
  margin: 0 0 .8rem; cursor: pointer; font: inherit; font-size: .8rem; }
.nav-toggle:hover { background: rgba(255,255,255,.16); color: #fff; }
#nav-panel nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 10px;
  text-decoration: none; color: #c6e9f0; font-size: .95rem; margin-bottom: .2rem; transition: background .15s, color .15s; }
#nav-panel nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
#nav-panel nav a.active { background: linear-gradient(90deg, var(--acento), #67e8f9); color: #053544; font-weight: 700; }
#nav-panel nav a .ic { width: 20px; text-align: center; flex: 0 0 20px; }
#nav-panel nav a .lbl { min-width: 0; }
#nav-panel .nav-seccion { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: #7cc6d4; margin: 1rem .8rem .35rem; text-transform: uppercase; }
#nav-panel .foot { margin-top: auto; padding-top: 1rem; font-size: .72rem; color: #86cbd8; line-height: 1.5; }

.content { padding: 1.4rem 1.8rem 3rem; min-width: 0; overflow-x: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.topbar h1 { font-size: 1.45rem; margin: 0; color: var(--agua-noche); font-weight: 800; display: flex; align-items: center; gap: .55rem; min-width: 0; }
.topbar h1 i { color: var(--primario); font-size: 1.15rem; }
.topbar .live { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--gris); flex-wrap: wrap;
  background: #fff; padding: .35rem .5rem .35rem .85rem; border-radius: 999px; box-shadow: var(--sombra); max-width: 100%; }
.topbar .live b { color: var(--texto); }
.topbar .live .salir { color: var(--primario); text-decoration: none; font-weight: 700; border-left: 1px solid var(--linea); padding: 0 .35rem 0 .6rem; white-space: nowrap; }
.topbar .live .salir:hover { color: var(--agua-noche); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(16,185,129,.18); flex: 0 0 auto; }
.chip-demo { background: #fef3c7; color: #92400e; font-weight: 700; font-size: .72rem; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }

/* Barra superior y cajón: solo celular/tablet */
.mbar { display: none; }
.nav-velo { display: none; }

/* Escritorio: panel contraído a una franja de íconos */
@media (min-width: 901px) {
  html.nav-contraido .shell { grid-template-columns: 70px minmax(0, 1fr); }
  html.nav-contraido #nav-panel { padding: 1rem .5rem; }
  html.nav-contraido #nav-panel .brandlogo, html.nav-contraido #nav-panel .brandsub,
  html.nav-contraido #nav-panel .foot, html.nav-contraido #nav-panel nav a .lbl, html.nav-contraido .nav-toggle .lbl,
  html.nav-contraido #nav-panel .nav-seccion { display: none; }
  html.nav-contraido #nav-panel .brandmini { display: block; }
  html.nav-contraido #nav-panel nav a { justify-content: center; padding: .7rem .3rem; }
  html.nav-contraido #nav-panel nav a .ic { font-size: 1.05rem; }
}

/* ---------- Portada con foto (hero) ---------- */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 190px; margin-bottom: 1.2rem; display: flex; align-items: flex-end;
  background: var(--agua-noche); box-shadow: 0 10px 30px rgba(8,51,68,.18); isolation: isolate; }
.hero.compacta { min-height: 128px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; transition: opacity 1.2s ease; }
.hero > img.oculta { opacity: 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,51,68,.9) 0%, rgba(8,51,68,.62) 42%, rgba(8,51,68,.08) 80%),
              linear-gradient(0deg, rgba(8,51,68,.45) 0%, rgba(8,51,68,0) 55%); }
.hero-body { padding: 1.5rem 1.8rem; max-width: 680px; color: #fff; min-width: 0; }
.hero.compacta .hero-body { padding: 1rem 1.5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acento-suave); background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); margin-bottom: .55rem; }
.hero h2 { font-weight: 800; font-size: 1.85rem; line-height: 1.12; margin: 0 0 .4rem; color: #fff; }
.hero.compacta h2 { font-size: 1.4rem; }
.hero p { font-size: .98rem; line-height: 1.5; color: rgba(255,255,255,.88); margin: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .8rem; }
.hero-chip { font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); color: #fff; }
.hero-puntos { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.hero-puntos span { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.hero-puntos span.on { background: var(--acento); }

/* ---------- Tarjetas ---------- */
.card { border-radius: 14px; border: 1px solid rgba(214,233,238,.8) !important; box-shadow: var(--sombra) !important; }
.card.border-warning { border-color: #fcd34d !important; }
.card-header { border-bottom: 1px solid #e7f1f4; font-size: .92rem; }
.card-header:first-child { border-radius: 13px 13px 0 0; }
.card-header .fw-bold, .card-header.fw-bold { color: var(--agua-noche); }
.table th { font-size: .82rem; font-weight: 700; color: #334155; }
.table td { font-size: .84rem; vertical-align: middle; }
.badge { font-weight: 600; }
.card-body { min-width: 0; }

/* Tarjetas de cifras con franja de color */
.kpi-card { background: #fff; border-radius: 16px; position: relative; overflow: hidden; padding: 1rem 1rem .9rem 1.15rem;
  box-shadow: var(--sombra); border: 1px solid rgba(214,233,238,.8); height: 100%; display: flex; flex-direction: column; gap: .15rem; }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--primario); }
.kpi-card.acento::before { background: var(--acento); }
.kpi-card.verde::before { background: var(--verde); }
.kpi-card.ambar::before { background: var(--ambar); }
.kpi-card.rojo::before { background: var(--rojo); }
.kpi-card.violeta::before { background: var(--violeta); }
.kpi-card.gris::before { background: #94a3b8; }
.kpi-card .kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kpi-card .kpi-lbl { font-size: .8rem; color: var(--gris); font-weight: 600; line-height: 1.25; }
.kpi-card .kpi-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #e3f6fa; color: var(--primario); flex: 0 0 auto; font-size: .95rem; }
.kpi-card .kpi-val { font-size: clamp(1.25rem, 3.6vw, 1.75rem); font-weight: 800; color: var(--agua-noche); line-height: 1.15; overflow-wrap: anywhere; margin: 0; }
.kpi-card .kpi-val small { font-size: .55em; color: var(--gris); font-weight: 600; }
.kpi-card .kpi-sub { font-size: .76rem; color: var(--gris); }
.seccion-titulo { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primario); margin: .2rem 0 .6rem; }

/* ---------- ⓘ explicación y «⤢ Ampliar» ---------- */
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.info-tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: #dff4f8; color: var(--primario); font-size: 11.5px; font-weight: 800; cursor: help; flex-shrink: 0; margin-left: 6px;
  font-style: normal; line-height: 1; vertical-align: middle; border: 0; padding: 0; font-family: var(--fuente); }
.info-tip:hover, .info-tip:focus { background: var(--primario); color: #fff; outline: none; }
.info-pop { position: fixed; z-index: 3000; width: min(330px, calc(100vw - 24px)); background: #fff; color: #334155; font-size: .86rem;
  line-height: 1.5; border-radius: 12px; box-shadow: 0 18px 50px -12px rgba(8,51,68,.45); border: 1px solid #d6eef3; overflow: hidden;
  pointer-events: none; animation: info-in .12s ease-out; }
.info-pop .ip-head { background: linear-gradient(120deg, var(--agua-noche), var(--primario)); color: #fff; font-weight: 700; padding: .5rem .8rem; font-size: .88rem; }
.info-pop .ip-body { padding: .65rem .8rem; }
@keyframes info-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.btn-ampliar { border: 1px solid #cfe6ec; background: #fff; color: var(--agua-oscuro); border-radius: 8px; padding: 2px 9px; font-size: .78rem;
  font-weight: 700; cursor: pointer; flex-shrink: 0; white-space: nowrap; line-height: 1.5; margin-left: auto; }
.btn-ampliar:hover { background: #e9f7fa; border-color: var(--acento); }
.card.ampliada { position: fixed !important; inset: 12px; z-index: 2050; margin: 0 !important; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,.5) !important; overflow: auto; max-height: none !important; }
.card.ampliada > .card-body { flex: 1 1 auto; min-height: 0; max-height: none !important; }
.velo-ampliado { position: fixed; inset: 0; z-index: 2040; background: rgba(8,51,68,.55); }
body.con-ampliado { overflow: hidden; }

/* ---------- Botón de ayuda ---------- */
.ayuda { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.ayuda-boton { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--agua-oscuro); color: #fff; font-size: 1.4rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 10px 24px -8px rgba(8,51,68,.6); }
.ayuda-boton:hover { background: var(--primario); }
.ayuda-panel { background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(8,51,68,.45); border: 1px solid var(--linea);
  width: min(360px, calc(100vw - 36px)); max-height: 70vh; overflow: auto; border-top: 5px solid var(--acento); }
.ayuda-panel[hidden] { display: none; }
.ayuda-panel h3 { font-size: 1rem; color: var(--agua-noche); margin: 0; padding: .8rem 1rem .3rem; font-weight: 800; }
.ayuda-panel .ay-cuerpo { padding: 0 1rem .9rem; font-size: .88rem; color: #334155; }
.ayuda-panel .ay-cuerpo ul { padding-left: 1.1rem; margin: .3rem 0; }
.ayuda-panel .ay-cuerpo li { margin-bottom: .25rem; }

/* ---------- Celular y tablet ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .mbar { display: flex; align-items: center; gap: .7rem; position: sticky; top: 0; z-index: 1030;
    background: linear-gradient(90deg, var(--agua-noche), var(--agua-oscuro)); color: #fff; padding: .45rem .8rem;
    box-shadow: 0 4px 14px -6px rgba(8,51,68,.5); }
  .mbar button { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 10px; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; flex: 0 0 auto; }
  .mbar img { height: 34px; width: auto; }
  .mbar .ttl { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  #nav-panel { position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(280px, 84vw); z-index: 1050;
    transform: translateX(-105%); transition: transform .22s ease; box-shadow: 8px 0 30px -10px rgba(0,0,0,.45); }
  html.nav-abierto #nav-panel { transform: none; }
  html.nav-abierto .nav-velo { display: block; position: fixed; inset: 0; z-index: 1045; background: rgba(8,51,68,.45); }
  html.nav-abierto body { overflow: hidden; }
  .nav-toggle { display: none; }
  .content { padding: 1rem 1rem 4.5rem; }
  .topbar h1 { font-size: 1.2rem; }
  .hero { min-height: 160px; border-radius: 14px; }
  .hero-body { padding: 1.1rem; }
  .hero h2 { font-size: 1.4rem; }
  .hero p { font-size: .88rem; }
  .hero::before { background: linear-gradient(0deg, rgba(8,51,68,.9) 0%, rgba(8,51,68,.6) 60%, rgba(8,51,68,.25) 100%); }
}
@media (max-width: 767px) {
  .card-header { font-size: .85rem; }
  .row > [class*="col-lg-"]:not([class*="col-sm-"]):not([class*="col-6"]),
  .row > [class*="col-md-"]:not([class*="col-sm-"]):not([class*="col-6"]) { flex: 0 0 100%; max-width: 100%; }
  .btn-ampliar { padding: 4px 10px; }
}
@media (max-width: 560px) {
  html { font-size: 15px; }
  .content { padding: .8rem .7rem 4.5rem; }
  .topbar .live { font-size: .78rem; }
  .hero.compacta h2 { font-size: 1.2rem; }
}

/* ---------- Control de capas dentro del mapa ---------- */
.layer-row { display: flex; align-items: center; margin: 3px 0; gap: 4px; }
.layer-row .lcolor { display: inline-block; width: 12px; height: 12px; border: 1px solid #333; border-radius: 2px; flex-shrink: 0; }
.layer-row .lname { width: 72px; flex-shrink: 0; font-size: 11px; }
.layer-row input[type="range"] { width: 70px; flex-shrink: 0; height: 14px; cursor: pointer; accent-color: var(--primario); }

/* ---------- Ingreso (login) con fotos ---------- */
.login-split { display: grid; grid-template-columns: 1.15fr 1fr; width: 100%; min-height: 100vh; }
.login-photo { position: relative; overflow: hidden; background: var(--agua-noche); }
.login-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.login-photo img.on { opacity: 1; }
.login-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,51,68,.88) 0%, rgba(8,51,68,.2) 55%, rgba(8,51,68,.4) 100%); }
.login-quote { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 2; color: #fff; }
.login-quote h2 { font-weight: 800; font-size: 2rem; line-height: 1.15; margin: 0 0 .6rem; }
.login-quote p { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.55; margin: 0; max-width: 540px; }
.login-dots { display: flex; gap: 6px; margin-top: 1.1rem; }
.login-dots span { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); transition: background .4s; }
.login-dots span.on { background: var(--acento); }
.login-side { display: flex; align-items: center; justify-content: center; padding: 32px; background: linear-gradient(160deg, #f3fbfd 0%, #e3f3f7 100%); }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(8,51,68,.16); border: 1px solid var(--linea);
  max-width: 420px; width: 100%; padding: 2.2rem 2rem; border-top: 6px solid var(--acento); }
.login-logo { width: 96px; height: 96px; border-radius: 22px; background: linear-gradient(160deg, var(--agua-noche), var(--primario)); padding: 12px; display: block; margin: 0 auto; }
.login-title { font-weight: 800; font-size: 1.6rem; color: var(--agua-noche); text-align: center; margin: .8rem 0 .2rem; }
.login-sub { text-align: center; color: var(--gris); font-size: .92rem; margin-bottom: 1.3rem; line-height: 1.4; }
.btn-google { background: #fff; border: 2px solid #dadce0; color: #3c4043; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; border-color: var(--primario); }
@media (max-width: 900px) {
  .login-split { grid-template-columns: minmax(0, 1fr); position: relative; }
  .login-photo { position: absolute; inset: 0; }
  .login-quote { display: none; }
  .login-side { position: relative; z-index: 2; background: transparent; min-height: 100vh; padding: 16px; }
  .login-card { background: rgba(255,255,255,.96); padding: 1.6rem 1.3rem; }
}
