/* ==============================================================
   PlinVA Global Solutions | Sitio web corporativo
   Hoja de estilos compartida por todas las páginas HTML.
   Edición oscura, acentos azul y cian.
   ============================================================== */

:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-elevated: #101a2a;
  --text: #f3f7ff;
  --text-secondary: #c6d0e3;
  --muted: #9eacc4;
  --line: rgba(144, 165, 204, 0.2);
  --blue: #3284ef;
  --cyan: #42c7e2;
  --gradient: linear-gradient(110deg, #387afe 8%, #338fe8 55%, #3fd1dc 100%);
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --container: 1340px;
}

/* 01. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; }
::selection { color: #fff; background: #155b85; }
:focus-visible { outline: 3px solid #59cbea; outline-offset: 4px; }
.wrap { width: min(var(--container), calc(100% - 108px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  color: #9faec9;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* 02. Cabecera / navegación */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(7, 11, 19, 0.96);
  border-bottom: 1px solid rgba(133, 156, 198, 0.1);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 38px;
  min-height: 105px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  justify-self: start;
  gap: 7px;
  width: max-content;
}
.brand img { width: 178px; height: auto; }
.brand-tagline {
  display: block;
  padding-left: 3px;
  color: #a9b9d4;
  font-size: 10px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  position: relative;
  padding: 15px 0;
  color: #c1cee2;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 12px;
  background: var(--blue);
}
.btn, .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.btn:hover, .nav-button:hover { transform: translateY(-2px); }
.btn svg, .nav-button svg { width: 18px; height: 18px; flex: none; }
.nav-button {
  justify-self: end;
  min-height: 47px;
  color: #fff;
  border: 1px solid #2b8eff;
  background: linear-gradient(110deg, rgba(24,61,122,0.36), rgba(7,18,42,0.44));
  box-shadow: inset 0 0 24px rgba(34,111,255,0.09);
}
.nav-button:hover { box-shadow: 0 8px 28px rgba(26,115,205,0.2); }
.btn-dark {
  color: #fff;
  border: 1px solid #328df3;
  background: linear-gradient(100deg, rgba(14,45,112,0.8), rgba(10,32,73,0.8));
  box-shadow: 0 0 22px rgba(28,95,199,0.1);
}
.btn-dark:hover { border-color: #57d2fa; box-shadow: 0 8px 22px rgba(36,112,218,0.22); }
.btn-outline { color: #eef3fe; border: 1px solid #708eb7; background: rgba(4,10,19,0.52); }
.btn-outline:hover { border-color: #99c7f4; background: rgba(29,47,76,0.56); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); color: var(--text); }

/* 03. Portada principal */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 45% 60% at 78% 47%, rgba(22,43,84,0.17), transparent 79%), var(--bg);
}
.hero-inner { position: relative; display: flex; align-items: center; min-height: 728px; }
.hero-copy { position: relative; z-index: 3; width: min(675px, 55%); padding: 68px 0 66px; }
.hero-copy .eyebrow { display: block; margin-bottom: 32px; }
.hero h1 {
  margin: 0 0 29px;
  color: #f7f9ff;
  font-size: clamp(50px, 5.15vw, 75px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.069em;
  white-space: nowrap;
}
.hero-line { display: block; }
.hero-lead { max-width: 565px; margin: 0 0 37px; color: #c0cadc; font-size: clamp(16px, 1.37vw, 19px); line-height: 1.68; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: absolute; z-index: 1; pointer-events: none; right: -45px; top: 4px; width: 779px; height: 700px; isolation: isolate; }
.terrain-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: linear-gradient(to right, transparent 0%, #000 11%, #000 100%);
  filter: drop-shadow(0 0 20px rgba(64,113,239,0.05));
}
/* Barrido delicado dentro del relieve, sin línea horizontal atravesando la pantalla. */
.scan-sweep {
  position: absolute;
  z-index: 2;
  left: 23%;
  top: 29%;
  width: 42%;
  height: 42%;
  mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent 0%, rgba(57,148,235,0.07) 48%, transparent 100%);
  animation: scan-pulse 7s ease-in-out infinite alternate;
}
@keyframes scan-pulse {
  0% { opacity: 0.25; transform: translateY(-13px); }
  55% { opacity: 0.75; }
  100% { opacity: 0.25; transform: translateY(18px); }
}
.quick-services { border-top: 1px solid rgba(166,188,234,0.24); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 37px 0 40px; }
.quick-item { display: flex; align-items: flex-start; gap: 22px; min-width: 0; padding: 6px 37px; }
.quick-item:first-child { padding-left: 0; }
.quick-item:last-child { padding-right: 0; }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-dot { flex: none; width: 13px; height: 13px; margin-top: 11px; border-radius: 50%; background: #3497ec; box-shadow: 0 0 0 3px rgba(43,114,215,0.11); }
.quick-item:nth-child(2) .quick-dot { background: #40c5dc; box-shadow: 0 0 0 3px rgba(48,190,211,0.1); }
.quick-item:nth-child(3) .quick-dot { background: #7799ff; box-shadow: 0 0 0 3px rgba(119,153,255,0.1); }
.quick-title { margin: 0 0 8px; color: #f6f8fe; font-size: 19px; font-weight: 620; line-height: 1.35; letter-spacing: -0.04em; }
.quick-item p { max-width: 280px; margin: 0; color: #a9b7d0; font-size: 14px; line-height: 1.65; }

/* 04. Encabezados secundarios */
.page-hero { position: relative; overflow: hidden; padding: 104px 0 75px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; top: -230px; right: -160px; width: 440px; height: 440px; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(36,100,166,0.11), transparent 68%); }
.page-hero .eyebrow { display: block; margin-bottom: 20px; }
.page-hero h1 { max-width: 940px; margin-bottom: 20px; font-size: clamp(42px, 5vw, 66px); font-weight: 660; line-height: 1.13; letter-spacing: -0.06em; }
.page-hero p { max-width: 730px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.section { padding: 82px 0; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; }
.section-intro h2 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 640; line-height: 1.18; }
.section-intro p { max-width: 480px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 05. Servicios */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 72px minmax(0, 0.88fr) minmax(0, 1fr); column-gap: 26px; align-items: start; padding: 45px 0; border-bottom: 1px solid var(--line); }
.service-number { padding-top: 9px; color: #7ab5ed; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; }
.service-row h2 { margin: 0 0 13px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 630; line-height: 1.22; }
.service-row p { max-width: 600px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.service-right { padding-left: 22px; }
.service-right summary { display: inline-flex; align-items: center; gap: 12px; margin: 22px 0 0; color: #73ccf2; font-size: 14px; font-weight: 610; cursor: pointer; list-style: none; }
.service-right summary::-webkit-details-marker { display: none; }
.service-right summary::after { content: "+"; font-size: 20px; line-height: 1; font-weight: 400; }
.service-right details[open] summary::after { content: "−"; }
.service-right ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.service-right li { display: flex; align-items: flex-start; gap: 10px; color: #bdc9dc; font-size: 14px; line-height: 1.55; }
.service-right li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--cyan); }
.soft-panel { padding: 44px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(130deg, rgba(16,30,50,0.94), rgba(9,16,28,0.94)); }
.soft-panel h2 { margin-bottom: 14px; font-size: clamp(27px, 3vw, 39px); font-weight: 620; line-height: 1.2; }
.soft-panel p { max-width: 650px; margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }

/* 06. Nosotros */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 33px 34px 37px; }
.value:first-child { padding-left: 0; }
.value:last-child { padding-right: 0; }
.value + .value { border-left: 1px solid var(--line); }
.value-no { color: #7ab5ed; font-size: 12px; font-weight: 650; letter-spacing: 0.18em; }
.value h3 { margin: 22px 0 9px; font-size: 21px; font-weight: 625; line-height: 1.3; }
.value p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.use-cases { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.use-case { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 28px 24px 27px 0; border-bottom: 1px solid var(--line); }
.use-case .eyebrow { margin-top: 3px; color: #7aaddd; font-size: 10px; letter-spacing: 0.15em; }
.use-case p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* 07. Contacto */
.contact-layout { display: grid; grid-template-columns: 1fr 1.18fr; gap: min(10vw, 155px); }
.contact-copy h2 { margin: 8px 0 18px; font-size: clamp(26px, 3vw, 38px); font-weight: 620; line-height: 1.26; }
.contact-copy p { max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.contact-form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: #c9d5e8; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 16px; border: 1px solid #2c3e58; border-radius: 10px; background: #101a2a; color: #f1f6ff; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8294ab; }
.field :is(input, select, textarea):focus { border-color: #42b3ed; box-shadow: 0 0 0 3px rgba(49,141,218,0.19); }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-notice { padding: 14px 16px; border: 1px solid #24506e; border-radius: 10px; background: #0e273b; color: #cae8ff; font-size: 13px; line-height: 1.65; }
.form-notice[hidden] { display: none; }
.form-preview { display: none; padding: 19px 20px; border: 1px solid var(--line); border-radius: 11px; background: #0d1725; color: #e8f1ff; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-preview.visible { display: block; }

/* 08. Pie de página */
.footer { padding: 40px 0; border-top: 1px solid var(--line); background: #050912; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 30px; min-width: 0; }
.footer-brand img { width: 132px; height: auto; }
.footer-slogan { max-width: 280px; padding-left: 23px; border-left: 1px solid #324b6b; color: #aebbd0; font-size: 10px; line-height: 1.7; letter-spacing: 0.13em; text-transform: uppercase; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #9baece; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { color: #8092aa; font-size: 11px; }

/* 09. Diseño adaptable */
@media (max-width: 1180px) {
  .wrap { width: min(var(--container), calc(100% - 72px)); }
  .hero-inner { min-height: 650px; }
  .hero h1 { font-size: clamp(50px, 5.3vw, 69px); }
  .hero-visual { right: -85px; top: 11px; width: 668px; height: 625px; }
  .hero-copy { width: min(630px, 56%); }
  .quick-item { padding-inline: 25px; }
  .footer-grid { flex-wrap: wrap; }
}
@media (max-width: 850px) {
  .nav { min-height: 90px; grid-template-columns: 1fr auto; gap: 12px; }
  .brand img { width: 150px; }
  .brand-tagline { font-size: 9px; }
  .nav > nav { display: contents; }
  .nav-button { display: none; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 32px 24px;
    border-bottom: 1px solid var(--line);
    background: #0c1522;
    box-shadow: 0 18px 32px rgba(0,0,0,0.27);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 13px 8px; }
  .nav-links a.active::after { bottom: 7px; right: auto; left: 8px; width: 32px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { width: 100%; padding: 70px 0 12px; }
  .hero h1 { font-size: clamp(46px, 7vw, 70px); }
  .hero-visual { position: relative; right: auto; top: auto; width: min(100%, 660px); height: auto; aspect-ratio: 779 / 729; margin: -28px auto -32px; }
  .quick-grid { padding: 25px 0; gap: 10px; }
  .quick-item { gap: 14px; padding: 9px 18px; }
  .quick-title { font-size: 17px; }
  .quick-item p { font-size: 13px; }
  .service-row { grid-template-columns: 48px 1fr; gap: 12px; }
  .service-right { grid-column: 2; padding-left: 0; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 15px; }
  .value-grid { grid-template-columns: 1fr; }
  .value { padding: 25px 0; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  .contact-copy p { max-width: 610px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 38px); }
  .nav { min-height: 77px; }
  .brand img { width: 133px; }
  .brand-tagline { font-size: 8px; letter-spacing: 0.18em; }
  .hero-copy { padding: 56px 0 6px; }
  .hero-copy .eyebrow { margin-bottom: 18px; font-size: 10px; letter-spacing: 0.19em; }
  .hero h1 { margin-bottom: 19px; font-size: clamp(43px, 10vw, 57px); line-height: 1.1; letter-spacing: -0.065em; white-space: normal; }
  .hero-lead { margin-bottom: 27px; font-size: 15px; line-height: 1.72; }
  .actions { gap: 11px; }
  .btn { min-height: 47px; padding: 0 19px; gap: 10px; font-size: 13px; }
  .hero-visual { width: calc(100% + 25px); margin: -5px -13px -8px; }
  .quick-grid { grid-template-columns: 1fr; gap: 0; padding: 14px 0; }
  .quick-item { padding: 15px 2px; border: 0; }
  .quick-item + .quick-item { border-top: 1px solid var(--line); border-left: 0; }
  .quick-dot { width: 11px; height: 11px; margin-top: 9px; }
  .quick-title { margin-bottom: 4px; font-size: 17px; }
  .quick-item p { font-size: 13px; }
  .page-hero { padding: 65px 0 55px; }
  .page-hero h1 { font-size: clamp(39px, 9vw, 53px); }
  .page-hero p { font-size: 15px; }
  .section { padding: 58px 0; }
  .service-row { grid-template-columns: 1fr; gap: 0; padding: 35px 0; }
  .service-number { padding: 0; margin-bottom: 11px; }
  .service-right { grid-column: 1; margin-top: 12px; }
  .service-row h2 { font-size: 27px; }
  .soft-panel { padding: 28px 22px; }
  .use-cases { grid-template-columns: 1fr; }
  .use-case { grid-template-columns: 95px 1fr; padding: 23px 0; }
  .footer { padding: 34px 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 23px; }
  .footer-brand { gap: 21px; }
  .footer-brand img { width: 114px; }
  .footer-links { gap: 19px; }
}
@media (min-width: 621px) and (max-width: 750px) { .hero h1 { font-size: clamp(43px, 7.5vw, 55px); } }
@media (max-width: 430px) { .hero h1 { font-size: clamp(39px, 9.7vw, 45px); } .hero-line:first-child { letter-spacing: -0.075em; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
