/* =============================================
   CONSULTORIAEC.COM — style.css
   Dark SaaS · Mobile-first · Conversion-focused
   ============================================= */

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  /* Palette */
  --bg:          #0B0F14;
  --bg-2:        #111827;
  --bg-card:     #161F2B;
  --border:      rgba(255, 255, 255, 0.09);
  --border-h:    rgba(0, 210, 170, 0.28);

  /* Text */
  --t1: #EDF2F7;
  --t2: #94A3B8;
  --t3: #3E5068;

  /* Accent — Teal/Mint */
  --accent:      #00D2AA;
  --accent-2:    #2DDFC0;
  --accent-dim:  rgba(0, 210, 170, 0.1);
  --accent-glow: rgba(0, 210, 170, 0.22);

  /* Secondary */
  --blue:        #3B82F6;
  --blue-dim:    rgba(59, 130, 246, 0.12);

  /* Typography */
  --font-d: 'Inter', sans-serif;           /* display / headings */
  --font-b: 'Inter', sans-serif; /* body */

  /* Layout */
  --max: 1100px;
  --px:  clamp(1.25rem, 5vw, 2rem);

  /* Radii */
  --r:   14px;
  --r-sm: 8px;
  --r-lg: 22px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ─── CONTAINER ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── TYPOGRAPHY SCALE ──────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-d);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

/* ─── GRADIENT TEXT ─────────────────────────── */
.gradient-text {
  background: linear-gradient(130deg, var(--accent) 0%, #5af5d8 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t),
              border-color var(--t), color var(--t);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #05080C;
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-h);
  color: var(--t1);
  background: var(--accent-dim);
}

.btn--nav {
  background: var(--accent);
  color: #05080C;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}
.btn--nav:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
} 

.btn--sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2rem;      font-size: 1.05rem;  }

/* ─── SECTION COMMONS ───────────────────────── */
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--t1);
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--t2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── REVEAL ANIMATION ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-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; }
.reveal--delay-4 { transition-delay: 0.45s; }

/* ─── NAVIGATION ────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--px);
  transition: background var(--t), backdrop-filter var(--t), border-bottom var(--t);
}
.nav.scrolled {
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t2);
  transition: color var(--t);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__links a:hover,
.nav__links a.active { color: var(--t1); }
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a:hover::after  { transform: scaleX(1); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ─── MOBILE MENU ───────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 6rem var(--px) 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
.mobile-menu a {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--t2);
  transition: color var(--t);
}
.mobile-menu a:hover,
.mobile-menu a:focus { color: var(--t1); }

/* ─── HERO ──────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Background layers */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.orb--1 {
  width: clamp(300px, 45vw, 550px);
  height: clamp(300px, 45vw, 550px);
  background: radial-gradient(circle, rgba(0,210,170,0.14) 0%, transparent 65%);
  top: -120px; right: -80px;
}
.orb--2 {
  width: clamp(200px, 35vw, 420px);
  height: clamp(200px, 35vw, 420px);
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 65%);
  bottom: 20px; left: -80px;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 20%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
  /* Two-column: copy | avatar */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

/* LEFT column — all the copy */
.hero__copy { min-width: 0; }

/* RIGHT column — avatar, desktop only */
.hero__avatar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hero__avatar-wrap {
  position: relative;
  width: clamp(260px, 30vw, 430px);
  left: 95px;
  bottom: 135px;
}

.hero__avatar-wrap img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  /* Blends the black bg of the PNG into the dark hero */
  mix-blend-mode: lighten;
}

/* Teal ambient glow behind the avatar */
.hero__avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: radial-gradient(ellipse at 55% 45%, rgba(0,210,170,0.16) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* Subtle border frame over the image */
.hero__avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 170, 0.22);
  z-index: 2;
  pointer-events: none;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--t2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}
.badge__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(1.35); }
}

/* Title */
.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 800;
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.04;
}

/* Subtitle */
.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--t2);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.78;
}
.hero__subtitle strong { color: var(--t1); font-weight: 600; }

/* CTA group */
.hero__ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Stats bar */
.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat__num {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--t3);
  max-width: 130px;
  line-height: 1.35;
}
.stat__divider {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── PROBLEMA ──────────────────────────────── */
.problema { background: var(--bg-2); }

.problema__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color var(--t), transform var(--t);
}
.pain-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.pain-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.pain-card p {
  font-size: 0.925rem;
  color: var(--t2);
  line-height: 1.6;
}
.pain-card--cta {
  flex-direction: column;
  gap: 1.25rem;
  background: var(--accent-dim);
  border-color: var(--border-h);
}
.pain-cta__text {
  font-size: 0.925rem !important;
  color: var(--t1) !important;
  font-weight: 500;
  line-height: 1.55;
}

/* ─── SERVICIOS ─────────────────────────────── */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
/* Top shimmer line on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t);
}
.service-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px var(--border-h);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.7rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.service-card__tags span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

/* ─── PROCESO ───────────────────────────────── */
.proceso { background: var(--bg-2); }

.proceso__steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: var(--border-h); transform: translateY(-3px); }

.step__num {
  font-family: var(--font-d);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  /* Gradient number */
  background: linear-gradient(135deg, var(--accent) 0%, rgba(0,210,170,0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.6rem;
}
.step__content p {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.68;
}

/* ─── CASOS ─────────────────────────────────── */
.casos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.25rem;
}
.caso-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  transition: border-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.caso-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.caso-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.caso-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.75rem;
}
.caso-card p {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.68;
  flex: 1;
  margin-bottom: 1.5rem;
}
.caso-card__result {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.result-num {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.caso-card__result span:last-child {
  font-size: 0.78rem;
  color: var(--t3);
  line-height: 1.35;
}

/* ─── BENEFICIOS ────────────────────────────── */
.beneficios__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.beneficios__header {
  text-align: left;
  margin-bottom: 0;
}
.beneficios__header .section-sub { margin: 0; }

.beneficios__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.beneficio {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.beneficio__icon {
  font-size: 1.2rem;
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
}
.beneficio h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.25rem;
}
.beneficio p {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.65;
}

/* ─── CTA FINAL ─────────────────────────────── */
.cta-final { background: var(--bg-2); }

.cta-final__inner {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* Glowing orb behind content */
.cta-final__orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,210,170,0.1) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-final__inner .section-tag { position: relative; z-index: 1; }
.cta-final__inner h2 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--t1);
  margin: 0.75rem 0 1rem;
  position: relative; z-index: 1;
}
.cta-final__sub {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.78;
  margin-bottom: 2.5rem;
  position: relative; z-index: 1;
}
.cta-final__inner .btn { position: relative; z-index: 1; }
.cta-final__note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--t3);
  position: relative; z-index: 1;
}

/* ─── FOOTER ────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand p {
  font-size: 0.78rem;
  color: var(--t3);
  margin-top: 0.3rem;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--t2);
  transition: color var(--t);
}
.footer__links a:hover { color: var(--accent); }
.footer__copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--t3);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ─── WHATSAPP FLOAT ────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.42);
  transition: transform var(--t), box-shadow var(--t);
  will-change: transform;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}
.whatsapp-float:active { transform: scale(1); }

/* ─── RESPONSIVE: TABLET ────────────────────── */
@media (max-width: 900px) {
  .beneficios__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .beneficios__header { text-align: center; }
  .beneficios__header .section-sub { margin: 0 auto; }
}

/* ─── RESPONSIVE: MOBILE ────────────────────── */
@media (max-width: 768px) {
  /* Hide nav links, show hamburger */
  .nav__links, .btn--nav { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero: back to single column, hide avatar */
  .hero__content {
    grid-template-columns: 1fr;
  }
  .hero__avatar { display: none; }


  /* Stats */
  .stat__divider { display: none; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  /* Hero CTAs full-width */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }

  /* Stack all grids */
  .problema__grid,
  .servicios__grid,
  .proceso__steps,
  .casos__grid    { grid-template-columns: 1fr; }
}

/* ─── ACCESSIBILITY ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .badge__dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Focus visible for keyboard nav */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
