: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;
}

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

.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%;
}

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

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

/* HEADER */
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-header > .st-container.st-header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.st-header .st-container {
  width: 100% !important;
}

.st-header .st-logo {
  margin-right: auto !important;
}

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

.st-header .st-nav {
  margin-left: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.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 FAQ */
.st-faq-layout {
  padding: 32px 0 56px;
}

.st-faq-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.st-faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-faq-item {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.st-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.st-faq-question span.st-faq-label {
  flex: 1 1 auto;
  padding-right: 16px;
}


.st-faq-icon {
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--primary-dark);
  transition: transform 0.2s ease;
}

.st-faq-item.open .st-faq-icon {
  transform: rotate(90deg);
}

.st-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  transition: max-height 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
}

.st-faq-item.open .st-faq-answer {
  padding-top: 10px;
  padding-bottom: 16px;
}

.st-faq-answer p,
.st-faq-answer ul {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.st-faq-answer ul {
  padding-left: 18px;
  margin-top: 4px;
}

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

/* FOOTER CUSTOM SECTION */
.footer-custom-section {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.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%,
      rgba(22, 29, 41, 0.65) 100%
    ), 
    url('/img/manicomputerfooter.avif');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

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

.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;
}

.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;
}

.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;
}

/* FOOTER MINIMALE DE SISI TARIFFE */
.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;
}

.st-footer-bottom a {
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* MEDIA QUERIES RESPONSIVE */
@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-faq-question {
    padding: 14px 16px;
  }

  .st-faq-answer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================
   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;
  }
}
