/* ArJardines — Sistema de diseño v2 */
/* Paleta: verdes naturales · madera · atardecer terracota */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&display=swap');

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

:root {
  /* Verdes naturales */
  --verde: #4e7c5f;
  --verde-oscuro: #2d5a3d;
  --verde-claro: #edf3ee;
  --verde-hover: #3d6b4f;

  /* Atardecer / terracota (acento principal) */
  --naranja: #c8633a;
  --naranja-oscuro: #a84f2d;
  --naranja-claro: #fdf1ea;

  /* Tierra y madera */
  --tierra: #9c7b5a;
  --tierra-clara: #f7f1e8;
  --tierra-borde: #e8ddd0;

  /* Neutros cálidos */
  --fondo: #f9f8f5;
  --blanco: #ffffff;
  --gris-texto: #1e2a1f;
  --gris-medio: #5c6b5d;
  --gris-suave: #f3f4f0;
  --gris-borde: #e5e8e3;

  --max-width: 860px;
  --radius: 10px;
  --radius-sm: 6px;
  --sombra: 0 1px 4px rgba(30,42,31,.07), 0 4px 16px rgba(30,42,31,.06);
  --sombra-hover: 0 4px 20px rgba(30,42,31,.13);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--gris-texto);
  background: var(--fondo);
  line-height: 1.7;
  font-size: 1rem;
}

h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem) !important; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem) !important; }

a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--verde-oscuro); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ──── HEADER ──── */
header {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(30,42,31,.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--verde-oscuro);
  line-height: 1;
}
.logo span { color: var(--naranja); }
.logo:hover { text-decoration: none; }

nav { display: flex; gap: 1.75rem; }
nav a {
  color: var(--gris-medio);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--verde-oscuro); text-decoration: none; border-bottom-color: var(--verde); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gris-texto); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ──── FOOTER ──── */
footer {
  background: #182318;
  color: #7a8c7b;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 0.6rem; color: #c8dac9; }
.footer-brand .logo span { color: var(--naranja); }
.footer-brand p { font-size: 0.85rem; color: #5e6e5f; line-height: 1.55; }
.footer-links h4 {
  color: #c8dac9;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: #5e6e5f; font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: #c8dac9; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #2a3a2b;
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: #3f4f40;
}

/* ──── UTILIDADES ──── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--gris-texto); margin-bottom: 0.35rem; letter-spacing: -0.3px; }
.section-sub { color: var(--gris-medio); margin-bottom: 2rem; font-size: 0.95rem; }
.bg-gris { background: var(--gris-suave); }
.bg-tierra { background: var(--tierra-clara); }

/* ──── BOTONES ──── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.1px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--naranja);
  color: var(--blanco);
  box-shadow: 0 2px 8px rgba(200,99,58,.25);
}
.btn-primary:hover {
  background: var(--naranja-oscuro);
  text-decoration: none;
  color: var(--blanco);
  box-shadow: 0 4px 14px rgba(200,99,58,.35);
}
.btn-outline {
  background: transparent;
  color: var(--verde);
  border: 1.5px solid var(--verde);
}
.btn-outline:hover {
  background: var(--verde);
  color: var(--blanco);
  text-decoration: none;
}

/* ──── TAGS / BADGES ──── */
.tag {
  display: inline-block;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ──── RESPONSIVE ──── */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-borde);
    box-shadow: 0 4px 12px rgba(30,42,31,.1);
    padding: 0.5rem 0;
  }
  nav.open { display: flex; }
  nav a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--gris-borde);
    color: var(--gris-texto);
  }
  nav a:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════
   COLUMNA ÚNICA — override global (sobre estilos inline)
   ═══════════════════════════════════════════════════ */

/* Eliminar el grid de 2 columnas en todas las páginas */
.content-layout { display: block !important; }

/* Ocultar sidebar universalmente */
.sidebar,
aside.sidebar { display: none !important; }

/* Artículo centrado con ancho de lectura óptimo */
.article-body,
.article-main {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 1px 16px rgba(30,42,31,.05);
}

/* main-wrap (páginas depósito y similares) */
.main-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════
   RITMO VISUAL DENTRO DE ARTÍCULOS
   Alternancia tonal en bloques semánticos existentes
   (sin tocar el HTML)
   ═══════════════════════════════════════════════════ */

/* Tono 1 — Verde muy claro: secciones de inicio e info */
.intro-destacado {
  background: var(--verde-claro) !important;
  border-left: 3px solid var(--verde) !important;
  border-radius: var(--radius-sm) !important;
  padding: 1.35rem 1.5rem !important;
  margin-bottom: 2rem;
}

/* Tono 2 — Tierra clara: calls to action y destacados cálidos */
.cta-inline {
  background: var(--tierra-clara) !important;
  border-color: var(--tierra-borde) !important;
  border-radius: var(--radius) !important;
}

.cta-veredicto,
.veredicto-box {
  background: var(--tierra-clara) !important;
  border-color: var(--tierra-borde) !important;
}

/* Tono 3 — Gris suave: fichas técnicas y tablas de datos */
.ficha-tecnica {
  background: var(--gris-suave) !important;
}

/* Tono 4 — Verde claro: FAQ (cierre de artículo) */
.faq-section,
section.faq-section {
  background: var(--verde-claro) !important;
  padding: 1.75rem 1.5rem !important;
  border-radius: var(--radius) !important;
  margin: 2.5rem 0 !important;
}

/* Veredicto verde fuerte — preservado */
.veredicto { /* ya tiene background: var(--verde) en inline CSS */ }

/* Bloque de comparación — tono gris */
.comparison-table-wrap,
.tabla-comparativa { background: var(--gris-suave); padding: 1.5rem; border-radius: var(--radius); }

/* Firma al pie */
.firma {
  background: transparent !important;
  border-top: 1px solid var(--gris-borde) !important;
  padding-top: 1.5rem !important;
  margin-top: 2.5rem !important;
}

/* ═══════════════════════════════════════════════════
   AJUSTES RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .article-body,
  .article-main {
    padding: 1.25rem 1rem;
    border-radius: 0;
    box-shadow: none;
  }
  .faq-section,
  section.faq-section {
    border-radius: 0 !important;
    padding: 1.25rem 1rem !important;
  }
  .cta-inline {
    border-radius: 0 !important;
  }
  .main-wrap {
    padding: 0 0.75rem;
  }
}
