/* ============================================================
   Centro de Soporte — hoja de estilos
   Sistema visual: consola de red / centro de monitoreo
   ============================================================ */

:root{
  --ink:      #0A121F;
  --ink-2:    #0D1626;
  --panel:    #101B2E;
  --line:     #22314A;
  --text:     #E8EDF4;
  --muted:    #90A0B8;
  --muted-2:  #5D6E88;
  --signal:   #34D1B8;
  --signal-dim: #1F8C7D;
  --alert:    #F2A93B;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1120px;
  --gutter: 28px;
}

*,*::before,*::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hairline{
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------
   Focus visibility
--------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Encabezado
--------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,18,31,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand{
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}

.brand .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(52,209,184,0.18);
}

.brand small{
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a{
  font-size: 14.5px;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover{ color: var(--text); }

.nav-cta{
  border: 1px solid var(--line);
  padding: 9px 18px !important;
  color: var(--text) !important;
  font-size: 14px !important;
  transition: border-color .15s ease, color .15s ease;
}
.nav-cta:hover{
  border-color: var(--signal);
  color: var(--signal) !important;
}

.nav-toggle{
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-toggle-label{ display:none; }
.nav-toggle:focus-visible ~ .nav-toggle-label{
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero{
  padding: 88px 0 76px;
  background:
    radial-gradient(680px 420px at 82% 8%, rgba(52,209,184,0.10), transparent 60%),
    var(--ink);
}

.hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--signal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

.hero h1{
  font-size: clamp(34px, 4.4vw, 52px);
  max-width: 15ch;
}

.hero .lede{
  margin-top: 22px;
  color: var(--muted);
  font-size: 17.5px;
  max-width: 46ch;
  line-height: 1.65;
}

.hero-ctas{
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary{
  background: var(--signal);
  color: #06251F;
}
.btn-primary:hover{ background: #4EDFC7; }

.btn-secondary{
  border-color: var(--line);
  color: var(--text);
}
.btn-secondary:hover{ border-color: var(--muted); }

.hero-flags{
  margin-top: 44px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.flag{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  min-width: 130px;
}
.flag b{
  display: block;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

/* Hero diagram */
.hero-art{
  position: relative;
}
.hero-art svg{ width: 100%; height: auto; }

.pulse-dot{
  animation: travel 3.6s linear infinite;
  offset-rotate: 0deg;
}
@keyframes travel{
  0%{ offset-distance: 0%; opacity: 0; }
  6%{ opacity: 1; }
  92%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}

/* ---------------------------------------------------------------
   Secciones — genérico
--------------------------------------------------------------- */
section{ padding: 92px 0; }

.section-head{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2{
  font-size: clamp(26px, 3vw, 34px);
  max-width: 14ch;
}

.section-head .desc{
  color: var(--muted);
  font-size: 15.5px;
  max-width: 44ch;
}

.tag{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  margin-bottom: 14px;
  display: block;
}

/* ---------------------------------------------------------------
   Servicios — lista tipo consola, no tarjetas
--------------------------------------------------------------- */
.service-row{
  display: grid;
  grid-template-columns: 60px 1.1fr 1.4fr 120px;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.services-list .service-row:last-child{
  border-bottom: 1px solid var(--line);
}

.service-icon{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--signal);
}
.service-icon svg{ width: 20px; height: 20px; }

.service-row h3{
  font-size: 19px;
  font-weight: 500;
}

.service-row .desc{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.service-status{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--signal);
  text-align: right;
  white-space: nowrap;
}
.service-status span{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  margin-right: 7px;
}

@media (max-width: 780px){
  .service-row{
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "icon title"
      "desc desc"
      "status status";
    row-gap: 10px;
  }
  .service-icon{ grid-area: icon; }
  .service-row h3{ grid-area: title; align-self:center; }
  .service-row .desc{ grid-area: desc; }
  .service-status{ grid-area: status; text-align: left; }
}

/* ---------------------------------------------------------------
   Nosotros
--------------------------------------------------------------- */
.about{
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about .wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.about-lede{
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
}

.pillars{
  display: grid;
  gap: 0;
}

.pillar{
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.pillar:last-child{ border-bottom: 1px solid var(--line); }

.pillar h4{
  font-size: 15px;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.pillar p{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------
   Proyectos
--------------------------------------------------------------- */
.projects-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project{
  background: var(--ink);
  padding: 36px;
}

.project .num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 22px;
  display: block;
}

.project svg{ width: 100%; height: auto; margin-bottom: 26px; }

.project h3{
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
}

.project p{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

@media (max-width: 780px){
  .projects-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   CTA final
--------------------------------------------------------------- */
.cta-band{
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2{
  font-size: clamp(24px, 3.4vw, 36px);
  max-width: 20ch;
  margin: 0 auto;
}
.cta-band .desc{
  color: var(--muted);
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 15.5px;
}
.cta-band .hero-ctas{ justify-content: center; margin-top: 32px; }

/* ---------------------------------------------------------------
   Pie de página
--------------------------------------------------------------- */
footer{ padding: 56px 0 40px; }

.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

footer .brand{ margin-bottom: 14px; }

footer .about-copy{
  color: var(--muted-2);
  font-size: 13.5px;
  max-width: 34ch;
  line-height: 1.7;
}

.footer-col h5{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col a, .footer-col p{
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover{ color: var(--signal); }

.footer-bottom{
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

@media (max-width: 780px){
  .footer-top{ grid-template-columns: 1fr; gap: 30px; }
}

/* ---------------------------------------------------------------
   Responsive — general
--------------------------------------------------------------- */
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 360px; margin: 0 auto 12px; }
  .section-head{ grid-template-columns: 1fr; }
  .about .wrap{ grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px var(--gutter);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links a{ font-size: 17px; }
  .nav-toggle-label{
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px 4px;
  }
  .nav-toggle-label span{
    width: 22px; height: 1.5px; background: var(--text);
  }
  .nav-toggle:checked ~ .nav-links{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (min-width: 721px){
  .nav-toggle-label{ display: none; }
}
