/* ====== BASE LAYOUT ====== */
html { scroll-behavior: smooth; }

:root{
  --container-max: 1440px;
  --space: 16px;

  /* Slider cards */
  --card-w: 315px;
  --card-h: 565px;
  --gap: 20px;
  --slide-ease: .45s ease;

  /* Nav */
  --nav-h: 40px;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background: #fff; color: #111;
}

/* Container genérico */
.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* Logo */
.logo{ font-weight: 700; text-decoration: none; color: #111; }
.logo img{
  height: 70px; width: auto; display: block; object-fit: contain;
  transition: opacity .2s ease;
}
.logo img:hover{ opacity: .85; }

/* Degradado fijo tras navbar sobre hero */
.fixed-nav-gradient{
  position: fixed; inset: 0 0 auto 0; height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,22,.99) 0, rgba(0,0,0,0) 180px);
  pointer-events: none; z-index: 4;
}

/* Navbar */
.navbar{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.nav-links{
  display: flex; align-items: center; gap: 22px;
  margin: 0; padding: 0; list-style: none;
}
.nav-links li{ display: flex; align-items: center; }
.nav-links a{
  display: inline-flex; align-items: center; height: var(--nav-h);
  line-height: 1; padding-inline: 0; text-decoration: none; opacity: .9;
}

/* CTA del menú */
.nav-links .nav-cta{
  display: inline-flex; align-items: center; gap: .55em;
  height: var(--nav-h); padding-inline: 14px;
  border-radius: 999px; border: 1px solid currentColor;
  font-weight: 600; letter-spacing: .2px; background: transparent; color: currentColor;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nav-links .nav-cta:hover{ color: #ffb700; transform: translateY(-1px); }
.nav-links li:last-child{ margin-left: 14px; }

/* Navbar sobre el video */
header.on-hero .navbar{ position: fixed; inset: 0 0 auto 0; z-index: 5; color: #fff; }
header.on-hero .logo,
header.on-hero .nav-links a{ color: #fff; }
header.on-hero .nav-links .nav-cta{ box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; }
header.on-hero .nav-links .nav-cta:hover{ color: #ffd000; }

/* ====== HERO ====== */
.hero-video{
  position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; z-index: 0;
}
.hero-video video{
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%,-50%); object-fit: cover;
}

.hero-overlay{
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.75) 0px,
      rgba(0,0,0,.45) 80px,
      rgba(0,0,0,.05) 160px,
      rgba(0,0,0,0) 320px
    ),
    rgba(0,0,0,.40);
}

.hero-content{
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  text-align: center; color: #fff; max-width: 780px; padding-inline: 16px; font-family: 'Raleway',sans-serif; z-index: 2;
}
.hero-content h1{
  font-family: 'Outfit', sans-serif; font-weight: 700;
  letter-spacing: .015em; font-size: clamp(38px,5vw,60px); line-height: 1.12;
  margin: 0 auto 18px; color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.hero-content p{
  font-family: 'Outfit',sans-serif; font-weight: 400;
  font-size: clamp(16px,2vw,22px); margin: 0 0 24px; line-height: 1.5; color: #fff;
}
.hero-subtext{ color: #fff; line-height: 1.5; }
.hero-content .hero-subtext{
  font-size: clamp(12px,1.3vw,16px); margin-top: 32px; color: #f2f2f2;
  opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Botón CTA genérico */
.btn-cta{
  display: inline-block; padding: .8rem 1.4rem; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  font-size: clamp(13px,1.8vw,15px); font-weight: 600; letter-spacing: .3px;
  transition: all .25s ease; box-shadow: 0 4px 14px rgba(255,255,255,.2);
}
.btn-cta:hover{
  background: #164383; color: #fff;
  box-shadow: 0 6px 20px rgba(255,255,255,.25);
  transform: translateY(-1px);
}

/* Elevar secciones sobre hero */
.clients-marquee,.services-section,.videos-slider,.site-footer{ position: relative; z-index: 3; isolation: isolate; }

.videos-title{
  font-size: 2em; text-align: center; margin: 0 auto 18px;
}
.vs-container p{ color: #bfbfbf; font-size: 1.2em; text-align: center; padding: 0 0 20px 0; }

/* ===== MARQUEE ===== */
.clients-marquee{ background: #0b0b0b; padding: 20px 0; }
.marquee-viewport{
  position: relative; overflow: hidden; max-width: 1440px; margin-inline: auto; padding-inline: 16px;
}
.marquee-viewport::before,.marquee-viewport::after{
  content: ""; position: absolute; top: 0; bottom: 0; width: 8%; pointer-events: none; z-index: 1;
}
.marquee-viewport::before{ left: 0; background: linear-gradient(to right,#0b0b0b,transparent); }
.marquee-viewport::after{ right: 0; background: linear-gradient(to left,#0b0b0b,transparent); }
.marquee-track{
  display: flex; align-items: center; gap: 78px; width: max-content; padding: 8px 0;
  will-change: transform; transform: translateZ(0); contain: layout paint;
}
.marquee-track li{ list-style: none; flex: 0 0 auto; }
.marquee-track img{
  height: 56px; width: auto; display: block; filter: brightness(0) invert(1);
  opacity: .8; transition: opacity .2s ease, transform .2s ease; max-height: 56px;
}
.marquee-track img:hover{ opacity: 1; transform: scale(1.04); }

/* ====== SERVICIOS ====== */
.services-section{ padding-block: 56px; background: #0b0b0b; color: #fff; }
.services-section .container{ max-width: 1360px; }
.services-title{ text-align: center; font-size: clamp(24px,4vw,36px); margin: 0 0 6px; color: #fff; }
.services-sub{ text-align: center; font-size: 1.3em; margin: 0 0 44px 0; color: #bfbfbf; }

.services-grid{ display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.service-card{
  background: #111; border: 1px solid #1e1e1e; border-radius: 14px; padding: 18px 16px; min-height: 150px;
  display: grid; grid-template-rows: auto auto 1fr; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  outline: none; flex: 1 1 350px; max-width: 350px;
}
.service-card:hover,.service-card:focus-visible{
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); border-color: #2a2a2a;
}
.svc-icon{ font-size: 28px; line-height: 1; }
.svc-title{ font-size: 22px; margin: 4px 0 0; }
.svc-desc{ font-size: 16px; color: #c9c9c9; margin: 4px 0 0; }

@media (max-width:820px){
  .service-card{ flex: 1 1 calc((100% - 24px)/2); max-width: calc((100% - 24px)/2); }
}
@media (max-width:420px){
  .services-grid{ gap: 16px; }
  .service-card{ flex: 1 1 calc((100% - 16px)/2); max-width: calc((100% - 16px)/2); }
  .svc-title{ font-size: clamp(18px,5vw,22px); }
  .svc-desc{ font-size: clamp(14px,4vw,16px); }
}

/* ====== SLIDER (VIMEO) ====== */
.videos-slider{ background: #000; color: #fff; padding-block: 48px; }
.vs-container{ max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space); position: relative; }
.vs-radio{ position: absolute; inset-inline-start: -9999px; }

.vs-viewport{
  overflow: hidden;
  padding-inline: max(0px, calc((100% - ((var(--card-w) * 4) + (var(--gap) * 3))) / 2));
  box-sizing: content-box;
}
.vs-track{ display: flex; gap: var(--gap); transition: transform var(--slide-ease); will-change: transform; }
.vs-card{
  position: relative; flex: 0 0 var(--card-w);
  width: var(--card-w); height: var(--card-h);
  border-radius: 12px; overflow: hidden; background: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.vs-card iframe{ width: 100%; height: 100%; display: block; border: 0; }

/* Flechas unificadas */
.vs-arrows .vs-arrow,
.ts-arrows .ts-arrow{
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #333; color: #fff; border-radius: 6px; cursor: pointer;
  font-size: 24px; line-height: 1; border: none; transition: background .22s ease, box-shadow .22s ease; z-index: 2; pointer-events: auto;
}
.vs-prev{ left: 8px; } .vs-next{ right: 8px; }
.vs-arrows .vs-arrow:hover,
.ts-arrows .ts-arrow:hover{ background: #444; box-shadow: 0 6px 18px rgba(0,0,0,.35); }

/* Dots */
.vs-dots{ display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.vs-dot{
  width: 12px; height: 12px; border-radius: 999px; cursor: pointer;
  background: #444; border: 1px solid #666; text-indent: -9999px; overflow: hidden;
}
#vs-pos-1:checked ~ .vs-dots label[for="vs-pos-1"],
#vs-pos-2:checked ~ .vs-dots label[for="vs-pos-2"],
#vs-pos-3:checked ~ .vs-dots label[for="vs-pos-3"],
#vs-pos-4:checked ~ .vs-dots label[for="vs-pos-4"],
#vs-pos-5:checked ~ .vs-dots label[for="vs-pos-5"],
#vs-pos-6:checked ~ .vs-dots label[for="vs-pos-6"],
#vs-pos-7:checked ~ .vs-dots label[for="vs-pos-7"],
#vs-pos-8:checked ~ .vs-dots label[for="vs-pos-8"],
#vs-pos-9:checked ~ .vs-dots label[for="vs-pos-9"]{ background: #fff; border-color: #fff; }

/* Fade cover al terminar videos */
.vs-fade-cover{
  position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none;
  transition: opacity .35s ease; border-radius: 12px;
}
.vs-fade-cover.is-visible{ opacity: 1; }

/* Slider responsive: móvil usa scroll-snap y oculta controles */
@media (max-width:1200px){
  .vs-viewport{ overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-inline: 0; padding-bottom: 8px; }
  .vs-track{ gap: 12px; }
  .vs-card{ flex: 0 0 315px; width: 315px; height: auto; aspect-ratio: 9/16; scroll-snap-align: start; scroll-snap-stop: always; }
  .vs-arrows,.vs-dots{ display: none; }
}

/* ===== Why different ===== */
.why{
  background: linear-gradient(180deg,#0b0b0b 0%, #111 100%);
  color: #fff; padding-block: clamp(40px,6vw,80px);
  text-align: center; overflow: hidden; margin-inline: 0 auto;
}
.why-container{
  max-width: 1360px; margin-inline: auto; padding-inline: 16px;
  display: grid; grid-template-columns: 420px 1fr; gap: clamp(20px,3vw,40px); align-items: start; margin: 0 auto;
}
.why-head{ display: grid; gap: 12px; text-align: center; margin: 0 auto; }
.why-head h2{ font-size: clamp(28px,4vw,42px); line-height: 1.1; margin: 0; }
.why-head p{ color: #cfcfcf; font-size: clamp(16px,2vw,18px); margin: 0 0 8px; }

.why-grid{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(16px,2.2vw,24px); justify-content: center; }

.why-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: none; box-shadow: none; cursor: default;
}
.why-card:hover,.why-card:focus-visible{ transform: none; box-shadow: none; border-color: rgba(255,255,255,.10); }
.why-ico{ font-size: 34px; line-height: 1; margin-bottom: 10px; }
.why-card h3{ font-size: 18px; margin: 0 0 6px; }
.why-card p{ font-size: 15px; color: #d6d6d6; margin: 0; }

@media (max-width:1100px){
  .why-container{ grid-template-columns: 1fr; text-align: left; }
  .why-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width:820px){
  .why-head{ text-align: center; }
  .why-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
}
@media (max-width:480px){
  .why-grid{ grid-template-columns: repeat(2,1fr); gap: 16px; }
  .why-card{ padding: 18px 14px; }
  .why-card h3{ font-size: 17px; }
  .why-card p{ font-size: 14px; }
}

/* ====== TESTIMONIOS ====== */
.testi-section{ background: #0b0b0b; color: #fff; padding: 72px 0; }
.ts-container{ max-width: 1360px; margin: 0 auto; padding: 0 16px; position: relative; }

.eyebrow{ text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #bfbfbf; text-align: center; margin: 0 0 8px; text-decoration: none; }

/* Desactiva colores/subrayado del enlace en el encabezado de Brand Content */
.bc-eyebrow a{ color: inherit !important; text-decoration: none !important; font-weight: 600; }
.bc-eyebrow a:hover,
.bc-eyebrow a:focus,
.bc-eyebrow a:active,
.bc-eyebrow a:visited{ color: inherit !important; text-decoration: none !important; }

.testi-title{
  font-family: "Outfit",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;
  font-weight: 700; font-size: clamp(28px,4vw,42px); line-height: 1.12; text-align: center; margin: 0;
}
.testi-sub{ color: #c9c9c9; text-align: center; margin: 10px 0 28px; font-size: clamp(14px,1.8vw,18px); }

/* Radios (fallback) */
.ts-radio{ position: absolute; inset-inline-start: -9999px; }

/* Carrusel base */
.ts-viewport{ overflow: hidden; padding-inline: 56px; }
.ts-track{ display: flex; gap: 32px; transition: transform .45s ease; will-change: transform; }
.ts-page{ flex: 0 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }

/* Tarjeta */
.ts-card{
  background: #111; border: 1px solid #1e1e1e; border-radius: 22px; padding: 24px 22px;
  min-height: 260px; display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px;
}
.ts-brand img{ height: 36px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .95; }
.ts-client{ font-size: 20px; margin: 2px 0 0; }
.ts-role{ color: #bdbdbd; margin: 0 0 6px; font-size: 15px; }
.ts-quote{ margin: 0; color: #e9e9e9; line-height: 1.55; }

/* Fallback radios */
#ts-pos-1:checked ~ .ts-viewport .ts-track{ transform: translateX(0); }
#ts-pos-2:checked ~ .ts-viewport .ts-track{ transform: translateX(-100%); }
#ts-pos-3:checked ~ .ts-viewport .ts-track{ transform: translateX(-200%); }

/* Flechas (ya unificadas arriba) */
.ts-prev{ left: 4px; } .ts-next{ right: 4px; }

/* Dots */
.ts-dots{ display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.ts-dot{
  width: 10px; height: 10px; border-radius: 999px; background: #555; border: 1px solid #6a6a6a;
  cursor: pointer; text-indent: -9999px; overflow: hidden;
}
#ts-pos-1:checked ~ .ts-dots label[for="ts-pos-1"],
#ts-pos-2:checked ~ .ts-dots label[for="ts-pos-2"],
#ts-pos-3:checked ~ .ts-dots label[for="ts-pos-3"]{ background: #fff; border-color: #fff; }

/* Breakpoints testimonios */
@media (min-width:1280px){ .ts-prev{ left: -14px; } .ts-next{ right: -14px; } }
@media (max-width:980px){
  .ts-viewport{ padding-inline: 40px; }
  .ts-page{ grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width:700px){
  .ts-viewport{ padding-inline: 28px; }
  .ts-page{ grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .ts-card{ width: min(560px,100%); margin-inline: auto; padding: 18px; border-radius: 18px; }
  .ts-brand img{ height: 30px; }
  .ts-client{ font-size: 18px; }
  .ts-role{ font-size: 14px; }
  .ts-quote{ font-size: 15px; }
  .ts-prev{ left: 8px; } .ts-next{ right: 8px; }
}

/* Motion reducido */
@media (prefers-reduced-motion: reduce){
  .vs-track,.vs-fade-cover,.service-card,.ts-track,.ts-arrows .ts-arrow{ transition: none; }
}

/* ===== CTA con PARALLAX ===== */
.cta-section{
  position: relative; background: #0b0b0b;
  padding: clamp(120px,18vw,120px) 16px;
  display: flex; justify-content: center; overflow: hidden;
}
.cta-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-bg img{
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.75) saturate(1.05);
  transform: translateY(0) scale(1.12);
  will-change: transform; object-position: 50% 50%;
}
.cta-shade{
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 400px at 30% 80%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.15) 35%, rgba(0,0,0,.35));
  pointer-events: none;
}
.cta-content{
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: 1200px; width: 100%;
  padding: clamp(40px,6vw,80px);
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(to right, rgba(0,0,0,.85), rgba(0,0,0,.55));
  color: #fff;
}
.cta-content h2{
  font-family: 'Outfit',sans-serif; font-size: clamp(28px,4vw,44px);
  margin: 0 0 10px; line-height: 1.15;
}
.cta-content p{
  font-family: 'Raleway',sans-serif; font-size: clamp(16px,1.8vw,20px);
  margin: 0 0 26px; color: #f2f2f2; max-width: 520px; line-height: 1.5;
}
.cta-content .btn-cta{
  font-family: 'Outfit',sans-serif; font-weight: 600; letter-spacing: .4px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.2);
  padding: .9rem 1.6rem; border-radius: 14px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease; text-align: center;
}
.cta-content .btn-cta:hover{ background: #164383; border-color: #164383; transform: translateY(-2px); }

.fx-petals{ position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.fx-petals canvas{ width: 100%; height: 100%; display: block; }

@media (max-width:780px){
  .cta-content{ flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px 24px; }
  .cta-content p{ max-width: 100%; }
  .cta-bg img{ transform: none !important; }
}

/* ===== FOOTER ===== */
.site-footer{ background:#121212; }
.footer-wrap{
  display:grid; grid-template-columns:1.1fr 1fr 1.2fr;
  gap:clamp(24px,4vw,48px);
  padding:clamp(36px,5vw,64px) 16px;
  position:relative;
}
.foot-logo img{ height:60px; width:auto; display:block; }
.foot-copy{ margin:14px 0 0; color:#c9c9c9; font-size:14px; line-height:1.45; }

.foot-heading{
  font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  font-size:12px; color:#bfbfbf; margin:0 0 10px;
}
.foot-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.foot-links a{ color:#fff; text-decoration:none; opacity:.9; transition:opacity .2s ease, transform .2s ease; }
.foot-links a:hover{ opacity:1; transform:translateX(2px); }

.foot-contact-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.foot-contact-list li{ display:flex; align-items:center; gap:10px; color:#d7d7d7; font-size:14px; }
.foot-contact-list a{ color:#fff; text-decoration:none; opacity:.95; }
.foot-contact-list a:hover{ opacity:1; }
.foot-contact-list svg{ width:18px; height:18px; flex:0 0 auto; color:#cfcfcf; }

.foot-social{ list-style:none; padding:0; margin:8px 0 0; display:flex; gap:12px; }
.foot-social a{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid #2a2a2a; border-radius:10px;
  color:#fff; text-decoration:none;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.foot-social a:hover{ transform:translateY(-2px); border-color:#3a3a3a; background:#1a1a1a; }
.foot-social svg{ width:18px; height:18px; }

/* Centrado de la barra legal */
.footer-bar{ background:#0b0b0b; }
.footer-bar-inner{
  display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap;
  padding:14px 16px; font-size:14px; text-align:center;
}
.footer-bar-inner p{ margin:0; }
.footer-legal{ display:flex; justify-content:center; align-items:center; gap:10px; width:100%; }
.footer-legal a{ color:#fff; text-decoration:none; opacity:.9; }
.footer-legal a:hover{ opacity:1; }

/* Footer responsive */
@media (max-width:980px){
  .footer-wrap{ grid-template-columns:1fr 1fr; }
  .foot-contact{ grid-column:span 2; }
}
@media (max-width:820px){
  .footer-wrap{
    display:flex !important; flex-direction:column; align-items:center; text-align:center;
    gap:28px; padding-block:48px;
  }
  .foot-brand{ text-align:center; }
  .foot-logo img{ height:68px; margin-inline:auto; }
  .foot-nav, .foot-contact{
    width:100%; max-width:420px; position:relative; padding-top:22px; margin-inline:auto;
  }
  .foot-nav::before, .foot-contact::before{
    content:""; display:block; height:1px; width:100%;
    margin:18px 0 26px; background:linear-gradient(to right, rgba(255,255,255,.15), rgba(255,255,255,.15)); opacity:.9;
  }
  .foot-nav{
    display:grid; grid-template-columns:160px 1fr; column-gap:26px; align-items:center; text-align:left; margin-top:-20px;
  }
  .foot-nav .foot-heading{ grid-column:1; text-align:right; margin:0; align-self:center; justify-self:end; }
  .foot-nav .foot-links{ grid-column:2; display:grid; justify-content:start; gap:14px; }
  .foot-links a{ display:inline-block; line-height:1.4; }
  .foot-contact-list{ display:grid; justify-content:center; gap:12px; margin-bottom:26px; }
  .foot-social{ justify-content:center; margin-top:6px; }
  .footer-bar-inner{ flex-direction:column; gap:10px; padding:18px 0; }
}

/* ===== Separadores reutilizables ===== */
.fx-separator{
  width:90%; height:1px; margin:6px 0; opacity:.85; border:none;
  background:linear-gradient(to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 12%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,.10) 88%,
    rgba(255,255,255,0) 100%);
}

/* ===== Utilidades ===== */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); clip-path: inset(50%); white-space:nowrap; border:0;
}
.link-card{ display:block; color:inherit; text-decoration:none; transition:transform .25s ease, box-shadow .25s ease; }
.link-card:hover{ transform:translateY(-6px); box-shadow:0 10px 30px rgba(0,0,0,.4); }
.link-card img{ transition:transform .3s ease; }
.link-card:hover img{ transform:scale(1.05); }

/* ===== NAV MÓVIL (Hamburger + Drawer) ===== */
.hamburger{
  color:#fff; display:none; position:fixed; top:14px; right:16px; z-index:1001;
  width:34px; height:26px; padding:0; border:0; background:transparent; cursor:pointer;
}
.hamburger span{
  display:block; height:3px; width:100%; background:#fff; border-radius:2px;
  transition:transform .25s ease, opacity .2s ease; transform-origin:center;
}
.hamburger span + span{ margin-top:6px; }
@media (max-width:980px){
  .navbar .nav-links{ display:none; }
  .hamburger{ display:block; }
  header:not(.on-hero) .hamburger span{ background:#fff; }
}
.drawer-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1000; opacity:0; transition:opacity .25s ease; }
.drawer-backdrop.is-visible{ opacity:1; }

/* Drawer único (versión con blur a la izquierda) */
.mobile-drawer{
  position:fixed; inset:0 auto 0 0; width:min(86vw, 420px); height:100vh;
  background: rgba(18,18,18,0.55); color:#fff; z-index:1001;
  transform:translateX(-102%); transition:transform .28s ease;
  box-shadow: 0 0 32px rgba(0,0,0,.55);
  border-top-right-radius:24px; border-bottom-right-radius:24px;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.mobile-drawer.is-open{ transform:translateX(0); }
body.menu-open{ overflow:hidden; }
.mdr-inner{ padding:16px 18px 28px; }
.mdr-top{ display:flex; justify-content:flex-end; }
.mdr-close{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px; border-radius:999px; border:1px solid rgba(255,255,255,.25);
  background:transparent; color:#fff; font-weight:600; cursor:pointer;
}
.mdr-close:hover{ background:rgba(255,255,255,.08); }
.mdr-brand{ display:grid; grid-template-columns:100px 1fr; align-items:center; gap:14px; margin:16px 34px 14px; }
.mdr-logo{ width:100px; height:auto; display:block; filter:brightness(0) invert(1); margin:0 10px 0 0; }
.mdr-tagline{ font-size:14px; line-height:1.35; color:#e8e8e8; border-left:1px solid rgba(255,255,255,.25); padding-left:12px; }
.mdr-nav ul{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.mdr-nav a{
  display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none;
  text-transform:uppercase; font-weight:700; letter-spacing:.02em; padding:10px 4px; border-radius:10px;
}
.mdr-nav a:hover{ background:rgba(255,255,255,.06); }
.mdr-nav .chev{ font-size:22px; opacity:.9; line-height:1; }
.mdr-social-wrap{ text-align:center; margin-top:20px; }
.mdr-social-title{ font-weight:700; margin-bottom:10px; }
.mdr-social{ list-style:none; padding:0; margin:0; display:flex; justify-content:center; gap:14px; }
.mdr-social a{
  display:grid; place-items:center; width:38px; height:38px; border-radius:10px;
  border:1px solid rgba(255,255,255,.22); color:#111; background:#fff; font-weight:800; text-decoration:none;
}
.mdr-social a:hover{ transform:translateY(-2px); }
.mobile-drawer.is-open ~ .hamburger span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
.mobile-drawer.is-open ~ .hamburger span:nth-child(2){ opacity:0; }
.mobile-drawer.is-open ~ .hamburger span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

/* ==== Lightbox / Galería ==== */
.lb{ position:fixed; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.85); opacity:0; visibility:hidden; transition:opacity .35s ease, visibility .35s ease; z-index:9999; }
.lb.is-open{ opacity:1; visibility:visible; }

/* Stage */
.lb__stage{ display:flex; align-items:stretch; justify-content:center; height:100vh; overflow:hidden; }

/* Imagen */
.lb__img{
  display:block; width:auto; height:100%; max-height:100vh; object-fit:contain;
  transform:translate3d(0,0,0) scale(1); transform-origin:center;
  transition:transform .22s ease-out, opacity .35s ease; will-change:transform; backface-visibility:hidden;
}
.lb.is-zoomed .lb__img{ transform:translate3d(0,0,0) scale(1.18); cursor:zoom-out; }
@media (pointer:fine){ .lb__img{ cursor:zoom-in; } }
@media (prefers-reduced-motion:reduce){ .lb__img{ transition:opacity .01s linear; } }

/* Controles */
.lb__close, .lb__nav{
  width:44px; height:44px; border-radius:12px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.12);
  color:#fff; display:grid; place-items:center; font-size:22px; line-height:1; cursor:pointer;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  transition:background .22s ease, box-shadow .22s ease, opacity .3s ease .15s;
  opacity:0;
}
.lb.is-open .lb__close, .lb.is-open .lb__nav{ opacity:1; }
.lb__close{ position:fixed; top:20px; right:24px; z-index:10; }
.lb__nav{ position:absolute; top:50%; transform:translateY(-50%); z-index:2; border:1px solid transparent; }
.lb__prev{ left:16px; } .lb__next{ right:16px; }
.lb__nav:hover, .lb__close:hover{ background:rgba(255,255,255,.18); box-shadow:0 6px 18px rgba(0,0,0,.35); }

/* ===== Page header / Brand Content ===== */
.section-hero{
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0,255,179,.12), transparent 50%),
    radial-gradient(1000px 500px at 100% -20%, rgba(121,93,255,.12), transparent 55%),
    #0b0b0b;
  color:#fff; padding:120px 0 52px;
}
.section-hero .container{ max-width:1100px; }
.bc-eyebrow{ font:600 12px/1 'Outfit',system-ui; letter-spacing:.16em; text-transform:uppercase; color:#8fe9d0; text-decoration:none; }
.bc-title{ font-family:'Outfit',sans-serif; font-weight:700; font-size:clamp(28px,4.6vw,56px); margin:.35rem 0 .6rem; }
.bc-sub{ color:#d6d6d6; font-size:clamp(16px,2.1vw,20px); line-height:1.6; max-width:68ch; }

/* Definición del servicio */
.bc-about{ background:#0b0b0b; color:#fff; }
.bc-about .wrap{ max-width:1100px; margin-inline:auto; padding:32px 16px 14px; }
.bc-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:start; }
.bc-lead{ font-size:clamp(18px,2.2vw,22px); color:#efefef; line-height:1.7; margin:6px 0 0; }
.bc-points{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.bc-points li{ background:#121212; border:1px solid #1e1e1e; border-radius:12px; padding:12px; color:#cfcfcf; }
.bc-points strong{ color:#fff; }
@media (max-width:960px){ .bc-grid{ grid-template-columns:1fr; } }

/* Controles de galería */
.bc-controls{ display:flex; gap:12px; flex-wrap:wrap; margin:22px 0 10px; }
.bc-filter{
  padding:8px 12px; border-radius:999px; border:1px solid #2a2a2a; background:#121212; color:#ddd;
  font:600 14px/1 'Outfit',system-ui; cursor:pointer; transition:all .18s ease;
}
.bc-filter[aria-pressed="true"]{ background:#fff; color:#000; border-color:#fff; }

/* Galería tipo Pinterest */
.bc-gallery{ padding:18px 0 56px; background:#0b0b0b; }
.masonry{ column-gap:16px; columns:5 260px; max-width:1400px; margin:0 auto; padding:0 16px; contain:paint; }
.tile{
  break-inside:avoid; -webkit-column-break-inside:avoid; margin:0 0 16px; position:relative;
  border-radius:14px; overflow:hidden; background:#111; border:1px solid #1e1e1e;
  box-shadow:0 8px 24px rgba(0,0,0,.35); transform:translateZ(0);
}
.tile img{
  display:block; width:100%; height:auto; object-fit:cover;
  transition:transform .25s ease, filter .25s ease, opacity .25s ease; will-change:transform;
}

/* Galería: sin borde ni filetes grises */
.tile { border: 0 !important; box-shadow: none; }
.tile img { border: 0; outline: 0; display: block; }


.tile:hover img{ transform:scale(1.03); filter:saturate(1.08) contrast(1.05); }
.tile .cap{
  position:absolute; inset:auto 10px 10px 10px; background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  color:#fff; padding:24px 10px 10px; border-radius:10px; font:500 14px/1.4 'Outfit',system-ui; opacity:0; transition:opacity .18s ease;
}
.tile:hover .cap{ opacity:1; }
.tile[data-cat]{ outline:0; }
.tile.is-hidden{ display:none !important; }

/* Lightbox crossfade helpers */
.lb__img.is-exit{ opacity:0; transform:scale(.98); }
.lb__img.is-enter{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transform:scale(1.02); border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.lb__img.is-enter.is-enter-active{ opacity:1; transform:scale(1); }

/* ===== Contacto (local) ===== */
.contact-hero{
  position:relative; background:#0b0b0b url('images/green.jpg') center/cover no-repeat;
  padding: clamp(60px,8vw,120px) 16px; color:#fff; text-align:center;
}
.contact-hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.35));
  pointer-events:none;
}
.contact-hero .container{ position:relative; z-index:1; }
.contact-hero h1{
  font-family:'Outfit',sans-serif; font-weight:800;
  font-size:clamp(28px,5vw,56px); line-height:1.05; margin:0 0 10px;
  text-shadow:0 8px 26px rgba(0,0,0,.45);
}
.contact-hero p{ margin:0; color:#e9e9e9; font-size:clamp(15px,2vw,18px); }

.contact-wrap{ background:#0b0b0b; color:#fff; padding-block: clamp(36px,6vw,80px); }
.contact-grid{
  max-width:1200px; margin:0 auto; padding:0 16px;
  display:grid; grid-template-columns: 1fr 1.4fr; gap:clamp(20px,4vw,40px); align-items:start;
}
@media (max-width:960px){ .contact-grid{ grid-template-columns:1fr; } }

/* Lateral info */
.contact-side h2{ font-family:'Outfit',sans-serif; font-size:clamp(24px,4vw,36px); margin:0 0 8px; }
.contact-side p.lead{ color:#cfcfcf; margin:0 0 22px; }
.contact-box{ background:#111; border:1px solid #1f1f1f; border-radius:16px; padding:18px; }
.contact-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.contact-list li{ display:flex; align-items:center; gap:10px; color:#ddd; font-size:15px; }
.contact-list a{ color:#fff; text-decoration:none; }
.contact-social{ display:flex; gap:12px; margin-top:12px; }
.contact-social a{
  width:36px; height:36px; display:grid; place-items:center; border-radius:10px;
  border:1px solid #2a2a2a; color:#fff; text-decoration:none;
}

/* Form */
.form-card{ background:#111; border:1px solid #1f1f1f; border-radius:18px; padding:22px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid .full{ grid-column:1 / -1; }
@media (max-width:720px){ .form-grid{ grid-template-columns:1fr; } }

.field{ display:grid; gap:8px; }
.label{ font-size:14px; color:#cfcfcf; }
.req{ color:#ffb3b3; }
.input, .select, .textarea{
  width:100%; border-radius:12px; border:1px solid #242424; background:#0b0b0b; color:#fff;
  padding:12px 14px; font:inherit; outline:none; transition:border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus{ border-color:#3a6df0; box-shadow:0 0 0 3px rgba(58,109,240,.2); }
.textarea{ min-height:140px; resize:vertical; }

.help{ font-size:12px; color:#bfbfbf; }
.error{ color:#ff9a9a; font-size:12px; display:none; }
.is-invalid .error{ display:block; }

.actions{ display:flex; gap:10px; align-items:center; justify-content:flex-start; margin-top:8px; }
.btn{
  background:#fff; color:#000; border:1px solid #fff; border-radius:12px;
  padding:12px 18px; font-weight:700; cursor:pointer; transition:transform .2s ease, background .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

.note{ font-size:12px; color:#bdbdbd; }
.status{ margin-top:12px; padding:10px 12px; border-radius:10px; font-size:14px; display:none; }
.status.ok{ display:block; background:#103a20; border:1px solid #1e5b34; color:#d6ffe6; }
.status.err{ display:block; background:#3a1616; border:1px solid #6b2a2a; color:#ffd6d6; }

/* Honeypot */
.pot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }




/* ==== Lightbox (.lb-*) ==== */
.lb-wrap{ position:fixed; inset:0; display:grid; place-items:center; opacity:0; pointer-events:none; transition:opacity .22s ease; z-index:9999; }
.lb-wrap.is-open{ opacity:1; pointer-events:auto; }
.lb-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.84); }
.lb-dialog{
  position:relative; margin:0; padding:0; max-width:95vw; max-height:92vh;
  display:grid; grid-template-rows: 1fr auto; gap:10px; z-index:1;
}
.lb-img{ display:block; max-width:95vw; max-height:80vh; width:auto; height:auto; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.6); }
.lb-cap{ color:#eee; text-align:center; font: 500 14px/1.4 system-ui, sans-serif; margin: 0; }
.lb-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px; border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.55); color:#fff; display:grid; place-items:center;
  cursor:pointer; backdrop-filter:saturate(140%) blur(6px);
}
.lb-prev{ left:-18px; } .lb-next{ right:-18px; }
.lb-close{ top:-16px; right:-16px; transform:none; width:40px; height:40px; font-size:22px; line-height:1; }
.lb-btn:hover{ background:rgba(0,0,0,.75); }
@media (max-width:680px){
  .lb-prev{ left:6px; } .lb-next{ right:6px; }
  .lb-close{ right:8px; top:8px; }
  .lb-img{ max-height:74vh; }
}

/* Lightbox: corrección de stacking + crossfade robusto */

/* Centrado perfecto + crossfade sin descuadres */
.lb-dialog{ position:relative; margin:0; padding:0; }
.lb-stage{
  display:grid; place-items:center;            /* centra contenido */
  max-width:95vw; max-height:80vh;             /* límites del visor */
}
.lb-layer{
  grid-area:1/1;                                /* apila ambas imágenes */
  width:auto; height:auto;                      /* respeta proporción */
  max-width:95vw; max-height:80vh; object-fit:contain;
  opacity:0; transition:opacity .35s ease;
  border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.6);
}
.lb-layer.active{ opacity:1; }
.lb-btn{ z-index:5; }                           /* flechas siempre encima */


/* Estados del formulario */
.field .error{ display:none; color:#ff8a8a; font-size:13px; margin-top:6px; }
.status{ margin-top:10px; font-weight:600; }
.status.ok{ color:#35d49a; }
.status.error{ color:#ff8a8a; }
#sendBtn:disabled{ opacity:.6; cursor:not-allowed; }




