/* ============================================
   AMP Soluciones Corporativas — Modern Landing
   ============================================ */

:root {
  --bg: #07080c;
  --bg-soft: #0d1017;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf3;
  --muted: #9aa3b2;
  --brand: #ff7a29;
  --brand-2: #ffb648;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --success: #34d399;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 10px 30px -15px rgba(124, 92, 255, 0.25);
  --gradient: linear-gradient(135deg, #ff7a29 0%, #ff4d8d 45%, #7c5cff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,122,41,.14), rgba(124,92,255,.14));
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(255, 182, 72, 0.08);
  border: 1px solid rgba(255, 182, 72, 0.22);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem;
  font-size: .8rem; font-weight: 500;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  80% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(255, 77, 141, .45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(255, 77, 141, .6); }
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  z-index: -2;
  pointer-events: none;
}
.bg-blobs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
  animation: floaty 18s ease-in-out infinite;
}
.blob--1 { width: 520px; height: 520px; background: #ff7a29; top: -140px; left: -160px; }
.blob--2 { width: 480px; height: 480px; background: #7c5cff; bottom: -160px; right: -140px; animation-delay: -6s; }
.blob--3 { width: 380px; height: 380px; background: #22d3ee; top: 40%; left: 55%; opacity: .2; animation-delay: -10s; }
@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px, -40px) scale(1.08); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 12, .6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); background: rgba(7, 8, 12, .82); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}
.nav__logo { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient);
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  letter-spacing: .02em;
  box-shadow: 0 10px 25px -10px rgba(255, 77, 141, .55);
}
.logo-text { font-size: .78rem; line-height: 1.15; color: var(--muted); font-weight: 500; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  position: relative; padding: .25rem 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gradient); border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .7rem 1.15rem; font-size: .9rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 6rem; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center;
}
.hero__title { margin-top: 1.5rem; }
.hero__sub {
  font-size: 1.1rem; max-width: 52ch; color: var(--muted);
}
.hero__actions { display: flex; gap: .9rem; margin: 1.6rem 0 2.2rem; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; list-style: none; padding: 0; margin: 0;
  max-width: 500px;
}
.hero__stats li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero__stats strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 600;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: .82rem; color: var(--muted); }

/* Orb visual */
.hero__visual { display: grid; place-items: center; }
.orb {
  position: relative;
  width: min(420px, 95%); aspect-ratio: 1;
}
.orb__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.15);
  animation: spin 24s linear infinite;
}
.orb__ring--2 {
  inset: 14%; border-style: solid;
  border-color: rgba(255,255,255,.06);
  animation-duration: 40s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb__core {
  position: absolute; inset: 26%;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  box-shadow: 0 30px 80px -20px rgba(255,77,141,.55), inset 0 0 50px rgba(255,255,255,.15);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.arrow-up { font-size: 4rem; color: #fff; }
.orb__chip {
  position: absolute;
  padding: .5rem .9rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: floatChip 6s ease-in-out infinite;
}
.orb__chip--1 { top: 8%; left: -5%; }
.orb__chip--2 { top: 14%; right: -2%; animation-delay: -1.5s; }
.orb__chip--3 { bottom: 18%; left: -8%; animation-delay: -3s; }
.orb__chip--4 { bottom: 4%; right: 2%; animation-delay: -4.5s; }
@keyframes floatChip {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .tag { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: .8rem; }
.section-lead { font-size: 1.05rem; }

/* ---------- Cards shared ---------- */
.card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-soft);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* ---------- Pillars ---------- */
.pillars { padding: 4rem 0; }
.pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.pillar .card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 1.2rem;
  box-shadow: 0 15px 30px -12px rgba(255,77,141,.45);
}
.pillar .card__icon svg { width: 26px; height: 26px; }

/* ---------- Solutions ---------- */
.solutions { padding: 5rem 0; }
.solutions__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.solution__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem; font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .3rem;
}
.chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; padding: 0; margin: 1rem 0 0;
}
.chips li {
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: .82rem; color: var(--text);
}
.solution__rows { margin-top: .8rem; display: grid; gap: .4rem; font-size: .92rem; color: var(--muted); }
.solution__rows strong { color: var(--text); }

/* ---------- Method ---------- */
.method { padding: 5rem 0; }
.method__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.method__text .tag { margin-bottom: 1rem; }
.method__text .btn { margin-top: 1rem; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
}
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateX(6px); border-color: rgba(255,255,255,.18); }
.step__num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 25px -10px rgba(255,77,141,.5);
}
.step h4 { margin-bottom: .2rem; }
.step p { margin: 0; font-size: .93rem; }

/* ---------- Team ---------- */
.team { padding: 5rem 0; }
.team__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.member { text-align: center; padding: 2.2rem 1.3rem; }
.member__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 14), 90%, 60%), hsl(calc(var(--h, 14) + 40), 85%, 55%));
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
}
.member__role {
  display: block;
  font-size: .85rem; color: var(--brand-2); margin-bottom: .6rem;
  font-weight: 500;
}

/* ---------- Clients / Marquee ---------- */
.clients { padding: 5rem 0; }
.marquee {
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  margin-bottom: 3rem;
}
.marquee__track {
  display: flex; gap: 1.2rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-pill {
  padding: 1rem 1.8rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.testimonials {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.quote {
  margin: 0; padding: 2rem 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  display: flex; flex-direction: column;
}
.quote::before {
  content: '“';
  position: absolute; top: -10px; left: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote__brand {
  display: inline-block;
  align-self: flex-start;
  padding: .3rem .75rem;
  margin-bottom: .9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-2);
  background: rgba(255, 182, 72, .08);
  border: 1px solid rgba(255, 182, 72, .22);
  border-radius: 999px;
}
.quote p { color: var(--text); font-size: 1.05rem; margin-bottom: 1.2rem; flex: 1; }
.quote footer {
  color: var(--muted); font-size: .88rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.quote footer strong { color: var(--text); font-weight: 600; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { padding: 5rem 0 6rem; }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.contact__list svg { width: 22px; height: 22px; color: var(--brand-2); flex-shrink: 0; }
.contact__list a:hover { color: var(--brand-2); }
.contact__phones { display: flex; flex-direction: column; gap: .2rem; }
.contact__phones a { color: var(--muted); transition: color .2s; }
.contact__phones a:hover { color: var(--brand-2); }
.contact__social { gap: .6rem !important; }
.social {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, background .2s;
}
.social:hover { transform: translateY(-2px); background: var(--surface-strong); }
.social svg { width: 18px; height: 18px; color: var(--text); }

.contact__form { padding: 2rem; display: grid; gap: 1rem; }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 1rem 1rem .6rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.field textarea { padding-top: 1.4rem; min-height: 110px; }
.field label {
  position: absolute; left: 1rem; top: 1rem;
  color: var(--muted); pointer-events: none;
  transition: transform .2s var(--ease), color .2s, font-size .2s;
  background: transparent;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 122, 41, 0.04);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-14px);
  font-size: .72rem;
  color: var(--brand-2);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
  pointer-events: none;
}
.form__error {
  display: none;
  padding: .9rem 1rem;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fca5a5;
  border-radius: 12px;
  margin: 0;
  font-size: .92rem;
}
.form__error.show { display: block; animation: fadeIn .4s; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.form__success {
  display: none;
  padding: .9rem 1rem;
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .3);
  color: var(--success);
  border-radius: 12px;
  margin: 0;
  font-size: .92rem;
}
.form__success.show { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand p { margin: 0; font-size: .88rem; max-width: 340px; }
.footer__meta { color: var(--muted); font-size: .82rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff; font-size: 1.2rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 15px 30px -10px rgba(255,77,141,.6);
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .orb { width: min(320px, 80%); }
  .pillars__grid { grid-template-columns: 1fr; }
  .solutions__grid { grid-template-columns: 1fr; }
  .method__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,8,12,.96); backdrop-filter: blur(18px);
    padding: 1.5rem; border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .hero { padding: 3rem 0 4rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .contact__form .row { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  h1 { font-size: 2.4rem; }
  .logo-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
