:root {
  --primary: #3877bd;
  --primary-dark: #0a4689;
  --bg-page: #f5f5f5;
  --bg-soft: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1100px;
}

/* GENERAL / RESET */
body, .container, main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scope */
.st-landing * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.st-landing {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
  width: 100%;
}

.st-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* HEADER (come pagina precedente) */
header, .st-header-inner {
  justify-content: space-between !important;
}

.st-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.st-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.st-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: auto !important;
}

.st-nav a {
  position: relative;
  padding-bottom: 2px;
}

.st-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-dark);
  transition: width 0.25s ease;
}

.st-nav a:hover::after {
  width: 100%;
}

/* BANNER TITOLO PAGINA */
.st-page-banner {
  background: linear-gradient(135deg, #0a4689, #3877bd);
  color: #f9fafb;
  padding: 40px 0 46px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.35);
  margin-bottom: 32px;
}

.st-page-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.st-page-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.st-page-banner h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.st-page-banner p {
  max-width: 640px;
  font-size: 0.98rem;
  color: #e5edf9;
}

/* LAYOUT CONTENUTO + INDICE */
.st-page-layout {
  padding: 32px 0 56px;
}

.st-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

/* Indice */
.st-page-toc {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  position: sticky;
  top: 96px;
}

.st-page-toc h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 10px;
}

.st-page-toc ol {
  list-style: none;
}

.st-page-toc li + li {
  margin-top: 6px;
}

.st-page-toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 6px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.st-page-toc a:hover {
  background: #eff6ff;
  color: var(--primary-dark);
  padding-left: 10px;
}


/* Articolo */
.st-article {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.st-article section + section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.st-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.st-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.st-article p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.st-article ul,
.st-article ol {
  margin: 6px 0 10px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.st-article li + li {
  margin-top: 4px;
}

.st-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}



/* FOOTER MINIMALE */
.st-footer-bottom {
  background: #0b1220;
  padding: 16px 0 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

.st-footer-bottom span {
  margin: 0 4px;
}

/* FOOTER CUSTOM SECTION */
/* Encapsulamos todo bajo .footer-custom-section para no afectar el resto de la web */
.footer-custom-section {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 1. Fondo oscuro con imagen y degradado */
.footer-custom-section .footer-cta {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-image: linear-gradient(
      90deg, 
      rgba(22, 29, 41, 0.95) 0%,   /* Fondo oscuro a la izquierda */
      rgba(22, 29, 41, 0.65) 100%  /* Más transparente sobre la laptop */
    ), 
    url('/img/manicomputerfooter.avif');   /* Ruta relativa limpia a tu imagen */
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Contenido interior */
.footer-custom-section .footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* Textos en blanco y gris claro */
.footer-custom-section .footer-title {
  color: #ffffff !important;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px 0;
}


.footer-custom-section .footer-description {
  color: #cbd5e1 !important;
  font-size: 15px;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 0 28px 0;
}

/* Formulario de suscripción */
.footer-custom-section .footer-form {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 700px;
}

.footer-custom-section .footer-form > div {
  flex: 0 0 100%;
}

.footer-custom-section .footer-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
}

.footer-custom-section .footer-input::placeholder {
  color: #94a3b8;
}

.footer-custom-section .footer-button {
  background-color: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


/* 2. Barra inferior de Copyright */
.footer-custom-section .footer-bottom {
  background-color: #0b111a;
  padding: 18px 20px;
  text-align: center;
  font-size: 12px;
  color: #8c9ba5;
}

.footer-custom-section .footer-bottom p {
  margin: 0 0 8px 0;
}

.footer-custom-section .footer-links a {
  color: #8c9ba5;
  text-decoration: none;
  margin: 0 6px;
}

.footer-custom-section .footer-links a:hover {
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .st-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-page-toc {
    position: static;
    top: auto;
    order: -1;
  }
}

@media (max-width: 640px) {
  .st-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .st-nav {
    font-size: 0.9rem;
    gap: 16px;
    flex-wrap: wrap;
  }
  .st-page-banner {
    padding: 28px 0 32px;
  }
  .st-article {
    padding: 20px 18px 24px;
  }
}

/* ==========================================
   HEADER Y MENÚ HAMBURGUESA RESPONSIVE
   ========================================== */

/* Estructura base del Header */
.st-header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  position: relative;
}

.st-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* Menú de navegación en escritorio */
.st-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: auto;
}

.st-nav a {
  position: relative;
  padding-bottom: 2px;
  color: inherit;
  text-decoration: none;
}

.st-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-dark, #0a4689);
  transition: width 0.25s ease;
}

.st-nav a:hover::after {
  width: 100%;
}

/* Botón Hamburguesa (oculto en pantallas grandes) */
.st-burger-toggle {
  display: none;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.st-burger-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary-dark, #0a4689);
  border-radius: 2px;
}

/* ==========================================
   ADAPTACIÓN PARA MÓVILES Y TABLETS (< 768px)
   ========================================== */
@media (max-width: 767px) {
  /* Forzar que logo y botón estén alineados en la misma fila horizontal */
  .st-header-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Mostrar el botón hamburguesa */
  .st-burger-toggle {
    display: flex !important;
  }

  /* Ocultar el menú horizontal y convertirlo en menú desplegable */
  .st-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-top: 1px solid #eaeaea !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    z-index: 999 !important;
  }

  /* Clase que activa el menú desplegable desde el JS onclick */
  .st-nav.active {
    display: flex !important;
  }

  .st-nav a {
    padding: 12px 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  .st-nav a:last-child {
    border-bottom: none !important;
  }
}
/* Resetear el alineamiento de la tarjeta a la izquierda */
.st-card {
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

/* Quitar absolute y fijarlo a la izquierda */
.st-card-number {
  position: static !important;
  transform: none !important;
  margin-bottom: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.st-card h3 {
  margin-top: 0 !important;
  text-align: left !important;
}
/* Alineación horizontal del número y título */
.st-article-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.st-article-header h2 {
  margin-bottom: 0 !important; /* Quita el margen inferior predeterminado del título */
}

.st-badge {
  margin-bottom: 0 !important; /* Asegura alineación con el texto */
  flex-shrink: 0 !important;    /* Evita que la pídora con el número se deforme */
}
