﻿/* Cursor: estilos del paquete sgsst/articulos — tokens y chrome alineados con SSTek.html */
:root {
  --green: #00B56B;
  --green2: #008D55;
  --green3: #EAF8F1;
  --ink: #111827;
  --muted: #667085;
  --line: #E5E9E7;
  --soft: #F4F6F5;
  --soft2: #F8FAF9;
  --white: #fff;
  --shadow: 0 22px 70px rgba(18, 39, 29, .10);
  --shadow-sm: 0 10px 32px rgba(18, 39, 29, .07);
  /* Compatibilidad layouts legacy del paquete */
  --c-primary: var(--green2);
  --c-secondary: var(--green);
  --c-accent: var(--green);
  --c-bg: #fff;
  --c-text: var(--ink);
  --f-title: Poppins, system-ui, sans-serif;
  --f-body: Poppins, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container,
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* —— Header / nav (SSTek) —— */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 233, 231, .9);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 188px; height: 54px; object-fit: contain; }
.navlinks {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #475467;
}
.navlinks a:hover,
.navlinks a.is-active { color: var(--green2); }
.navright { display: flex; align-items: center; gap: 10px; }
.menuBtn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 181, 107, .20);
}
.btn-primary:hover { background: var(--green2); }
.btn-light {
  background: #fff;
  border-color: #D6DEDA;
  color: #344054;
}
.btn-light:hover { border-color: #AEBDB6; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .25);
  margin-top: 18px;
}
.btn-whatsapp:hover { background: #1ebe57; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #EEF8F3;
  border: 1px solid #D8F1E6;
  color: var(--green2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* —— Hero artículos —— */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(circle at 85% 12%, rgba(0, 181, 107, .09), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f8faf9 100%);
}
.hero-articles h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 16px 0 14px;
  font-weight: 800;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

.site-main {
  padding: 36px 0 0;
  min-height: 40vh;
  background: linear-gradient(180deg, #f8faf9 0%, #fff 120px);
}

/* —— Cards / listados —— */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 35px rgba(13, 35, 24, .04);
  transition: .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #cfe5da;
}
.card-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.card-body { padding: 1.1rem 1.2rem 1.35rem; }
.card h2 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.5rem;
  line-height: 1.3;
  font-weight: 700;
}
.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--green2); }
.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.more {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 700;
  font-size: 13px;
  color: var(--green2);
}
.card p { color: var(--muted); font-size: 14px; margin: 0; }

.classic-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding-bottom: 24px;
}
.classic-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.classic-item h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.classic-item h2 a { color: var(--ink); }
.classic-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  height: fit-content;
  box-shadow: 0 10px 35px rgba(13, 35, 24, .04);
}
.classic-aside h3 { color: var(--green2); margin-top: 0; }

.magazine .mag-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.magazine .mag-feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.magazine .mag-feature > div { padding: 1.5rem; }
.magazine .mag-feature h2 { font-size: 1.6rem; margin: 0.3rem 0 0.75rem; }
.magazine .mag-feature h2 a { color: var(--ink); }
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.minimal-list { max-width: 760px; padding-bottom: 24px; }
.min-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.min-item time {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green2);
  font-weight: 700;
}
.min-item h2 { font-weight: 700; font-size: 1.4rem; margin: 0.35rem 0; }
.min-item h2 a { color: var(--ink); }

.bold-stack { display: grid; gap: 1.25rem; padding-bottom: 24px; }
.bold-lead, .bold-item {
  padding: 1.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #008D55 0%, #00B56B 100%);
  color: #fff;
}
.bold-lead { padding: 2.5rem; }
.bold-lead h2, .bold-item h2 { margin: 0.4rem 0 0.75rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.bold-lead h2 a, .bold-item h2 a { color: #fff; }
.bold-lead .meta, .bold-item .meta { color: rgba(255, 255, 255, .75); }
.bold-lead .more, .bold-item .more { color: #EAF8F1; }
.bold-media { display: block; margin: 0 0 1rem; }
.bold-media img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.article-detail {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: 24px;
}
.article-detail h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0.4rem 0 1rem;
  font-weight: 800;
}
.article-detail .cover {
  width: 100%;
  border-radius: 18px;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
}
.article-body { font-size: 1.05rem; color: #344054; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body a { color: var(--green2); text-decoration: underline; }
.crumb { margin-bottom: 1rem; }
.crumb a { color: var(--green2); font-weight: 600; }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* —— Footer (SSTek) —— */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 30px 0;
}
.footerGrid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.footerLogo { width: 170px; }
.footerText {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* —— Contacto / CTA —— */
.cta {
  padding: 48px 0 70px;
  background: linear-gradient(180deg, #f4f6f5 0, #fff 100%);
}
.ctaBox {
  border: 1px solid #dfe8e3;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #eef7f3 100%);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.contactBox {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.contactIntro h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 10px 0 10px;
  font-weight: 800;
}
.contactIntro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 36rem;
}
.contactFormWrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.miniForm .formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.miniForm .field { display: flex; flex-direction: column; gap: 6px; }
.miniForm .field.full { grid-column: 1 / -1; }
.miniForm label {
  font-size: 12px;
  font-weight: 700;
  color: #475467;
}
.miniForm input,
.miniForm textarea {
  border: 1px solid #D6DEDA;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  width: 100%;
}
.miniForm input:focus,
.miniForm textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 181, 107, .15);
}
.miniForm textarea { resize: vertical; min-height: 84px; }
.formSubmit { margin-top: 14px; width: 100%; }
.formFlash {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}
.formFlash-ok {
  background: #EAF8F1;
  color: var(--green2);
  border: 1px solid #D8F1E6;
}
.formFlash-err {
  background: #FFF1F0;
  color: #B42318;
  border: 1px solid #F5C2C0;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.fade {
  opacity: 0;
  transform: translateY(18px);
  transition: .6s ease;
}
.fade.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .navlinks { display: none; }
  .menuBtn { display: grid; place-items: center; }
  .nav.open .navlinks {
    display: flex;
    position: absolute;
    top: 77px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    z-index: 60;
  }
  .navright > .btn-light { display: none; }
  .classic-split,
  .magazine .mag-feature,
  .contactBox { grid-template-columns: 1fr; }
  .footerGrid { grid-template-columns: 1fr; }
  .footerText { text-align: left; }
}

@media (max-width: 620px) {
  .container,
  .wrap,
  .article-detail { width: min(100% - 28px, 1180px); }
  .brand img { width: 152px; height: 46px; }
  .nav { height: 68px; }
  .nav.open .navlinks { top: 67px; }
  .navright > .btn-primary { display: none; }
  .hero { padding-top: 36px; }
  .hero-articles h1 { font-size: 34px; }
  .miniForm .formGrid { grid-template-columns: 1fr; }
  .ctaBox { padding: 28px 22px; }
  .footerLogo { width: 150px; }
}
