:root {
  --bg: #050507;
  --bg-soft: #0d0d14;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #b9b9c8;
  --accent: #00e5ff;
  --accent-2: #ff3df2;
  --accent-3: #ff9f1c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 26px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 61, 242, 0.16), transparent 34%),
    radial-gradient(circle at 80% 15%, rgba(0, 229, 255, 0.14), transparent 34%),
    radial-gradient(circle at 60% 80%, rgba(255, 159, 28, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

section {
  padding: 92px 0;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(5, 5, 7, 0.42);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .25s ease, box-shadow .25s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 7, 0.86);
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  color: #e6e6ee;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
}

/* =========================
   BOTONES
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020207;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.28), 0 0 36px rgba(255, 61, 242, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: #050507;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroSlider 18s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.72) 0%, rgba(5,5,7,0.45) 45%, rgba(5,5,7,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.30) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

@keyframes heroSlider {
  0% {
    opacity: 0;
    transform: scale(1.05) translateX(0);
  }
  8% {
    opacity: 1;
  }
  30% {
    opacity: 1;
    transform: scale(1.12) translateX(-10px);
  }
  38% {
    opacity: 0;
    transform: scale(1.15) translateX(-18px);
  }
  100% {
    opacity: 0;
    transform: scale(1.05) translateX(0);
  }
}

/* =========================
   TEXTOS GENERALES
========================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: #e3e3ed;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e9e9f2;
  font-size: 0.82rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-head p,
.text-block p,
footer p,
footer a {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

/* =========================
   GRID / NOSOTROS
========================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.about-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.about-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: #e9e9f0;
  line-height: 1.6;
}

/* =========================
   TARJETA VIDEO
========================= */
.visual-card {
  min-height: 520px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 70px rgba(0,229,255,.12);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(0,229,255,.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,61,242,.14), transparent 34%),
    #080910;
}

.video-cover-card {
  cursor: pointer;
}

.video-cover-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.video-cover-card:hover img {
  transform: scale(1.05);
}

.video-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.50)),
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.10));
  z-index: 1;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0,229,255,.15);
  transition: transform .25s ease, background .25s ease;
}

.video-play-button span {
  font-size: 2rem;
  color: #fff;
  margin-left: 4px;
}

.video-cover-card:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255,255,255,.18);
}

.video-cover-text {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}

.video-cover-text small {
  display: block;
  color: #cfd3df;
  font-size: .8rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.video-cover-text strong {
  font-size: 1.05rem;
  color: #fff;
}

/* =========================
   MODAL VIDEO
========================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
}


.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.video-modal-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  background: #000;
}

.video-modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   SERVICIOS
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 390px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform .6s ease;
  opacity: 1;
  background-image: var(--service-img);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.18) 35%,
    rgba(0,0,0,.68) 100%
  );
}

.service-card:hover::after {
  transform: scale(1.08);
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #e5e5ee;
  line-height: 1.6;
  margin-bottom: 18px;
  font-size: .94rem;
}


.service-card > .lightbox-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.service-card > .lightbox-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  position: relative;
  z-index: 2;
}




.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(8px);
}

.image-lightbox-content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  border-radius: 28px;
  overflow: hidden;
  background: #050507;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}

.image-lightbox-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
}

.image-lightbox-caption {
  padding: 20px 24px;
}

.image-lightbox-caption h3 {
  margin-bottom: 8px;
}

.image-lightbox-caption p {
  color: var(--muted);
  line-height: 1.6;
}

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
/* =========================
   HISTORIA / CARDS
========================= */
.history-box {
  grid-template-columns: repeat(3, 1fr);
}

.mini-card,
.step,
.page-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
}

.mini-card span {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.8rem;
  display: block;
  margin-bottom: 14px;
}

.mini-card h3,
.step h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.mini-card p,
.step p {
  color: var(--muted);
  line-height: 1.7;
  font-size: .94rem;
}

/* =========================
   GALERÍA
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}

.gallery-item.big {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* =========================
   PROCESO / CTA
========================= */
.process {
  grid-template-columns: repeat(4, 1fr);
}

.step b {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050507;
  margin-bottom: 16px;
}

.cta-box {
  text-align: center;
  border-radius: 34px;
  padding: 56px 24px;
  background:
    radial-gradient(circle at top left, rgba(0,229,255,.23), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,61,242,.22), transparent 32%),
    rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}

.cta-box p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #e4e4ed;
  line-height: 1.7;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 48px 0 34px;
  background: #030304;
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-grid {
  grid-template-columns: 1.3fr .7fr .7fr;
}

.footer-tag {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #888899;
  font-size: .82rem;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #07130b;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(37, 211, 102, .35);
  font-size: 0.95rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(5,5,7,.96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .nav-links .btn {
    margin-top: 8px;
  }

  .grid-2,
  .services-grid,
  .history-box,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 460px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.big {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero,
  .page-hero {
    padding-top: 120px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  section {
    padding: 68px 0;
  }

  .glass-card,
  .page-card {
    padding: 22px;
  }

  .service-card {
    min-height: 330px;
  }

  .visual-card {
    min-height: 420px;
  }

  .video-play-button {
    width: 78px;
    height: 78px;
  }

  .video-play-button span {
    font-size: 1.6rem;
  }

  .video-cover-text {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
  }

  .video-modal-close {
    top: -42px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item.big {
    grid-column: auto;
  }
}






