/* DOS22 Media — Opción B: Carousel + Panel HUD */

:root {
  --bg-primary: #0b0f19;
  --bg-surface: #1e293b;
  --bg-surface-hover: #243044;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --border-glow: rgba(139, 92, 246, 0.5);
  --radius: 8px;
  --radius-pill: 50px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.35s ease;
  --header-height: 92px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

main { position: relative; z-index: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 60px;
}

.header__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: filter var(--transition);
}

.header__logo-link:hover {
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

.header__logo {
  height: 52px;
  width: 220px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}

.header__pills { display: flex; gap: 0.5rem; }

.pill {
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__subnav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.6rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header__subnav a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.header__subnav a:hover,
.header__subnav a.is-active { color: var(--accent-cyan); }

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }

.btn--primary,
a.btn--primary {
  background: var(--accent-violet);
  color: white;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);
  text-decoration: none;
}

a.btn--angular {
  text-decoration: none;
  display: inline-flex;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(139, 92, 246, 0.7); }

.btn--outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.btn--angular {
  background: var(--accent-violet);
  color: white;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 1rem 3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* ── Hero ── */
.hero { padding: 3rem 0 4rem; }

.hero__frame {
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 0 60px rgba(59, 130, 246, 0.03);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  padding: 1.25rem 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(11, 15, 25, 0.5) 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: var(--radius);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.25),
    0 0 80px rgba(139, 92, 246, 0.15),
    inset 0 0 30px rgba(59, 130, 246, 0.05);
  width: fit-content;
  position: relative;
}

.hero__brand::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__logo {
  height: clamp(72px, 12vw, 110px);
  width: clamp(220px, 38vw, 360px);
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: lighten;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 32px rgba(59, 130, 246, 0.5))
    drop-shadow(0 0 64px rgba(139, 92, 246, 0.25));
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__social {
  margin-top: 1.5rem;
}

.hero__social .social-links {
  justify-content: center;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: rgba(11, 15, 25, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-links__item:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.social-links__item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero__visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo-bg {
  position: absolute;
  height: clamp(140px, 22vw, 220px);
  width: clamp(280px, 45vw, 440px);
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0.18;
  filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.6));
  z-index: 0;
  animation: logoPulse 5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.03); }
}

.hero__jellyfish {
  width: 280px;
  height: 320px;
  position: relative;
  z-index: 2;
}

.jf-body {
  position: absolute;
  inset: 10% 15%;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 50% 30%, rgba(139,92,246,0.7) 0%, rgba(59,130,246,0.4) 40%, rgba(34,211,238,0.2) 70%, transparent 100%);
  filter: blur(2px);
  animation: pulse 4s ease-in-out infinite;
}

.jf-tentacle {
  position: absolute;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(139,92,246,0.6), transparent);
  border-radius: 2px;
  animation: sway 3s ease-in-out infinite;
}

.jf-tentacle:nth-child(2) { left: 30%; height: 45%; animation-delay: 0.2s; }
.jf-tentacle:nth-child(3) { left: 42%; height: 55%; animation-delay: 0.5s; }
.jf-tentacle:nth-child(4) { left: 54%; height: 50%; animation-delay: 0.8s; }
.jf-tentacle:nth-child(5) { left: 66%; height: 40%; animation-delay: 1.1s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* ── Carousel Section ── */
.carousel-section { padding: 4rem 0 2rem; text-align: center; }

.carousel-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.carousel-nav__btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--accent-violet);
  color: var(--accent-violet);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background var(--transition), box-shadow var(--transition);
}

.carousel-nav__btn:hover,
.carousel-nav__btn:focus-visible {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 16px var(--border-glow);
  outline: none;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding: 1rem 0 2rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 2rem;
}

.carousel-card {
  flex: 0 0 220px;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0.6;
  transform: scale(0.92);
}

.carousel-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent-violet);
  box-shadow: 0 0 30px var(--border-glow);
}

.carousel-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-card__thumb svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
}

.carousel-card__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.5rem;
}

.carousel-card__subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

/* ── HUD Panel ── */
.hud-section { padding: 2rem 0 4rem; }

.hud-panel {
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.1);
}

.hud-panel::before,
.hud-panel::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-violet);
  z-index: 2;
}

.hud-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hud-panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hud-panel__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 480px;
}

.hud-panel__visual {
  position: relative;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hud-panel__visual--has-video {
  align-items: stretch;
}

.hud-panel__media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-panel__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  background: #000;
}

.hud-panel__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hud-panel__video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
}

button.hud-panel__video-fallback {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
}

.hud-panel__video-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-panel__video-play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
  margin-bottom: 0.75rem;
}

.hud-panel__video-label {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hud-panel__video-note {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  margin: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(11, 15, 25, 0.85);
  border-radius: 4px;
}

.hud-panel__visual--has-video .hud-specs {
  z-index: 3;
}

.hud-panel__bg {
  position: absolute;
  inset: 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.hud-panel__icon-large {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
}

.hud-panel__icon-large svg {
  width: 56px;
  height: 56px;
  stroke: white;
  fill: none;
}

.hud-specs {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 200px;
}

.hud-specs__title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.75rem;
}

.hud-specs__item {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hud-specs__item strong { color: var(--accent-cyan); }

.hud-panel__sidebar {
  background: rgba(30, 41, 59, 0.6);
  border-left: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.hud-block__title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.hud-block__text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hud-panel__description {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hud-panel__cta {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

/* ── Grid Resumen ── */
.grid-resumen { padding: 4rem 0 6rem; }

.grid-resumen__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}

.grid-resumen__title span { color: var(--accent-violet); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--accent-violet);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(34,211,238,0.15));
}

.service-card__icon svg { width: 22px; height: 22px; stroke: var(--accent-cyan); fill: none; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-violet);
}

.service-card__subtitle { font-size: 0.95rem; font-weight: 600; line-height: 1.35; }

.service-card__description { font-size: 0.82rem; color: var(--text-muted); flex: 1; }

.service-card__list { display: flex; flex-direction: column; gap: 0.4rem; }

.service-card__list li { font-size: 0.8rem; color: var(--text-muted); }

.service-card__list strong { color: var(--accent-cyan); }

.service-card__cta { margin-top: auto; }

.service-card__cta .btn { width: 100%; font-size: 0.75rem; padding: 0.7rem 1rem; }

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
}

.footer__logo {
  height: 28px;
  width: 120px;
  margin: 0 auto 1rem;
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0.8;
}

.footer__text { font-size: 0.8rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__frame { grid-template-columns: 1fr; padding: 2rem; }
  .hero__visual { height: 260px; order: -1; }
  .hud-panel__inner { grid-template-columns: 1fr; }
  .hud-panel__sidebar { border-left: none; border-top: 1px solid rgba(139,92,246,0.2); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header__subnav { display: none; }
  .header__subnav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  .header__menu-btn { display: block; }
  .header__pills { display: none; }
  .header__logo {
    height: 40px;
    width: 170px;
  }
  .hero__brand { padding: 1rem 1.25rem; }
  .carousel-card { flex: 0 0 180px; }
  .services-grid { grid-template-columns: 1fr; }
  .hud-specs { position: relative; top: auto; left: auto; margin-bottom: 1rem; }
  .hud-panel__visual { flex-direction: column; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jf-body, .jf-tentacle { animation: none; }
  .hero__logo-bg { animation: none; }
  .carousel-track { transition: none; }
}
