/* ── VARIABLES ── */
:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --orange: #F5A623;
  --orange-light: #FEF3DC;
  --blue: #2C6EAD;
  --blue-light: #E8F2FA;
  --ink: #0D1F2D;
  --ink-soft: #2E4053;
  --mist: #F4F7F5;
  --white: #ffffff;
  --border: rgba(29,158,117,0.15);
  --shadow: 0 4px 32px rgba(13,31,45,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw;
  height: 68px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(13,31,45,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.nav-logo .dot { color: var(--green); }
.logo-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  background: var(--green); color: white;
  padding: 2px 7px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: white !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 6vw 80px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(29,158,117,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(245,166,35,0.10) 0%, transparent 60%),
    var(--ink);
}

/* Animated grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

/* Floating orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(29,158,117,0.12); top: -80px; right: 5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(245,166,35,0.08); bottom: 0; left: 10%; animation-delay: 3s; }
.orb-3 { width: 200px; height: 200px; background: rgba(44,110,173,0.10); top: 30%; right: 25%; animation-delay: 6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  animation: fadeUp .8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--green);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0;
  height: 3px; background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: underlineReveal 1s ease .6s both;
}
@keyframes underlineReveal {
  to { transform: scaleX(1); }
}

.hero-desc {
  font-size: 18px; line-height: 1.65;
  color: rgba(255,255,255,0.62);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp .8s ease .3s both;
}
.btn-primary {
  background: var(--green); color: white;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(29,158,117,0.35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(29,158,117,0.45); }

.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.8);
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); background: rgba(29,158,117,0.06); }

/* Stats bar */
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp .8s ease .5s both;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 700;
  color: var(--white);
}
.stat-num span { color: var(--green); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── SECTION BASE ── */
section { padding: 96px 6vw; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--green);
}
h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── SERVICIOS ── */
.services { background: var(--mist); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-color, var(--green));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(13,31,45,0.12); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card.c-green { --card-color: var(--green); }
.service-card.c-orange { --card-color: var(--orange); }
.service-card.c-blue { --card-color: var(--blue); }
.service-card.c-teal { --card-color: #2ABFBF; }

.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 22px;
}
.icon-green { background: var(--green-light); }
.icon-orange { background: var(--orange-light); }
.icon-blue { background: var(--blue-light); }
.icon-teal { background: #E0F7F7; }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px;
}
.service-card p {
  font-size: 14.5px; line-height: 1.65;
  color: var(--ink-soft); margin-bottom: 20px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px;
  background: var(--green-light); color: var(--green-dark);
}
.service-tag.t-orange { background: var(--orange-light); color: #8B5E00; }
.service-tag.t-blue { background: var(--blue-light); color: var(--blue); }
.service-tag.t-teal { background: #E0F7F7; color: #1A8A8A; }

/* ── HUMMI SPOTLIGHT ── */
.hummi-section {
  background: var(--ink);
  position: relative; overflow: hidden;
}
.hummi-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(29,158,117,0.15) 0%, transparent 60%);
}
.hummi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hummi-left h2 { color: var(--white); }
.hummi-left .section-desc { color: rgba(255,255,255,0.55); }
.hummi-pillars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.pillar-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px 18px;
  transition: background .2s, border-color .2s;
}
.pillar-row:hover { background: rgba(29,158,117,0.08); border-color: rgba(29,158,117,0.25); }
.pillar-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pillar-info { flex: 1; }
.pillar-name { font-size: 14px; font-weight: 600; color: var(--white); }
.pillar-vars { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.pillar-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.12); }

.hummi-right {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 40px;
}
.hummi-logo-area {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.hummi-face {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; position: relative; overflow: hidden;
}
.hummi-face::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 50%; background: var(--green);
}
.hummi-face-emoji { position: relative; z-index: 1; margin-top: 8px; }
.hummi-brand { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: white; }
.hummi-brand span { color: var(--green); }

.igc-display {
  background: rgba(29,158,117,0.08);
  border: 1px solid rgba(29,158,117,0.2);
  border-radius: 16px; padding: 24px;
  margin-bottom: 20px; text-align: center;
}
.igc-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.igc-value { font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 900; color: var(--green); line-height: 1; }
.igc-sublabel { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 6px; }

.radar-placeholder {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mini-bar-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.mini-bar-track {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.mini-bar-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }

.hummi-cta { margin-top: 28px; text-align: center; }
.btn-hummi {
  display: inline-block;
  background: var(--green); color: white;
  padding: 13px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-hummi:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ── PROCESO ── */
.proceso { background: var(--white); }
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 8px;
  position: relative;
}
.proceso-steps::before {
  content: '';
  position: absolute; top: 36px; left: 10%; right: 10%;
  height: 1px; background: var(--border);
  z-index: 0;
}
.proceso-step {
  text-align: center; padding: 0 20px;
  position: relative; z-index: 1;
}
.step-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  transition: background .2s, transform .2s;
}
.proceso-step:hover .step-circle { background: var(--green-light); transform: scale(1.1); }
.step-num-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 6px;
}
.proceso-step h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 8px;
}
.proceso-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ── POR QUÉ HUMMI.DIGITAL ── */
.why { background: var(--green-light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--white);
  border-radius: 16px; padding: 28px 24px;
  border: 1px solid rgba(29,158,117,0.12);
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { font-size: 28px; margin-bottom: 14px; }
.why-card h4 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ── CTA FINAL ── */
.cta-section {
  background: var(--ink);
  text-align: center;
  padding: 100px 6vw;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(29,158,117,0.2) 0%, transparent 60%);
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900; color: var(--white);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.cta-section h2 em { font-style: normal; color: var(--green); }
.cta-section p {
  font-size: 18px; color: rgba(255,255,255,0.5);
  max-width: 480px; margin: 0 auto 40px;
  position: relative; z-index: 1;
  line-height: 1.65;
}
.cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* Contact form */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 520px; margin: 0 auto;
  position: relative; z-index: 1;
  text-align: left;
}
.form-row { margin-bottom: 16px; }
.form-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 6px; display: block;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: white;
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-input:focus { border-color: var(--green); background: rgba(29,158,117,0.08); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-select { appearance: none; }
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--green); color: white;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(29,158,117,0.4);
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── WHATSAPP CTA ── */
.whatsapp-cta {
  display: inline-flex; align-items: center; gap: 18px;
  background: #25D366;
  color: white;
  padding: 20px 32px;
  border-radius: 16px;
  text-decoration: none;
  max-width: 480px; width: 100%;
  position: relative; z-index: 1;
  margin: 0 auto;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
}
.whatsapp-cta:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.45);
}
.whatsapp-cta-text {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1; text-align: left;
}
.whatsapp-cta-label {
  font-size: 17px; font-weight: 700; line-height: 1.2;
}
.whatsapp-cta-sub {
  font-size: 13px; opacity: 0.8; font-weight: 400;
}
.whatsapp-arrow {
  flex-shrink: 0; opacity: 0.75;
  transition: transform .2s;
}
.whatsapp-cta:hover .whatsapp-arrow { transform: translateX(4px); }

/* ── FOOTER ── */
footer {
  background: #060E16;
  padding: 40px 6vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: white;
}
.footer-logo span { color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hummi-inner { grid-template-columns: 1fr; gap: 40px; }
  .proceso-steps::before { display: none; }
  .hero-stats { gap: 24px; }
  footer { flex-direction: column; text-align: center; }
}
