/* ============================================================
   ProductoraVideo.es — CSS Principal v5 (limpio, sin duplicados)
   Tipografía: Poppins (sans) + Playfair Display (serif)
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg:          #0c0c0c;
  --surface:     #141414;
  --surface2:    #1a1a1a;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.14);
  --accent:      #e8003d;
  --accent-h:    #ff1a55;
  --accent-rgb:  232,0,61;
  --text-1:      #f2f2f2;
  --text-2:      #999;
  --text-3:      #555;
  --white:       #ffffff;
  --success:     #4caf7d;
  --error:       #e57373;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Poppins', system-ui, -apple-system, sans-serif;
  --nav-h:       72px;
  --max-w:       1200px;
  --pad:         clamp(20px,5vw,60px);
  --sec-pad:     clamp(80px,10vw,140px);
  --radius:      3px;
  --ease:        cubic-bezier(0.16,1,0.3,1);
}


/* ── TEMA LIGHT ─────────────────────────────────────────────── */
html[data-theme="light"] {
  --bg:#f5f5f5; --surface:#ffffff; --surface2:#ececec;
  --border:rgba(0,0,0,0.09); --border2:rgba(0,0,0,0.15);
  --accent:#e8003d; --accent-h:#c0002e; --accent-rgb:232,0,61;
  --text-1:#111111; --text-2:#555555; --text-3:#999999;
  --white:#111111;
}
html[data-theme="light"] body { background:var(--bg); color:var(--text-1) }
html[data-theme="light"] .nav { background:rgba(245,245,245,.95); border-bottom-color:rgba(0,0,0,.08) }
html[data-theme="light"] .section--dark { background:var(--bg) }
html[data-theme="light"] .section--surface { background:var(--surface) }
html[data-theme="light"] .stats-bar { background:var(--surface); border-color:var(--border) }
html[data-theme="light"] .page-loader { background:var(--bg) }
html[data-theme="light"] .skill-card { background:rgba(0,0,0,.03); border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .skill-card__track { stroke:rgba(0,0,0,.1) }
html[data-theme="light"] .award-card { background:rgba(0,0,0,.03); border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .clients-section { background:var(--surface); border-color:var(--border) }
html[data-theme="light"] .testimonial-card { background:var(--surface); border-color:var(--border) }
html[data-theme="light"] .footer { background:var(--surface); border-color:var(--border) }
html[data-theme="light"] .hero__title { color:#111 }

/* ── TEMA COLORFUL (radical, vivo, contrastado) ─────────────── */
html[data-theme="colorful"] {
  /* Fondo oscuro vibrante — no gris claro, sino profundo con color */
  --bg:          #0d0d1a;
  --surface:     #12122a;
  --surface2:    #1a1a38;
  --border:      rgba(255,255,255,0.1);
  --border2:     rgba(255,255,255,0.18);
  --accent:      #ff2d55;
  --accent-h:    #ff6080;
  --accent-rgb:  255,45,85;
  --text-1:      #ffffff;
  --text-2:      #c0c0d8;
  --text-3:      #7070a0;
  --white:       #ffffff;
  /* Paleta de colores vivos */
  --cf-red:      #ff2d55;
  --cf-orange:   #ff6b35;
  --cf-yellow:   #ffd60a;
  --cf-green:    #30d158;
  --cf-teal:     #5ac8fa;
  --cf-blue:     #0a84ff;
  --cf-purple:   #bf5af2;
  --cf-pink:     #ff375f;
}

/* Fondo con gradiente de nebulosa */
html[data-theme="colorful"] body {
  background: var(--bg);
  color: var(--text-1);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(10,132,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(191,90,242,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(255,45,85,.06) 0%, transparent 70%);
}

/* Navbar con borde arcoíris */
html[data-theme="colorful"] .nav {
  background: rgba(13,13,26,.92);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg,#ff2d55,#ff6b35,#ffd60a,#30d158,#0a84ff,#bf5af2) 1;
}
html[data-theme="colorful"] .nav__logo-mark {
  background: linear-gradient(135deg,#ff2d55,#bf5af2);
}

/* Hero con overlay de color */
html[data-theme="colorful"] .hero__bg {
  background: radial-gradient(ellipse 100% 80% at 50% 50%, rgba(10,132,255,.15) 0%, rgba(191,90,242,.1) 40%, transparent 70%);
}
html[data-theme="colorful"] .hero__title { color:#fff }
html[data-theme="colorful"] .hero__title em { color:var(--cf-yellow) }
html[data-theme="colorful"] .hero__eyebrow-dot { background:var(--cf-yellow) }

/* Secciones */
html[data-theme="colorful"] .section--dark { background:var(--bg) }
html[data-theme="colorful"] .section--surface { background:var(--surface) }
html[data-theme="colorful"] .section__label { color:var(--cf-yellow); letter-spacing:.2em }
html[data-theme="colorful"] .section__title em { color:var(--cf-pink) }

/* Stats bar — degradado arcoíris */
html[data-theme="colorful"] .stats-bar {
  background: linear-gradient(90deg,#ff2d55 0%,#ff6b35 25%,#0a84ff 60%,#bf5af2 100%);
  border:none;
}
html[data-theme="colorful"] .stats-bar .stat-item__number { color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.4) }
html[data-theme="colorful"] .stats-bar .stat-item__label { color:rgba(255,255,255,.8) }
html[data-theme="colorful"] .stats-bar .stat-item + .stat-item { border-color:rgba(255,255,255,.2) }

/* Servicios — cada tarjeta con borde de color diferente */
html[data-theme="colorful"] .service-card { background:var(--surface); border-color:var(--border) }
html[data-theme="colorful"] .service-card:nth-child(1) { border-top:3px solid var(--cf-red) }
html[data-theme="colorful"] .service-card:nth-child(2) { border-top:3px solid var(--cf-orange) }
html[data-theme="colorful"] .service-card:nth-child(3) { border-top:3px solid var(--cf-yellow) }
html[data-theme="colorful"] .service-card:nth-child(4) { border-top:3px solid var(--cf-green) }
html[data-theme="colorful"] .service-card:nth-child(5) { border-top:3px solid var(--cf-blue) }
html[data-theme="colorful"] .service-card:nth-child(6) { border-top:3px solid var(--cf-purple) }
html[data-theme="colorful"] .service-card__icon { color:var(--cf-yellow) }
html[data-theme="colorful"] .service-card:hover { transform:translateY(-6px) }

/* Botones */
html[data-theme="colorful"] .btn--primary {
  background: linear-gradient(135deg,#ff2d55,#ff6b35);
  box-shadow: 0 4px 20px rgba(255,45,85,.4);
}
html[data-theme="colorful"] .btn--primary:hover {
  background: linear-gradient(135deg,#ff6080,#ff8c60);
  box-shadow: 0 6px 28px rgba(255,45,85,.6);
}
html[data-theme="colorful"] .btn--outline {
  border-color:var(--cf-teal); color:var(--cf-teal);
  box-shadow:0 0 12px rgba(90,200,250,.15);
}
html[data-theme="colorful"] .btn--outline:hover {
  background:var(--cf-teal); color:#000;
  box-shadow:0 0 24px rgba(90,200,250,.4);
}

/* Skills — barras con colores ya definidos inline, track más visible */
html[data-theme="colorful"] .skill-bar {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
html[data-theme="colorful"] .skill-bar:hover {
  background: rgba(255,255,255,.07);
}
html[data-theme="colorful"] .skill-bar__track { background:rgba(255,255,255,.1) }
html[data-theme="colorful"] .skill-group__label { border-bottom-color:rgba(255,255,255,.1) }

/* Premios */
html[data-theme="colorful"] .award-card { background:var(--surface); border-color:var(--border) }
html[data-theme="colorful"] .award-card:nth-child(1)::before { background:linear-gradient(90deg,var(--cf-red),var(--cf-orange)) }
html[data-theme="colorful"] .award-card:nth-child(2)::before { background:linear-gradient(90deg,var(--cf-blue),var(--cf-teal)) }
html[data-theme="colorful"] .award-card:nth-child(3)::before { background:linear-gradient(90deg,var(--cf-purple),var(--cf-pink)) }
html[data-theme="colorful"] .award-card:nth-child(4)::before { background:linear-gradient(90deg,var(--cf-green),var(--cf-teal)) }

/* Proceso — cada paso con color diferente */
html[data-theme="colorful"] .process-step { background:var(--surface); border-color:var(--border) }
html[data-theme="colorful"] .process-step:nth-child(1) .process-step__num { background:linear-gradient(135deg,#ff2d55,#ff6b35); -webkit-background-clip:text; -webkit-text-fill-color:transparent }
html[data-theme="colorful"] .process-step:nth-child(2) .process-step__num { background:linear-gradient(135deg,#0a84ff,#5ac8fa); -webkit-background-clip:text; -webkit-text-fill-color:transparent }
html[data-theme="colorful"] .process-step:nth-child(3) .process-step__num { background:linear-gradient(135deg,#bf5af2,#ff375f); -webkit-background-clip:text; -webkit-text-fill-color:transparent }
html[data-theme="colorful"] .process-step:nth-child(4) .process-step__num { background:linear-gradient(135deg,#30d158,#ffd60a); -webkit-background-clip:text; -webkit-text-fill-color:transparent }

/* Testimonios */
html[data-theme="colorful"] .testimonial-card { background:var(--surface); border-color:var(--border) }
html[data-theme="colorful"] .testimonial-card__quote { color:var(--cf-yellow) }
html[data-theme="colorful"] .star-filled { color:var(--cf-yellow) }

/* Portfolio overlay */
html[data-theme="colorful"] .portfolio-item__overlay {
  background: linear-gradient(to top, rgba(13,13,26,.95) 0%, rgba(10,132,255,.2) 100%);
}

/* Clientes */
html[data-theme="colorful"] .clients-section { background:var(--surface); border-color:var(--border) }
html[data-theme="colorful"] .clients-section__title { color:var(--cf-teal) }

/* Footer */
html[data-theme="colorful"] .footer {
  background: var(--surface);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg,#ff2d55,#0a84ff,#bf5af2) 1;
}

/* Loader */
html[data-theme="colorful"] .page-loader { background:var(--bg) }
html[data-theme="colorful"] .page-loader__logo { color:var(--cf-yellow) }

/* Cursor */
html[data-theme="colorful"] .cursor { background:var(--cf-yellow) }
html[data-theme="colorful"] .cursor-follower { border-color:rgba(255,214,10,.4) }


/* ── RESET ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { font-size:16px; scroll-behavior:smooth; -webkit-text-size-adjust:100% }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,video { max-width:100%; display:block }
a { color:inherit; text-decoration:none }
button { cursor:pointer; border:none; background:none; font:inherit }
ul { list-style:none }
input,select,textarea { font-family:var(--font-sans); font-size:inherit; color:inherit }

/* ── CURSOR ────────────────────────────────────────────────── */
@media(pointer:fine){
  body,a,button,[role=button],.portfolio-item,.filter-btn { cursor:none }
}
.cursor {
  position:fixed; width:8px; height:8px;
  background:var(--accent); border-radius:50%;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  transition:width .15s,height .15s;
  mix-blend-mode:difference;
}
.cursor-follower {
  position:fixed; width:32px; height:32px;
  border:1px solid rgba(232,0,61,.4); border-radius:50%;
  pointer-events:none; z-index:9998;
  transform:translate(-50%,-50%);
  transition:transform .12s ease,width .3s,height .3s,border-color .3s;
}
.cursor--hover { width:16px; height:16px }
.cursor-follower--hover { width:48px; height:48px; border-color:var(--accent) }

/* ── LOADER ────────────────────────────────────────────────── */
.page-loader {
  position:fixed; inset:0; background:var(--bg);
  z-index:9990; display:flex; align-items:center; justify-content:center;
  transition:opacity .6s ease,visibility .6s ease;
}
.page-loader.hidden { opacity:0; visibility:hidden; pointer-events:none }
.page-loader__inner { text-align:center }
.page-loader__logo {
  font-family:var(--font-serif); font-size:3rem; color:var(--accent);
  margin-bottom:24px; animation:pulse 1.5s ease-in-out infinite;
}
.page-loader__bar { width:120px; height:1px; background:var(--border2); margin:0 auto; overflow:hidden }
.page-loader__fill { height:100%; background:var(--accent); animation:loader-fill 1.2s ease forwards }
@keyframes loader-fill { from{width:0} to{width:100%} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container { max-width:var(--max-w); margin:0 auto; padding:0 var(--pad) }

/* ── REVEAL ────────────────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease),transform .7s var(--ease) }
.reveal.visible { opacity:1; transform:translateY(0) }
.reveal-delay-1 { transition-delay:.1s }
.reveal-delay-2 { transition-delay:.2s }
.reveal-delay-3 { transition-delay:.3s }
.reveal-delay-4 { transition-delay:.4s }
.reveal-delay-5 { transition-delay:.5s }

/* ── NAVBAR ────────────────────────────────────────────────── */
.nav {
  position:fixed; top:0; left:0; right:0; height:var(--nav-h);
  min-height:var(--nav-h);
  z-index:100; transition:background .4s,box-shadow .4s;
}
.nav.scrolled {
  background:rgba(12,12,12,.94);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  box-shadow:0 1px 0 var(--border);
}
.nav__inner {
  max-width:var(--max-w); margin:0 auto; padding:0 clamp(16px,3vw,40px);
  height:100%; display:flex; align-items:center; gap:16px;
}
.nav__logo {
  display:flex; align-items:center; gap:10px;
  font-size:.78rem; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-1); transition:opacity .2s; flex-shrink:0;
}
.nav__logo:hover { opacity:.8 }
.nav__logo-mark {
  width:30px; height:30px; background:var(--accent); border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-serif); font-size:.9rem; font-weight:700; color:#fff;
  flex-shrink:0; transition:transform .3s var(--ease);
}
.nav__logo:hover .nav__logo-mark { transform:rotate(10deg) scale(1.1) }
/* Logo imagen subido desde admin */
.nav__logo-img {
  display:block;
  height:36px;          /* fallback si no hay style inline */
  max-height:120px;     /* permite hasta 120px configurado desde el admin */
  max-width:240px;      /* evita que un logo muy ancho rompa el nav */
  width:auto;
  object-fit:contain;
  object-position:left center;
  transition:opacity .2s;
}
/* En móvil reducimos el logo para que quede espacio al hamburger */
@media(max-width:768px){
  .nav__logo-img {
    max-height:52px !important;
    max-width:140px !important;
  }
}
@media(max-width:400px){
  .nav__logo-img {
    max-height:40px !important;
    max-width:110px !important;
  }
}
/* Logo en el footer */
.footer__logo-img {
  display:block;
  height:auto;
  max-height:52px;
  max-width:180px;
  width:auto;
  object-fit:contain;
  object-position:left center;
  margin-bottom:8px;
}
.nav__menu { display:flex; align-items:center; gap:0; margin-left:auto; flex-shrink:0 }
.nav__link {
  padding:8px 10px; font-size:.68rem; font-weight:400;
  letter-spacing:.05em; text-transform:uppercase;
  color:var(--text-2); border-radius:var(--radius);
  transition:color .2s; position:relative; white-space:nowrap;
}
.nav__link::after {
  content:''; position:absolute; bottom:4px; left:10px; right:10px;
  height:1px; background:var(--accent);
  transform:scaleX(0); transform-origin:right; transition:transform .3s ease;
}
.nav__link:hover { color:var(--text-1) }
.nav__link:hover::after { transform:scaleX(1); transform-origin:left }
.nav__cta {
  margin-left:8px; padding:8px 16px;
  font-size:.67rem; font-weight:500; letter-spacing:.07em; text-transform:uppercase;
  color:#fff; background:var(--accent); border-radius:var(--radius);
  transition:all .2s; flex-shrink:0; white-space:nowrap;
}
.nav__cta:hover { background:var(--accent-h); transform:translateY(-1px) }
.nav__hamburger {
  display:none; flex-direction:column; gap:5px;
  padding:8px; margin-left:auto;
}
.nav__hamburger span {
  display:block; width:22px; height:1.5px; background:var(--text-1);
  transition:all .3s;
}
.nav__hamburger.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg) }
.nav__hamburger.open span:nth-child(2) { opacity:0 }
.nav__hamburger.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg) }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; padding:var(--nav-h) var(--pad) 0;
}
.hero__bg {
  position:absolute; inset:0;
  background:radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232,0,61,.06) 0%, transparent 70%),
             radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232,0,61,.04) 0%, transparent 60%);
}

/* Hero con imagen de fondo */
.hero__bg-img {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  animation:hero-zoom 14s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes hero-zoom {
  0%   { transform:scale(1.05) }
  100% { transform:scale(1.0) }
}
.hero__bg-overlay {
  position:absolute; inset:0;
  background:linear-gradient(
    to bottom,
    rgba(10,10,10,.55) 0%,
    rgba(10,10,10,.4) 40%,
    rgba(10,10,10,.7) 100%
  );
}
.hero__noise {
  position:absolute; inset:0; opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  position:absolute; inset:0; opacity:.04;
  background-image:linear-gradient(var(--border2) 1px,transparent 1px),linear-gradient(90deg,var(--border2) 1px,transparent 1px);
  background-size:60px 60px;
}
.hero__content {
  position:relative; z-index:1; text-align:center;
  max-width:800px; padding:80px 0 60px;
}
.hero__eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-size:.72rem; font-weight:400; letter-spacing:.2em; text-transform:uppercase;
  color:var(--text-3); margin-bottom:32px;
}
.hero__eyebrow-dot {
  width:6px; height:6px; background:var(--accent); border-radius:50%;
  animation:pulse 2s ease-in-out infinite;
}
.hero__title {
  font-family:var(--font-serif); font-size:clamp(2.8rem,7vw,5.5rem);
  font-weight:400; line-height:1.1; color:var(--white); margin-bottom:20px;
  letter-spacing:-.02em;
}
.hero__title em { color:var(--accent); font-style:italic }
.hero__subtitle {
  font-size:clamp(.82rem,1.5vw,1rem); font-weight:300;
  letter-spacing:.2em; text-transform:uppercase; color:var(--text-3);
  margin-bottom:48px;
}
.hero__actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap }
.hero__scroll {
  position:absolute; bottom:40px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.hero__scroll-line {
  width:1px; height:48px; background:linear-gradient(to bottom,transparent,var(--text-3));
  animation:scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }
.hero__scroll-text { font-size:.6rem; letter-spacing:.2em; text-transform:uppercase; color:var(--text-3) }

/* ── BOTONES ───────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.75rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  padding:14px 28px; border-radius:var(--radius);
  transition:all .25s var(--ease); white-space:nowrap;
}
.btn--primary {
  background:var(--accent); color:#fff; border:1px solid var(--accent);
}
.btn--primary:hover { background:var(--accent-h); border-color:var(--accent-h); transform:translateY(-2px); box-shadow:0 8px 24px rgba(232,0,61,.35) }
.btn--outline {
  background:transparent; color:var(--text-1); border:1px solid var(--border2);
}
.btn--outline:hover { border-color:var(--text-1); transform:translateY(-2px) }
.btn svg { width:16px; height:16px; flex-shrink:0 }

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:var(--surface);
}
.stats-bar .container {
  display:grid; grid-template-columns:repeat(4,1fr);
  padding-top:40px; padding-bottom:40px;
}
.stat-item { text-align:center; padding:0 20px }
.stat-item + .stat-item { border-left:1px solid var(--border) }
.stat-item__number {
  font-family:var(--font-serif); font-size:clamp(1.8rem,3vw,2.8rem);
  font-weight:400; color:var(--white); line-height:1;
}
.stat-item__label {
  font-size:.68rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-3); margin-top:8px;
}

/* ── SECCIONES ─────────────────────────────────────────────── */
.section { padding:var(--sec-pad) 0 }
.section--dark { background:var(--bg) }
.section--surface { background:var(--surface) }
.section__header { margin-bottom:clamp(48px,6vw,72px) }
.section__header--center { text-align:center }
.section__label {
  font-size:.68rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase;
  color:var(--accent); margin-bottom:16px; display:flex; align-items:center; gap:10px;
}
.section__header--center .section__label { justify-content:center }
.section__label::before {
  content:''; display:block; width:24px; height:1px; background:var(--accent);
}
.section__header--center .section__label::before { display:none }
.section__title {
  font-family:var(--font-serif); font-size:clamp(2rem,4vw,3rem);
  font-weight:400; color:var(--white); line-height:1.15; margin-bottom:16px;
}
.section__desc {
  font-size:.92rem; color:var(--text-2); line-height:1.8;
  max-width:560px;
}
.section__header--center .section__desc { margin:0 auto }

/* ── DEMO REEL ─────────────────────────────────────────────── */
.demo-reel__player { max-width:900px; margin:0 auto }
.demo-reel__video-wrap {
  position:relative; aspect-ratio:16/9;
  background:#000; overflow:hidden; border-radius:4px;
  box-shadow:0 40px 80px rgba(0,0,0,.6);
}
.demo-reel__video-wrap iframe,
.demo-reel__video-wrap video {
  position:absolute; inset:0; width:100%; height:100%; border:none;
}
.demo-reel__facade {
  position:absolute; inset:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.demo-reel__poster {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; transition:transform .6s var(--ease),filter .6s ease;
}
.demo-reel__facade:hover .demo-reel__poster { transform:scale(1.03); filter:brightness(.6) }
.demo-reel__play-btn {
  position:relative; z-index:1;
  width:80px; height:80px; display:flex; align-items:center; justify-content:center;
  transition:transform .3s var(--ease);
}
.demo-reel__facade:hover .demo-reel__play-btn { transform:scale(1.1) }
.demo-reel__play-ring {
  position:absolute; inset:0; border:1.5px solid rgba(255,255,255,.7);
  border-radius:50%; animation:ring-pulse 2s ease-in-out infinite;
}
@keyframes ring-pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.15);opacity:.4} }
.demo-reel__play-icon {
  width:56px; height:56px; background:rgba(232,0,61,.9); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff;
}

/* ── SERVICIOS ─────────────────────────────────────────────── */
.services-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--border); border:1px solid var(--border);
}
.service-card {
  background:var(--surface); padding:clamp(28px,4vw,44px) clamp(24px,3vw,36px);
  transition:background .3s;
}
.service-card:hover { background:var(--surface2) }
.service-card__number {
  font-family:var(--font-serif); font-size:3rem; font-weight:400;
  color:var(--border2); line-height:1; margin-bottom:20px;
  transition:color .3s;
}
.service-card:hover .service-card__number { color:var(--accent) }
.service-card__icon {
  width:36px; height:36px; color:var(--accent); margin-bottom:16px;
}
.service-card__icon svg { width:100%; height:100% }
.service-card__title {
  font-family:var(--font-serif); font-size:1.15rem; font-weight:400;
  color:var(--white); margin-bottom:10px;
}
.service-card__desc { font-size:.85rem; color:var(--text-2); line-height:1.75 }

/* ── PORTFOLIO ─────────────────────────────────────────────── */
.portfolio-filters {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:40px;
}
.filter-btn {
  font-size:.7rem; font-weight:400; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-3); border:1px solid var(--border);
  padding:8px 18px; border-radius:2px; transition:all .25s;
}
.filter-btn:hover { color:var(--text-1); border-color:var(--border2) }
.filter-btn.active { color:#fff; background:var(--accent); border-color:var(--accent) }

/* GRID — 3 columnas fijas */
.portfolio-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
}
.portfolio-item {
  position:relative; overflow:hidden;
  background:var(--surface2); cursor:pointer;
  aspect-ratio:16/10;
}
.portfolio-item.hidden { display:none }
.portfolio-item__img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .6s var(--ease),filter .6s ease;
}
.portfolio-item:hover .portfolio-item__img {
  transform:scale(1.06); filter:brightness(.4);
}
/* Overlay: texto en la parte inferior, play centrado */
.portfolio-item__overlay {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  justify-content:flex-end;
  padding:0;
  opacity:0; transition:opacity .35s;
  pointer-events:none;
}
.portfolio-item:hover .portfolio-item__overlay { opacity:1 }

/* Franja inferior con degradado para el texto */
.portfolio-item__info {
  background:linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
  padding:20px 16px 14px;
  pointer-events:auto;
}
.portfolio-item__cat {
  font-size:.58rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--accent);
  display:block; margin-bottom:5px;
}
.portfolio-item__title {
  font-family:var(--font-serif); font-size:.95rem; font-weight:400;
  color:#fff; line-height:1.35;
  text-shadow:0 1px 6px rgba(0,0,0,.8);
}

/* Play centrado en la tarjeta */
.portfolio-item__play {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .35s;
  pointer-events:none;
}
.portfolio-item:hover .portfolio-item__play { opacity:1 }
.portfolio-item__play-circle {
  width:56px; height:56px; border:2px solid rgba(255,255,255,.85);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.35); transition:transform .3s var(--ease), background .3s;
  pointer-events:auto;
}
.portfolio-item:hover .portfolio-item__play-circle {
  transform:scale(1.12);
  background:rgba(var(--accent-rgb),.25);
}
.portfolio-item__play-circle svg { margin-left:3px }
.portfolio-empty {
  grid-column:1/-1; text-align:center; padding:80px 20px;
  color:var(--text-3); font-size:.9rem;
}

/* ── SOBRE MÍ ──────────────────────────────────────────────── */
.about {
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(48px,8vw,100px);
  align-items:start;
}
.about__text {
  font-size:.95rem; color:var(--text-2); line-height:1.85; margin-bottom:20px;
}
.about__stats {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  margin-top:40px; padding-top:32px; border-top:1px solid var(--border);
}
.about__stat-num {
  font-family:var(--font-serif); font-size:2.2rem; font-weight:400;
  color:var(--white); line-height:1;
}
.about__stat-label {
  font-size:.65rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-3); margin-top:6px;
}
.about__skills { margin-bottom:40px }
.about__skills-title {
  font-size:.68rem; font-weight:500; letter-spacing:.15em; text-transform:uppercase;
  color:var(--text-3); margin-bottom:24px;
}
.skill-item { margin-bottom:20px }
.skill-item__header {
  display:flex; justify-content:space-between; align-items:center;
  font-size:.82rem; color:var(--text-2); margin-bottom:8px;
}
.skill-item__pct { color:var(--accent); font-weight:500 }
.skill-item__bar {
  height:2px; background:var(--border2); border-radius:1px; overflow:hidden;
}
.skill-item__fill {
  height:100%; background:var(--accent); width:0;
  transition:width 1.2s var(--ease);
}

/* ── PROCESO ───────────────────────────────────────────────── */
.process-steps {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:1px; background:var(--border); border:1px solid var(--border);
  margin-top:48px;
}
.process-step {
  background:var(--bg); padding:clamp(32px,4vw,48px) clamp(24px,3vw,36px);
  transition:background .3s;
}
.process-step:hover { background:var(--surface) }
.process-step__number {
  font-family:var(--font-serif); font-size:4rem; font-weight:400;
  color:var(--border2); line-height:1; margin-bottom:24px; transition:color .3s;
}
.process-step:hover .process-step__number { color:var(--accent) }
.process-step__title {
  font-family:var(--font-serif); font-size:1.2rem; font-weight:400;
  color:var(--white); margin-bottom:10px;
}
.process-step__desc { font-size:.85rem; color:var(--text-2); line-height:1.7 }

/* ── CONTACTO ──────────────────────────────────────────────── */
.contact-grid {
  display:grid; grid-template-columns:1fr 1.5fr;
  gap:clamp(48px,8vw,100px); align-items:start;
}
.contact-items { margin-top:36px; display:flex; flex-direction:column; gap:0 }
.contact-item {
  display:flex; align-items:flex-start; gap:16px;
  padding:18px 0; border-bottom:1px solid var(--border);
}
.contact-item__icon {
  width:38px; height:38px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color:var(--accent); transition:all .25s;
}
.contact-item:hover .contact-item__icon {
  background:var(--accent); color:#fff; border-color:var(--accent);
}
.contact-item__icon svg { width:16px; height:16px }
.contact-item__label {
  font-size:.65rem; letter-spacing:.15em; text-transform:uppercase;
  color:var(--text-3); margin-bottom:3px;
}
.contact-item__value { font-size:.9rem; color:var(--text-1) }
.contact-item__value a { color:var(--text-1); text-decoration:none; }
.contact-item__value a:hover { color:var(--accent) }
.contact-item__icon--telegram { color:#29a8e0 }
.contact-item:hover .contact-item__icon--telegram { background:#29a8e0; border-color:#29a8e0; color:#fff }

/* ── CONTACTO SOLO (nueva disposición sin grid) ──────────── */
.contact-solo { max-width:680px }
.contact-solo .contact-items { margin-top:0; margin-bottom:36px }
.contact-actions {
  display:flex; gap:14px; flex-wrap:wrap;
}
.contact-actions__pres {
  display:inline-flex; align-items:center; gap:10px;
  font-size:.78rem;
}
.contact-actions__pres svg { flex-shrink:0 }
.contact-actions__tg {
  display:inline-flex; align-items:center; gap:10px;
  border-color:rgba(41,168,224,.4); color:#29a8e0;
  font-size:.78rem;
}
.contact-actions__tg:hover { border-color:#29a8e0; background:rgba(41,168,224,.08); color:#29a8e0 }
.contact-actions__tg svg { flex-shrink:0 }
@media(max-width:500px) { .contact-actions { flex-direction:column } }

/* ── CTA PRESUPUESTO (tarjeta en sección contacto) ──────────── */
.contact-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(28px,4vw,44px);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-cta-card__icon {
  width: 52px; height: 52px;
  background: rgba(232,0,61,.1);
  border: 1px solid rgba(232,0,61,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.contact-cta-card__icon svg { width: 24px; height: 24px; }
.contact-cta-card__title {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 400;
  color: var(--text-1);
  margin-bottom: 10px;
}
.contact-cta-card__desc {
  font-size: .9rem; color: var(--text-2); line-height: 1.7;
  margin-bottom: 20px;
}
.contact-cta-card__perks {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-cta-card__perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--text-2);
}
.contact-cta-card__perks li svg {
  width: 16px; height: 16px; flex-shrink: 0; color: var(--accent);
}
.contact-cta-card__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 28px;
  text-decoration: none;
  transition: all .25s var(--ease);
  margin-bottom: 16px;
}
.contact-cta-card__btn:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,61,.35);
}
.contact-cta-card__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-cta-card__telegram {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent;
  border: 1px solid rgba(0,136,204,.35);
  color: #29a8e0;
  font-size: .82rem; font-weight: 500;
  padding: 12px 20px;
  text-decoration: none;
  transition: all .2s;
}
.contact-cta-card__telegram:hover {
  background: rgba(0,136,204,.1);
  border-color: #29a8e0;
}
.contact-cta-card__telegram svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── FORMULARIO ────────────────────────────────────────────── */
.contact-form {
  background:var(--surface); border:1px solid var(--border);
  padding:clamp(28px,4vw,44px);
}
.form-title {
  font-family:var(--font-serif); font-size:1.6rem; font-weight:400;
  color:var(--white); margin-bottom:6px;
}
.form-subtitle {
  font-size:.82rem; color:var(--text-3); margin-bottom:28px;
}
.form-section-label {
  font-size:.65rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--accent); margin:24px 0 16px;
  padding-bottom:8px; border-bottom:1px solid var(--border);
}
.form-section-label:first-of-type { margin-top:0 }
.form-row {
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
.form-group { display:flex; flex-direction:column; gap:5px; margin-bottom:14px }
.form-group:last-child { margin-bottom:0 }
.form-label {
  font-size:.68rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-3);
}
.form-label .req { color:var(--accent) }
.form-input,.form-select,.form-textarea {
  background:var(--bg); border:1px solid var(--border);
  color:var(--text-1); padding:12px 14px; font-size:.88rem;
  border-radius:var(--radius); transition:border-color .2s,box-shadow .2s;
  outline:none; -webkit-appearance:none; width:100%;
}
.form-select {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
  padding-right:36px; cursor:pointer;
}
.form-select option { background:var(--surface) }
.form-input:focus,.form-select:focus,.form-textarea:focus {
  border-color:var(--accent); box-shadow:0 0 0 3px rgba(232,0,61,.1);
}
.form-input::placeholder,.form-textarea::placeholder { color:var(--text-3) }
.form-textarea { resize:vertical; min-height:120px }
.form-input.error,.form-select.error,.form-textarea.error { border-color:var(--error) }
.form-submit {
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--accent); color:#fff;
  font-size:.75rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase;
  padding:16px 36px; border-radius:var(--radius);
  transition:all .25s var(--ease); width:100%; margin-top:8px;
}
.form-submit:hover {
  background:var(--accent-h); transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(232,0,61,.35);
}
.form-submit:disabled { opacity:.6; cursor:not-allowed; transform:none }
.form-submit svg { width:16px; height:16px; flex-shrink:0 }
.form-message {
  font-size:.85rem; padding:12px 16px; border-radius:var(--radius);
  margin-bottom:8px; display:none;
}
.form-message.success {
  display:block; background:rgba(76,175,125,.1);
  border:1px solid rgba(76,175,125,.3); color:var(--success);
}
.form-message.error {
  display:block; background:rgba(229,115,115,.1);
  border:1px solid rgba(229,115,115,.3); color:var(--error);
}

/* ── TESTIMONIOS ───────────────────────────────────────────── */
.testimonials-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.testimonial-card {
  background:var(--surface); border:1px solid var(--border);
  padding:28px; transition:border-color .3s,transform .3s;
}
.testimonial-card:hover { border-color:var(--border2); transform:translateY(-3px) }
.testimonial-stars { color:var(--accent); font-size:1rem; letter-spacing:2px; margin-bottom:16px }
.testimonial-text {
  font-size:.88rem; color:var(--text-2); line-height:1.8;
  margin-bottom:20px; font-style:italic;
}
.testimonial-author { display:flex; align-items:center; gap:12px }
.testimonial-avatar {
  width:38px; height:38px; background:var(--accent); color:#fff;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:.9rem; font-weight:600; flex-shrink:0;
}
.testimonial-name { font-size:.85rem; font-weight:500; color:var(--text-1) }
.testimonial-company { font-size:.72rem; color:var(--text-3); margin-top:2px }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { background:var(--bg); border-top:1px solid var(--border) }
.footer__grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:clamp(32px,5vw,60px);
  padding:clamp(60px,8vw,100px) 0 48px;
}
.footer__logo {
  display:flex; align-items:center; gap:10px;
  font-size:.78rem; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-1); margin-bottom:16px;
}
.footer__logo-mark {
  width:28px; height:28px; background:var(--accent); border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-serif); font-size:.85rem; font-weight:700;
  color:#fff; flex-shrink:0;
}
.footer__desc { font-size:.82rem; color:var(--text-3); line-height:1.75; max-width:280px }
.footer__col-title {
  font-size:.65rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--text-3); margin-bottom:20px;
}
.footer__links { display:flex; flex-direction:column; gap:10px }
.footer__link { font-size:.82rem; color:var(--text-2); transition:color .2s }
.footer__link:hover { color:var(--accent) }
.footer__bottom {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding:20px 0; border-top:1px solid var(--border);
  font-size:.75rem; color:var(--text-3);
}
.footer__legal-links {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.footer__legal-link {
  color:var(--text-3); text-decoration:none;
  transition:color .2s;
}
.footer__legal-link:hover { color:var(--accent); }
.footer__legal-sep { color:var(--border); }

/* ── LIGHTBOX ──────────────────────────────────────────────── */
#lightbox {
  position:fixed; inset:0; z-index:1000;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .35s ease, visibility .35s ease;
}
#lightbox.open {
  opacity:1; visibility:visible; pointer-events:auto;
}
.lightbox__backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,.95);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); cursor:pointer;
}
.lightbox__inner {
  position:relative; z-index:1; width:90vw; max-width:980px;
  transform:scale(.95) translateY(12px);
  transition:transform .35s var(--ease);
}
#lightbox.open .lightbox__inner { transform:scale(1) translateY(0) }
.lightbox__close {
  position:absolute; top:-44px; right:0;
  width:36px; height:36px; color:var(--text-2);
  display:flex; align-items:center; justify-content:center;
  transition:color .2s,transform .3s; border-radius:50%;
}
.lightbox__close:hover { color:#fff; transform:rotate(90deg) }
.lightbox__video-wrap {
  position:relative; aspect-ratio:16/9;
  background:#000; overflow:hidden;
}
.lightbox__video-wrap iframe,
.lightbox__video-wrap video {
  position:absolute; inset:0; width:100%; height:100%; border:none;
}
.lightbox__info {
  padding:14px 0 0; display:flex;
  justify-content:space-between; align-items:flex-start; gap:20px;
}
.lightbox__cat {
  font-size:.6rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--accent); margin-bottom:4px;
}
.lightbox__title {
  font-family:var(--font-serif); font-size:1.1rem; font-weight:400;
  color:var(--text-1);
}
.lightbox__desc {
  font-size:.8rem; color:var(--text-3); max-width:380px;
  text-align:right; line-height:1.6;
}

/* ── TELEGRAM FLOTANTE ─────────────────────────────────────── */
.float-telegram {
  position:fixed; bottom:90px; right:28px;
  width:52px; height:52px; background:#2AABEE; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  z-index:200; box-shadow:0 4px 20px rgba(42,171,238,.4);
  transition:transform .3s var(--ease),box-shadow .3s;
}
.float-telegram:hover { transform:translateY(-3px) scale(1.05); box-shadow:0 8px 28px rgba(42,171,238,.55) }
.float-telegram svg { width:24px; height:24px }

/* ── BACK TO TOP ───────────────────────────────────────────── */
#back-to-top {
  position:fixed; bottom:28px; right:28px;
  width:44px; height:44px; background:var(--surface);
  border:1px solid var(--border); color:var(--text-2);
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--radius); opacity:0; visibility:hidden;
  transform:translateY(10px); transition:all .3s; z-index:199; cursor:pointer;
}
#back-to-top.visible { opacity:1; visibility:visible; transform:translateY(0) }
#back-to-top:hover { background:var(--accent); border-color:var(--accent); color:#fff; transform:translateY(-2px) }
#back-to-top svg { width:18px; height:18px }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media(max-width:1024px){
  .services-grid { grid-template-columns:repeat(2,1fr) }
  .portfolio-grid { grid-template-columns:repeat(2,1fr) }
  .process-steps { grid-template-columns:repeat(2,1fr) }
  .about { grid-template-columns:1fr; gap:48px }
  .footer__grid { grid-template-columns:1fr 1fr; gap:32px }
  .footer__brand { grid-column:1/-1 }
  .testimonials-grid { grid-template-columns:repeat(2,1fr) }
}
@media(max-width:768px){
  :root { --nav-h:60px }
  .nav__menu {
    position:fixed; top:var(--nav-h); left:0; right:0;
    background:rgba(12,12,12,.97); backdrop-filter:blur(20px);
    flex-direction:column; gap:0; padding:16px 0;
    transform:translateY(-100%); opacity:0; visibility:hidden;
    transition:all .3s; border-bottom:1px solid var(--border);
  }
  .nav__menu.open { transform:translateY(0); opacity:1; visibility:visible }
  .nav__link { display:block; padding:14px var(--pad) }
  .nav__cta { display:none }
  .nav__hamburger { display:flex }
  .stats-bar .container { grid-template-columns:repeat(2,1fr); gap:0 }
  .stat-item + .stat-item { border-left:none; border-top:1px solid var(--border) }
  .services-grid { grid-template-columns:1fr }
  .portfolio-grid { grid-template-columns:repeat(2,1fr); gap:2px }
  .process-steps { grid-template-columns:1fr }
  .contact-grid { grid-template-columns:1fr; gap:48px }
  .form-row { grid-template-columns:1fr }
  .footer__grid { grid-template-columns:1fr; gap:28px }
  .footer__bottom { flex-direction:column; gap:10px; text-align:center }
  .lightbox__info { flex-direction:column }
  .lightbox__desc { text-align:left }
  .float-telegram { bottom:80px; right:20px; width:46px; height:46px }
  #back-to-top { bottom:20px; right:20px }
  .testimonials-grid { grid-template-columns:1fr }
}
@media(max-width:480px){
  .portfolio-grid { grid-template-columns:1fr }
  .hero__actions { flex-direction:column; align-items:stretch }
  .btn { justify-content:center }
  .portfolio-filters { gap:6px }
  .filter-btn { font-size:.65rem; padding:6px 12px }
  .contact-form { padding:20px }
}

/* ── GALERÍA DE FOTOS ─────────────────────────────────────────── */
.photo-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:16px;
  margin-top:48px;
}
.photo-item {
  position:relative;
  overflow:hidden;
  border-radius:4px;
  aspect-ratio:16/10;
  background:var(--surface);
  cursor:pointer;
}
.photo-item__img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s var(--ease);
  display:block;
}
.photo-item:hover .photo-item__img { transform:scale(1.05) }
.photo-item__caption {
  position:absolute; bottom:0; left:0; right:0;
  padding:12px 16px;
  background:linear-gradient(transparent, rgba(0,0,0,.8));
  color:#fff; font-size:.78rem; letter-spacing:.04em;
  opacity:0; transform:translateY(8px);
  transition:all .3s ease;
}
.photo-item:hover .photo-item__caption { opacity:1; transform:translateY(0) }
@media (max-width:600px) {
  .photo-grid { grid-template-columns:1fr 1fr; gap:8px }
  .photo-item { aspect-ratio:4/3 }
}

/* ── SKILLS (RUEDAS) ─────────────────────────────────────────── */
/* ── SKILLS SECTION ─────────────────────────────────────────── */
.skills-section { margin-bottom:40px }
.skills-section__header {
  display:flex; align-items:center; gap:10px;
  margin-bottom:24px;
}
.skills-section__icon {
  width:28px; height:28px; color:var(--accent); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.skills-section__title {
  font-size:.65rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  color:var(--white);
}
.skill-group { margin-bottom:32px }
.skill-group__label {
  display:flex; align-items:center; gap:8px;
  font-size:.6rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  margin-bottom:14px; padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* ── SKILL BAR (nuevo diseño premium) ─────────────────── */
.skill-bars { display:flex; flex-direction:column; gap:10px }

.skill-bar {
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px;
  padding:12px 14px;
  position:relative; overflow:hidden;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  cursor:default;
}
.skill-bar::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(var(--bar-c1-rgb),.04) 0%, transparent 60%);
  opacity:0; transition:opacity .3s;
  pointer-events:none;
}
.skill-bar:hover {
  transform:translateX(4px);
  box-shadow:0 4px 20px rgba(0,0,0,.3), -3px 0 0 var(--bar-c1);
  border-color:rgba(255,255,255,.12);
}
.skill-bar:hover::before { opacity:1 }

/* Cabecera de la barra */
.skill-bar__head {
  display:flex; align-items:center; gap:10px;
  margin-bottom:10px;
}
.skill-bar__badge {
  width:30px; height:30px; border-radius:7px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:.6rem; font-weight:700; color:#fff;
  letter-spacing:.02em;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
}
.skill-bar__name {
  flex:1; font-size:.82rem; font-weight:500; color:var(--text-1);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.skill-bar__meta {
  display:flex; align-items:center; gap:10px; flex-shrink:0;
}
.skill-bar__level {
  font-size:.6rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  opacity:.85;
}
.skill-bar__pct {
  font-size:.78rem; font-weight:700; color:var(--text-1);
  min-width:34px; text-align:right;
}
.skill-bar__pct-num {
  display:inline-block;
  transition:none;
}

/* Pista de la barra */
.skill-bar__track {
  height:5px; background:rgba(255,255,255,.07); border-radius:99px;
  position:relative; overflow:hidden;
}
.skill-bar__fill {
  height:100%; border-radius:99px;
  transition:width 1.2s cubic-bezier(.4,0,.2,1);
  position:relative;
}
/* Efecto brillo deslizante */
.skill-bar__shine {
  position:absolute; inset:0;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.25) 50%,transparent 100%);
  transform:translateX(-100%);
  transition:transform 0s;
  pointer-events:none;
}
.skill-bar:hover .skill-bar__shine {
  transform:translateX(200%);
  transition:transform .8s ease;
}

/* Compatibilidad con el viejo HTML (por si acaso) */
.skill-cards { display:flex; flex-wrap:wrap; gap:14px }

/* ── AWARDS SECTION ─────────────────────────────────────────── */
.awards-section { margin-top:40px }
.awards-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:16px;
  margin-top:4px;
}
.award-card {
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  padding:20px 18px;
  position:relative; overflow:hidden;
  transition:transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.award-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--accent), #ff6b6b);
  opacity:0; transition:opacity .3s;
}
.award-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(0,0,0,.3);
  border-color:rgba(232,0,61,.2);
}
.award-card:hover::before { opacity:1 }
.award-card__year {
  font-size:.6rem; font-weight:700; letter-spacing:.15em;
  color:var(--accent); margin-bottom:10px;
}
.award-card__icon {
  width:36px; height:36px; border-radius:8px;
  background:rgba(232,0,61,.1); border:1px solid rgba(232,0,61,.2);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent); margin-bottom:12px;
}
.award-card__title {
  font-size:.84rem; font-weight:600; color:var(--white);
  line-height:1.4; margin-bottom:4px;
}
.award-card__org {
  font-size:.72rem; color:var(--text-3); margin-bottom:6px;
}
.award-card__desc {
  font-size:.72rem; color:var(--text-2); line-height:1.5;
}

/* ── LIGHTBOX DE FOTOS ─────────────────────────────────────────── */
.photo-item__zoom {
  position:absolute; top:10px; right:10px;
  width:34px; height:34px;
  background:rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.2);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.8);
  opacity:0; transform:scale(.8);
  transition:opacity .3s, transform .3s;
}
.photo-item:hover .photo-item__zoom { opacity:1; transform:scale(1) }

.photo-lb {
  position:fixed; inset:0; z-index:1100;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s, visibility .3s;
}
.photo-lb.open { opacity:1; visibility:visible; pointer-events:auto }
.photo-lb__backdrop {
  position:absolute; inset:0;
  background:rgba(0,0,0,.95); backdrop-filter:blur(10px); cursor:pointer;
}
.photo-lb__inner {
  position:relative; z-index:1;
  max-width:90vw; max-height:90vh;
  display:flex; flex-direction:column; align-items:center;
}
.photo-lb__img {
  max-width:90vw; max-height:80vh;
  object-fit:contain; border-radius:4px;
  transition:opacity .25s;
}
.photo-lb__caption {
  margin-top:12px; font-size:.85rem;
  color:rgba(255,255,255,.75); text-align:center;
}
.photo-lb__counter {
  margin-top:6px; font-size:.72rem;
  color:rgba(255,255,255,.4); letter-spacing:.1em;
}
.photo-lb__close {
  position:fixed; top:20px; right:24px; z-index:2;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .2s, transform .3s;
}
.photo-lb__close:hover { background:rgba(255,255,255,.18); transform:rotate(90deg) }
.photo-lb__prev,
.photo-lb__next {
  position:fixed; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .2s;
}
.photo-lb__prev { left:20px }
.photo-lb__next { right:20px }
.photo-lb__prev:hover,
.photo-lb__next:hover { background:rgba(255,255,255,.18) }
@media(max-width:600px){
  .photo-lb__prev { left:8px }
  .photo-lb__next { right:8px }
  .photo-lb__close { top:12px; right:12px }
}

/* ── SECCIÓN CLIENTES ─────────────────────────────────────────── */
.clients-section {
  background:var(--surface);
  padding:56px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.clients-section__label {
  text-align:center;
  font-size:.62rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--text-3); margin-bottom:36px;
}
.clients-track {
  overflow:hidden;
  position:relative;
  /* Máscara de degradado en los bordes */
  -webkit-mask-image:linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image:linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.clients-inner {
  display:flex; align-items:center; gap:48px;
  width:max-content;
  animation:clients-scroll 28s linear infinite;
}
.clients-inner:hover { animation-play-state:paused }
@keyframes clients-scroll {
  0%   { transform:translateX(0) }
  100% { transform:translateX(-50%) }
}
.client-logo {
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  opacity:.35; filter:grayscale(1) brightness(1.2);
  transition:opacity .3s, filter .3s;
}
.client-logo:hover { opacity:1; filter:none }
.client-logo img {
  max-height:38px; max-width:130px;
  object-fit:contain; display:block;
}
.client-logo--text {
  font-size:.78rem; font-weight:500; letter-spacing:.08em;
  color:var(--text-3); white-space:nowrap;
  padding:8px 16px; border:1px solid var(--border);
  border-radius:4px;
}

/* ── HERO VÍDEO / GIF DE FONDO ───────────────────────────────── */
.hero__video-wrap {
  position:absolute; inset:0; overflow:hidden; z-index:0;
}
.hero__video-iframe,
.hero__video-mp4 {
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  min-width:100%; min-height:100%;
  width:auto; height:auto;
  pointer-events:none;
  object-fit:cover;
}
.hero__video-iframe {
  width:177.78vh; /* 16:9 */
  height:100vh;
  min-width:100%; min-height:56.25vw;
}

/* ── BANNER DE COOKIES ─────────────────────────────────────── */
.cookie-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:9000;
  background:var(--surface2);
  border-top:1px solid var(--border2);
  padding:16px var(--pad);
  transform:translateY(100%);
  transition:transform .4s var(--ease);
  box-shadow:0 -4px 24px rgba(0,0,0,.4);
}
.cookie-banner--visible { transform:translateY(0) }
.cookie-banner__inner {
  max-width:var(--max-w); margin:0 auto;
}
/* Header del banner */
.cookie-banner__header {
  display:flex; align-items:flex-start; gap:14px; margin-bottom:12px;
}
.cookie-banner__icon-wrap {
  font-size:1.6rem; flex-shrink:0; line-height:1;
}
.cookie-banner__text-wrap { flex:1; }
.cookie-banner__title {
  display:block; font-size:.9rem; color:var(--text-1); margin-bottom:4px;
}
.cookie-banner__desc {
  font-size:.78rem; color:var(--text-2); margin:0; line-height:1.5;
}
.cookie-banner__link { color:var(--accent); text-decoration:underline; }
/* Panel de preferencias */
.cookie-prefs {
  background:rgba(0,0,0,.2); border-radius:var(--radius);
  padding:12px 16px; margin-bottom:12px;
  border:1px solid var(--border2);
}
.cookie-pref-item {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.cookie-pref-item:last-child { border-bottom:none; }
.cookie-pref-item__info { flex:1; }
.cookie-pref-item__info strong {
  display:block; font-size:.8rem; color:var(--text-1); margin-bottom:2px;
}
.cookie-pref-item__info span {
  font-size:.73rem; color:var(--text-2); line-height:1.4;
}
/* Toggle switch */
.cookie-toggle {
  position:relative; display:inline-block;
  width:40px; height:22px; flex-shrink:0; cursor:pointer;
}
.cookie-toggle input { opacity:0; width:0; height:0; }
.cookie-toggle__slider {
  position:absolute; inset:0;
  background:var(--border2); border-radius:22px;
  transition:background .25s;
}
.cookie-toggle__slider::before {
  content:''; position:absolute;
  width:16px; height:16px; left:3px; top:3px;
  background:#fff; border-radius:50%;
  transition:transform .25s;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background:var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform:translateX(18px); }
.cookie-toggle--disabled { opacity:.5; cursor:not-allowed; }
/* Acciones */
.cookie-banner__actions {
  display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
.cookie-banner__btn {
  padding:8px 16px; border-radius:var(--radius);
  font-size:.78rem; font-weight:500; letter-spacing:.04em;
  cursor:pointer; transition:all .2s; white-space:nowrap; border:1px solid transparent;
}
.cookie-banner__btn--primary {
  background:var(--accent); color:#fff; border-color:var(--accent);
}
.cookie-banner__btn--primary:hover { background:var(--accent-h); border-color:var(--accent-h); }
.cookie-banner__btn--outline {
  background:transparent; color:var(--text-2); border-color:var(--border2);
}
.cookie-banner__btn--outline:hover { border-color:var(--text-2); color:var(--text-1); }
.cookie-banner__btn--ghost {
  background:transparent; color:var(--text-2); border-color:transparent;
  text-decoration:underline; padding-left:4px; padding-right:4px;
}
.cookie-banner__btn--ghost:hover { color:var(--text-1); }
@media(max-width:600px){
  .cookie-banner__header { flex-direction:row; }
  .cookie-banner__actions { justify-content:stretch; }
  .cookie-banner__btn { flex:1; text-align:center; }
  .cookie-banner__btn--ghost { flex:0 0 100%; text-align:left; }
}
