/* =============================================
   NITIDLY — Main Stylesheet
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

/* --- CSS Variables --- */
:root {
  /* Fondos de sección */
  --bg:           #0d0d0b;
  --bg-alt:       #0d0d0b;
  --bg-cta:       #0d0d0b;
  --bg-footer:    #0d0d0b;

  /* Cards */
  --bg-card:      #1e1e1b;
  --bg-card-2:    #222220;

  /* Colores de marca */
  --green:        #1D9E75;
  --green-light:  #5DCAA5;
  --green-glow:   rgba(29, 158, 117, 0.15);

  /* Texto */
  --text:         #F7F6F2;
  --text-muted:   #a8a79f;
  --text-dim:     #666460;

  /* Bordes */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-green: rgba(29, 158, 117, 0.3);

  --font-title:   'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  100px;

  --nav-h:          72px;
  --max-w:          1100px;
  --section-gap:    130px;
  --border-section: 1px solid rgba(29, 158, 117, 0.2);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* Separador verde sutil entre todas las secciones */
section, .strip, .cta-mid, .page-header {
  border-top: var(--border-section);
}
.hero { border-top: none; } /* El hero es el primero, no necesita borde */

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 0.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #0a0a09;
  font-weight: 500;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.25);
}
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--secondary:hover {
  border-color: var(--border-green);
  color: var(--green-light);
  transform: translateY(-1px);
}
.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  font-size: 14px;
  padding: 9px 20px;
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 0.5px solid transparent;
}
.nav.scrolled {
  background: rgba(17, 17, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  color: #F7F6F2;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  line-height: 1;
}
.nav__logo em {
  font-style: italic;
  color: #5DCAA5;
}
.nav__logo .logo-mark {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(17, 17, 16, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 0.5px solid var(--border);
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 14px 0;
  font-size: 18px;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--text); }
.nav__mobile .btn { margin-top: 12px; text-align: center; justify-content: center; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-inline: 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(29, 158, 117, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Global particles canvas — fixed, covers the full page */
#global-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Section particles — contained within their parent, never disrupt layout */
.section-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* All sections sit above any canvas layer */
section, .strip, .cta-mid, .footer, .page-header {
  position: relative;
  z-index: 1;
}
.diagnostico,
.pilares,
.cta-mid,
.cta-section,
.page-header {
  overflow: hidden;
}
/* Content inside stays above canvas */
section .container,
.cta-mid__inner,
.page-header .page-header__container {
  position: relative;
  z-index: 1;
}
.hero__container {
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  padding-block: 80px;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border-green);
  background: var(--green-glow);
  font-size: 13px;
  color: var(--green-light);
  font-weight: 400;
  margin-bottom: 36px;

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(29, 158, 117, 0); }
}
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 820px;
}
.hero__title em {
  font-style: italic;
  color: var(--green-light);
}
.hero__title .hw {
  display: inline-block;
  color: #F7F6F2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero__title .hw.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__title em .hw {
  color: #5DCAA5 !important;
  font-style: italic;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 44px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.4s forwards;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.55s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   STRIP
   ============================================= */
.strip {
  border-top: var(--border-section);
  border-bottom: var(--border-section);
  padding: 28px 24px;
  text-align: center;
  overflow: hidden;
}
.strip__text {
  font-family: var(--font-title);
  font-size: clamp(18px, 3vw, 26px);
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.strip__text em {
  font-style: italic;
  color: var(--text);
}

/* =============================================
   SECTION SHARED
   ============================================= */
.section-header {
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.1;
}
.section-title em {
  font-style: italic;
  color: var(--green-light);
}

/* =============================================
   SERVICIOS CARDS
   ============================================= */
.servicios {
  padding-block: var(--section-gap);
}
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: rgba(29, 158, 117, 0.04);
  border: 1px solid rgba(29, 158, 117, 0.15);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-green), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  background: rgba(29, 158, 117, 0.08);
  border: 1px solid rgba(29, 158, 117, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(29, 158, 117, 0.12);
}
.card:hover::before { opacity: 1; }
.card--featured {
  border-color: rgba(29, 158, 117, 0.35);
  background: rgba(29, 158, 117, 0.04);
}
.card--featured::before { opacity: 0.5; }
.card__icon {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1;
}
.card__title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 28px;
}
.card__link {
  font-size: 14px;
  color: var(--green-light);
  font-weight: 400;
  transition: gap 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card__link:hover { opacity: 0.7; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding-block: var(--section-gap);
  border-top: var(--border-section);
}
.cta-section__inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}
.cta-section__title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-section__title em {
  font-style: italic;
  color: var(--green-light);
}
.cta-section__text {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 36px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-footer);
  border-top: 0.5px solid var(--border);
  padding-block: 36px;
}
.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 32px;
}
.footer__logo-combo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__logo .logo-mark {
  height: 54px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer__logo .logo-agency {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #888780;
  font-weight: 400;
  text-transform: uppercase;
}
.footer__copy {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
}
.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }

/* =============================================
   PAGE HEADER (subpages)
   ============================================= */
.page-header {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  padding-inline: 24px;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center top, rgba(29, 158, 117, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-header__container { max-width: var(--max-w); margin-inline: auto; }
.page-header__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.page-header__title {
  font-family: var(--font-title);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 720px;
  margin-bottom: 20px;
}
.page-header__title em {
  font-style: italic;
  color: var(--green-light);
}
.page-header__sub {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 500px;
  line-height: 1.65;
}

/* =============================================
   SERVICIOS PAGE — Detail
   ============================================= */
.servicios-detail {
  padding-block: var(--section-gap);
}
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-block: 72px;
  border-bottom: 0.5px solid var(--border);
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; }
.service-block__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0.5px solid var(--border-green);
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.service-block__title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.service-block__title em {
  font-style: italic;
  color: var(--green-light);
}
.service-block__desc {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 32px;
}
.service-block__features {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
}
.feature-item:last-child { border-bottom: none; }
.feature-item__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 0.5px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-light);
  font-size: 10px;
}
.feature-item__text {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* Process steps */
.process {
  padding-block: var(--section-gap);
  border-top: var(--border-section);
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step {
  position: relative;
}
.step__num {
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.step__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.step__desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}

/* =============================================
   SOBRE MÍ PAGE
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-block: var(--section-gap);
}
.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong {
  color: var(--text);
  font-weight: 400;
}
.about-visual {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.about-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.about-card__name {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.about-card__role {
  font-size: 14px;
  color: var(--green-light);
  font-weight: 400;
  margin-bottom: 24px;
}
.about-card__divider {
  height: 0.5px;
  background: var(--border);
  margin-bottom: 24px;
}
.about-card__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.about-card__item-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.about-card__item-val {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}
.skills-section {
  padding-bottom: var(--section-gap);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.skill-chip {
  padding: 14px 20px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  transition: border-color 0.2s, color 0.2s;
  background: var(--bg-card);
}
.skill-chip:hover {
  border-color: var(--border-green);
  color: var(--text);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  padding-block: var(--section-gap);
  align-items: start;
}
.contact-info__title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.contact-info__title em {
  font-style: italic;
  color: var(--green-light);
}
.contact-info__desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-info__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info__item-icon {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-info__item-text { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.5; }
.contact-info__item-text strong { color: var(--text); font-weight: 400; display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: 0.03em; }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--green); }
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888780' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-select option { background: #1a1a18; }
.form-submit { width: 100%; justify-content: center; }

/* Checkbox de consentimiento */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}
.form-checkbox a { color: var(--green-light); }
.form-checkbox.invalid span { color: rgba(255, 90, 90, 0.9); }

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.show { display: block; }
.form-success__icon { font-size: 40px; margin-bottom: 16px; }
.form-success__title { font-family: var(--font-title); font-size: 24px; margin-bottom: 8px; }
.form-success__text { font-size: 15px; color: var(--text-muted); font-weight: 300; }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 80px;
}
.legal-content .legal-updated {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.legal-content h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}
.legal-content p { margin-bottom: 16px; }
.legal-content ul {
  margin: 0 0 16px 20px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); font-weight: 500; }
.legal-content a { color: var(--green-light); }

/* =============================================
   SECTION BACKGROUNDS
   ============================================= */
.bg-alt  { background-color: var(--bg-alt); }
.bg-cta  { background-color: var(--bg-cta); }

/* =============================================
   UTILITIES
   ============================================= */
.text-green { color: var(--green-light); }
.text-muted { color: var(--text-muted); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   PILARES
   ============================================= */
.pilares {
  padding-block: var(--section-gap);
  border-top: var(--border-section);
}
.pilares__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.pilar {
  padding: 56px 48px;
  transition: background 0.3s ease;
  position: relative;
}
.pilar:first-child {
  border-right: 0.5px solid var(--border);
}
.pilar:hover { background: var(--bg-card); }
.pilar__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}
.pilar__icon {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1;
}
.pilar__title {
  font-family: var(--font-title);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.pilar__title em {
  font-style: italic;
  color: var(--green-light);
}
.pilar__desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 400px;
}
.pilar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pilar__tag {
  padding: 5px 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.pilar:hover .pilar__tag {
  border-color: var(--border-hover);
  color: var(--text-muted);
}

/* =============================================
   CTA INTERMEDIO
   ============================================= */
.cta-mid {
  border-top: var(--border-section);
  border-bottom: var(--border-section);
  padding: 44px 24px;
  background: var(--bg-card);
}
.cta-mid__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-mid__text {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.cta-mid__text em {
  font-style: italic;
  color: var(--green-light);
}

/* =============================================
   DIAGNÓSTICO
   ============================================= */
.diagnostico {
  padding-block: var(--section-gap);
  background: #0d0d0b;
}
.diagnostico__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.diagnostico__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  border: 0.5px solid var(--border-green);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(29,158,117,0.1);
  margin-bottom: 36px;
}
.diagnostico__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.diagnostico__title {
  font-family: var(--font-title);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}
.diagnostico__subtitle {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(18px, 2.2vw, 26px);
  font-style: italic;
  color: var(--green-light);
  margin-bottom: 28px;
}
.diagnostico__text {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 44px;
}
.diagnostico__panel {
  border: 1px solid rgba(29, 158, 117, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  background: rgba(29, 158, 117, 0.04);
}
.diagnostico__panel-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 28px;
}
.diagnostico__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diagnostico__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}
.diagnostico__item-icon {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}
/* Diagnóstico en servicios.html — bloque destacado */
.service-block--featured {
  border: 1px solid rgba(29, 158, 117, 0.3);
  border-radius: var(--radius-md);
  padding: 48px;
  background: linear-gradient(135deg, rgba(29,158,117,0.06) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  :root { --section-gap: 100px; }

  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .servicios__grid { grid-template-columns: 1fr; gap: 12px; }
  .pilares__grid { grid-template-columns: 1fr; }
  .pilar:first-child { border-right: none; border-bottom: 0.5px solid var(--border); }
  .pilar { padding: 40px 32px; }
  .cta-mid__inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .diagnostico__grid { grid-template-columns: 1fr; gap: 48px; }

  .service-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-block--featured { padding: 32px 24px; }
  .process__steps { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { position: static; }

  .skills-grid { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  :root { --section-gap: 96px; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { max-width: 300px; }

  .process__steps { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .cta-section__inner .btn { width: auto; }
}
