/* bienvenida.css */

/* --- 0. Video de Fondo --- */
#background-video-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  overflow: hidden;
}
#background-video {
  width: 100vw; height: 100vh;
  object-fit: cover;
}

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

/* Variables con fondo “aurora 3D” */
:root {
  --bg:
    radial-gradient(1200px 600px at 20% 10%, rgba(0, 255, 200, 0.25) 0%, transparent 55%),
    radial-gradient(900px 480px at 80% 20%, rgba(0, 119, 255, 0.25) 0%, transparent 60%),
    conic-gradient(from 180deg at 50% 100%, #0e0e1a 0deg, #121022 90deg, #10101e 180deg, #0a0b10 270deg, #0e0e1a 360deg);
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --text: #e6f6ff;
  --muted: #a5b3c7;
  --primary: #00ffae;
  --primary-900: #00332e;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
}

/* Reset básico */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Poppins, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text);
}
p {
  font-size: 1.125em;
  line-height: 1.7;
}

/* Utilidades */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 72px 0;
}
.section.alt {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.section__title {
  font-size: 2.2rem;
  margin: 0 0 8px;
}
.section__subtitle {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ===== Header (landing) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(5, 10, 20, 0.7) 100%);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 8px 22px rgba(0, 255, 200, 0.05), 0 0 12px rgba(0, 255, 200, 0.08);
  border-image: linear-gradient(90deg, #00ffae, #3a86ff, #ff0099) 1;
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}
.header-rail {
  height: 3px;
  background: linear-gradient(90deg, #3a86ff, #00ffae, #ff0099);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  opacity: 0.9;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  object-fit: cover;
  transition: transform .2s ease;
}
.brand__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: .2px;
}
.brand:hover .brand__logo {
  transform: scale(1.04);
}

/* Nav (landing) */
.primary-nav {
  display: block;
}
.nav-list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease, box-shadow .3s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.15);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #00ffae, #3a86ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}
.nav-button {
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: box-shadow .3s ease;
}
.nav-button:hover {
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 6px rgba(0,255,200,0.2);
}
.chev {
  transition: transform .15s ease;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 8px;
  padding: 8px;
  display: none;
  background: rgba(0,0,0,.92);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dropdown.open {
  display: block;
}
.has-dropdown .dropdown__item {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
.has-dropdown .dropdown__item:hover {
  background: rgb(255, 255, 255);
}

/* Botones base */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  will-change: transform;
}
.btn--sm {
  padding: 10px 16px;
  font-size: .95rem;
}
.btn--primary {
  background: linear-gradient(90deg, #00c9a7, #3a86ff);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,201,167,.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,201,167,.4);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--stroke);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08);
}

/* Toggle hamburguesa (landing) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease;
}

/* Off-canvas móvil (landing) */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: fixed;
    top: 72px;
    right: -100%;
    bottom: 0;
    width: 78%;
    background: rgba(0,0,0,.95);
    border-left: 1px solid var(--stroke);
    transition: right .25s ease;
    padding: 12px;
    z-index: 200;
  }
  .primary-nav.open {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .has-dropdown .dropdown {
    position: static;
    margin-top: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--stroke);
  }
  .dropdown.open {
    display: block;
  }
  .chev {
    transform: rotate(0deg) !important;
  }
  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    z-index: 150;
  }
  body.menu-open {
    overflow: hidden;
  }
}

/* ===== Hero (landing) ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}
.hero__copy h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 10px;
}
.hero__copy p {
  color: var(--muted);
  margin: 0 0 18px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tarjeta 3D con VIDEO */
.hero__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transform: translateZ(0);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,201,167,.95), rgba(58,134,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto -20% -25% -20%;
  height: 50%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0,201,167,.55), transparent 80%);
  filter: blur(30px);
  z-index: -1;
}
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__media {
    order: -1;
  }
}

/* Animación de aparición del hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Cards de servicios (landing) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.card.depth::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 35%);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0,201,167,0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(0,201,167,.15), rgba(58,134,255,.15));
  color: var(--primary);
}

/* ===== About / CTA / Contact / Footer (landing) ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: stretch;
}
.about__copy p {
  color: var(--muted);
}
.bullets {
  margin: 14px 0 0;
  padding-left: 18px;
}
.bullets li {
  margin: 8px 0;
}
.about__card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.stat {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  text-align: center;
}
.stat__num {
  font-size: 1.8rem;
  font-weight: 700;
}
.stat__label {
  color: var(--muted);
}

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

.cta {
  background: linear-gradient(90deg, var(--primary-900), rgba(0,0,0,.3));
}
.cta__inner {
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.cta__inner h2 {
  margin: 0 0 10px;
}
.cta__inner p {
  color: var(--muted);
  margin: 0 0 20px;
}

.contact-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.contact-icons .icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--stroke);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  animation: floatIcon 4s ease-in-out infinite;
}
.contact-icons .icon:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
}
@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.site-footer {
  border-top: 1px solid var(--stroke);
  background: rgba(0,0,0,.45);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.footer__inner p {
  margin: 0;
  color: var(--muted);
}
.to-top {
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 6px 10px;
}
.to-top:hover {
  background: rgba(255,255,255,.1);
}

/* Animaciones de entrada */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }
.in-view {
  opacity: 1;
  transform: none;
}

/* Accesibilidad */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal, .card:hover, .btn:hover, .nav-link:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* DOCK 3D (Inicio/Menú) */
.command-dock {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 220;
  display: flex;
  gap: 10px;
  align-items: center;
  perspective: 900px;
  animation: gentleFloat 6s ease-in-out infinite;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.dock-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: rgba(12,16,22,.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 25px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.dock-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.25px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0,201,167,.9), rgba(58,134,255,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .85;
}
.dock-pill:hover {
  transform: translateY(-2px) rotateX(6deg) rotateY(-3deg);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.22);
}
.dock-pill svg {
  flex: 0 0 auto;
  opacity: .95;
}
.dock-home {
  background: linear-gradient(180deg, rgba(20,26,36,.65), rgba(10,14,18,.55));
}
.dock-menu {
  background: linear-gradient(180deg, rgba(20,36,30,.65), rgba(10,18,14,.55));
}

@media (max-width: 600px) {
  .command-dock {
    top: auto;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* QUICK MENU (dialog) */
.quickmenu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
}
.quickmenu.open {
  display: grid;
}
.quickmenu__panel {
  width: min(560px, 92vw);
  border-radius: 18px;
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid var(--stroke);
  box-shadow: 0 22px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  animation: panelIn .18s ease-out forwards;
}
@keyframes panelIn {
  to {
    transform: none;
    opacity: 1;
  }
}
.quickmenu__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
}
.quickmenu__close:hover {
  background: rgba(255,255,255,.06);
}
.quickmenu__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.quickmenu__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  object-fit: cover;
}
.quickmenu__nav {
  display: grid;
  gap: 10px;
  padding: 8px 2px 2px;
}
.quickmenu__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.quickmenu__nav a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.25);
}
.quickmenu__nav a.accent {
  background: linear-gradient(90deg, #141E30 0%, var(--primary) 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0,201,167,.25);
}
.quickmenu__nav a.accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,201,167,.32);
}
.quickmenu__panel :is(a,button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 10px;
}

.reveal.delay-1 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 500;
}
.card {
  position: relative;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(0, 255, 200, 0.5);
  box-shadow: 0 18px 38px rgba(0, 255, 200, 0.25), 0 0 12px rgba(0, 255, 200, 0.15);
}
