/* ============================================================
   Parra Digital Solutions — hoja de estilos
   Tema oscuro con acento degradado (cielo → índigo).
   Cambiar colores → sección "Variables" abajo del todo.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg: #0a0c12;
  --bg-alt: #0d1017;
  --surface: #11141d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9ecf3;
  --muted: #9aa3b5;
  --accent-1: #38bdf8;   /* cielo */
  --accent-2: #818cf8;   /* índigo */
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --radius: 16px;
  --container: 1120px;
  --nav-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn__icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.btn__icon--fill { fill: currentColor; stroke: none; }

.btn--primary {
  background: var(--grad);
  color: #06121f;
  box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(129, 140, 248, 0.6);
}
.btn--primary:hover .btn__icon { transform: translateX(3px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.btn--small { padding: 0.5rem 1.2rem; font-size: 0.92rem; }

/* ---------- Barra superior ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 12, 18, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #06121f;
  font-size: 1.1rem;
  font-weight: 900;
}
.brand__thin { color: var(--muted); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}
.nav__links > a:not(.btn) {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}
.nav__links > a:not(.btn):hover { color: var(--text); }

/* Menú hamburguesa */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 30px 30px,
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    var(--bg);
}

.hero__inner { position: relative; z-index: 1; }

.pill {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}

.hero__sub {
  max-width: 560px;
  margin: 1.4rem auto 2.2rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.6rem;
}
.chips li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Orbes animados del hero */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero__orb--1 {
  width: 380px;
  height: 380px;
  top: 5%;
  left: -8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 65%);
  animation: float1 16s ease-in-out infinite;
}
.hero__orb--2 {
  width: 420px;
  height: 420px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.32), transparent 65%);
  animation: float2 20s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -40px) scale(1.05); }
}

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.eyebrow {
  color: var(--accent-1);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.section__lead {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 0.9rem;
}
.section .eyebrow + h2 + .section__lead,
.section > .container > .section__lead { margin-bottom: 3rem; }

/* ---------- Tarjetas de servicios ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-1);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p { color: var(--muted); font-size: 0.97rem; margin-top: 0.5rem; }

/* ---------- Pasos del proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(129, 140, 248, 0.4); }

.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #06121f;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Por qué yo ---------- */
.why {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.why__list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.why__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--muted);
}
.why__list strong { color: var(--text); }

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--accent-1);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Maqueta decorativa (ventana de navegador) */
.mock {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.why__mock:hover .mock {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.mock__bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mock__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.mock__bar span:nth-child(1) { background: #f87171; opacity: 0.7; }
.mock__bar span:nth-child(2) { background: #fbbf24; opacity: 0.7; }
.mock__bar span:nth-child(3) { background: #34d399; opacity: 0.7; }

.mock__body { padding: 1.2rem; display: grid; gap: 1rem; }

.mock__hero {
  border-radius: 12px;
  padding: 1.4rem;
  background: linear-gradient(130deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}
.mock__line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}
.mock__line--title { width: 75%; height: 14px; background: rgba(255, 255, 255, 0.35); }
.mock__line--sub { width: 55%; }
.mock__line--footer { width: 40%; margin-inline: auto; opacity: 0.6; }
.mock__btn {
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: var(--grad);
  margin-top: 0.3rem;
}

.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.mock__card {
  height: 58px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* ---------- Contacto ---------- */
.contact {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.contact .section__lead { margin-inline: auto; margin-bottom: 2.2rem; }

.contact__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Pie de página ---------- */
.footer {
  padding: 3rem 0 6rem;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
}
.brand--footer { margin-bottom: 0.3rem; }
.footer__note { color: var(--muted); font-size: 0.95rem; }
.footer__links { display: flex; gap: 1.4rem; font-weight: 600; }
.footer__links a { color: var(--muted); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted); font-size: 0.82rem; margin-top: 0.6rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.45;
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 3rem; }
  .why__mock { max-width: 480px; margin-inline: auto; }
  .mock { transform: none; }
}

@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--nav-h) + 56px) 0 76px; }

  /* Menú móvil: panel desplegable */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 16, 23, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.35s ease, opacity 0.35s ease;
  }
  .nav__links.is-open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links > a { padding: 0.9rem 1.6rem; }
  .nav__links > a:not(.btn):hover { color: var(--accent-1); }
  .nav__links .btn { margin: 0.6rem 1.6rem 0; justify-content: center; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__orb, .wa-float::before { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
