/* ==========================================================================
   Dark Hills Entertainment — estilos del sitio
   Sobre Bootstrap 5.2 + Bootstrap Icons. Sin dependencias adicionales.
   ========================================================================== */

:root {
  --bg: #02070a;
  --ink: #eef2f3;
  --ink-soft: rgba(238, 242, 243, 0.72);
  --muted: #8f9ca3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --teal: #2bb3c0;
  --teal-deep: #0b7d8c;
  --moon: #e4eff8;
  --card: linear-gradient(160deg, rgba(16, 32, 38, 0.72), rgba(5, 11, 14, 0.62));
  --radius: 18px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@property --dh-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: #165e69 #02070a;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #010507 0%, #041118 50%, #010507 100%);
  border-left: 1px solid rgba(43, 179, 192, 0.08);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #05161d 0%, #145a66 48%, #2bb3c0 50%, #145a66 52%, #05161d 100%);
  border-radius: 999px;
  border: 2px solid #02070a;
  box-shadow: inset 0 0 6px rgba(228, 239, 248, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0b3a44 0%, #2bb3c0 48%, #e4eff8 50%, #2bb3c0 52%, #0b3a44 100%);
  box-shadow: inset 0 0 8px rgba(228, 239, 248, 0.55);
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

main {
  width: 100%;
  overflow-x: clip;
}

main > section {
  position: relative;
  overflow-x: clip;
  scroll-margin-top: calc(var(--nav-h) - 4px);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover { color: var(--ink); }

::selection { background: rgba(43, 179, 192, 0.35); color: #fff; }

.text-muted { color: var(--muted) !important; }

.section-padding {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Section headings */
.dh-heading {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  position: relative;
}

.dh-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--moon));
  box-shadow: 0 0 14px rgba(43, 179, 192, 0.55);
}

.text-center > .dh-heading::after { margin-left: auto; margin-right: auto; }

@media (max-width: 991.98px) {
  .dh-heading.text-lg-start::after { margin-left: auto; margin-right: auto; }
}

@media (min-width: 992px) {
  .dh-heading.text-lg-start::after { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Escena: descenso a las colinas (fondo fijo)
   -------------------------------------------------------------------------- */
.dh-scene {
  --depth: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.dh-scene > * {
  position: absolute;
  inset: 0;
}

.dh-scene__img {
  inset: -8%;
  background: url('../images/background.webp') center 62% / cover no-repeat;
  transform-origin: 50% 78%;
  transform: translate3d(0, calc(var(--depth) * -7%), 0) scale(calc(1.04 + var(--depth) * 0.55));
  will-change: transform;
}

.dh-scene__fog {
  transform: translate3d(0, calc(var(--depth) * -14vh), 0);
  opacity: calc(0.35 + var(--depth) * 0.65);
  will-change: transform, opacity;
}

.dh-scene__fog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background:
    radial-gradient(ellipse 22% 18% at 12% 78%, rgba(150, 196, 206, 0.12), transparent 70%),
    radial-gradient(ellipse 20% 14% at 36% 92%, rgba(170, 206, 214, 0.14), transparent 70%),
    radial-gradient(ellipse 26% 16% at 62% 84%, rgba(150, 196, 206, 0.10), transparent 70%),
    radial-gradient(ellipse 18% 12% at 88% 95%, rgba(170, 206, 214, 0.13), transparent 70%);
  animation: dh-fog-drift 80s linear infinite alternate;
}

.dh-scene__fog--far {
  transform: translate3d(0, calc(var(--depth) * -6vh), 0);
  opacity: calc(0.2 + var(--depth) * 0.5);
}

.dh-scene__fog--far::before {
  top: -18%;
  animation-duration: 120s;
  animation-direction: alternate-reverse;
}

@keyframes dh-fog-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.dh-scene__dark {
  background: #010406;
  opacity: calc(0.28 + var(--depth) * 0.5);
}

.dh-scene__vignette {
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
  opacity: calc(0.55 + var(--depth) * 0.45);
}

.dh-scene__torch {
  inset: auto;
  top: 0;
  left: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 200, 212, 0.10), rgba(120, 200, 212, 0.03) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 0.8s;
  will-change: transform;
}

.dh-scene__torch.is-on { opacity: 1; }

.dh-scene__motes {
  width: 100%;
  height: 100%;
}

/* Grano de película (encima de todo, no interactivo) */
.dh-grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.07;
}

.dh-grain::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: dh-grain 0.9s steps(6) infinite;
}

@keyframes dh-grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-6%, 4%, 0); }
  40% { transform: translate3d(5%, -7%, 0); }
  60% { transform: translate3d(-3%, 8%, 0); }
  80% { transform: translate3d(7%, 2%, 0); }
  100% { transform: translate3d(-4%, -5%, 0); }
}

/* --------------------------------------------------------------------------
   Header (glass)
   -------------------------------------------------------------------------- */
.navbar.navbar-contrast {
  --progress: 0;
  padding: 0.95rem 0;
  background: rgba(3, 9, 12, 0.18);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: padding 0.45s var(--ease), background-color 0.45s, box-shadow 0.45s,
    -webkit-backdrop-filter 0.45s, backdrop-filter 0.45s, border-color 0.45s;
}

.navbar.navbar-contrast::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s;
}

.navbar.navbar-contrast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(var(--progress));
  background: linear-gradient(90deg, var(--teal-deep), var(--teal) 55%, var(--moon));
  box-shadow: 0 0 12px rgba(43, 179, 192, 0.8), 0 0 28px rgba(228, 239, 248, 0.35);
  opacity: 0;
  transition: opacity 0.45s;
}

.navbar.navbar-contrast.is-scrolled {
  padding: 0.5rem 0;
  background: rgba(4, 13, 17, 0.58);
  -webkit-backdrop-filter: blur(20px) saturate(175%) brightness(0.92);
  backdrop-filter: blur(20px) saturate(175%) brightness(0.92);
  border-bottom-color: rgba(43, 179, 192, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.navbar.navbar-contrast.is-scrolled::before,
.navbar.navbar-contrast.is-scrolled::after { opacity: 1; }

.navbar-brand,
.navbar-brand:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.navbar .navbar-nav .nav-link {
  position: relative;
  color: rgba(238, 242, 243, 0.72);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.95rem;
  transition: color 0.3s;
}

.navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--moon));
  box-shadow: 0 0 8px rgba(43, 179, 192, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #fff; }

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar .navbar-nav .nav-link.nav-lang {
  margin-left: 0.5rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.navbar .navbar-nav .nav-link.nav-lang::after { display: none; }

.navbar .navbar-nav .nav-link.nav-lang:hover {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(43, 179, 192, 0.35);
}

/* Hamburguesa → X */
.navbar-toggler {
  border: 0;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler .navbar-toggler-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: background 10ms 300ms ease;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
}

.navbar-toggler .navbar-toggler-icon::before { top: -8px; }
.navbar-toggler .navbar-toggler-icon::after { top: 8px; }

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon { background: transparent; }

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon::after {
  top: 0;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon::before { transform: rotate(45deg); }
.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon::after { transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    border-radius: var(--radius);
    background: rgba(4, 12, 16, 0.82);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }

  .navbar-collapse .navbar-nav { padding: 0.6rem 0.4rem; }

  .navbar .navbar-nav .nav-link {
    display: block;
    font-size: 1.15rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .navbar .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }

  .navbar .navbar-nav .nav-link::after { left: 1rem; right: auto; width: 32px; bottom: 0.55rem; }

  .navbar .navbar-nav .nav-link.nav-lang {
    display: inline-block;
    margin: 0.8rem 1rem 0.4rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--line-strong);
  }

  .navbar-collapse.show .nav-item { animation: dh-nav-in 0.5s var(--ease) both; }
  .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 40ms; }
  .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 80ms; }
  .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 120ms; }
  .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 160ms; }
  .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 200ms; }
  .navbar-collapse.show .nav-item:nth-child(7) { animation-delay: 240ms; }
}

@keyframes dh-nav-in {
  from { opacity: 0; transform: translate3d(-14px, 0, 0); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Íconos sociales (hero, equipo, footer)
   -------------------------------------------------------------------------- */
.social-icon {
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icon-item { list-style: none; }

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  transition: transform 0.4s var(--ease), color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.4s;
}

.social-icon-link::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--dh-angle), var(--teal), var(--moon), transparent 55%, var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  animation: dh-spin 2.4s linear infinite;
  animation-play-state: paused;
}

.social-icon-link > i,
.social-icon-link > span {
  display: block;
  transition: transform 0.4s var(--ease);
}

@keyframes dh-spin {
  to { --dh-angle: 360deg; }
}

.social-icon-link:focus-visible,
.social-icon-link:active {
  color: #fff;
  border-color: transparent;
  background: rgba(43, 179, 192, 0.16);
  box-shadow: 0 0 24px rgba(43, 179, 192, 0.4);
}

.social-icon-link:active { transform: scale(0.94); }

.social-icon-link:focus-visible::before,
.social-icon-link:active::before { opacity: 1; animation-play-state: running; }

@media (hover: hover) {
  .social-icon-link:hover {
    color: #fff;
    border-color: transparent;
    background: rgba(43, 179, 192, 0.14);
    box-shadow: 0 0 24px rgba(43, 179, 192, 0.4), 0 10px 22px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
  }

  .social-icon-link:hover::before { opacity: 1; animation-play-state: running; }
  .social-icon-link:hover > i,
  .social-icon-link:hover > span { transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn-outline-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s, box-shadow 0.35s, color 0.3s;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  color: #fff;
  border-color: var(--teal);
  background: rgba(43, 179, 192, 0.16);
  box-shadow: 0 0 26px rgba(43, 179, 192, 0.35);
  transform: translateY(-2px);
}

.btn-outline-light:hover::before { left: 120%; }

.btn-outline-light:active {
  color: #fff;
  border-color: var(--teal) !important;
  background: rgba(43, 179, 192, 0.25) !important;
  transform: scale(0.98);
}

.btn-outline-light:disabled,
.btn-outline-light.disabled {
  color: var(--ink);
  opacity: 0.35;
  border-color: rgba(255, 255, 255, 0.2);
}

.dh-btn-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  box-shadow: 0 10px 30px rgba(11, 125, 140, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 500;
}

.dh-btn-primary:hover,
.dh-btn-primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(120deg, var(--teal), #5cd2dc);
  box-shadow: 0 14px 40px rgba(43, 179, 192, 0.55), 0 0 0 4px rgba(43, 179, 192, 0.15);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding-top: var(--nav-h);
}

.hero-section .video-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.custom-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg) url('../images/hero-poster.jpg') center / cover no-repeat;
  transform-origin: 50% 40%;
  will-change: transform;
}

.hero-section .section-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(1, 6, 9, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(1, 6, 9, 0.7) 0%, rgba(1, 6, 9, 0.25) 30%, rgba(1, 6, 9, 0.3) 60%, rgba(2, 7, 10, 0.9) 100%);
}

.hero-section .container {
  position: relative;
  height: 100%;
  padding-bottom: 84px;
}

.hero-section .container > .row {
  height: 100%;
  width: 100%;
}

.dh-hero-title {
  margin: 0;
  font-size: clamp(2.9rem, 10vw, 6.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(43, 179, 192, 0.25), 0 6px 30px rgba(0, 0, 0, 0.7);
  animation: dh-title-in 2.4s var(--ease) 0.2s both;
}

.dh-hero-title > span {
  display: block;
  margin-top: 0.9rem;
  font-size: clamp(0.85rem, 2.4vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  color: rgba(238, 242, 243, 0.85);
  animation: dh-flicker 9s linear 3s infinite;
}

@keyframes dh-title-in {
  from { opacity: 0; filter: blur(14px); letter-spacing: 0.22em; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; filter: blur(0); letter-spacing: 0.02em; transform: none; }
}

@keyframes dh-flicker {
  0%, 88%, 91%, 94%, 100% { opacity: 1; }
  89% { opacity: 0.35; }
  92% { opacity: 0.6; }
  93% { opacity: 0.25; }
}

.hero-section .date-wrap span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 !important;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(238, 242, 243, 0.8) !important;
}

.hero-section .date-wrap span::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--moon));
}

.hero-section .date-wrap,
.hero-section .social-share { animation: dh-fade-up 1.4s var(--ease) 1.2s both; }

.hero-section .social-icon-link {
  background: rgba(3, 9, 12, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@keyframes dh-fade-up {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .hero-section .container { padding-bottom: 76px; }
  .hero-section .social-share { margin-top: 1rem; }
}

@media (max-width: 420px) {
  .dh-hero-title > span {
    letter-spacing: 0.42em;
    margin-right: -0.42em;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero-section { height: auto; min-height: 100vh; padding-bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
.services { padding: clamp(80px, 11vw, 130px) 0 clamp(60px, 8vw, 100px); }

.dh-services-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--moon);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.dh-services-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.services .section-title { margin-bottom: 1.4rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  counter-reset: dh-srv;
}

@media (max-width: 991.98px) {
  .services .col-lg-5 {
    text-align: center;
  }

  .services .dh-heading::after {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card {
    align-items: center;
    text-align: center;
  }
}

.service-card,
.team-member,
.contact-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  height: 100%;
  padding: 1.55rem 1.5rem 1.35rem;
  overflow: hidden;
  counter-increment: dh-srv;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.service-card::before {
  content: counter(dh-srv, decimal-leading-zero);
  position: absolute;
  top: 1.55rem;
  right: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(228, 239, 248, 0.22);
  transition: color 0.45s, text-shadow 0.45s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(43, 179, 192, 0.16), transparent 58%);
  opacity: 0;
  transition: opacity 0.45s;
}

.service-icon {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: radial-gradient(circle at 50% 35%, rgba(43, 179, 192, 0.22), rgba(11, 125, 140, 0.06) 70%);
  border: 1px solid rgba(43, 179, 192, 0.18);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--dh-angle), var(--teal), var(--moon), transparent 50%, var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  animation: dh-spin 3s linear infinite;
  animation-play-state: paused;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(43, 179, 192, 0.45);
}

.service-icon img,
.service-icon svg {
  position: relative;
  width: 28px;
  height: 28px;
  color: var(--ink);
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(43, 179, 192, 0.6));
  transition: transform 0.5s var(--ease), filter 0.5s, color 0.5s;
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.service-body h4 {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-body p {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

.service-meta {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(43, 179, 192, 0.9);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card.is-lit .service-icon::after { animation: dh-pulse 1.6s var(--ease) 0.2s 2; }

@keyframes dh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 179, 192, 0.5); }
  100% { box-shadow: 0 0 0 16px rgba(43, 179, 192, 0); }
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 179, 192, 0.32);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(43, 179, 192, 0.1);
  }

  .service-card:hover::before {
    color: var(--moon);
    text-shadow: 0 0 10px rgba(228, 239, 248, 0.45);
  }

  .service-card:hover::after { opacity: 1; }
  .service-card:hover .service-icon::before { opacity: 1; animation-play-state: running; }
  .service-card:hover .service-icon::after { animation: dh-pulse 1.6s var(--ease) infinite; }
  .service-card:hover .service-icon img,
  .service-card:hover .service-icon svg {
    color: var(--moon);
    transform: translateY(-2px) scale(1.12) rotate(-4deg);
    filter: drop-shadow(0 0 10px rgba(228, 239, 248, 0.75));
  }
}

@media (hover: none) {
  .service-card.is-lit .service-icon::before { opacity: 0.85; animation-play-state: running; }
}

/* --------------------------------------------------------------------------
   Proyectos
   -------------------------------------------------------------------------- */
.proj-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #050b0e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}

.proj-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.75) brightness(0.85);
  transition: transform 1.2s var(--ease), filter 0.8s;
}

.proj-card img[src*="schiz-o"] { object-position: 22% 50%; }

.proj-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  transition: left 1s var(--ease);
}

.proj-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 8, 0) 28%, rgba(2, 6, 8, 0.78) 56%, rgba(2, 6, 8, 0.97) 76%, #020608 100%);
}

.proj-meta {
  order: -1;
  margin-bottom: 0.45rem;
  color: var(--moon);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.proj-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.proj-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  color: rgba(238, 242, 243, 0.75);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}

.proj-btn.btn {
  width: 100%;
  padding: 0.68rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(228, 239, 248, 0.22);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(120deg, rgba(43, 179, 192, 0.12), rgba(228, 239, 248, 0.05));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .proj-card:hover {
    transform: translateY(-8px);
    border-color: rgba(43, 179, 192, 0.35);
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(43, 179, 192, 0.12);
  }

  .proj-card:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
  .proj-card:hover::after { left: 130%; }
  .proj-card:hover .proj-btn.btn,
  .proj-btn.btn:hover,
  .proj-btn.btn:focus-visible {
    color: #fff;
    border-color: rgba(43, 179, 192, 0.75);
    background: linear-gradient(120deg, rgba(11, 125, 140, 0.55), rgba(43, 179, 192, 0.35));
    box-shadow: 0 8px 26px rgba(43, 179, 192, 0.3), inset 0 1px 0 rgba(228, 239, 248, 0.25);
  }
  .proj-card:hover .proj-btn.btn::before { left: 120%; }
}

@media (hover: none) {
  .proj-card img { filter: saturate(0.95) brightness(0.92); }
}

@media (max-width: 575.98px) {
  .proj-card { aspect-ratio: 4 / 4.6; }
}

/* Modales de proyectos */
html.dh-modal-open,
html.dh-modal-open body,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.modal { overscroll-behavior: contain; }
.modal-backdrop.show { opacity: 0.82; }

.modal.fade .modal-dialog {
  transform: translate3d(0, 28px, 0) scale(0.97);
  transition: transform 0.5s var(--ease);
}

.modal.show .modal-dialog { transform: none; }

.modal-content.bg-dark {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, rgba(14, 26, 31, 0.97), rgba(3, 7, 9, 0.98)) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75), 0 0 60px rgba(43, 179, 192, 0.08);
}

.dh-modal-poster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030709;
  padding: 0.85rem 0.85rem 0.45rem;
}

.dh-modal-poster img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 36vh;
  object-fit: contain;
  border-radius: 12px;
}

.modal-content .modal-header {
  position: relative;
  padding: 0.8rem 3.5rem 0 1.25rem;
  z-index: 1;
}

.modal-content .modal-title {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.modal-content .btn-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background-color: rgba(3, 9, 12, 0.72);
  background-size: 0.78rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  filter: none;
  opacity: 0.95;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.modal-content .btn-close:hover { transform: rotate(90deg); background-color: rgba(43, 179, 192, 0.45); }

.modal-content .modal-body {
  padding: 0.7rem 1.25rem 1.25rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-content .modal-body p {
  color: rgba(238, 242, 243, 0.82);
  font-size: 0.94rem;
  line-height: 1.58;
  margin-bottom: 0;
}

.modal-content hr {
  border: 0;
  height: 1px;
  opacity: 1;
  margin: 1rem 0;
  background: linear-gradient(90deg, var(--teal), rgba(228, 239, 248, 0.5), transparent);
}

.modal-content .list-unstyled {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.modal-content .list-unstyled li {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}

.modal-content .list-unstyled strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .modal-dialog { margin: 0.65rem; }

  .modal-content.bg-dark {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 1.3rem);
  }

  .dh-modal-poster { flex: 0 0 auto; }
  .modal-content .modal-header { flex: 0 0 auto; }
  .modal-content .modal-body { flex: 1 1 auto; overflow-y: auto; }
}

@media (min-width: 768px) {
  .modal-dialog.modal-lg { max-width: min(940px, 92vw); }

  .modal-content.bg-dark {
    display: grid;
    grid-template-columns: minmax(270px, 44%) 1fr;
    grid-template-rows: auto 1fr;
    max-height: 86vh;
  }

  .dh-modal-poster {
    grid-column: 1;
    grid-row: 1 / -1;
    padding: 1.25rem;
    border-right: 1px solid var(--line);
  }

  .dh-modal-poster img {
    width: 100%;
    max-height: calc(86vh - 2.5rem);
  }

  .modal-content .modal-header {
    grid-column: 2;
    grid-row: 1;
    padding: 1.5rem 3.75rem 0 1.75rem;
  }

  .modal-content .modal-body {
    grid-column: 2;
    grid-row: 2;
    overflow-y: auto;
    padding: 0.75rem 1.75rem 1.5rem;
  }

  .modal-content .modal-body p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .modal-content .list-unstyled {
    gap: 0.85rem 1.35rem;
  }

  .modal-content .list-unstyled li { font-size: 0.93rem; }
}

/* --------------------------------------------------------------------------
   Nosotros
   -------------------------------------------------------------------------- */
.about-text {
  position: relative;
  padding-left: 1.5rem;
}

.about-text::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(228, 239, 248, 0.6), transparent);
}

.about-text p {
  color: rgba(238, 242, 243, 0.82);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-visual {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(2, 7, 10, 0.5));
}

.about-visual .about-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  transform: scale(1.12);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Equipo
   -------------------------------------------------------------------------- */
.team-member {
  height: 100%;
  padding: 1.75rem;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.team-member-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.team-member-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 0 !important;
  filter: grayscale(0.85) contrast(1.08) brightness(0.9);
  transition: filter 0.8s, transform 1.2s var(--ease);
}

.team-member-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(43, 179, 192, 0.35), rgba(2, 7, 10, 0.35));
  mix-blend-mode: soft-light;
  transition: opacity 0.8s;
}

.team-member-info { padding: 0.25rem 0 0; }

.team-member-info h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
}

.team-member-info .role {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.team-member-info p.text-white-50 {
  color: rgba(238, 242, 243, 0.66) !important;
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.team-member.is-lit .team-member-image img { filter: grayscale(0.25) contrast(1.05) brightness(0.95); }

@media (hover: hover) {
  .team-member:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 179, 192, 0.28);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(43, 179, 192, 0.08);
  }

  .team-member:hover .team-member-image img { filter: none; transform: scale(1.05); }
  .team-member:hover .team-member-image::after { opacity: 0.3; }
}

@media (max-width: 767.98px) {
  .team-member { padding: 1.25rem; }
  .team-member-image { max-width: 340px; margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-card { overflow: hidden; }

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(43, 179, 192, 0.55), transparent 40%, transparent 65%, rgba(228, 239, 248, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.dh-contact-icon-wrapper {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(43, 179, 192, 0.35), rgba(11, 125, 140, 0.08) 70%);
  border: 1px solid rgba(43, 179, 192, 0.3);
}

.dh-contact-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  animation: dh-pulse 2.6s var(--ease) infinite;
}

.dh-contact-icon { font-size: 1.3rem; }

.contact-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.3));
}

#contact-canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 72px !important;
  border-radius: 10px;
  background: transparent;
}

#contact-canvas.is-revealed { animation: dh-reveal-mail 0.9s var(--ease) both; }

@keyframes dh-reveal-mail {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

#contact-feedback { display: none; }

#contact-note { line-height: 1.6; }

@media (max-width: 575.98px) {
  .contact-section .d-flex.gap-2 { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.92) 45%);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--teal), var(--moon), transparent);
  opacity: 0.6;
}

.footer-brand,
.footer-brand:hover { font-size: 0.95rem; }

.dh-footer-social-list {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-footer-social-list .list-inline-item { margin: 0; }

.site-footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Aparición al hacer scroll (solo si JS está activo)
   -------------------------------------------------------------------------- */
.js .dh-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--dh-delay, 0ms);
}

.js .dh-reveal.dh-heading { filter: blur(8px); transition-property: opacity, transform, filter; }

.js .dh-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .dh-reveal { opacity: 1; transform: none; filter: none; }
  .dh-grain, .dh-scene__motes, .dh-scene__torch { display: none; }
}

@media (min-width: 768px) {
  .team-member > .row { align-items: flex-start !important; }
}
