@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --verde: #006847;
  --verde-oscuro: #004D35;
  --verde-palido: #E6F4EE;
  --verde-sutil: #F0FAF5;
  --rojo: #CE1126;
  --rojo-palido: #FEF2F2;
  --ambar: #D97706;
  --ambar-palido: #FFFBEB;
  --texto: #111827;
  --texto-muted: #6B7280;
  --borde: #E5E7EB;
  --fondo-alt: #F9FAFB;
  --fondo: #FFFFFF;
  --azul: #1D4ED8;
  --max-w: 1160px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --sombra-sm: 0 1px 3px rgba(0,104,71,.08);
  --sombra-md: 0 4px 12px rgba(0,104,71,.14);
}

/* =================== RESET =================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--verde);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

ul, ol {
  padding-left: 1.5rem;
}

strong, b {
  font-weight: 700;
}

/* =================== LAYOUT =================== */
.contenedor {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.seccion {
  padding: clamp(40px, 7vw, 80px) 0;
}

.seccion-alt {
  background: var(--fondo-alt);
}

.seccion-verde {
  background: var(--verde);
  color: #fff;
}

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-2col {
    grid-template-columns: 1fr;
  }
}

/* =================== DISCLAIMER BAR =================== */
.barra-aviso {
  background: var(--rojo);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: .82rem;
  line-height: 1.5;
}

.barra-aviso a {
  color: #FFD700;
  font-weight: 600;
}

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

/* =================== HEADER =================== */
.site-header {
  background: var(--fondo);
  border-bottom: 3px solid var(--verde);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 40px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-link {
  text-decoration: none !important;
}

.logo-texto {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--verde);
  letter-spacing: -.02em;
}

.logo-texto span {
  color: var(--rojo);
  font-weight: 400;
}

.nav-principal ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.nav-principal a {
  color: var(--texto);
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: all .18s;
  display: block;
}

.nav-principal a:hover {
  background: var(--verde-palido);
  color: var(--verde);
  text-decoration: none;
}

.nav-principal a.nav-disclaimer {
  color: var(--rojo);
  font-size: .82rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: all .25s;
}

@media (max-width: 767px) {
  .nav-principal {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--fondo);
    padding: 16px;
    border-top: 1px solid var(--borde);
    box-shadow: var(--sombra-md);
    z-index: 99;
  }

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

  .nav-principal ul {
    flex-direction: column;
    gap: 2px;
  }

  .nav-principal a {
    padding: 12px 16px;
    border-radius: var(--r-sm);
  }

  .nav-toggle {
    display: flex;
  }
}

/* =================== BREADCRUMB =================== */
.breadcrumb {
  padding: 14px 0;
  font-size: .82rem;
  color: var(--texto-muted);
}

.breadcrumb a {
  color: var(--texto-muted);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--verde);
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--borde);
}

/* =================== HERO =================== */
.hero {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.02);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero h1 em {
  font-style: italic;
  color: #FFD700;
}

.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-hero-primary {
  background: #FFD700;
  color: var(--verde-oscuro);
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .95rem;
  text-decoration: none !important;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-hero-primary:hover {
  background: #ffe940;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-hero-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,.3);
  font-family: inherit;
  font-size: .95rem;
  text-decoration: none !important;
  transition: all .2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-1px);
  text-decoration: none;
}

/* =================== PAGE HERO (interior) =================== */
.page-hero {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  color: #fff;
  padding: clamp(32px, 5vw, 56px) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-hero h1 em {
  font-style: italic;
  color: #FFD700;
}

.page-hero-desc {
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.82);
  max-width: 600px;
  line-height: 1.7;
}

/* =================== CONTENT TYPOGRAPHY =================== */
.contenido h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--verde);
  margin: 2.2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--verde-palido);
}

.contenido h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--texto);
  margin: 1.5rem 0 .7rem;
}

.contenido ul, .contenido ol {
  margin-bottom: 1rem;
}

.contenido li {
  margin-bottom: .4rem;
}

.contenido a {
  color: var(--verde);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--verde-palido);
  text-underline-offset: 3px;
}

.contenido a:hover {
  text-decoration-color: var(--verde);
}

/* =================== RESPUESTA DIRECTA =================== */
.respuesta-directa {
  background: var(--verde-sutil);
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.respuesta-directa p {
  margin: 0;
}

.respuesta-directa strong {
  color: var(--verde);
}

/* =================== STEPS / HOWTO =================== */
.steps-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--borde);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-contenido h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 6px;
  margin-top: 0;
}

.step-contenido p {
  font-size: .9rem;
  color: var(--texto-muted);
  margin: 0;
  line-height: 1.65;
}

.step-nota {
  font-size: .82rem;
  background: var(--verde-sutil);
  border-left: 3px solid var(--verde);
  padding: 8px 12px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 8px;
  color: var(--verde-oscuro);
  line-height: 1.5;
}

/* =================== SELECTOR DE MÉTODO =================== */
.selector-metodo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  margin: 24px 0;
}

.metodo-btn {
  border: 2px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 16px;
  cursor: pointer;
  background: var(--fondo);
  text-align: center;
  transition: all .2s;
}

.metodo-btn:hover {
  border-color: var(--verde);
  background: var(--verde-sutil);
}

.metodo-btn.activo {
  border-color: var(--verde);
  background: var(--verde-palido);
  box-shadow: 0 0 0 3px rgba(0,104,71,.1);
}

.metodo-icono {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.metodo-titulo {
  font-size: .9rem;
  font-weight: 600;
  color: var(--texto);
}

.metodo-desc {
  font-size: .78rem;
  color: var(--texto-muted);
  margin-top: 4px;
}

.metodo-contenido {
  display: none;
  margin-top: 24px;
  animation: fadeIn .3s ease;
}

.metodo-contenido.activo {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================== ALERTS =================== */
.alert {
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: .9rem;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.65;
}

.alert-icono {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.alert-verde {
  background: var(--verde-palido);
  border-left: 4px solid var(--verde);
  color: var(--verde-oscuro);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.alert-rojo {
  background: var(--rojo-palido);
  border-left: 4px solid var(--rojo);
  color: #7F1D1D;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.alert-ambar {
  background: var(--ambar-palido);
  border-left: 4px solid var(--ambar);
  color: #78350F;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* =================== CARDS =================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sombra-sm);
  transition: all .25s;
}

.card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-3px);
  border-color: var(--verde);
}

.card-icono {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.card p {
  font-size: .88rem;
  color: var(--texto-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--verde);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  text-decoration: none;
  gap: 8px;
}

/* =================== TABLA COMPARATIVA =================== */
.tabla-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--borde);
}

.tabla-guia {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.tabla-guia th {
  background: var(--verde);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tabla-guia td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde);
  vertical-align: top;
  line-height: 1.6;
}

.tabla-guia tr:nth-child(even) td {
  background: var(--fondo-alt);
}

.tabla-guia tr:last-child td {
  border-bottom: none;
}

.tabla-guia .col-label {
  font-weight: 600;
  color: var(--texto);
  white-space: nowrap;
}

/* =================== FAQ ACORDEÓN =================== */
.faq-lista {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--borde);
}

.faq-item:first-child {
  border-top: 1px solid var(--borde);
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  color: var(--texto);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
  transition: color .15s;
}

.faq-btn:hover {
  color: var(--verde);
}

.faq-btn::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--verde);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item.abierto .faq-btn::after {
  content: '−';
}

.faq-respuesta {
  display: none;
  padding: 0 0 18px;
  font-size: .92rem;
  color: var(--texto-muted);
  line-height: 1.8;
}

.faq-item.abierto .faq-respuesta {
  display: block;
  animation: fadeIn .25s ease;
}

/* =================== SIDEBAR =================== */
.sticky-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-box {
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 20px;
}

.sidebar-box.verde {
  background: var(--verde);
  border-color: transparent;
}

.sidebar-box h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texto-muted);
  margin-bottom: 12px;
}

.sidebar-box.verde h4 {
  color: rgba(255,255,255,.6);
}

.sidebar-box.verde p {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-links a {
  font-size: .85rem;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  transition: all .15s;
}

.sidebar-links a:hover {
  background: var(--verde-palido);
  color: var(--verde);
  text-decoration: none;
}

.sidebar-links a::before {
  content: '→';
  color: var(--verde);
  font-size: .8rem;
  flex-shrink: 0;
}

.sidebar-box.verde .sidebar-links a {
  color: rgba(255,255,255,.8);
}

.sidebar-box.verde .sidebar-links a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.sidebar-box.verde .sidebar-links a::before {
  color: #FFD700;
}

.btn-sat {
  display: block;
  background: #FFD700;
  color: var(--verde-oscuro);
  text-align: center;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .9rem;
  margin-top: 12px;
  transition: all .2s;
}

.btn-sat:hover {
  background: #ffe940;
  text-decoration: none;
  transform: translateY(-1px);
}

/* =================== FOOTER =================== */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.65);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li a {
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}

.footer-col li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--rojo);
}

.footer-desc {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a {
  color: rgba(255,255,255,.5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* =================== BADGES =================== */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 99px;
}

.badge-verde {
  background: var(--verde-palido);
  color: var(--verde);
}

.badge-rojo {
  background: var(--rojo-palido);
  color: var(--rojo);
}

.badge-ambar {
  background: var(--ambar-palido);
  color: var(--ambar);
}

/* =================== BOTONES GENERALES =================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
}

.btn-verde {
  background: var(--verde);
  color: #fff;
}

.btn-verde:hover {
  background: var(--verde-oscuro);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
}

.btn-outline:hover {
  background: var(--verde);
  color: #fff;
}

/* =================== LISTA CHECKS =================== */
.check-lista {
  list-style: none;
  padding: 0;
}

.check-lista li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  font-size: .92rem;
  line-height: 1.6;
}

.check-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--verde);
  font-weight: 700;
  font-size: .9rem;
}

/* =================== ÚLTIMA ACTUALIZACIÓN =================== */
.fecha-actualizacion {
  font-size: .8rem;
  color: var(--texto-muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--borde);
}

/* =================== UTILIDADES =================== */
.text-center { text-align: center; }
.text-muted { color: var(--texto-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* =================== ENLACE INTERNO DESTACADO =================== */
.enlace-interno {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--verde-sutil);
  border: 1px solid var(--verde-palido);
  border-radius: var(--r-md);
  margin: 16px 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--verde);
  transition: all .2s;
}

.enlace-interno:hover {
  background: var(--verde-palido);
  text-decoration: none;
  transform: translateX(4px);
}

.enlace-interno::before {
  content: '📄';
  font-size: 1.1rem;
}

/* =================== PRINT =================== */
@media print {
  .barra-aviso, .site-header, .nav-toggle, .site-footer, .sticky-sidebar {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
}
