/* =========================================================
   PD IT SOLUTIONS — Landing
   Paleta tomada del logo / sistema de diseño.
   Para ajustar colores, editar solo las variables de :root.
   ========================================================= */

:root {
  /* Marca */
  --c-bg: #060f1e;          /* azul noche del fondo del logo */
  --c-bg-2: #0a1a2f;        /* secciones alternas */
  --c-surface: #0f2238;     /* tarjetas */
  --c-border: rgba(53, 215, 168, 0.16);
  --c-accent: #35d7a8;      /* verde menta "SOLUTIONS" */
  --c-accent-2: #2698bf;    /* azul/cian del ícono */
  --c-accent-hover: #4ff0c0;
  --c-text: #e8f1f8;
  --c-muted: #9db0c4;
  --c-on-accent: #04121f;

  --gradient: linear-gradient(135deg, var(--c-accent-2), var(--c-accent));

  /* Tipografía */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px var(--c-border), 0 12px 40px rgba(53, 215, 168, 0.12);
  --t: 0.3s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--c-accent); color: var(--c-on-accent);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
}

/* Patrón de circuito (elemento gráfico del sistema de diseño) */
.circuit-bg {
  background-color: var(--c-bg-2);
  background-image:
    radial-gradient(ellipse at top, rgba(38, 152, 191, .12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%2335d7a8' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M0 40h40l20 20h40M100 60v40l20 20h40M20 160v-40l20-20h30M160 20h-30l-20-20M60 0v20M80 140h40'/%3E%3Ccircle cx='100' cy='60' r='3'/%3E%3Ccircle cx='70' cy='100' r='3'/%3E%3Ccircle cx='130' cy='20' r='3'/%3E%3Ccircle cx='60' cy='20' r='3'/%3E%3Ccircle cx='80' cy='140' r='3'/%3E%3C/svg%3E");
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 6px 20px rgba(53, 215, 168, .25); }
.btn--primary:hover { background: var(--c-accent-hover); box-shadow: 0 10px 28px rgba(53, 215, 168, .35); }

.btn--outline { border-color: var(--c-accent); color: var(--c-accent); background: transparent; }
.btn--outline:hover { background: rgba(53, 215, 168, .1); }

.btn--whatsapp { background: #25d366; color: #fff; margin-top: 1.5rem; }
.btn--whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
.btn--whatsapp:hover { background: #1ebe5a; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.header.is-scrolled {
  background: rgba(6, 15, 30, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo__icon { width: 44px; height: 44px; border-radius: 50%; }
.logo__text { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 800; line-height: 1; }
.logo__top { font-size: 1.35rem; color: #fff; letter-spacing: .02em; }
.logo__bottom { font-size: .72rem; color: var(--c-accent); letter-spacing: .16em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; }
.nav__link {
  position: relative; font-weight: 500; color: var(--c-muted);
  transition: color var(--t);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 15, 30, .97) 0%, rgba(6, 15, 30, .85) 45%, rgba(6, 15, 30, .45) 100%),
    linear-gradient(0deg, var(--c-bg) 0%, transparent 30%),
    url("../img/hero.jpg") center / cover no-repeat;
}
.hero__content { max-width: var(--container); }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; max-width: 14ch; margin-bottom: 1.25rem; }
.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--c-muted); max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.hero__badges li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--c-muted); }
.hero__badges li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 10px var(--c-accent);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section__header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.section__lead { color: var(--c-muted); font-size: 1.05rem; }

/* ---------- Servicios ---------- */
.services__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 34, 56, .9), rgba(10, 26, 47, .9));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(53, 215, 168, .4); box-shadow: var(--shadow-glow); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(38, 152, 191, .2), rgba(53, 215, 168, .2));
  border: 1px solid var(--c-border);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--c-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.2rem; margin-bottom: .6rem; }
.card__text { color: var(--c-muted); font-size: .97rem; }

/* ---------- Nosotros ---------- */
.about__inner { display: grid; gap: 3rem; align-items: center; }
.about__media { position: relative; }
.about__media > img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.about__media::after {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 2px solid var(--c-accent); border-radius: var(--radius); opacity: .35;
}
.about__media { isolation: isolate; }
.about__media-card {
  position: absolute; left: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
  background: rgba(6, 15, 30, .9); backdrop-filter: blur(8px);
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: .7rem 1rem; font-size: .9rem; max-width: calc(100% - 2rem);
}
.about__media-card img { width: 40px; height: 40px; border-radius: 50%; }
.about__media-card strong { color: var(--c-accent); }
.about__content > p { color: var(--c-muted); margin-bottom: 2rem; }

.features { display: grid; gap: 1.25rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__check {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient); position: relative; margin-top: 2px;
}
.feature__check::after {
  content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 12px;
  border: solid var(--c-on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.feature h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.feature p { color: var(--c-muted); font-size: .95rem; }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(15, 34, 56, .6);
  border: 1px solid var(--c-border); border-radius: var(--radius);
}
.step__num {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--c-muted); font-size: .95rem; }

/* ---------- Cifras ---------- */
.stats { padding: 3rem 0; border-block: 1px solid var(--c-border); background: var(--c-bg); }
.stats__grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
.stat__value {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--c-accent); line-height: 1.1;
}
.stat__label { color: var(--c-muted); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; padding: clamp(4rem, 9vw, 6.5rem) 0; text-align: center; overflow: hidden; }
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(38, 152, 191, .85), rgba(6, 15, 30, .92) 55%, rgba(53, 215, 168, .55)),
    url("../img/cta.jpg") center / cover no-repeat;
}
.cta__inner { max-width: 760px; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.cta p { color: #cfe0ee; font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Contacto ---------- */
.contact__inner { display: grid; gap: 3rem; align-items: start; }
.contact__info > p { color: var(--c-muted); margin-bottom: 1.75rem; }
.contact__list { display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__list a:hover { color: var(--c-accent); }
.contact__icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(53, 215, 168, .1); border: 1px solid var(--c-border);
}
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--c-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 0 1.25rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form label { font-size: .9rem; font-weight: 500; color: var(--c-muted); }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--c-bg); border: 1px solid rgba(157, 176, 196, .22); border-radius: var(--radius-sm);
  padding: .8rem 1rem; transition: border-color var(--t), box-shadow var(--t);
}
.form textarea { resize: vertical; min-height: 130px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-accent) 50%), linear-gradient(135deg, var(--c-accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(53, 215, 168, .18);
}
.form .is-invalid { border-color: #ff6b6b; }
.form__status { min-height: 1.4em; font-size: .9rem; margin-bottom: .75rem; }
.form__status.is-error { color: #ff8a8a; }
.form__status.is-success { color: var(--c-accent); }

/* ---------- Footer ---------- */
.footer { background: #040b16; border-top: 1px solid var(--c-border); }
.footer__inner { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
.footer__brand p { color: var(--c-muted); margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer h3 { font-size: .95rem; margin-bottom: 1rem; color: #fff; }
.footer__nav ul { display: grid; gap: .5rem; }
.footer__nav a { color: var(--c-muted); transition: color var(--t); }
.footer__nav a:hover { color: var(--c-accent); }
.social { display: flex; gap: .75rem; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--c-border); transition: background var(--t), border-color var(--t);
}
.social a:hover { background: rgba(53, 215, 168, .12); border-color: var(--c-accent); }
.social svg { width: 18px; height: 18px; fill: none; stroke: var(--c-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { border-top: 1px solid rgba(157, 176, 196, .1); padding: 1.25rem 0; text-align: center; color: var(--c-muted); font-size: .88rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform var(--t);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Animaciones reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .about__inner { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .contact__inner { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* Menú mobile */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(6, 15, 30, .97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(157, 176, 196, .1); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { width: 100%; }
  .header.menu-open { background: rgba(6, 15, 30, .97); }
}

@media (max-width: 767px) {
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(6, 15, 30, .9) 0%, rgba(6, 15, 30, .82) 60%, var(--c-bg) 100%),
      url("../img/hero.jpg") center / cover no-repeat;
  }
}

@media (max-width: 480px) {
  .logo__top { font-size: 1.15rem; }
  .logo__icon { width: 38px; height: 38px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .about__media::after { inset: .75rem -.5rem -.75rem .75rem; }
}
