/* =============================================================
   El Clima de Casa — hoja de estilos única
   Sin fuentes externas, sin animaciones, sin degradados.
   ============================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --accent: #1b4965;
  --accent-hover: #123449;
  --cta: #e8734a;
  --cta-hover: #d05f38;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --radius: 4px;
  --radius-lg: 6px;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --max-w: 1000px;
  --max-w-text: 740px;
  --gutter: 20px;
}

/* ── Reset y base ─────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cta); }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
h1, h2, h3, h4 { line-height: 1.3; color: #1f2937; font-weight: 700; }
h1 { font-size: 2rem; margin-bottom: .6em; }
h2 { font-size: 1.375rem; margin: 2em 0 .6em; }
h3 { font-size: 1.125rem; margin: 1.6em 0 .5em; }
h4 { font-size: 1rem; margin: 1.4em 0 .5em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow { max-width: var(--max-w-text); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-muted { color: var(--text-muted); }

/* ── Cabecera y navegación ────────────────────────────────── */

.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--accent);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo span { font-weight: 400; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links li { margin: 0; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta { color: var(--text-muted); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
}

.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  padding: .25rem var(--gutter) .75rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: .55rem 0;
  color: var(--text);
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: 0; }

.site-tagline {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.site-tagline p {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .7rem var(--gutter);
  font-size: .9rem;
  color: var(--text-muted);
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile, .nav-mobile.open { display: none; }
}

/* ── Botones ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: .6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-outline { background: none; color: var(--accent); }
.btn-outline:hover { background: var(--bg-soft); color: var(--accent); }

.btn-amazon { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-amazon:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }

.btn-lg { padding: .75rem 1.4rem; font-size: 1rem; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }
.btn-block { display: block; width: 100%; }

/* ── Cabecera de página / migas ───────────────────────────── */

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header h1 { margin-bottom: .4rem; }
.page-header p { color: var(--text-muted); max-width: var(--max-w-text); margin: 0; }

.breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 .35rem; color: var(--border-strong); }

.section-title {
  font-size: 1.375rem;
  margin: 0 0 .3rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0 0 1.75rem;
}

/* ── Portada ──────────────────────────────────────────────── */

.home-intro { padding: 2.5rem 0 .5rem; }
.home-intro h1 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin-bottom: .6rem;
}
.home-intro p {
  max-width: var(--max-w-text);
  font-size: 1.05rem;
  color: #3f4650;
}

.home-section { padding: 1.75rem 0; }
.home-section + .home-section { border-top: 1px solid var(--border); }

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.home-section-head h2 { margin: 0; font-size: 1.375rem; }
.home-section-head a { font-size: .85rem; }

/* Listado de guías (portada e índice) */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.guide-list li { margin: 0; }

.guide-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 .35rem;
  line-height: 1.35;
}
.guide-item h3 a { color: #1f2937; }
.guide-item h3 a:hover { color: var(--accent); }
.guide-item .article-meta { margin-bottom: .4rem; }
.guide-item p { margin: 0 0 .4rem; color: #4b5563; font-size: .97rem; }
.guide-item-link { font-size: .87rem; font-weight: 600; }

/* Lista de categorías */
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.cat-list li { margin: 0; }
.cat-list a { font-weight: 600; }
.cat-count { color: var(--text-muted); font-weight: 400; font-size: .9rem; }
.cat-soon { color: var(--text-muted); }
.cat-soon span { font-size: .85rem; }

@media (min-width: 700px) {
  .cat-list { grid-template-columns: repeat(2, 1fr); }
  .guide-list { gap: 2rem; }
}

/* ── Rejilla y tarjetas de producto ───────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card { display: flex; flex-direction: column; }

.product-card-img {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: .85rem;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.img-placeholder {
  color: var(--text-muted);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: rgba(255,255,255,.92);
  color: var(--text-muted);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-card-brand {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}

.product-card-name {
  font-size: 1.02rem;
  margin: 0 0 .45rem;
  line-height: 1.35;
}
.product-card-name a { color: #1f2937; }
.product-card-name a:hover { color: var(--accent); }

.product-card-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
}
.product-card-chip {
  font-size: .76rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .1rem .4rem;
}

.product-card-desc {
  font-size: .92rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: .6rem;
}

.product-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}

.price-block { display: flex; align-items: baseline; gap: .4rem; }
.price-current { font-weight: 700; font-size: 1.05rem; }
.price-original { color: var(--text-muted); text-decoration: line-through; font-size: .85rem; }
.price-note { font-size: .74rem; color: var(--text-muted); margin-top: .3rem; }

.stars { color: #b8860b; font-size: .88rem; white-space: nowrap; }
.stars svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }
.stars-count { color: var(--text-muted); font-size: .8rem; }

.recommendation-note {
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

/* ── Filtros de categoría ─────────────────────────────────── */

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  font-size: .87rem;
}
.filter-group { display: flex; align-items: center; gap: .4rem; }
.filter-group label { color: var(--text-muted); }
.filter-select {
  font: inherit;
  font-size: .87rem;
  padding: .3rem .45rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.results-count { color: var(--text-muted); margin-left: auto; }

/* ── Artículos y guías ────────────────────────────────────── */

.article, .guide, .legal { padding: 2.25rem 0 3rem; }

.article-content, .guide-content, .legal-content { max-width: var(--max-w-text); }

.article-header { margin-bottom: 1.75rem; }

.article h1, .guide h1, .legal h1 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: .5rem;
}

.article-meta { font-size: .82rem; color: var(--text-muted); }

.article-lead {
  font-size: 1.1rem;
  color: #3f4650;
  margin-bottom: 1.75rem;
}

.article-body h2, .guide-content h2, .legal-content h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2.2em 0 .6em;
}
.article-body h3, .guide-content h3, .legal-content h3 {
  font-size: 1.08rem;
  margin: 1.8em 0 .5em;
}
.article-body p, .guide-content p, .legal-content p { margin-bottom: 1.2em; }
.article-body ul, .article-body ol { margin-bottom: 1.4em; }
.article-body li { margin-bottom: .55em; }

.article-figure { margin: 1.75rem 0; }
.article-figure img {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1rem;
  object-fit: contain;
}
.article-figure figcaption {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

.article-note {
  border-left: 3px solid var(--border-strong);
  padding: .2rem 0 .2rem 1rem;
  margin: 1.75rem 0;
  color: #4b5563;
}

.guide-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
}
.guide-toc h3 { margin: 0 0 .5rem; font-size: .95rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; font-size: .93rem; }
.guide-toc li { margin-bottom: .3em; }

/* Bloque "productos mencionados" */
.mentioned {
  margin: 2.5rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.mentioned h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 0 0 1.1rem;
}
.mentioned-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .mentioned-grid { grid-template-columns: repeat(3, 1fr); }
}
.mentioned-card { display: flex; flex-direction: column; }
.mentioned-card .product-card-img { margin-bottom: .7rem; }
.mentioned-card h3 { font-size: .95rem; margin: 0 0 .3rem; line-height: 1.35; }
.mentioned-card h3 a { color: #1f2937; }
.mentioned-card h3 a:hover { color: var(--accent); }
.mentioned-card .price-current { font-size: .95rem; }
.mentioned-links { font-size: .85rem; margin-top: .35rem; }
.mentioned-links a + a { margin-left: .6rem; }

/* ── Ficha de producto ────────────────────────────────────── */

.ficha { padding: 2rem 0 3rem; }

.ficha-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .ficha-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.ficha-gallery {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ficha-main-img { width: 100%; max-height: 420px; object-fit: contain; }

.ficha-brand {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.ficha-info h1 { font-size: 1.7rem; margin-bottom: .5rem; }

.ficha-buy-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  margin: 1.1rem 0;
}
.ficha-buy-block .price-current { font-size: 1.5rem; }
.ficha-buy-block .btn { margin-top: .9rem; }

.ficha-ideal { font-size: .93rem; color: #4b5563; }
.ficha-ideal strong {
  display: block;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}

.radar-section, .spec-table-wrap, .editorial-section, .reviews-section, .similar-section {
  margin-bottom: 2.5rem;
}
.radar-section h2, .editorial-section h2 { font-size: 1.3rem; }

.radar-wrap { max-width: 420px; }
.radar-svg { width: 100%; height: auto; }
.radar-note { font-size: .8rem; color: var(--text-muted); }

.editorial-body { max-width: var(--max-w-text); }
.editorial-body p { margin-bottom: 1.15em; }

/* Tabla de especificaciones */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.spec-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.3rem;
  color: #1f2937;
  padding-bottom: .8rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th { font-weight: 400; color: var(--text-muted); width: 45%; }
.spec-table td { font-weight: 500; }
.spec-table .spec-group-header td {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-bool-yes { color: #15803d; }
.spec-bool-no { color: var(--text-muted); }

/* Pros y contras */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) { .pc-grid { grid-template-columns: 1fr 1fr; } }

.pc-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.pc-col h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .6rem;
  font-size: 1rem;
}
.pc-col ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.pc-col li { display: flex; gap: .5rem; margin-bottom: .45rem; line-height: 1.55; }
.pc-col.pros h3, .pc-col.pros li svg { color: #15803d; }
.pc-col.cons h3, .pc-col.cons li svg { color: #b91c1c; }
.pc-col li svg { margin-top: .35em; }

.reviews-section h3, .similar-section h3 { font-size: 1.1rem; }
.reviews-section p { color: #4b5563; max-width: var(--max-w-text); }

.similar-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

/* ── Comparador ───────────────────────────────────────────── */

.comparador { padding: 2.25rem 0 3rem; }

.compare-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.compare-slot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem;
  position: relative;
  text-align: center;
}
.compare-slot-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .6rem;
}
.compare-slot-img img { max-height: 110px; object-fit: contain; }
.compare-slot-name { font-size: .87rem; line-height: 1.4; }
.compare-add-select {
  font: inherit;
  font-size: .85rem;
  width: 100%;
  padding: .35rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
}
.remove-badge {
  position: absolute;
  top: .3rem;
  right: .4rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  padding: .1rem .3rem;
}
.remove-badge:hover { color: var(--cta); }

.compare-radar-wrap {
  max-width: 420px;
  margin: 0 auto 2rem;
  text-align: center;
}
.compare-radar-svg { width: 100%; height: auto; }
.compare-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  font-size: .84rem;
  color: var(--text-muted);
}
.compare-radar-legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.compare-legend-swatch { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
.compare-table th, .compare-table td {
  padding: .6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.compare-table thead th {
  font-size: .88rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-strong);
}
.compare-table tbody td:first-child { color: var(--text-muted); }
.compare-table .spec-group-row td {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare-table .best-value { font-weight: 700; color: #15803d; }

/* ── Pie ──────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2.25rem 0 2rem;
  margin-top: 3rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.footer-nav li { margin: 0; }

.footer-links { list-style: none; padding: 0; margin: 0; }

.affiliate-notice {
  max-width: var(--max-w-text);
  font-size: .82rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.footer-bottom { font-size: .8rem; }
.footer-bottom p { margin: 0; }

/* ── Impresión ────────────────────────────────────────────── */

@media print {
  .nav, .nav-mobile, .site-tagline, .footer, .filters-bar { display: none; }
  body { font-size: 12pt; }
}
