/* ===== VARIABLES ===== */
:root {
  --bg: #0b0f14;
  --muted: #0c1117;
  --card: #121821;
  --text: #e6f1ff;
  --text-muted: #a8b3c7;
  --primary: #00D4FF;
  --accent: #7C5CFF;
  --success: #2de38a;
  --danger: #ff5c7c;
  --border: #203042;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
  font-family: 'Inter', sans-serif;
}

/* ===== RESET ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--text); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0; }
.section-muted { background: var(--muted); }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; margin: 0 0 24px; }
.subtitle { color: var(--text-muted); }


/* ===== HEADER ===== */
.site-header {
 animation: headerQuantum 1s cubic-bezier(.25,1.25,.5,1) forwards;
}
@keyframes headerQuantum {
  0% { transform: translateY(-120%); opacity: 0; }
  60% { transform: translateY(20px); opacity: 1; }
  80% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Grid flexible */
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  position: relative;
}   

/*iluminación de texto*/
.nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  text-shadow: 0 0 8px rgba(0,212,255,.6),
               0 0 16px rgba(124,92,255,.4);
}


/* Navegación desktop */
.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav a:hover, .nav a.active {
  color: var(--text);
}

/* Botón toggle (oculto en desktop) */
.nav.open a {
  opacity: 0;
  transform: translateX(40px) rotateY(30deg);
  animation: cascadeIn 0.6s forwards;
}
.nav.open a:nth-child(1) { animation-delay: 0.1s; }
.nav.open a:nth-child(2) { animation-delay: 0.2s; }
.nav.open a:nth-child(3) { animation-delay: 0.3s; }
.nav.open a:nth-child(4) { animation-delay: 0.4s; }
.nav.open a:nth-child(5) { animation-delay: 0.5s; }
.nav.open a:nth-child(6) { animation-delay: 0.6s; }
.nav.open a:nth-child(7) { animation-delay: 0.7s; }

@keyframes cascadeIn {
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none; /* oculto por defecto */
    flex-direction: column;
    gap: 16px;
    background: rgba(11,15,20,.97);
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav.open {
    display: flex; /* se muestra al abrir */
    animation: fadeIn 0.3s ease;
  }
  .nav-toggle {
    display: block; /* solo visible en móvil */
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===== HERO ===== */
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.title { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; margin: 0 0 14px; }
.hero-ctas { display: flex; gap: 12px; margin: 20px 0; }

/*logos de clientes =====*/
.section.section-muted {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section.section-muted .kicker {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00ffe0;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,255,224,0.3);
  border-radius: 12px;
  padding: 25px 15px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  text-align: center;
}

.logo:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #00ffe0;
  color: #00ffe0;
}


/* ===== FEATURES / BENEFITS ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; margin-top: 24px; }
.benefit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-weight: 600; }

/* ===== SERVICES ===== */
.service { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.service-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.price { color: var(--text-muted); font-weight: 600; }
.bullets, .steps { margin: 0 0 12px 0; padding-left: 18px; color: var(--text-muted); }
.notice { margin-top: 20px; border-left: 3px solid var(--primary); padding: 12px; background: rgba(0,212,255,.06); }

/* ===== CASES ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.case { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.case-results { color: var(--success); font-weight: 700; }
blockquote { margin: 10px 0 0; border-left: 3px solid var(--accent); padding-left: 10px; color: #d8d1ff; }

/* ===== ABOUT / TEAM ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.team { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.member { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }


/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 8px; }
input, textarea { background: #0b1218; border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text); }
input:focus, textarea:focus { outline: 1px solid var(--primary); }
.error { color: var(--danger); font-size: 0.85rem; }
.form-success { margin-top: 12px; background: rgba(45,227,138,.08); border: 1px solid rgba(45,227,138,.25); padding: 12px; border-radius: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--muted);
  color: var(--text);
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 3rem; margin-bottom: 2rem;
}
.footer-grid > div { flex: 1 1 250px; }
.footer h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 0.75rem; position: relative; }
.footer h4::after {
  content: ""; display: block; width: 35px; height: 2px;
  background: var(--accent); border-radius: 2px; margin-top: 6px;
}
.footer p { color: var(--text-muted); font-size: 0.95rem; }
.footer-links, .footer-links-legal { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-links-legal li { margin: 0.4rem 0; }
.footer-links a, .footer-links-legal a {
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, border-bottom-color 0.2s ease;
  display: inline-block; border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links-legal a:hover {
  color: var(--primary);
  transform: translateX(3px);
  border-bottom-color: var(--primary);
}

/* Pie inferior */
.container-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-grid { flex-direction: column; gap: 2rem; }
  .container-footer-bottom { flex-direction: column; text-align: center; }
}



/* ===== BOTÓN PRIMARY HOLOGRÁFICO ===== */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 46px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #0a0a0a;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Borde holográfico exterior */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    #00ffe0,
    #0078d4,
    #7c5cff,
    #ff5c7c,
    #00ffe0
  );
  background-size: 400% 400%;
  animation: holoSpin 12s linear infinite;
  filter: blur(8px) brightness(1.3);
  z-index: -2;
}

/* Interior líquido prismático */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.25), transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(124,92,255,0.25), transparent 40%),
              linear-gradient(135deg, rgba(255,92,124,0.15), rgba(0,212,255,0.15));
  background-size: 300% 300%;
  animation: liquidFlow 10s ease-in-out infinite;
  z-index: -1;
}

/* Hover: halo prismático */
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(0,212,255,0.6),
              0 0 120px rgba(124,92,255,0.4),
              inset 0 0 40px rgba(255,92,124,0.3);
}

/* Active: pulso explosivo */
.btn-primary:active {
  transform: scale(0.95);
  box-shadow: 0 0 50px rgba(255,92,124,0.7),
              inset 0 0 50px rgba(0,212,255,0.5);
}

/* Animaciones */
@keyframes holoSpin {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(180deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}
@keyframes liquidFlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}




/* Títulos con efecto neón */
h1, h2, h3 {
  background: linear-gradient(90deg, #00D4FF, #7C5CFF, #ff5c7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 10px #00D4FF; }
  to { text-shadow: 0 0 25px #7C5CFF, 0 0 40px #ff5c7c; }
}



/* Cards 3D */
.service, .case, .resource {
  transform-style: preserve-3d;
  transition: transform 0.6s, box-shadow 0.6s;
}
.service:hover, .case:hover, .resource:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,212,255,.3);
}

/* Texto glitch */
.glitch {
  position: relative; color: #fff; font-weight: bold;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0;
}
.glitch::before {
  animation: glitchTop 1s infinite linear alternate-reverse;
  color: #00D4FF; clip: rect(0, 900px, 0, 0);
}
.glitch::after {
  animation: glitchBottom 1s infinite linear alternate-reverse;
  color: #ff5c7c; clip: rect(0, 900px, 0, 0);
}
@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(2px, -2px); }
  50% { clip: rect(0, 9999px, 100%, 0); transform: translate(-2px, 2px); }
  100% { clip: rect(0, 9999px, 0, 0); transform: translate(0, 0); }
}
@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(-2px, 2px); }
  50% { clip: rect(0, 9999px, 100%, 0); transform: translate(2px, -2px); }
  100% { clip: rect(0, 9999px, 0, 0); transform: translate(0, 0); }
}

/* Footer con luces animadas */
.footer {
  position: relative; overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; bottom: 0; left: -50%;
  width: 200%; height: 4px;
  background: linear-gradient(90deg, #00D4FF, #7C5CFF, #ff5c7c, #00D4FF);
  animation: footerLights 6s linear infinite;
}
@keyframes footerLights {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 940px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
}



/* Títulos con efecto neón */
h1, h2, h3 {
  background: linear-gradient(90deg, #00D4FF, #7C5CFF, #ff5c7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 10px #00D4FF; }
  to { text-shadow: 0 0 25px #7C5CFF, 0 0 40px #ff5c7c; }
}


/* Cards 3D */
.service, .case, .resource {
  transform-style: preserve-3d;
  transition: transform 0.6s, box-shadow 0.6s;
}
.service:hover, .case:hover, .resource:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,212,255,.3);
}

/* Texto glitch */
.glitch {
  position: relative; color: #fff; font-weight: bold;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0;
}
.glitch::before {
  animation: glitchTop 1s infinite linear alternate-reverse;
  color: #00D4FF; clip: rect(0, 900px, 0, 0);
}
.glitch::after {
  animation: glitchBottom 1s infinite linear alternate-reverse;
  color: #ff5c7c; clip: rect(0, 900px, 0, 0);
}
@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(2px, -2px); }
  50% { clip: rect(0, 9999px, 100%, 0); transform: translate(-2px, 2px); }
  100% { clip: rect(0, 9999px, 0, 0); transform: translate(0, 0); }
}
@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(-2px, 2px); }
  50% { clip: rect(0, 9999px, 100%, 0); transform: translate(2px, -2px); }
  100% { clip: rect(0, 9999px, 0, 0); transform: translate(0, 0); }
}

/* Footer con luces animadas */
.footer {
  position: relative; overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; bottom: 0; left: -50%;
  width: 200%; height: 4px;
  background: linear-gradient(90deg, #00D4FF, #7C5CFF, #ff5c7c, #00D4FF);
  animation: footerLights 6s linear infinite;
}
@keyframes footerLights {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}



/* Texto typing */
.typing {
  overflow: hidden;
  border-right: .15em solid var(--primary);
  white-space: nowrap;
  animation: typing 4s steps(30, end) infinite alternate,
             blink .75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}

/* Separadores morphing (ondas) */
.section::after {
  content: "";
  display: block;
  height: 80px;
  background: url('wave.svg') no-repeat center/cover;
  animation: waveMove 10s linear infinite;
}
@keyframes waveMove {
  from { background-position-x: 0; }
  to { background-position-x: 1000px; }
}

/* Botón con ripple */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 5px; height: 5px;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
}
@keyframes ripple {
  to { transform: scale(20); opacity: 0; }
}


body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  padding: 0;
}









/* Ajustes del header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Contenedor de marca */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

/* Logo */
.brand-logo {
  height: 60px;        /* tamaño del logo */
  width: auto;
  display: block;
}

/* Nombre de la marca */
.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}






#intro-video {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

#intro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



