/* ============================================
   Estudio Cronos — Sitio con Blog Integrado
   Plan Normal · Paleta clara con acento salvia/menta
   ============================================ */
:root {
  --bg-deep: #F8FBF9;
  --bg-panel: #F0F5F2;
  --bg-panel-2: #E8EFEB;
  --bg-card: #FFFFFF;
  --text-primary: #1A2E24;
  --text-secondary: #4A6A5A;
  --text-muted: #7A9A8A;
  --accent: #4A9A7A;
  --accent-light: #D4E8DE;
  --accent-dark: #2D7A5A;
  --accent-gradient: linear-gradient(135deg, #4A9A7A, #7ABAA0);
  --border: rgba(26, 46, 36, 0.06);
  --border-light: rgba(26, 46, 36, 0.03);
  --shadow-sm: 0 1px 3px rgba(26, 46, 36, 0.04);
  --shadow-md: 0 4px 20px rgba(26, 46, 36, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 46, 36, 0.08);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ============================================
   ICONOS SVG
   ============================================ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--filled svg {
  fill: currentColor;
  stroke: none;
}
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }
.icon--accent { color: var(--accent); }
.icon--white { color: #fff; }

/* ============================================
   HEADER
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: var(--shadow-sm);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(74, 154, 122, 0.2);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav.main-nav a {
  position: relative;
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding-bottom: 4px;
  font-weight: 500;
  transition: color 0.25s ease;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}
nav.main-nav a:hover {
  color: var(--text-primary);
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}
nav.main-nav a.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 154, 122, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 154, 122, 0.08), transparent 70%);
  top: -180px;
  right: -140px;
  filter: blur(50px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border: 1px solid rgba(74, 154, 122, 0.15);
  border-radius: 999px;
  background: rgba(74, 154, 122, 0.04);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}
.hero h1 .highlight {
  color: var(--accent-dark);
}
.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(74, 154, 122, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary .icon {
  width: 18px;
  height: 18px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(74, 154, 122, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost .icon {
  width: 18px;
  height: 18px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(74, 154, 122, 0.04);
}

/* ============================================
   SECCIONES
   ============================================ */
section {
  padding: 5rem 0;
}
section:not(:first-of-type) {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head .eyebrow {
  margin-bottom: 0.5rem;
  display: inline-block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text-primary);
}
.section-head p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 400px;
  line-height: 1.7;
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1.1;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   TARJETAS DE SERVICIO
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  padding: 2.25rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 154, 122, 0.15);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(74, 154, 122, 0.12);
}
.card-icon .icon {
  width: 24px;
  height: 24px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   BLOG: TARJETAS DE ARTÍCULO
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 154, 122, 0.15);
  box-shadow: var(--shadow-md);
}
.post-thumb {
  height: 140px;
  background: linear-gradient(155deg, var(--bg-panel-2), var(--bg-panel));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumb .icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.2;
}
.post-thumb .icon svg {
  stroke-width: 1.5;
}
.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(74, 154, 122, 0.08), transparent 60%);
}
.post-body {
  padding: 1.4rem;
}
.post-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(74, 154, 122, 0.06);
  border: 1px solid rgba(74, 154, 122, 0.08);
}
.post-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--text-primary);
}
.post-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-meta .icon {
  width: 14px;
  height: 14px;
}

/* filtros de categoría */
.filter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.filter-chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.filter-chip:hover {
  border-color: var(--accent);
}
.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   ARTÍCULO INDIVIDUAL
   ============================================ */
.article-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.article-header .post-category {
  margin-bottom: 0.8rem;
}
.article-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-body {
  max-width: 680px;
  margin: 3rem auto 0;
}
.article-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.3rem;
  line-height: 1.8;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2.2rem 0 1rem;
  color: var(--text-primary);
}
.article-body ul {
  margin: 0 0 1.3rem 1.2rem;
  color: var(--text-secondary);
}
.article-body li {
  margin-bottom: 0.5rem;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 680px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.share-row span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.share-btn .icon {
  width: 16px;
  height: 16px;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   EQUIPO / SOBRE NOSOTROS
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(74, 154, 122, 0.15);
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.team-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.team-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ============================================
   CASOS DE ÉXITO
   ============================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  padding: 2rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 154, 122, 0.15);
  box-shadow: var(--shadow-md);
}
.case-card .result {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.case-card .result-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.case-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.case-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   TESTIMONIO
   ============================================ */
.testimonial-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-block .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 0.8rem;
}
.testimonial-block blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.testimonial-block .testi-author {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.testimonial-block .testi-author strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   PÁGINAS LEGALES (Política, Términos)
   ============================================ */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--text-primary);
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.legal-content ul {
  margin: 0 0 1rem 1.2rem;
  color: var(--text-secondary);
}
.legal-content li {
  margin-bottom: 0.4rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-panel);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand small {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  background: #fff;
}
.footer-social a .icon {
  width: 16px;
  height: 16px;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
}
.footer-bottom .accent {
  color: var(--accent);
}

/* ============================================
   SCROLL-REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 49;
    box-shadow: var(--shadow-lg);
  }
  nav.main-nav.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-item .stat-number {
    font-size: 2rem;
  }
  .article-meta {
    flex-direction: column;
    gap: 0.4rem;
  }
  footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}