:root {
  --brand: #16324f;
  --ink: #172033;
  --muted: #5c6778;
  --line: #e4e0d8;
  --paper: #f4f2ec;
  --metal: #8d7349;
}

html { font-size: 17px; }

body.sitio {
  font-family: "Instrument Sans", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.sitio .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.sitio .navbar-brand {
  letter-spacing: -0.04em;
  font-size: 1.25rem;
  color: var(--ink) !important;
}

.sitio .nav-link {
  color: #334155 !important;
  font-weight: 600;
  background: transparent !important;
}

.sitio .nav-link:hover { color: var(--brand) !important; }

.sitio .hero {
  display: flex;
  align-items: center;
  padding: 88px 0 80px;
  color: white;
  background:
    linear-gradient(105deg, rgba(8, 15, 32, 0.92) 0%, rgba(8, 15, 32, 0.72) 48%, rgba(29, 78, 216, 0.28) 100%),
    url("https://images.unsplash.com/photo-1544197150-b99a580bb7a8?q=80&w=2000") center/cover;
}

.sitio .hero h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  max-width: 12ch;
  line-height: 0.98;
  margin: 0 0 1rem;
}

.sitio .hero .lead { color: #e2e8f0; font-size: 1.15rem; max-width: 460px; margin: 0 0 1.75rem; line-height: 1.55; }

.sitio .form-control,
.sitio .form-select {
  min-height: 48px;
  font-size: 1rem;
  border-radius: 12px;
}

.sitio .container { max-width: 1180px; }

.politica { max-width: 760px; }
.politica h1 { letter-spacing: -0.04em; font-weight: 800; }
.politica h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  letter-spacing: -0.03em;
}
.politica a { color: var(--brand); font-weight: 600; }

.chat-dock {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100vw - 24px);
}

.chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 62px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 14px 34px rgba(29, 78, 216, 0.38);
}

.evento-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 62px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  animation: evento-late 1.3s ease-in-out infinite;
}

.evento-fab .evento-signo { font-size: 1.35rem; display: inline-flex; }
.evento-fab.caida { background: #dc2626; color: #fff; }
.evento-fab.mantenimiento { background: #f59e0b; color: #111827; }
.evento-fab.promocion { background: #fdf2f8; color: #111827; }
.evento-fab.aviso { background: #0f172a; color: #fff; }

.evento-panel {
  position: fixed;
  right: 20px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(380px, calc(100vw - 32px));
  max-height: min(420px, calc(100dvh - 140px));
  overflow: auto;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.evento-panel h3 { font-size: 1rem; margin: 0 0 4px; }
.evento-card + .evento-card { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }

@keyframes evento-late {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.chat-fab i { font-size: 1.4rem; }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(420px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 130px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--brand);
  color: #fff;
}

.chat-log {
  flex: 1;
  min-height: 280px;
  height: min(420px, calc(100dvh - 250px));
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

.chat-opciones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-opcion { border: 1px solid #004a99; background: #fff; color: #004a99; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
a.chat-pago { display: inline-block; margin: 8px 8px 0 0; border: 1px solid #004a99; background: #004a99; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; text-decoration: none; }
a.chat-pago:hover { background: #1a6fc4; color: #fff; }
.chat-opcion:disabled { opacity: .55; }

.chat-panel form { background: #fff; }
.chat-panel .form-control { min-height: 46px; }

.sitio .btn {
  border-radius: 12px;
  font-weight: 700;
}

.sitio .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.sitio .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: #eff6ff;
  color: var(--brand);
  font-size: 1.4rem;
}

.sitio .plan-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  background: #fff;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitio .plan-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
}

.plan-nombre {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: 2.6em;
  margin-bottom: 18px;
}

.plan-megas {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-megas strong {
  display: block;
  color: var(--ink);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-precio {
  margin: 16px 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-precio span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

.sitio section h2,
.sitio section h3 {
  letter-spacing: -0.04em;
  font-weight: 800;
}

.portal-nav {
  background: #121820 !important;
}

.portal-nav .navbar-brand {
  color: #fff !important;
  letter-spacing: -0.03em;
}

.portal-wrap {
  min-height: 100vh;
  background: var(--paper);
  font-family: "Instrument Sans", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
}

.portal-wrap .card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.portal-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.barra-usuario {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
}

.barra-usuario a {
  color: #475569;
  text-decoration: none;
}

.barra-usuario a:hover { color: var(--brand); }

.seccion-kicker {
  margin: 0 0 8px;
  color: var(--metal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .seccion-kicker,
.legal-hero .seccion-kicker { color: rgba(255, 255, 255, 0.72); }

.nosotros-foto {
  border-radius: 18px;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.panel-medicion,
.form-pqrs,
.canal-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.panel-medicion { padding: 36px 32px; }

.form-pqrs { padding: 28px; }

.canal-card { padding: 22px 22px 18px; height: 100%; }
.canal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.canal-card strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.canal-card a { color: inherit; text-decoration: none; }
.canal-card a:hover { color: var(--brand); }

.pie {
  background: #0b1220;
  color: #cbd5e1;
  padding: 64px 0 28px;
}

.pie h2 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pie a { color: #cbd5e1; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie li + li { margin-top: 8px; }
.pie .marca { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; }

.legal-hero {
  background: #10151c;
  color: #fff;
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--metal);
}

.legal-hero h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
}

.legal-hero p { max-width: 620px; color: #cbd5e1; margin: 0; }

.legal-cuerpo {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: 56px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 72px;
}

.legal-indice {
  position: sticky;
  top: 84px;
}

.legal-indice a {
  display: block;
  color: #475569;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 0 7px 12px;
  border-left: 2px solid #e2e8f0;
}

.legal-indice a:hover { color: var(--brand); border-left-color: var(--brand); }

.legal-bloque { padding: 8px 0 22px; border-top: 1px solid #e2e8f0; margin-top: 8px; }
.legal-bloque h2 { font-size: 1.35rem; letter-spacing: -0.03em; margin: 18px 0 10px; }
.legal-doc a { color: var(--brand); font-weight: 600; }
.legal-doc li + li { margin-top: 6px; }

.datos-empresa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}

.datos-empresa div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}

.datos-empresa span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .legal-cuerpo { grid-template-columns: 1fr; gap: 20px; }
  .legal-indice { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .legal-indice a { white-space: nowrap; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 12px; }
}

@media (max-width: 767.98px) {
  html { font-size: 16.5px; }
  .sitio .hero { padding: 56px 0 48px; }
  .sitio .hero h1 { font-size: 2.5rem; max-width: none; }
  .sitio .hero .d-flex { flex-direction: column; align-items: stretch; }
  .sitio .hero .btn { width: 100%; }
  .barra-usuario .container { flex-wrap: nowrap; overflow-x: auto; }
  .barra-usuario .d-flex { flex-wrap: nowrap; }
  .barra-usuario a { white-space: nowrap; }
  .nosotros-foto { height: 220px; }
  .datos-empresa { grid-template-columns: 1fr; }
  .panel-medicion, .form-pqrs { padding: 22px 18px; }
  .sitio section.py-5 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
  .chat-panel {
    left: 0;
    right: 0;
    top: 64px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: auto;
    max-height: none;
    height: auto;
    border-radius: 22px 22px 0 0;
  }
  .chat-panel form {
    flex: 0 0 auto;
  }
  .chat-panel-head {
    flex: 0 0 auto;
  }
  .chat-log {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabla-portal thead { display: none; }
  .tabla-portal tr { display: block; border-bottom: 1px solid #e2e8f0; padding: 10px 0; }
  .tabla-portal td { display: block; border: 0; text-align: left !important; padding: 2px 0; }
  .tabla-portal td.portal-acciones { margin-top: 8px; }
}

.portal-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f4f7fb;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.portal-center .card {
  width: min(440px, 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.home {
  --brand: #16324f;
  --ink: #172033;
  --muted: #5c6778;
  --line: #e4e0d8;
  --paper: #f4f2ec;
  --metal: #8d7349;
  background: var(--paper);
  font-family: "Instrument Sans", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
}

.home .container { max-width: 1140px; }

.home #nosotros,
.home #servicios,
.home #blog,
.home #medicion,
.home #pqrs,
.home #contacto { scroll-margin-top: 84px; }

.home .barra-usuario {
  background: #121820;
  border-bottom: 0;
  color: #c5cdd6;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.home .barra-usuario .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}

.home .barra-nota {
  margin: 0;
  color: #9aa6b2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home .barra-acciones {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.home .barra-usuario a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e7edf2;
  font-weight: 500;
}

.home .barra-usuario a:hover { color: #fff; }

.home .sitio-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
}

.home .sitio-nav > .container { min-height: 72px; }

.home .sitio-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 28px;
  color: var(--ink) !important;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.home .marca-sigla {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #121820;
  color: #f4f2ec;
  font-size: 0.95rem;
  font-weight: 600;
}

img.marca-sigla,
.home img.marca-sigla,
.logo-empresa {
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.logo-empresa-info {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 0.8rem;
  padding: 6px;
  border: 1px solid #e4e0d8;
  border-radius: 12px;
}

.logo-empresa-mini {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  padding: 3px;
  border: 1px solid #e4e0d8;
  border-radius: 8px;
  vertical-align: middle;
}

.pie .marca {
  display: flex;
  align-items: center;
}

.chat-panel-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-panel-head img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.home .sitio-nav .navbar-collapse {
  align-items: stretch;
}

.home .sitio-menu {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
}

.home .sitio-nav .nav-link {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 14px !important;
  color: #3d4856 !important;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}

.home .sitio-nav .nav-link:hover,
.home .sitio-nav .nav-link.activo {
  color: var(--ink) !important;
  border-bottom-color: var(--metal);
}

.home .menu-clientes { display: none; }

.home .menu-etiqueta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home .nav-tel {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: #16324f;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home .nav-tel:hover { color: var(--brand); }

@media (min-width: 992px) {
  .home .nav-tel { display: inline-flex; }
}

.home .btn-ingresar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 38px;
  margin-left: 16px;
  padding: 0 16px;
  border-radius: 4px;
  background: #121820;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.home .btn-ingresar:hover { background: #243246; color: #fff; }

.home .hero {
  padding: 76px 0 72px;
  background:
    linear-gradient(105deg, rgba(12, 18, 28, 0.94) 0%, rgba(12, 18, 28, 0.86) 46%, rgba(12, 18, 28, 0.62) 100%),
    url("https://images.unsplash.com/photo-1544197150-b99a580bb7a8?q=80&w=2000") center/cover;
}

.home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 48px;
  align-items: end;
}

.home .hero h1 {
  max-width: 14ch;
  font-weight: 600;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home .hero .lead {
  max-width: 440px;
  color: #d5dde6;
  font-size: 1.08rem;
  font-weight: 400;
}

.home .hero .seccion-kicker { color: #d7c7aa; }

.home .hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home .hero-panel {
  padding: 22px 22px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.home .hero-panel > p {
  margin: 0 0 8px;
  color: #d7c7aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home .hero-panel ul { list-style: none; margin: 0; padding: 0; }

.home .hero-panel li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home .hero-panel strong,
.home .hero-panel span { display: block; }

.home .hero-panel strong {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home .hero-panel span {
  margin-top: 2px;
  color: #c5d0db;
  font-size: 0.9rem;
}

.home .seccion-kicker { color: var(--metal); letter-spacing: 0.16em; }

.home .seccion-clara { background: #fff; }

.home section h2 { font-weight: 600; letter-spacing: -0.035em; }

.home .slogan-empresa {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--metal);
  color: #3d4856;
}

.home .datos-empresa { margin: 0; }

.home .datos-empresa div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  border-left: 3px solid #121820;
}

.home .bloque-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 32px;
}

.home .bloque-head h2 { margin: 0; }

.home .bloque-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.home .bloque-head a { color: var(--brand); font-weight: 600; }

.home .plan-card {
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  border-top: 3px solid #121820 !important;
  padding: 26px 24px 22px;
  background: #fff;
}

.home .plan-card:hover {
  border-color: #cfc6b6 !important;
  border-top-color: var(--metal) !important;
  box-shadow: 0 16px 36px rgba(18, 24, 32, 0.06) !important;
}

.home .plan-nombre { font-weight: 600; }

.home .plan-precio { font-weight: 600; }

.home .panel-medicion,
.home .form-pqrs,
.home .canal-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.home .panel-medicion { padding: 40px 40px 36px; }

.home .pasos-medicion {
  list-style: none;
  margin: 0;
  padding: 8px 8px 8px 28px;
  border-left: 1px solid var(--line);
}

.home .pasos-medicion li + li { margin-top: 22px; }

.home .pasos-medicion span {
  display: block;
  color: var(--metal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home .pasos-medicion strong { display: block; margin: 2px 0; font-weight: 600; }

.home .pasos-medicion p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.home .form-pqrs { padding: 28px 28px 24px; }

.home .form-control,
.home .form-select {
  border-radius: 4px;
  border-color: #ddd6c8;
  background: #fcfbf8;
}

.home .btn {
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home .btn-primary {
  background: #16324f;
  border-color: #16324f;
}

.home .btn-primary:hover,
.home .btn-primary:focus {
  background: #102538;
  border-color: #102538;
}

.home .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
}

.home .canal-card {
  position: relative;
  padding: 26px 22px 20px;
}

.home .canal-card i {
  display: block;
  margin-bottom: 18px;
  color: #121820;
  font-size: 1.25rem;
}

.home .pie {
  background: #10151c;
  border-top: 3px solid var(--metal);
  padding-top: 56px;
}

.home .pie-atencion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home .pie-atencion p {
  margin: 0;
  color: #d7c7aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home .pie-atencion-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.15rem;
}

.home .pie-atencion-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e8eef6;
  font-size: 0.88rem;
  font-weight: 600;
}

.home .pie h2 {
  font-weight: 600;
  letter-spacing: 0.14em;
}

.home .chat-fab,
.home .evento-fab,
.home .chat-opcion { border-radius: 999px; }

.home .sitio-nav > .container > .btn-ingresar { margin-left: auto; }

.home .legal-hero .seccion-kicker { color: #d7c7aa; }

.home .portal-pagina { padding: 56px 0 72px; }

.home .portal-tarjeta,
.home .portal-resultado,
.home .portal-ayuda {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.home .portal-tarjeta {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 32px 28px 28px;
}

.home .portal-tarjeta h1,
.home .portal-resultado h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.home .portal-resultado { padding: 28px 24px 22px; }

.home .portal-ayuda { padding: 24px 22px 20px; height: 100%; }

.home .portal-ayuda h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.home .tabla-portal { margin-top: 8px; }

.home .tabla-portal thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom-color: var(--line);
}

.home .modal-content {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.home .portal-nota {
  margin: 28px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.home .portal-nota a { color: var(--brand); font-weight: 600; text-decoration: none; }

.home .btn-dark {
  background: #121820;
  border-color: #121820;
}

.home .btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}

.home .btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.home .portal-estado {
  margin: 0 0 8px;
  color: var(--muted);
}

.home .carga-comprobante {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.home .carga-comprobante input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.home .carga-comprobante span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .home .sitio-nav > .container { min-height: 64px; }

  .home .sitio-nav .navbar-collapse {
    align-items: stretch;
    padding: 8px 0 18px;
  }

  .home .sitio-menu,
  .home .menu-clientes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .home .menu-clientes {
    gap: 2px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .home .menu-clientes a {
    padding: 10px 2px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }

  .home .sitio-nav .nav-link {
    height: auto;
    padding: 11px 2px !important;
    border-bottom: 0;
  }

  .home .sitio-nav .nav-link.activo { color: var(--metal) !important; }

  .home .btn-ingresar {
    width: 100%;
    margin: 14px 0 0;
  }

  .home .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .home .hero { padding: 56px 0 48px; }
  .home .hero h1 { max-width: none; }
  .home .bloque-head { flex-direction: column; align-items: flex-start; }
  .home .pasos-medicion { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .home .panel-medicion { padding: 24px 20px; }
}

@media (max-width: 767.98px) {
  .home .barra-usuario .container {
    flex-wrap: wrap;
    overflow: visible;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .home .barra-nota { display: none; }
  .home .barra-acciones { gap: 14px; flex-wrap: wrap; }
  .home .hero-acciones { flex-direction: column; align-items: stretch; }
  .home .hero-acciones .btn { width: 100%; }
  .home .form-pqrs { padding: 20px 16px; }
}

body.corte-pagina {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 165, 233, 0.28), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(244, 114, 182, 0.18), transparent 50%),
    #0b1220;
  color: #fff;
}

.corte-pantalla {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.corte-caja {
  width: min(560px, 100%);
  text-align: center;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.corte-marca {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.corte-icono {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  font-size: 2rem;
}

.corte-caja h1 {
  margin: 0 0 0.75rem;
  font-family: "Plus Jakarta Sans", "Instrument Sans", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.corte-texto {
  margin: 0 0 1.5rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.5;
}

.corte-acciones {
  display: grid;
  gap: 10px;
}

.corte-contacto {
  margin: 1.25rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

/* ===== Speedtest automático ===== */
.speedtest-top {
  position: sticky;
  top: 64px;
  z-index: 1020;
  background: linear-gradient(90deg, #0b1522, #16324f 55%, #0b1522);
  color: #e8eef6;
  border-bottom: 1px solid rgba(212, 181, 106, 0.28);
  box-shadow: 0 10px 28px rgba(11, 21, 34, 0.22);
}

.home .sitio-nav.sticky-top {
  z-index: 1030;
}

.speedtest-top-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(110px, 0.8fr) auto auto auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.7rem 0;
}

.speedtest-router {
  position: relative;
  z-index: 3;
}

.speedtest-wifi-btn {
  border: 1px solid rgba(232, 215, 168, 0.42);
  background: rgba(232, 215, 168, 0.14);
  color: #e8d7a8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  white-space: nowrap;
}

.speedtest-router-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 13.5rem;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 215, 168, 0.28);
  background: #102033;
  box-shadow: 0 16px 36px rgba(8, 14, 24, 0.4);
  display: grid;
  gap: 0.15rem;
}

.speedtest-router-menu[hidden] {
  display: none;
}

.speedtest-router-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #e8eef6;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: left;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
}

.speedtest-router-menu button:hover {
  background: rgba(232, 215, 168, 0.12);
}

.speedtest-top-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.speedtest-top-copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.speedtest-top-copy span {
  color: #9fb0c3;
  font-size: 0.75rem;
}

.speedtest-top-barra {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.speedtest-top-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4b56a, #f0d58a);
  transition: width 0.25s ease;
}

.speedtest-top-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #c5d0dc;
}

.speedtest-top-metrics em {
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.speedtest-top-link {
  color: #e8d7a8;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.speedtest-top-cerrar {
  border: 0;
  background: transparent;
  color: #9fb0c3;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.speedtest-top.is-done {
  background: linear-gradient(90deg, #102538, #1a3d2a 55%, #102538);
}

.speedtest-box {
  padding: 1.2rem 1.15rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 21, 34, 0.07);
}

.speedtest-estado {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.speedtest-estado strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.speedtest-pulse {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #94a3b8;
}

.speedtest-pulse.is-on {
  background: #d4b56a;
  box-shadow: 0 0 0 0 rgba(212, 181, 106, 0.55);
  animation: sitioPulse 1.4s ease-out infinite;
}

.speedtest-barra {
  height: 12px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.speedtest-barra-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c4a35a, #16324f);
  transition: width 0.25s ease;
}

.speedtest-porcentaje {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.speedtest-resultados {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.speedtest-metric {
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid #e4e9ef;
}

.speedtest-metric span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.speedtest-metric strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .speedtest-top {
    top: 56px;
    margin: 0;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.55rem 0.7rem 0.65rem;
  }

  .speedtest-top-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "copy cerrar"
      "barra barra"
      "router router"
      "metrics metrics"
      "link link";
    gap: 0.55rem 0.65rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(212, 181, 106, 0.28);
    border-radius: 14px;
    background: linear-gradient(135deg, #0b1522, #16324f 58%, #102538);
    box-shadow: 0 10px 24px rgba(11, 21, 34, 0.18);
  }

  .speedtest-top-copy { grid-area: copy; min-width: 0; }
  .speedtest-top-barra { grid-area: barra; }
  .speedtest-router {
    grid-area: router;
    justify-self: stretch;
  }
  .speedtest-wifi-btn {
    width: 100%;
    text-align: center;
  }
  .speedtest-router-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
  .speedtest-top-metrics { grid-area: metrics; }
  .speedtest-top-link { grid-area: link; }
  .speedtest-top-cerrar {
    grid-area: cerrar;
    justify-self: end;
    align-self: start;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .speedtest-top-copy strong {
    font-size: 0.88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .speedtest-top-copy span {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .speedtest-top-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .speedtest-top-metrics span {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.45rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .speedtest-top-metrics em {
    display: block;
    font-size: 0.82rem;
  }

  .speedtest-top-link {
    justify-self: start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(232, 215, 168, 0.35);
    background: rgba(232, 215, 168, 0.08);
  }

  .speedtest-box {
    padding: 1rem 0.9rem;
    border-radius: 14px;
  }

  .speedtest-resultados {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .speedtest-metric {
    padding: 0.75rem 0.7rem;
    border-radius: 12px;
  }

  .home .panel-medicion {
    padding: 1.1rem 0.9rem;
    border-radius: 14px;
  }
}

/* ===== Sitio público ISP vivo / 2026 ===== */
body.sitio-live {
  overflow-x: hidden;
}

.sitio-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1400;
  opacity: 0;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.22), transparent 68%);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
  will-change: transform;
}

.sitio-cursor-glow.is-on { opacity: 1; }

.home.sitio-live .hero.hero-live,
.sitio.home.sitio-live header.hero.hero-live {
  position: relative !important;
  overflow: hidden !important;
  min-height: min(72vh, 640px);
  display: grid !important;
  align-items: start;
  padding: 1.6rem 0 3.4rem !important;
  background-image: none !important;
  background-color: #0b1522 !important;
  background:
    radial-gradient(800px 360px at 78% 18%, rgba(196, 163, 90, 0.3), transparent 58%),
    radial-gradient(640px 420px at 12% 80%, rgba(56, 140, 210, 0.28), transparent 55%),
    linear-gradient(160deg, #0b1522 0%, #132338 48%, #0e1a2a 100%) !important;
  animation: sitioHeroPulse 10s ease-in-out infinite alternate;
}

.hero-live-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sitio-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.sitio-orb-a {
  width: 48vmin;
  height: 48vmin;
  top: 4%;
  left: 4%;
  background: radial-gradient(circle, rgba(56, 160, 230, 0.75), transparent 70%);
  animation: sitioOrbDrift 7s ease-in-out infinite alternate;
}

.sitio-orb-b {
  width: 40vmin;
  height: 40vmin;
  top: 12%;
  right: 4%;
  background: radial-gradient(circle, rgba(232, 190, 90, 0.7), transparent 72%);
  animation: sitioOrbDrift 5.5s ease-in-out infinite alternate-reverse;
}

.sitio-orb-c {
  width: 32vmin;
  height: 32vmin;
  bottom: 8%;
  left: 38%;
  background: radial-gradient(circle, rgba(90, 220, 190, 0.45), transparent 70%);
  animation: sitioOrbDrift 8s ease-in-out infinite alternate;
}

.sitio-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 181, 106, 0.18) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: sitioScan 3.8s linear infinite;
  mix-blend-mode: soft-light;
}

.sitio-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-live-inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.hero-brand-live {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", "Instrument Sans", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.sitio-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 106, 0.35);
  background: rgba(11, 21, 34, 0.35);
  backdrop-filter: blur(8px);
  color: #e8d7a8;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sitio-ai-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d4b56a;
  box-shadow: 0 0 0 0 rgba(212, 181, 106, 0.55);
  animation: sitioPulse 1.8s ease-out infinite;
}

.home.sitio-live .hero-rotator {
  min-height: 2.2em;
  max-width: none;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.home.sitio-live .hero-line,
.home.sitio-live .hero .lead {
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.home.sitio-live .hero-line:not(.is-active),
.home.sitio-live .hero .lead:not(.is-active) {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

.home.sitio-live .hero-line.is-active,
.home.sitio-live .hero .lead.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}

.sitio-btn-metal,
.home.sitio-live .hero .btn-primary {
  background: linear-gradient(135deg, #d4b56a, #a8843d) !important;
  border-color: transparent !important;
  color: #14110b !important;
  box-shadow: 0 10px 28px rgba(168, 132, 61, 0.28);
}

.sitio-btn-metal:hover,
.home.sitio-live .hero .btn-primary:hover {
  filter: brightness(1.05);
  color: #14110b !important;
}

.sitio-ticker {
  overflow: hidden;
  border-block: 1px solid rgba(11, 21, 34, 0.08);
  background: linear-gradient(90deg, #101826, #16324f 45%, #101826);
  color: #d9e3ee;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sitio-ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.7rem 0;
  white-space: nowrap;
  animation: sitioTicker 14s linear infinite;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sitio-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sitio-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sitio-live-strip {
  display: grid;
  gap: 1.15rem;
  margin: 1.6rem auto 0.4rem;
}

.sitio-live-stats,
.sitio-live-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.sitio-live-stat,
.sitio-live-card {
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 21, 34, 0.07);
}

.sitio-live-stat strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sitio-live-stat span,
.sitio-live-card span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.sitio-live-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: #9a7b3d;
}

.sitio-live-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.sitio-live-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sitio-live-card.is-swapping strong,
.sitio-live-card.is-swapping p {
  opacity: 0;
  transform: translateY(6px);
}

.sitio-live-card strong,
.sitio-live-card p {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sitio-live-card:hover,
.sitio-live-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11, 21, 34, 0.1);
}

@keyframes sitioOrbDrift {
  from { transform: translate3d(-3%, 2%, 0) scale(0.92); }
  to { transform: translate3d(6%, -8%, 0) scale(1.18); }
}

@keyframes sitioScan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}

@keyframes sitioPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 181, 106, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(212, 181, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 181, 106, 0); }
}

@keyframes sitioTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sitioHeroPulse {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.15) brightness(1.06); }
}

@media (max-width: 900px) {
  .sitio-live-stats,
  .sitio-live-cards {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .home.sitio-live .hero.hero-live {
    min-height: auto;
    padding: 1.15rem 0 2.4rem !important;
  }
}

/* ===== Consulta de pago / resultados ===== */
.consulta-resultados-live .login-card-live.consulta-resultados-card {
  width: min(520px, 100%);
  opacity: 1;
  transform: none;
  animation: none;
  background: #fff;
  color: #172033;
}

.consulta-resultados-live .login-panel-live {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2.4rem;
}

.consulta-factura {
  padding: 1rem 0;
  border-top: 1px solid #e8edf3;
}

.consulta-factura:first-of-type {
  border-top: 0;
  padding-top: 0.2rem;
}

.consulta-factura-concepto {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #101826;
}

.consulta-factura-meta {
  margin-top: 0.2rem;
  color: #5f6b7a;
  font-size: 0.88rem;
}

.consulta-factura-valor {
  margin: 0.55rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.consulta-factura-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.consulta-factura-aviso {
  margin: 0.7rem 0 0;
  color: #92400e;
  font-size: 0.86rem;
}

.consulta-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-weight: 600;
}

.consulta-ayuda {
  margin-top: 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid #e4e9ef;
}

.consulta-ayuda h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.consulta-ayuda p {
  margin: 0 0 0.25rem;
  color: #5f6b7a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consulta-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(480px, calc(100vw - 24px));
  box-shadow: 0 24px 60px rgba(11, 21, 34, 0.28);
}

.consulta-dialog::backdrop {
  background: rgba(11, 21, 34, 0.55);
}

.consulta-dialog .dlg-body {
  padding: 1.15rem 1.2rem 0.4rem;
}

.consulta-dialog h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.consulta-dialog .muted {
  color: #5f6b7a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.consulta-dialog label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  font-weight: 600;
}

.consulta-dialog input[type="text"],
.consulta-dialog input[type="file"] {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
}

.consulta-dialog .dlg-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0.8rem 1.2rem 1.15rem;
}

.consulta-dialog .msg { margin-top: 0.8rem; font-size: 0.9rem; }
.consulta-dialog .msg.err { color: #b91c1c; }
.consulta-dialog .msg.ok { color: #047857; }
.consulta-dialog .msg.wait { color: #5f6b7a; }

@media (max-width: 900px) {
  .consulta-resultados-live,
  .consulta-resultados-live .login-screen,
  .consulta-resultados-live .login-screen-live {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .consulta-resultados-live .login-aside,
  .consulta-resultados-live .login-aside-live {
    display: none;
  }

  .consulta-resultados-live .login-panel,
  .consulta-resultados-live .login-panel-live {
    min-height: 100dvh;
    align-items: flex-start;
    padding: 1rem 0.85rem 2rem;
  }

  .consulta-resultados-live .login-card-live {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }

  .consulta-factura-acciones .btn {
    flex: 1 1 auto;
  }
}

.sitio-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.sitio-blog-card {
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 21, 34, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sitio-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(11, 21, 34, 0.14);
  border-color: rgba(196, 163, 90, 0.45);
}

.sitio-blog-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  height: 160px;
  margin: -1.1rem -1.1rem 0.9rem;
  border-radius: 16px 16px 0 0;
  background: #16324f center/cover no-repeat;
}

.sitio-blog-thumb.vacia {
  background:
    radial-gradient(circle at 70% 20%, rgba(212, 181, 106, 0.35), transparent 50%),
    linear-gradient(160deg, #0b1522, #16324f);
}

.sitio-blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 181, 106, 0.22) 48%,
    transparent 54%,
    transparent 100%
  );
  background-size: 100% 220%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sitio-blog-card:hover .sitio-blog-thumb::after {
  opacity: 1;
  animation: sitioScan 2.4s linear infinite;
}

.sitio-blog-hero {
  position: relative;
  overflow: hidden;
  min-height: min(42vh, 340px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(800px 360px at 78% 18%, rgba(196, 163, 90, 0.3), transparent 58%),
    linear-gradient(160deg, #0b1522 0%, #132338 48%, #0e1a2a 100%);
}

.sitio-blog-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sitio-blog-hero-photo {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0.38;
}

.sitio-blog-hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.2rem 0 2.4rem;
}

.sitio-blog-hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", "Instrument Sans", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.sitio-blog-hero p {
  margin: 0;
  color: #c5d0dc;
  max-width: 36rem;
}

.sitio-blog-hero-post {
  min-height: min(48vh, 380px);
}

.noticia-html img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.sitio-live .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.sitio-live .reveal.visible {
  opacity: 1;
  transform: none;
}

.sitio-blog-meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.sitio-blog-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.sitio-blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.sitio-blog-card > p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.sitio-blog-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: #16324f;
}

.noticia-cuerpo {
  max-width: 720px;
}

.noticia-cuerpo .sitio-blog-meta { margin-bottom: 0.8rem; }

@media (max-width: 900px) {
  .sitio-blog-grid { grid-template-columns: 1fr; }
}
