/* ============================================================
   southtonorth.com — hoja de estilos principal
   Paleta: azul profundo (confianza) + dorado sol (esperanza)
   ============================================================ */

:root {
  --azul-900: #0d2b45;
  --azul-700: #14486e;
  --azul-500: #1f6fa8;
  --dorado: #f2b134;
  --dorado-suave: #fdeecb;
  --crema: #faf7f0;
  --blanco: #ffffff;
  --tinta: #22303c;
  --gris: #5b6b78;
  --verde: #2e7d5b;
  --rojo: #b3402e;
  --radio: 12px;
  --sombra: 0 2px 12px rgba(13, 43, 69, 0.10);
  --ancho-max: 1080px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: var(--crema);
  font-size: 1.0625rem;
}

.container {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--azul-900);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--blanco);
}

.section-intro {
  color: var(--gris);
  max-width: 46rem;
  margin-bottom: 2rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ ENCABEZADO ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--azul-900);
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blanco);
}

.brand-logo {
  width: 44px;
  height: 44px;
}

.brand-arrow {
  color: var(--dorado);
  padding: 0 0.1em;
}

.brand-domain {
  color: var(--dorado);
  font-weight: 400;
  font-size: 0.85em;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--blanco);
  font-weight: 600;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--dorado);
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ HÉROE ============ */
.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 177, 52, 0.25), transparent 45%),
    linear-gradient(160deg, var(--azul-900) 0%, var(--azul-700) 60%, var(--azul-500) 100%);
  color: var(--blanco);
  padding: 4.5rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--blanco);
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 44rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: #e6eef5;
}

.hero-lead strong {
  color: var(--dorado);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary {
  background: var(--dorado);
  color: var(--azul-900);
}

.btn-secondary {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

/* ============ AVISO ============ */
.notice {
  background: var(--dorado-suave);
  border-top: 4px solid var(--dorado);
  border-bottom: 1px solid #eadfc2;
  padding: 1.25rem 0;
  font-size: 0.97rem;
}

.notice p {
  max-width: 60rem;
}

/* ============ PREGUNTAS (acordeón) ============ */
.faq {
  background: var(--blanco);
  border: 1px solid #e3ded2;
  border-radius: var(--radio);
  margin-bottom: 0.9rem;
  box-shadow: var(--sombra);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--azul-900);
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--azul-500);
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  content: "−";
  color: var(--dorado);
}

.faq[open] summary {
  border-bottom: 1px solid #eee7d8;
  background: #fffdf7;
}

.faq-body {
  padding: 1.1rem 1.25rem 1.3rem;
}

.faq-body p + p,
.faq-body ul + p,
.faq-body p + ul {
  margin-top: 0.75rem;
}

.faq-body ul {
  list-style: disc;
  padding-left: 1.4rem;
}

.faq-body li + li {
  margin-top: 0.4rem;
}

.faq-body a {
  color: var(--azul-500);
  text-decoration: underline;
  font-weight: 600;
}

/* ============ MITOS ============ */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.myth-card {
  background: var(--crema);
  border: 1px solid #e3ded2;
  border-radius: var(--radio);
  padding: 1.4rem;
  box-shadow: var(--sombra);
}

.myth-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.myth-card p {
  font-size: 0.98rem;
}

.myth-card a {
  color: var(--azul-500);
  text-decoration: underline;
  font-weight: 600;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.tag-myth {
  background: var(--rojo);
  color: var(--blanco);
}

.tag-fact {
  background: var(--verde);
  color: var(--blanco);
}

/* ============ CIUDADANÍA ============ */
.req-list {
  counter-reset: req;
  max-width: 52rem;
  margin-bottom: 2rem;
}

.req-list li {
  counter-increment: req;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  background: var(--blanco);
  border: 1px solid #e3ded2;
  border-radius: var(--radio);
  margin-bottom: 0.7rem;
  box-shadow: var(--sombra);
}

.req-list li::before {
  content: counter(req);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--azul-700);
  color: var(--dorado);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box {
  background: var(--dorado-suave);
  border-left: 5px solid var(--dorado);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 1.3rem 1.5rem;
  max-width: 52rem;
}

.info-box h3 {
  margin-bottom: 0.5rem;
}

.info-box p + p {
  margin-top: 0.75rem;
}

.info-box a {
  color: var(--azul-500);
  text-decoration: underline;
  font-weight: 600;
}

/* ============ ENLACES ============ */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.link-group {
  background: var(--crema);
  border: 1px solid #e3ded2;
  border-radius: var(--radio);
  padding: 1.4rem;
  box-shadow: var(--sombra);
}

.link-group h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dorado);
}

.link-group li {
  margin-bottom: 0.7rem;
  font-size: 0.97rem;
}

.link-group a {
  color: var(--azul-500);
  font-weight: 700;
  text-decoration: underline;
}

.link-group a:hover {
  color: var(--azul-900);
}

/* ============ PIE DE PÁGINA ============ */
.site-footer {
  background: var(--azul-900);
  color: #c9d6e2;
  text-align: center;
  padding: 3rem 0 2rem;
}

.site-footer .container {
  max-width: 46rem;
}

.footer-logo {
  margin: 0 auto 0.75rem;
}

.footer-name {
  color: var(--dorado);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.site-footer p + p {
  margin-top: 0.75rem;
}

.site-footer strong {
  color: var(--blanco);
}

.footer-disclaimer {
  font-size: 0.88rem;
  color: #9db2c4;
}

.footer-copy {
  font-size: 0.85rem;
  color: #7f96aa;
  margin-top: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tabletas */
@media (max-width: 860px) {
  .section {
    padding: 2.75rem 0;
  }
}

/* Teléfonos */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.abierto {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.75rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    padding: 3rem 0;
  }

  .btn {
    width: 100%;
    max-width: 20rem;
    text-align: center;
  }

  .myth-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .req-list li {
    padding-left: 3rem;
  }
}

/* Pantallas grandes */
@media (min-width: 1400px) {
  body {
    font-size: 1.125rem;
  }
}

/* Preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav-toggle span,
  .site-nav a {
    transition: none;
  }
}
