/* ============================================
   CIBERCONSULTING - STYLES.CSS
   ============================================ */

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

:root {
  --bg-dark: #020B18;
  --bg-card: rgba(255, 255, 255, 0.03);
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --cyan-border: rgba(0, 212, 255, 0.2);
  --white: #FFFFFF;
  --gray: #94A3B8;
  --gray-light: #CBD5E1;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── STARS BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(0,212,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 60%, rgba(0,212,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 50%, rgba(0,212,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 75%, rgba(0,212,255,0.2) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 45%, rgba(0,212,255,0.15) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(2, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cyan-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Globe CSS logo */
.nav-globe {
  width: 42px;
  height: 42px;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.nav-globe svg { width: 100%; height: 100%; }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}

.nav-logo-text span { color: var(--blue-light); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--white); }

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: var(--blue-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
#inicio {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo-hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 24, 0.42);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  max-width: 580px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.hero-title-cyan {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--cyan);
  margin-bottom: 24px;
  display: block;
  letter-spacing: -0.5px;
}

.hero-desc {
  color: var(--gray-light);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.05);
  transform: translateY(-2px);
}

.hero-right { position: relative; z-index: 2; }

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; padding: 90px 5%; }

.section-label {
  display: inline-block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.section-title span { color: var(--cyan); }

.section-subtitle {
  color: var(--gray);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
  line-height: 1.7;
}

/* ── SERVICIOS ── */
#servicios { background: linear-gradient(180deg, var(--bg-dark) 0%, #030e1f 100%); }

#servicios .section-title { text-align: center; color: var(--cyan); font-size: 32px; letter-spacing: 1px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 1;
  visibility: visible;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.5);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.service-card .service-sub {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.service-card ul li {
  color: var(--gray-light);
  font-size: 13px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card ul li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='16' height='16' rx='4' fill='%2300D4FF' fill-opacity='0.15'/%3E%3Cpath d='M4 8l2.5 2.5L12 5' stroke='%2300D4FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

.service-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-banner-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,212,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.cta-banner p { color: var(--gray); font-size: 14px; }

.cta-banner-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--cyan-border);
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  overflow: hidden;
}

.stat-item {
  background: rgba(0, 212, 255, 0.03);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-item svg { width: 28px; height: 28px; color: var(--cyan); }

.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.stat-label { color: var(--gray); font-size: 12px; }

/* ── NOSOTROS ── */
#nosotros { background: var(--bg-dark); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.nosotros-text p {
  color: var(--gray-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Partners component */
.partners-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.partners-svg-container {
  width: 100%;
  height: 100%;
}

/* Mission Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  padding: 32px;
  opacity: 1;
  visibility: visible;
}

.mv-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-card p {
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ── BLOG ── */
#blog { background: linear-gradient(180deg, #030e1f 0%, var(--bg-dark) 100%); }

#blog .section-title { text-align: center; }
#blog .section-label { display: block; text-align: center; }
#blog .section-subtitle { margin-bottom: 48px; }

.blog-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.blog-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.blog-card {
  min-width: calc(33.333% - 16px);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 1;
  visibility: visible;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.12);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-card-img-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1628 0%, #0d2a45 50%, #091525 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img-bg svg { width: 48px; height: 48px; opacity: 0.3; }

.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.blog-card-body { padding: 24px; }

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-date {
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-body p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.blog-link:hover { gap: 10px; }

.blog-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.blog-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cyan-border);
  background: var(--bg-card);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.blog-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
}

.blog-center { text-align: center; }

/* ── CONTACTO ── */
#contacto {
  background: radial-gradient(ellipse at center top, rgba(0,212,255,0.05) 0%, var(--bg-dark) 60%);
}

#contacto .section-title { text-align: center; }
#contacto .section-label { display: block; text-align: center; }

.contact-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 48px;
  font-size: 16px;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.3px;
}

.form-group label span { color: var(--cyan); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148, 163, 184, 0.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.04);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300D4FF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select option { background: #0d1f35; color: var(--white); }

.form-group textarea { resize: vertical; min-height: 120px; }

.radio-group {
  margin-bottom: 20px;
}

.radio-group label:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-light);
  display: block;
  margin-bottom: 12px;
}

.radio-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--gray-light);
  font-size: 14px;
}

.radio-option input[type="radio"] { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.checkbox-group input[type="checkbox"] { accent-color: var(--cyan); width: 16px; height: 16px; margin-top: 2px; cursor: pointer; flex-shrink: 0; }

.checkbox-group label {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a { color: var(--cyan); text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ── FOOTER ── */
footer {
  background: #010810;
  border-top: 1px solid var(--cyan-border);
  padding: 32px 5%;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* ── MANTENIMIENTO ── */
.mantain-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  gap: 24px;
}

.mantain-icon { animation: spin 6s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.mantain-page h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
}

.mantain-page p { color: var(--gray); font-size: 16px; max-width: 400px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .hero-title, .hero-title-cyan { font-size: 40px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(2, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--cyan-border);
  }

  .nav-menu.active { display: flex; }
  .hamburger { display: flex; }

  #inicio { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-right { display: none; }
  .hero-title, .hero-title-cyan { font-size: 34px; }

  .services-grid { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner-left { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .blog-card { min-width: calc(85vw); }
  .section-title { font-size: 28px; }
}

/* ── GLOW ANIMATION ── */
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0,212,255,0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(0,212,255,0.8)); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}
