/* ============================================================
   WEBSERVICE SOLUTIONS — ESTILOS GLOBALES
   Versión reconstruida y depurada
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:       #061225;
  --bg2:      #091a35;
  --bg3:      #0e2244;
  --accent:   #1ab8ff;
  --accent2:  #0055dd;
  --text:     #cfe0f5;
  --muted:    #6a90bc;
  --white:    #ffffff;
  --ok:       #00c864;
  --danger:   #ff4d6d;
  --radius:   12px;
  --nav-h:    74px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white);
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ── Navegación ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,14,28,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,194,255,.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  height: 44px;
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(26,184,255,.4));
}
.nav-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem; font-weight: 800;
  color: var(--white); letter-spacing: .07em;
}

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 6px 14px; border-radius: 6px; transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(0,194,255,.1); }

/* Menú hamburguesa (móvil) */
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: all .25s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 20px rgba(0,194,255,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0,194,255,.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(0,194,255,.4);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0,194,255,.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 5% 80px;
  background: var(--bg2);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,102,255,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,194,255,.1) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; max-width: 660px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,194,255,.1); border: 1px solid rgba(0,194,255,.3);
  border-radius: 100px; padding: 5px 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes chatPulse {
  0%,100%{box-shadow: 0 0 0 0 rgba(0,230,118,.4)}
  50%{box-shadow: 0 0 0 7px rgba(0,230,118,0)}
}
@keyframes fadeDown {
  from { opacity:0; transform:translateY(-20px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Stats bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--bg3);
  border-top: 1px solid rgba(0,194,255,.1);
  border-bottom: 1px solid rgba(0,194,255,.1);
  padding: 40px 5%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: .85rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px;
}

/* ── Secciones ──────────────────────────────────────────── */
section { padding: 90px 5%; }

.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 50px; font-size: 1.05rem; }

/* ── Tarjetas de servicios ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg3);
  border: 1px solid rgba(0,194,255,.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s; position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transition: .3s; transform-origin: left;
}
.service-card:hover { border-color: rgba(0,194,255,.35); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(0,194,255,.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.service-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 18px; font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  transition: gap .2s, color .2s;
}
.service-link:hover { gap: 9px; color: var(--white); }

/* ── About strip ────────────────────────────────────────── */
.about-strip {
  background: var(--bg3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-strip img { border-radius: var(--radius); width: 100%; max-width: 420px; justify-self: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 12px; }

/* ── Partners ───────────────────────────────────────────── */
.partners { text-align: center; }
.partners-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 30px; margin-top: 40px;
}
.partners-row img {
  height: 40px;
  filter: brightness(0) invert(.6); transition: filter .3s;
}
.partners-row img:hover { filter: brightness(0) invert(1); }

/* ── Cabecera de página interior ────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 70px) 5% 60px;
  background: var(--bg2); position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 10% 50%, rgba(0,102,255,.15) 0%, transparent 70%);
}
.page-header-content { position: relative; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
.page-header p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin-top: 12px; }

/* ── Nosotros — Values grid ─────────────────────────────── */
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--bg3); border-radius: var(--radius);
  border: 1px solid rgba(0,194,255,.1); padding: 30px 26px;
}
.value-card .icon { font-size: 2rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--accent); }
.value-card p { color: var(--muted); font-size: .92rem; }

/* ── Contacto ───────────────────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start;
}
.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 30px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .ico {
  width: 42px; height: 42px; min-width: 42px;
  background: rgba(0,194,255,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 2px; }
.contact-item span { color: var(--muted); font-size: .88rem; }

.contact-form {
  background: var(--bg3);
  border: 1px solid rgba(0,194,255,.12);
  border-radius: var(--radius); padding: 38px;
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg2);
  border: 1.5px solid rgba(0,194,255,.15); border-radius: 8px;
  padding: 11px 14px; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: .95rem;
  transition: border-color .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-msg { display: none; padding: 12px 16px; border-radius: 8px; margin-top: 14px; font-size: .9rem; }
.form-msg.success {
  background: rgba(0,200,100,.12); border: 1px solid rgba(0,200,100,.3);
  color: #00c864; display: block;
}

/* ── Noticias ───────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--bg3); border-radius: var(--radius);
  border: 1px solid rgba(0,194,255,.1);
  overflow: hidden; transition: all .3s; cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(0,194,255,.3); }
.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.news-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,102,255,.2), rgba(0,194,255,.1));
}
.news-card-body { padding: 24px; }
.news-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block;
}
.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.news-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06);
}
.news-date { font-size: .78rem; color: var(--muted); }
.news-read { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

/* ── Filtros de noticias ────────────────────────────────── */
.filtro-btn {
  background: var(--bg3);
  border: 1.5px solid rgba(26,184,255,.15);
  color: var(--muted); border-radius: 100px;
  padding: 7px 18px; font-family: 'Barlow', sans-serif;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.filtro-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filtro-btn.active { background: rgba(26,184,255,.12); border-color: var(--accent); color: var(--accent); }

/* ── Spinner de carga ───────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(26,184,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(0,194,255,.1);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 260px; line-height: 1.65; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: var(--muted); font-size: .82rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-bar      { grid-template-columns: repeat(2,1fr); }
  .about-strip    { grid-template-columns: 1fr; }
  .contact-wrap   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .form-row       { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,14,28,.97); padding: 20px 5%; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .burger         { display: flex; }
  .stats-bar      { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid    { grid-template-columns: 1fr; }
  .contact-form   { padding: 24px; }
}
