/* Blog de MC Piscinas y Terrazas: HTML plano con la ropa del sitio (misma paleta y fuentes).
   Los valores salen de src/index.css y tailwind.config.ts; si cambia la paleta, cambia acá también. */
:root {
  --fondo: hsl(200 20% 98%);
  --texto: hsl(200 25% 10%);
  --tarjeta: hsl(0 0% 100%);
  --secundario: hsl(200 15% 94%);
  --primario: hsl(197 71% 31%);
  --primario-texto: hsl(0 0% 100%);
  --apagado: hsl(200 10% 38%);
  --borde: hsl(200 15% 88%);
  --pool-deep: hsl(197 71% 15%);
  --pool-light: hsl(190 60% 70%);
  --pool-foam: hsl(190 40% 95%);
  --dorado: hsl(42 90% 55%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; }
a { color: var(--primario); }
img { max-width: 100%; height: auto; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 50; background: hsl(200 20% 98% / 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--borde); }
.barra-in { max-width: 80rem; margin: 0 auto; padding: 0 1rem; height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--texto); }
.marca img { width: auto; height: 48px; }
.marca-texto { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.1rem; }
.barra-nav { display: none; align-items: center; gap: 2rem; }
.barra-nav a:not(.boton), .barra-menu nav a:not(.boton) { color: var(--texto); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; }
.barra-nav a:not(.boton):hover, .barra-nav a[aria-current] { color: var(--primario); }
.boton { display: inline-block; background: var(--primario); color: var(--primario-texto) !important; padding: 0.65rem 1.4rem; border-radius: 0.6rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; box-shadow: 0 10px 40px -12px hsl(197 71% 33% / 0.25); }
.boton:hover { opacity: 0.9; }
.boton-linea { background: transparent; color: var(--texto) !important; border: 1px solid var(--borde); box-shadow: none; }
.barra-menu summary { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; }
.barra-menu summary::-webkit-details-marker { display: none; }
.barra-menu summary span, .barra-menu summary span::before, .barra-menu summary span::after { display: block; width: 22px; height: 2px; background: var(--texto); content: ""; position: relative; }
.barra-menu summary span::before { position: absolute; top: -7px; }
.barra-menu summary span::after { position: absolute; top: 7px; }
.barra-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: hsl(200 20% 98% / 0.97); border-bottom: 1px solid var(--borde); padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.barra-menu nav a:not(.boton) { font-size: 1.05rem; }
.barra-menu nav .boton { text-align: center; }
@media (min-width: 768px) {
  .barra-nav { display: flex; }
  .barra-menu { display: none; }
}
@media (max-width: 420px) { .marca-texto { font-size: 0.95rem; } }

/* Contenido */
.contenedor { max-width: 52rem; margin: 0 auto; padding: 3.5rem 1rem 4.5rem; }
.rotulo { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primario); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 0 0 1rem; }
.bajada { color: var(--apagado); max-width: 38rem; margin: 0 0 2.5rem; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.tarjeta { display: grid; gap: 1.25rem; padding: 1.25rem; text-decoration: none; color: inherit; background: var(--tarjeta); border-radius: 1.25rem; box-shadow: 0 1px 2px hsl(205 50% 10% / 0.06); transition: box-shadow 0.3s, transform 0.3s; }
.tarjeta:hover { box-shadow: 0 10px 40px -12px hsl(197 71% 33% / 0.25); transform: translateY(-2px); }
.tarjeta img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 0.9rem; }
.tarjeta h2 { font-size: 1.5rem; margin: 0.4rem 0 0.6rem; font-weight: 700; }
.tarjeta:hover h2 { color: var(--primario); }
.tarjeta p { margin: 0 0 0.75rem; color: var(--apagado); }
.mas { font-size: 0.875rem; font-weight: 600; color: var(--primario); }
time { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--apagado); }
@media (min-width: 720px) { .tarjeta { grid-template-columns: 260px 1fr; align-items: start; } }

/* Paginador bajo el listado: «← Más nuevos / 1 2 3 / Anteriores →». */
.paginador { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-size: 0.875rem; font-weight: 600; }
.paginador-numeros { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.paginador-numero, .paginador-paso { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; text-decoration: none; }
.paginador-numero { min-width: 44px; color: var(--texto); background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 9999px; transition: border-color 0.2s, color 0.2s; }
a.paginador-numero:hover { border-color: var(--primario); color: var(--primario); }
.paginador-numero.actual { background: var(--primario); border-color: transparent; color: var(--primario-texto); }
.paginador-paso { color: var(--primario); padding: 0 0.25rem; }
a.paginador-paso:hover { opacity: 0.75; }
.paginador-paso.apagado { color: var(--apagado); opacity: 0.45; }
@media (max-width: 559px) { .paginador { flex-wrap: wrap; } .paginador-numeros { order: -1; width: 100%; } }

.articulo .volver { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none; }
.articulo h1 { margin-top: 1.25rem; }
.portada { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 2rem 0 0; border-radius: 1.25rem; }
.articulo-blog { margin-top: 2rem; font-size: 1.0625rem; }
.articulo-blog h2 { font-size: 1.65rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.articulo-blog p { margin: 0 0 1.1rem; }
.articulo-blog ul, .articulo-blog ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.articulo-blog li { margin-bottom: 0.5rem; }
.articulo-blog li::marker { color: var(--primario); }
.articulo-blog strong { font-weight: 700; }
.articulo-blog blockquote { margin: 1.5rem 0; padding: 0.25rem 1.25rem; border-left: 3px solid var(--borde); color: var(--apagado); }
.foto-articulo { margin: 1.75rem 0; }
.foto-articulo img { border-radius: 1rem; }
.foto-articulo figcaption { font-size: 0.85rem; color: var(--apagado); margin-top: 0.5rem; }

/* Recuadros: «En corto», «Ojo», «Consejo» y «Ejemplo». */
.recuadro { margin: 1.75rem 0; padding: 1.1rem 1.4rem 0.4rem; border: 1px solid var(--borde); border-left-width: 4px; border-radius: 1rem; background: var(--tarjeta); }
.recuadro-rotulo { margin: 0 0 0.5rem !important; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.recuadro ul { margin-bottom: 0.9rem; }
.recuadro-en-corto { background: var(--pool-foam); border-color: hsl(190 50% 85%); border-left-color: var(--primario); }
.recuadro-en-corto .recuadro-rotulo { color: var(--pool-deep); }
.recuadro-ojo { background: hsl(38 80% 96%); border-color: hsl(38 60% 82%); border-left-color: var(--dorado); }
.recuadro-ojo .recuadro-rotulo { color: hsl(30 70% 32%); }
.recuadro-consejo { background: var(--secundario); border-left-color: var(--pool-deep); }
.recuadro-consejo .recuadro-rotulo { color: var(--pool-deep); }
.recuadro-ejemplo { background: var(--fondo); border-style: dashed; border-left-style: solid; border-left-color: var(--primario); }
.recuadro-ejemplo .recuadro-rotulo { color: var(--primario); }

.cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Pie: oscuro como el de la portada. */
.pie { background: var(--texto); color: hsl(200 15% 75%); margin-top: 1rem; }
.pie-in { max-width: 80rem; margin: 0 auto; padding: 2.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.pie-marca { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
.pie-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.pie a { color: hsl(200 15% 75%); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.pie a:hover { color: var(--dorado); }
@media (min-width: 768px) { .pie-in { flex-direction: row; justify-content: space-between; text-align: left; } }
/* El pie de Omnis, con sus colores propios: slate-600 sobre blanco (7,58:1). */
.pie-omnis { background: #fff; border-top: 1px solid rgb(0 0 0 / 0.05); padding: 0.75rem 1.5rem; text-align: center; }
.pie-omnis a { color: #475569; font-size: 0.75rem; font-weight: 500; text-decoration: none; }
.pie-omnis a:hover { color: #0f172a; }
