/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #258e55; border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 88px;
  display: flex;
  align-items: center;
}
.navbar-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: none; align-items: center; }
@media (min-width: 1280px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.13px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: rgba(255,255,255,0.9); }
.nav-link.active { color: #258e55; font-weight: 400; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 11px;
  width: 33px; height: 1.5px;
  background: #258e55;
  border-radius: 1px;
}
.nav-right { display: none; align-items: center; gap: 16px; flex-shrink: 0; }
@media (min-width: 1024px) { .nav-right { display: flex; } }
.nav-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}
.nav-tel svg, .nav-wa svg { display: block; }
.btn-cotizar {
  display: inline-flex;
  align-items: center;
  background: #258e55;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.28px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-cotizar:hover { background: #1c7343; }
.nav-mobile-btn { display: flex; color: white; padding: 4px; }
@media (min-width: 1280px) { .nav-mobile-btn { display: none; } }
.nav-mobile-menu {
  display: none;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 88px; left: 0; right: 0;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  transition: all 0.2s;
  display: block;
}
.nav-mobile-link.active { color: #258e55; background: rgba(37,142,85,0.08); }

/* ============================================================
   PAGE WRAP
   ============================================================ */
.page-wrap { padding-top: 88px; }

/* ============================================================
   PAGE HEADER (dark)
   ============================================================ */
.page-header {
  background: #1a1a1a;
  padding: 80px 0 96px;
}
.page-sup {
  font-size: 13px;
  font-weight: 500;
  color: #258e55;
  letter-spacing: 1.56px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-header-h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.h1-light {
  font-weight: 300;
  color: #f7f7f7;
}
.h1-regular {
  font-weight: 400;
  color: #e8e8e8;
}
.page-header-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(247,247,247,0.6);
  line-height: 1.75;
}

/* ============================================================
   ARTICLES SECTION (light)
   ============================================================ */
.articles-section {
  background: #f7f7f7;
  padding: 80px 0 96px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pdc-pagination {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pdc-pagination-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Anterior / Siguiente */
.pdc-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  border: 1px solid rgba(0,0,0,0.12);
  background: white;
  transition: all 0.15s;
  white-space: nowrap;
}
.pdc-page-btn:hover {
  border-color: #258e55;
  color: #258e55;
}
.pdc-page-btn svg { flex-shrink: 0; }

/* Números */
.pdc-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  border: 1px solid rgba(0,0,0,0.1);
  background: white;
  transition: all 0.15s;
}
.pdc-page-num:hover {
  border-color: #258e55;
  color: #258e55;
}
.pdc-page-num--active {
  background: #258e55;
  border-color: #258e55;
  color: white !important;
  font-weight: 600;
  cursor: default;
}
.pdc-page-btn--disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.pdc-page-dots {
  width: 32px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  user-select: none;
}
.pdc-pagination-info {
  font-size: 12px;
  color: #bbb;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Card */
.article-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Meta row: category pill + date */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.article-category {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.article-date {
  font-size: 12px;
  font-weight: 300;
  color: #aaa;
}

/* Title */
.article-title {
  font-size: 18px;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Excerpt */
.article-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: #666;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

/* Link */
.article-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: #258e55;
  transition: color 0.2s;
  margin-top: auto;
}
.article-link:hover { color: #1c7343; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: #1a1a1a;
  padding: 80px 0;
  text-align: center;
}
.cta-sup {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.cta-h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: #f7f7f7;
  line-height: 1.1;
  margin-bottom: 32px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #258e55;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.32px;
  transition: background 0.2s;
}
.btn-cta:hover { background: #1c7343; }
.btn-cta svg { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #141414;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}
.footer-group-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.footer-link {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.footer-contact-row svg { flex-shrink: 0; }
.footer-address {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 4px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 12px; }
.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.15); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.3); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 24px;
  z-index: 50;
  background: #25d366;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { display: block; }
