
:root {
    --bg-white:      #FFFFFF;
  --bg-arena:      #F5F3EF;
  --bg-card:       #FAFAF9;
  --bg-gris:       #F0EDEA;
  --bg-gris-medio: #E2DDD8;

    --text-dark:     #1F2937;
  --text-body:     #374151;
  --text-muted:    #6B7280;
  --text-soft:     #9CA3AF;

    --azul-900:      #1E3A5F;
  --azul-700:      #2563A8;
  --azul-500:      #3B82F6;
  --azul-100:      #DBEAFE;
  --azul-50:       #EFF6FF;

    --amarillo:      #FFFFFF;
  --amarillo-claro:#FEF3C7;
  --rojo:          #DC2626;
  --rojo-claro:    #FEE2E2;
  --verde:         #059669;
  --verde-claro:   #D1FAE5;

    --border:        #E5E7EB;
  --border-hover:  #D1D5DB;
  --sombra-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --sombra:        0 4px 16px rgba(0,0,0,0.08);
  --sombra-hover:  0 8px 32px rgba(0,0,0,0.12);
  --sombra-azul:   0 4px 16px rgba(37,99,168,0.15);

    --radio:         8px;
  --radio-lg:      12px;
  --radio-xl:      16px;
  --transicion:    all 0.2s ease;
  --fuente:        'Inter', sans-serif;
  --fuente-mono:   'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { overflow-x: hidden; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fuente);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-700); text-decoration: none; transition: var(--transicion); }
a:hover { color: var(--azul-500); }

::selection { background: var(--azul-100); color: var(--azul-900); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-gris); }
::-webkit-scrollbar-thumb { background: var(--bg-gris-medio); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-body); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--amarillo);
  margin-top: 0.6rem;
  border-radius: 2px;
}
.section-title .accent { color: var(--azul-700); }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 560px;
}

.topbar {
  background: var(--azul-900);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 0.45rem 0;
  font-family: var(--fuente-mono);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: rgba(255,255,255,0.75); }
.topbar a:hover { color: var(--amarillo); }
.topbar-status { display: flex; align-items: center; gap: 0.5rem; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.navbar {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sombra-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.navbar-brand .brand-ven  { color: var(--azul-900); }
.navbar-brand .brand-cert { color: var(--azul-700); }
.navbar-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-badge {
  font-size: 0.6rem;
  background: var(--azul-50);
  color: var(--azul-700);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--fuente-mono);
  border: 1px solid var(--azul-100);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.navbar-menu > li > a {
  color: var(--text-body);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radio);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transicion);
  display: block;
}
.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
  color: var(--azul-700);
  background: var(--azul-50);
}

.navbar-menu .dropdown { position: relative; }
.navbar-menu .dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.5;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-hover);
  min-width: 220px;
  list-style: none;
  padding: 0.5rem;
  padding-top: 12px;
  margin-top: -8px;
  border: 1px solid var(--border);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  color: var(--text-body) !important;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  border-radius: var(--radio);
  transition: var(--transicion);
}
.dropdown-menu a i { width: 16px; color: var(--azul-500); font-size: 0.8rem; }
.dropdown-menu a:hover {
  background: var(--azul-50) !important;
  color: var(--azul-700) !important;
}
.dropdown-menu a:hover i { color: var(--azul-700); }

.navbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-arena);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  gap: 0.4rem;
  transition: var(--transicion);
}
.navbar-search:focus-within {
  border-color: var(--azul-500);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--azul-100);
}
.navbar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  width: 160px;
  font-family: var(--fuente);
}
.navbar-search input::placeholder { color: var(--text-soft); }
.navbar-search button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: var(--transicion);
}
.navbar-search button:hover { color: var(--azul-700); }

.btn-alerta-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--rojo);
  color: var(--bg-white) !important;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radio);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transicion);
}
.btn-alerta-nav:hover {
  background: #B91C1C !important;
  color: var(--bg-white) !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

.navbar-mobile-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .navbar-toggle { display: none; }
  .navbar-mobile-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.logo-suscerte-nav {
  display: block;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transicion);
}

.hero {
  background: var(--bg-white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%,
      rgba(219,234,254,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--azul-50);
  border: 1px solid var(--azul-100);
  color: var(--azul-700);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
  font-family: var(--fuente-mono);
}
.hero h1 {
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero h1 .highlight { color: var(--azul-700); }
.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.75;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-item .numero {
  font-size: 2rem;
  font-weight: 800;
  color: var(--azul-700);
  display: block;
  font-family: var(--fuente-mono);
  line-height: 1;
}
.hero-stat-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.hero-visual { position: relative; }
.hero-terminal {
  background: var(--azul-900);
  border-radius: var(--radio-xl);
  overflow: hidden;
  box-shadow: var(--sombra-hover), var(--sombra-azul);
  border: 1px solid rgba(255,255,255,0.08);
}
.terminal-header {
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-title {
  font-family: var(--fuente-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.5rem;
  font-family: var(--fuente-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}
.t-line { display: flex; gap: 0.75rem; }
.t-prompt { color: #34D399; flex-shrink: 0; }
.t-cmd    { color: #93C5FD; }
.t-output { color: rgba(255,255,255,0.5); padding-left: 1.5rem; }
.t-warn   { color: #FCD34D; }
.t-error  { color: #FCA5A5; }
.t-success{ color: #6EE7B7; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #FCD34D;
  vertical-align: middle;
  animation: cursor-blink 1s infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-status-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.hero-status-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radio);
  padding: 1rem;
  box-shadow: var(--sombra-sm);
  transition: var(--transicion);
}
.hero-status-card:hover {
  border-color: var(--azul-500);
  box-shadow: var(--sombra-azul);
}
.hero-status-card .sc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--fuente-mono);
  margin-bottom: 0.4rem;
}
.hero-status-card .sc-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--fuente-mono);
  color: var(--text-dark);
}
.hero-status-card .sc-value.critical { color: var(--rojo); }
.hero-status-card .sc-value.warning  { color: var(--amarillo); }
.hero-status-card .sc-value.ok       { color: var(--verde); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radio);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transicion);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--azul-700);
  color: var(--bg-white);
  border-color: var(--azul-700);
}
.btn-primary:hover {
  background: var(--azul-900);
  color: var(--bg-white);
  box-shadow: var(--sombra-azul);
  transform: translateY(-1px);
}
.btn-azul {
  background: var(--azul-700);
  color: var(--bg-white);
  border-color: var(--azul-700);
}
.btn-azul:hover {
  background: var(--azul-900);
  color: var(--bg-white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--azul-700);
  border-color: var(--azul-700);
}
.btn-outline:hover {
  background: var(--azul-50);
  color: var(--azul-900);
}
.btn-ghost {
  background: var(--bg-arena);
  color: var(--text-body);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-gris);
  color: var(--text-dark);
}
.btn-rojo {
  background: var(--rojo);
  color: var(--bg-white);
  border-color: var(--rojo);
}
.btn-rojo:hover {
  background: #B91C1C;
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
.btn-sm  { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-lg  { padding: 0.8rem 2rem; font-size: 0.95rem; }

.card {
  background: var(--bg-white);
  border-radius: var(--radio-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transicion);
  box-shadow: var(--sombra-sm);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--sombra-hover);
  transform: translateY(-3px);
}
.card-body { padding: 1.5rem; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-arena);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--fuente-mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-critica {
  background: var(--rojo-claro);
  color: #991B1B;
  border: 1px solid #FECACA;
}
.badge-alta {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.badge-media {
  background: var(--amarillo-claro);
  color: #B45309;
  border: 1px solid #FCD34D;
}
.badge-baja {
  background: var(--verde-claro);
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.badge-info {
  background: var(--azul-50);
  color: var(--azul-700);
  border: 1px solid var(--azul-100);
}

.stats-section {
  background: var(--azul-900);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radio-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amarillo), var(--azul-500));
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.stat-card i { font-size: 1.5rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-white);
  display: block;
  line-height: 1;
  font-family: var(--fuente-mono);
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.page-header {
  background: var(--bg-arena);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--azul-700), var(--azul-500), transparent);
}
.page-header h1 { color: var(--text-dark); margin-bottom: 0.4rem; }
.page-header p  { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.breadcrumb {
  background: var(--bg-white);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-family: var(--fuente-mono);
}
.breadcrumb a { color: var(--azul-700); }
.breadcrumb a:hover { color: var(--azul-900); }
.breadcrumb-sep { color: var(--border-hover); }

.footer {
  background: var(--azul-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.footer-logo .ven  { color: rgba(255,255,255,0.9); }
.footer-logo .cert { color: var(--amarillo); }
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.75);
}
.footer-social { display: flex; gap: 0.6rem; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transicion);
  font-size: 0.9rem;
}
.social-link:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--azul-900);
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--fuente-mono);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: #ffffff; padding-left: 4px; }
.footer-links a i { font-size: 0.6rem; color: rgba(255,255,255,0.4); }
.footer-contact-item {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact-item i { color: rgba(255,255,255,0.6); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--amarillo); }
.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--fuente-mono);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--amarillo); }

.alerta-banner {
  background: var(--rojo);
  color: var(--bg-white);
  padding: 0.55rem 0;
  font-size: 0.82rem;
  font-family: var(--fuente-mono);
}
.alerta-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.alerta-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: var(--transicion);
}
.alerta-close:hover { color: var(--bg-white); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radio);
  font-family: var(--fuente);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transicion);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--azul-500);
  box-shadow: 0 0 0 3px var(--azul-100);
}
textarea { min-height: 130px; resize: vertical; }

.rich-text { color: var(--text-body); line-height: 1.75; }
.rich-text h2, .rich-text h3 { color: var(--text-dark); margin: 1.75rem 0 0.75rem; }
.rich-text p { color: var(--text-body); }
.rich-text ul, .rich-text ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-text li { margin-bottom: 0.4rem; }
.rich-text a { color: var(--azul-700); text-decoration: underline; }
.rich-text blockquote {
  border-left: 3px solid var(--amarillo);
  padding: 1rem 1.25rem;
  background: var(--bg-arena);
  margin: 1.5rem 0;
  border-radius: 0 var(--radio) var(--radio) 0;
  color: var(--text-body);
}
.rich-text code {
  background: var(--bg-gris);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-family: var(--fuente-mono);
  font-size: 0.85em;
  color: var(--azul-700);
}
.rich-text pre {
  background: var(--azul-900);
  color: #E2E8F0;
  border-radius: var(--radio);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.section-dark   { background: var(--bg-arena); }
.section-darker { background: var(--bg-gris); }
.section-card   { background: var(--bg-white); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-menu { display: none; flex-direction: column; }
  .navbar-menu.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0 1.25rem;
    box-shadow: var(--sombra);
    z-index: 999;
    width: 100%;
  }
  .navbar-menu.open > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .navbar-menu.open > li:last-child {
    border-bottom: none;
  }
  .navbar-menu > li > a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    display: block;
    font-size: 0.95rem;
  }
  .topbar { display: none; }
  .btn-alerta-nav { display: none; }
  .navbar-mobile-right { display: flex; }
  .logo-suscerte-nav { display: block; }
  .navbar-toggle { display: flex; }
  .navbar-search { display: none; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-arena);
    padding: 0.25rem 0 0.25rem 1rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, max-height 0.2s ease;
  }
  .dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
  }
  .hero-content { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
  .hero-status-cards { display: none; }
  .hero { min-height: auto; padding: 4rem 0 3rem; }
  .hero-buttons { flex-direction: column; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-padding { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .topbar .topbar-right { display: none; }
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
  .detail-grid aside {
    position: static !important;
    order: -1;
  }
}

.rich-text p.text-justify { text-align: justify; }
.rich-text p.text-left { text-align: left; }
.rich-text p.text-centre { text-align: center; }
.rich-text p.text-right { text-align: right; }
