/* Página /clima — layout profesional y SEO */

.clima-page {
  --clima-accent: #0284c7;
  --clima-accent-soft: #e0f2fe;
  --clima-violet: #7c3aed;
  --portal-rail-height: 2.75rem;
}

.clima-hero {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgb(186 230 253 / 0.8);
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 45%, #f0fdf4 100%);
  overflow: hidden;
}

.clima-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(56 189 248 / 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.clima-hero__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0369a1;
}

.clima-hero__title {
  margin-top: 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0c4a6e;
}

.clima-hero__subtitle {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  max-width: 42rem;
}

.clima-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: #64748b;
}

.clima-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #94a3b8;
}

.clima-breadcrumb a {
  color: #0369a1;
  text-decoration: none;
}

.clima-breadcrumb a:hover {
  text-decoration: underline;
}

.clima-intro-seo__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
}

.clima-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.clima-keywords li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0369a1;
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(186 230 253 / 0.9);
}

.clima-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .clima-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.clima-main-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* Sidebar más leídas */
.clima-sidebar__card {
  border-radius: 0.875rem;
  border: 1px solid rgb(231 229 228 / 0.9);
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .clima-sidebar {
    position: sticky;
    top: calc(var(--site-header-height, 8.25rem) + var(--portal-rail-height, 2.75rem) + 0.75rem);
    align-self: start;
    z-index: 10;
  }
}

.clima-sidebar__header {
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgb(245 245 244);
  background: linear-gradient(to right, #fff7ed, #fff);
}

.clima-sidebar__titulo {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.01em;
}

.clima-sidebar__sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #78716c;
  line-height: 1.4;
}

.clima-mas-leidas {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  counter-reset: none;
}

.clima-mas-leidas__link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.clima-mas-leidas__link:hover {
  background: rgb(245 245 244 / 0.8);
}

.clima-mas-leidas__link--hero {
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.clima-mas-leidas__hero .clima-mas-leidas__copy {
  padding: 0.75rem 1rem 0.85rem;
}

.clima-mas-leidas__hero {
  border-bottom: 1px solid rgb(245 245 244);
}

.clima-mas-leidas__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5f5f4;
}

.clima-mas-leidas__hero .clima-mas-leidas__rank {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
}

.clima-mas-leidas__hero .clima-mas-leidas__link--hero {
  position: relative;
}

.clima-mas-leidas__rank {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.clima-mas-leidas__titulo {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1c1917;
}

.clima-mas-leidas__link:hover .clima-mas-leidas__titulo {
  color: #0f766e;
}

.clima-mas-leidas__cat {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
}

.clima-mas-leidas__item {
  border-bottom: 1px solid rgb(245 245 244);
}

.clima-mas-leidas__item:last-child {
  border-bottom: none;
}

.clima-sidebar__cta {
  display: block;
  margin: 0.5rem 1rem 1rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  transition: background 0.15s;
}

.clima-sidebar__cta:hover {
  background: #ccfbf1;
}

.clima-sidebar__vacio {
  padding: 1rem 1.15rem;
  font-size: 0.8125rem;
  color: #78716c;
}

/* FAQ */
.clima-faq {
  padding: 1.5rem;
  border-radius: 0.875rem;
  border: 1px solid rgb(231 229 228 / 0.9);
  background: #fff;
}

.clima-faq__titulo {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #1c1917;
}

.clima-faq__item {
  border-bottom: 1px solid rgb(245 245 244);
}

.clima-faq__item:last-child {
  border-bottom: none;
}

.clima-faq__q {
  padding: 0.85rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #292524;
  cursor: pointer;
  list-style: none;
}

.clima-faq__q::-webkit-details-marker {
  display: none;
}

.clima-faq__q::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  margin-right: 0.35rem;
  font-weight: 400;
  color: #0d9488;
}

.clima-faq__item[open] .clima-faq__q::before {
  content: "−";
}

.clima-faq__a {
  margin: 0 0 0.85rem 1.6rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #57534e;
}

/* Enlaces internos */
.clima-enlaces {
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  background: rgb(248 250 252);
  border: 1px solid rgb(226 232 240);
}

.clima-enlaces__titulo {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.clima-enlaces__texto {
  margin: 0.35rem 0 1rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.clima-enlaces__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clima-enlaces__chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f766e;
  background: #fff;
  border: 1px solid #99f6e4;
  transition: background 0.15s, border-color 0.15s;
}

.clima-enlaces__chip:hover {
  background: #f0fdfa;
  border-color: #5eead4;
}
