/*
Theme Name: SMASH Comunicaciones
Theme URI: https://example.com/
Author: Abraham Reyes - SMASH COMUNICACIONES
Author URI: https://example.com/
Description: Tema moderno, oscuro y animado para SMASH COMUNICACIONES. Incluye slider, carruseles, demos de audio/video, logos de clientes y personalización desde WordPress.
Version: 1.6.72
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smash-comunicaciones
Tags: dark, custom-background, custom-logo, responsive, one-column, two-columns
*/

/* Base reset */
*{box-sizing:border-box}
html,body{height:100%}
html.smash-splash-lock, html.smash-splash-lock body{overflow:hidden;height:100%;}

body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;line-height:1.5;color:var(--smash-text);background:var(--smash-bg);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}
:root{
  --smash-glass: rgba(10,12,18,.38);
  --smash-glass2: rgba(10,12,18,.58);
  --smash-bg:#0b0f17;
  --smash-bg2:#0f1626;
  --smash-card:rgba(255,255,255,.06);
  --smash-card2:rgba(255,255,255,.10);
  --smash-border:rgba(255,255,255,.12);
  --smash-text:#e7ecff;
  --smash-muted:rgba(231,236,255,.70);
  --smash-accent:#6ee7ff;
  --smash-accent2:#a78bfa;
  --smash-good:#22c55e;
  --smash-warn:#f59e0b;
  --smash-danger:#ef4444;
  --smash-shadow:0 20px 60px rgba(0,0,0,.45);
  --smash-radius:24px;
}

.smash-bg-layer{
  position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(110,231,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(167,139,250,.16), transparent 55%),
    radial-gradient(1200px 800px at 50% 80%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(180deg, var(--smash-bg), var(--smash-bg2));
}
.smash-bg-image{
  position:fixed;inset:0;z-index:-3;
  background-size:cover;background-position:center;filter:saturate(1.1) contrast(1.05);
  opacity:var(--smash-bg-opacity, .22);
}
.smash-noise{
  position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.06;
  background-image:url('assets/img/noise.png');background-repeat:repeat;
}

.container{width:min(1200px, 92vw);margin:0 auto}
.glass{background:var(--smash-card);border:1px solid var(--smash-border);backdrop-filter:blur(14px);box-shadow:var(--smash-shadow);border-radius:var(--smash-radius)}
.p-24{padding:24px} .p-18{padding:18px} .p-14{padding:14px}
.mt-24{margin-top:24px} .mt-40{margin-top:40px} .mt-56{margin-top:56px}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.grid-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
@media (max-width: 980px){.grid-3{grid-template-columns:1fr 1fr}}
@media (max-width: 720px){.grid-2,.grid-3{grid-template-columns:1fr}}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 16px;border-radius:14px;border:1px solid var(--smash-border);
  background:rgba(255,255,255,.06);color:var(--smash-text);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.10);border-color:rgba(110,231,255,.35)}
.btn-primary{background:linear-gradient(135deg, rgba(110,231,255,.22), rgba(167,139,250,.18));border-color:rgba(110,231,255,.35)}
.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;color:var(--smash-muted);
  border:1px solid var(--smash-border);background:rgba(255,255,255,.05);
}
.h1{font-size:clamp(28px, 3.2vw, 44px);line-height:1.1;margin:0}
.h2{font-size:clamp(18px, 2.0vw, 26px);line-height:1.2;margin:0}
.muted{color:var(--smash-muted)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(11,15,23,.55);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:14px}
.brand{display:flex;align-items:center;gap:12px}
.brand .title{font-weight:800;letter-spacing:.4px}
.nav{display:flex;align-items:center;gap:18px}
.nav a{padding:10px 10px;border-radius:12px;color:var(--smash-muted);transition:background .15s ease,color .15s ease}
.nav a:hover{background:rgba(255,255,255,.07);color:var(--smash-text)}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-btn{width:42px;height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);display:grid;place-items:center}
.icon-btn:hover{background:rgba(255,255,255,.10);border-color:rgba(110,231,255,.35)}
.menu-toggle{display:none}
/* Mobile menu icon (three bars) - centered inside the button */
.menu-toggle.icon-btn span{
  display:block;
  width:18px;
  height:12px;
  position:relative;
  color:rgba(232,243,255,.92);
  background:
    linear-gradient(currentColor 0 0) 0 0/100% 2px,
    linear-gradient(currentColor 0 0) 0 50%/100% 2px,
    linear-gradient(currentColor 0 0) 0 100%/100% 2px;
  background-repeat:no-repeat;
  transform:none;
  line-height:0;
  font-size:0;
}

@media (max-width: 920px){
  .nav{display:none}
  .menu-toggle{display:inline-flex}
  .nav.is-open{display:flex;flex-direction:column;align-items:stretch;position:absolute;left:4vw;right:4vw;top:72px;padding:12px;border-radius:20px;background:rgba(11,15,23,.92);border:1px solid rgba(255,255,255,.10)}
}

/* Sections */
.section{margin-top:32px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}
.section-head .hint{max-width:62ch}
.card{border-radius:var(--smash-radius);overflow:hidden}
.card .pad{padding:18px}
.card .topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}

/* Slider */
.hero{margin-top:18px}
.slider{position:relative;border-radius:var(--smash-radius);overflow:hidden;border:1px solid rgba(255,255,255,.10)}
.slider-track{display:flex;transition:transform .6s ease}
.slide{min-width:100%;position:relative}
.slide::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%, rgba(0,0,0,.45));
}
.slide-img{width:100%;height:min(420px, 52vw);object-fit:cover;display:block}
.slide-content{position:absolute;inset:auto 0 0 0;padding:24px;z-index:2}
.slide-title{font-size:clamp(18px, 2.3vw, 28px);font-weight:800;margin:0}
.slide-sub{margin:8px 0 0 0;color:rgba(231,236,255,.75);max-width:70ch}
.slider-dots{position:absolute;right:18px;bottom:18px;display:flex;gap:8px;z-index:3}
.dot{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.18)}
.dot.active{background:rgba(110,231,255,.70);border-color:rgba(110,231,255,.80)}
.slider-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.slider-nav button{pointer-events:auto;margin:0 12px}
@media (max-width: 720px){.slider-nav button{display:none} .slide-content{padding:18px}}

/* Horizontal carousel */
.hcar{position:relative}
.hcar-track{display:flex;gap:14px;overflow:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px 2px}
.hcar-track::-webkit-scrollbar{height:10px}
.hcar-track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.hcard{scroll-snap-align:start;min-width:260px;max-width:260px}
.hcard.svc-card{cursor:pointer}
.hcard.svc-card:focus{outline:2px solid rgba(0,208,255,.55);outline-offset:3px}
.hcard img{width:100%;height:300px;object-fit:cover;object-position:center;display:block;border-bottom:1px solid rgba(255,255,255,.10)}
.hcard .svc-thumb{display:block;width:100%;height:300px;overflow:hidden;background:rgba(0,0,0,.12)}
.hcard .svc-thumb img{width:100%;height:100%;object-fit:cover;object-position:center;border-bottom:0}
.hcar-controls{position:absolute;top:-50px;right:0;display:flex;gap:10px}
@media (max-width: 720px){.hcard{min-width:220px;max-width:220px} .hcar-controls{display:none}}

/* Audio filters */
.filters{display:flex;flex-wrap:wrap;gap:10px}
.audio-list{display:grid;gap:10px;margin-top:14px}
.audio-item{padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05)}
.audio-item .meta{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.audio-item h4{margin:0;font-size:16px}
.audio-item p{margin:6px 0 0 0;color:rgba(231,236,255,.70);font-size:14px}
.audio-item audio{width:100%;margin-top:10px}

/* Video */
.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width: 980px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 720px){.video-grid{grid-template-columns:1fr}}
.video-card{border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);cursor:pointer;transition:transform .15s ease}
.video-card:hover{transform:translateY(-2px)}
.video-thumb{aspect-ratio:16/9;background:rgba(255,255,255,.06);display:grid;place-items:center}
.video-card .pad{padding:14px}
.play-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.25)}

/* Client logos */
.logo{width:140px;height:140px;border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);display:grid;place-items:center}
.logo img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.logo:hover img{transform:scale(1.12)}

/* Modal */
.modal{position:fixed;inset:0;display:none;place-items:center;background:rgba(0,0,0,.65);backdrop-filter:blur(10px);z-index:200}
.modal.is-open{display:grid}
.modal-inner{width:min(980px, 94vw);border-radius:28px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:rgba(15,22,38,.95);box-shadow:var(--smash-shadow)}
.modal-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.10)}
.modal-title{font-weight:800}
.modal-body{padding:0}
.modal-body iframe,.modal-body video{width:100%;height:min(520px, 56vw);border:0;display:block}

/* Modal de Servicios */
.svc-modal{display:grid;grid-template-columns:1fr 1.15fr;gap:16px;padding:16px}
.svc-modal__media img{width:100%;max-height:420px;object-fit:contain;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);display:block}
.svc-modal__content{line-height:1.55;color:rgba(255,255,255,.92)}
.svc-modal__content p{margin-top:0;margin-bottom:10px}
.svc-modal__content ul{margin:0 0 0 18px}
.svc-modal__content li{margin:6px 0}

@media (max-width: 900px){
  .svc-modal{grid-template-columns:1fr;}
  .svc-modal__media img{max-height:260px}
}

/* Footer */
.site-footer{margin-top:56px;padding:28px 0;border-top:1px solid rgba(255,255,255,.10);background:rgba(11,15,23,.55);backdrop-filter:blur(14px)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
.footer-col{display:grid;gap:18px}

@media (max-width: 900px){.footer-grid{grid-template-columns:1fr}}
.footer-title{font-weight:800;margin:0 0 8px 0}
.small{font-size:14px;color:rgba(231,236,255,.70)}

/* Animations */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .65s ease, transform .65s ease}
.reveal.is-visible{opacity:1;transform:none}


/* WP menu lists */
.nav .nav-links, .glass .footer-links {list-style:none;margin:0;padding:0;display:flex;gap:18px;align-items:center}
.nav .nav-links li, .glass .footer-links li {margin:0;padding:0}
.glass .footer-links {flex-direction:column;align-items:flex-start;gap:10px}


/* Player slider */
.smash-player-slider{position:relative;overflow:hidden;border-radius:18px}
.sps-track{display:flex;transition:transform .35s ease;will-change:transform}
.sps-slide{flex:0 0 100%;min-width:100%;padding:14px;box-sizing:border-box}
.sps-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.sps-title{font-weight:800;letter-spacing:.02em}
.sps-embed{border-radius:18px;overflow:hidden;border:1px solid var(--smash-border);background: var(--smash-glass);height:460px;min-height:460px}
.sps-embed iframe{display:block;width:100% !important;height:100% !important;max-width:100% !important;border:0 !important;}

.sps-embed video,.sps-embed audio{display:block;width:100% !important;max-width:100% !important;}
/* --- SMASH: adaptive scale-to-fit embeds (only when needed) --- */
.sps-embed--iframe{position:relative;overflow:hidden}
.sps-embed--iframe .sps-fit-inner{position:relative;width:100%;height:100%}
.sps-embed--iframe.is-scaled .sps-fit-inner{position:absolute;left:50%;top:50%;transform-origin:center}
.sps-embed--iframe.is-scaled iframe{max-width:none !important;max-height:none !important}
@media (max-width:680px){.sps-embed{height:320px;min-height:320px}}
.sps-controls{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 12px;border-radius:999px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(10px);z-index:5;}
.sps-dots{display:flex;gap:8px;align-items:center}
.sps-dot{width:10px;height:10px;border-radius:999px;border:1px solid var(--smash-border);background:rgba(255,255,255,.05);cursor:pointer}
.sps-dot.is-active{background:rgba(110,231,255,.55);border-color:rgba(110,231,255,.55);box-shadow:0 0 0 4px rgba(110,231,255,.10)}
/* Audio demos (server-side) */
.audio-panels{margin-top:14px}
.audio-panel{display:none}
.audio-panel.is-active{display:block}
.audio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:980px){.audio-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.audio-grid{grid-template-columns:1fr;}}
.audio-card{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background: var(--smash-glass)}
.audio-cover{width:78px;height:78px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.audio-cover img{width:100%;height:100%;object-fit:cover;display:block}
.audio-cover-ph{font-size:28px;opacity:.85}
.audio-meta{flex:1;min-width:0}
.audio-title{font-weight:800;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.audio-card audio{width:100%}


/* Spotify-like audio player */
.smash-audio-player{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.sap-btn{
  width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex:0 0 auto;
}
.sap-ic{font-size:16px;line-height:1}
.sap-pause{display:none}
.smash-audio-player.is-playing .sap-play{display:none}
.smash-audio-player.is-playing .sap-pause{display:inline}
.sap-mid{flex:1;min-width:0}
.sap-title{font-weight:900;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px}
.sap-bar{position:relative}
.sap-range{
  width:100%;appearance:none;background:transparent;position:relative;z-index:2;height:14px;margin:0;
}
.sap-range::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:rgba(255,255,255,.10)}
.sap-range::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:12px;height:12px;border-radius:999px;background:rgba(110,231,255,.85);
  margin-top:-4px;border:0;
  box-shadow:0 0 0 4px rgba(110,231,255,.10);
}
.sap-range::-moz-range-track{height:4px;border-radius:999px;background:rgba(255,255,255,.10)}
.sap-range::-moz-range-thumb{width:12px;height:12px;border-radius:999px;background:rgba(110,231,255,.85);border:0}
.sap-bar-fill{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  height:4px;border-radius:999px;background:rgba(110,231,255,.55);
  width:0%;z-index:1;
}
.sap-time{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin-top:6px;font-size:12px;opacity:.8}
.sap-sep{opacity:.6}
.sap-vol{
  width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex:0 0 auto;
}
@media (max-width:640px){
  .smash-audio-player{gap:10px;padding:10px 12px}
  .sap-vol{display:none}
}

/* Botón descargar (solo Megamixes/Remixes) */
.sap-dl{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:10px;
  padding:8px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
}
.sap-dl:hover{background:rgba(255,255,255,.10)}


/* Splash screen (2s) con glitch */
.smash-splash{
  position:fixed;inset:0;z-index:99999;
  display:flex;align-items:center;justify-content:center;
  /* Visible SIEMPRE al cargar (desktop/móvil). Mantener 3s y ocultar después. */
  pointer-events:auto;
  opacity:1;visibility:visible;
  animation: smashSplashHold 3s linear forwards, smashSplashFade .25s ease forwards 3s;
  transition:opacity .25s ease, visibility .25s ease;
}
.smash-splash.is-active{
  opacity:1;visibility:visible;
  pointer-events:auto;
}
@keyframes smashSplashHold{
  from { opacity:1; }
  to { opacity:1; }
}
@keyframes smashSplashFade{
  to { opacity:0; visibility:hidden; }
}

.smash-splash.is-active{opacity:1;visibility:visible;pointer-events:auto}

/* Fallback si el JS no corre: mostrar splash y ocultar automático (~2s) */
@keyframes smashSplashAutoHide{
  0%, 80% { opacity:1; }
  100% { opacity:0; visibility:hidden; }
}
.smash-splash__bg{
  position:absolute;inset:0;
  background:radial-gradient(1200px 800px at 50% 40%, rgba(110,231,255,.10), rgba(0,0,0,.97));
  backdrop-filter: blur(10px);
}
.smash-splash__content{position:relative;z-index:1;padding:24px}
.smash-splash__logo{
  position:relative;
  width:min(520px, 78vw);
  filter: drop-shadow(0 24px 70px rgba(0,0,0,.55));
  transform: translateZ(0);
  animation: splashPop .6s ease both;
}
.smash-splash__logo img{
  width:100%;height:auto;display:block;
}
@keyframes splashPop{
  from{transform:scale(.96);opacity:.7}
  to{transform:scale(1);opacity:1}
}

/* Glitch layers */
.smash-splash__glitch{
  position:absolute;inset:0;
  background: url('') no-repeat center/contain;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity:.0;
}
.smash-splash__glitch,
.smash-splash__glitch.g2{
  /* usamos pseudo-copia con filtros */
  content:"";
}
.smash-splash__logo::before,
.smash-splash__logo::after{
  content:"";
  position:absolute;inset:0;
  background: rgba(255,255,255,.0);
  pointer-events:none;
}

/* Glitch effect uses clip + transform */
.smash-splash.is-active .smash-splash__logo img{
  animation: glitchShake .75s linear infinite;
}
@keyframes glitchShake{
  0%,100%{transform:translate(0,0)}
  10%{transform:translate(-2px,0) skewX(-1deg)}
  20%{transform:translate(3px,0) skewX(1deg)}
  30%{transform:translate(-4px,2px) skewY(1deg)}
  40%{transform:translate(2px,-2px) skewX(-1deg)}
  50%{transform:translate(-2px,2px) skewY(-1deg)}
  60%{transform:translate(4px,-2px) skewX(1deg)}
  70%{transform:translate(-4px,0) skewY(1deg)}
  80%{transform:translate(2px,2px) skewX(-1deg)}
  90%{transform:translate(-2px,-2px) skewY(-1deg)}
}
  10%{transform:translate(-1px,0)}
  20%{transform:translate(2px,0)}
  30%{transform:translate(-2px,1px)}
  40%{transform:translate(1px,-1px)}
  50%{transform:translate(-1px,1px)}
  60%{transform:translate(2px,-1px)}
  70%{transform:translate(-2px,0)}
  80%{transform:translate(1px,1px)}
  90%{transform:translate(-1px,-1px)}
}

/* extra glitch scanlines */
.smash-splash.is-active .smash-splash__logo::before{
  background: linear-gradient(180deg, rgba(110,231,255,.12), rgba(0,0,0,0));
  opacity:.68;
  animation: scan .85s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan{
  0%{clip-path: inset(0 0 92% 0); transform:translateY(-6%)}
  50%{clip-path: inset(40% 0 40% 0); transform:translateY(4%)}
  100%{clip-path: inset(92% 0 0 0); transform:translateY(6%)}
}
.smash-splash.is-active .smash-splash__logo::after{
  opacity:.45;
  background: linear-gradient(90deg, rgba(255,60,160,.18), rgba(110,231,255,.18));
  mix-blend-mode: screen;
  animation: rgbShift .9s ease-in-out infinite;
}
@keyframes rgbShift{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(2px)}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .smash-splash.is-active .smash-splash__logo img{animation:none}
  .smash-splash.is-active .smash-splash__logo::before,
  .smash-splash.is-active .smash-splash__logo::after{animation:none}
}


/* hacker noise + full screen glitch */
.smash-splash__bg::before{
  content:"";
  position:absolute;inset:-20%;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0px, rgba(255,255,255,.02) 2px, rgba(0,0,0,0) 4px),
    radial-gradient(900px 600px at 40% 30%, rgba(110,231,255,.12), rgba(0,0,0,0) 60%),
    radial-gradient(900px 600px at 70% 60%, rgba(110,231,255,.10), rgba(0,0,0,0) 60%);
  mix-blend-mode: overlay;
  opacity:.55;
  animation: hackerScan 1.1s linear infinite;
  filter: contrast(120%) saturate(120%);
}
.smash-splash__bg::after{
  content:"";
  position:absolute;inset:0;
  background-image:
    linear-gradient(90deg, rgba(255,60,160,.10), rgba(110,231,255,.12)),
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 6px, rgba(255,255,255,.03) 7px);
  mix-blend-mode: screen;
  opacity:.45;
  animation: rgbFlicker .75s steps(2,end) infinite;
}
@keyframes hackerScan{
  0%{transform:translate(0,-6%) skewX(-2deg); clip-path: inset(0 0 92% 0); opacity:.65}
  25%{transform:translate(-1%,2%) skewX(2deg); clip-path: inset(10% 0 60% 0); opacity:.45}
  50%{transform:translate(2%,-1%) skewX(-3deg); clip-path: inset(45% 0 35% 0); opacity:.6}
  75%{transform:translate(-2%,1%) skewX(3deg); clip-path: inset(70% 0 12% 0); opacity:.5}
  100%{transform:translate(0,6%) skewX(-2deg); clip-path: inset(92% 0 0 0); opacity:.65}
}
@keyframes rgbFlicker{
  0%,100%{transform:translateX(0); filter:hue-rotate(0deg)}
  50%{transform:translateX(2px); filter:hue-rotate(25deg)}
}
.smash-splash.is-active{
  opacity:1;
}
.smash-splash.is-active .smash-splash__logo{
  animation: splashPop .55s ease both, logoFuzz 1.1s ease-in-out infinite;
}
@keyframes logoFuzz{
  0%,100%{filter: drop-shadow(0 24px 70px rgba(0,0,0,.55))}
  50%{filter: drop-shadow(0 24px 70px rgba(0,0,0,.55)) saturate(135%) contrast(120%)}
}

/* Video modal */
.smash-modal{position:fixed;inset:0;z-index:99990;display:none}
.smash-modal.is-open{display:block}
.smash-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.70);backdrop-filter:blur(10px)}
.smash-modal__panel{position:relative;z-index:1;max-width:980px;width:92vw;margin:6vh auto 0;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.35);box-shadow:0 24px 80px rgba(0,0,0,.6);overflow:hidden}
.smash-modal__close{position:absolute;top:10px;right:10px;z-index:2;width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);cursor:pointer}
.smash-modal__body{padding:0}
.smash-modal__body iframe,.smash-modal__body video{display:block;width:100%;height:min(70vh,560px);border:0;background:#000}

/* Matrix canvas overlay */
.smash-splash__bg{overflow:hidden}
.smash-matrix{
  position:absolute;inset:0;
  width:100%;height:100%;
  opacity:.55;
  mix-blend-mode: screen;
  filter: contrast(145%) saturate(120%);
}
.smash-splash__logo img{background:transparent}


/* Splash: solo logo (sin recuadro) + corto circuito */
.smash-splash__content{padding:0;background:transparent}
.smash-splash__logo{
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
}
.smash-splash.is-active .smash-splash__logo{
  animation: splashPop .45s ease both, shortCircuit 1.2s steps(2,end) infinite;
}
.smash-splash.is-active .smash-splash__logo img{
  animation: none; /* quitamos shake anterior y usamos corto circuito */
}
@keyframes shortCircuit{
  0%{opacity:1;transform:translate(0,0) scale(1);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55))}
  7%{opacity:.85;transform:translate(-1px,0) skewX(-1deg);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55)) saturate(135%)}
  14%{opacity:1;transform:translate(1px,-1px) skewX(1deg);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55)) hue-rotate(10deg)}
  22%{opacity:.35;transform:translate(0,2px) scale(1.01);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55)) contrast(140%)}
  30%{opacity:1;transform:translate(-2px,0) scale(1);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55))}
  55%{opacity:.65;transform:translate(0,0) skewY(-1deg);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55)) hue-rotate(-10deg)}
  62%{opacity:1;transform:translate(1px,0) skewY(1deg)}
  78%{opacity:.25;transform:translate(0,0) scale(.995);filter:drop-shadow(0 20px 60px rgba(0,0,0,.55)) contrast(160%)}
  100%{opacity:1;transform:translate(0,0) scale(1)}
}

/* un poco más matrix/hacker */
.smash-matrix{opacity:.68}
.smash-splash__bg::before{opacity:.7}
.smash-splash__bg::after{opacity:.55}


/* --- SMASH PATCH: ensure player slider is horizontal and clipped --- */
.smash-player-slider .sps-viewport{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.smash-player-slider .sps-viewport::-webkit-scrollbar{display:none}
.smash-player-slider .sps-track{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  will-change: scroll-position;
}
.smash-player-slider .sps-slide{
  flex: 0 0 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  scroll-snap-align: start;
}
.smash-player-slider .sps-slide iframe,
.smash-player-slider .sps-slide embed,
.smash-player-slider .sps-slide object{
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* Keep any demo/player inside the slide from overflowing its container.
   - If it's an iframe demo, make it fully responsive.
   - If it's inline HTML, clip and prevent long text from expanding the slide.
*/
.smash-player-slider .sps-slide{overflow:hidden}
.smash-player-slider .sps-embed{overflow:hidden; border-radius:18px}
.smash-player-slider .sps-embed *{max-width:100%}

/* Responsive iframe wrapper (only applied when PHP detects an <iframe>) */
.smash-player-slider .sps-embed--iframe{
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 */
  background: rgba(0,0,0,.25);
}
.smash-player-slider .sps-embed--iframe iframe{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  border:0;
}

/* Generic long-text safety for inline demos */
.smash-player-slider .sps-embed{
  min-width: 0;
  overflow: hidden;
}
.smash-player-slider .sps-embed [class*="title"],
.smash-player-slider .sps-embed [id*="title"],
.smash-player-slider .sps-embed .now-title,
.smash-player-slider .sps-embed .track-title{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}




/* === HOTFIX 1.6.37: splash + players containment + background visibility === */

/* Ensure background image is actually visible */
.smash-bg-image{
  opacity:var(--smash-bg-opacity, .35) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  filter:saturate(1.1) contrast(1.05);
}
body{
  background-color:#05080f !important;
}

/* Contain any embeds so they don't spill out when titles are long inside iframes */
.sps-frame{overflow:hidden;}
.sps-embed{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:18px;
}
.sps-embed iframe,
.sps-embed video{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  border:0;
  display:block;
}

/* Remove aggressive global iframe heights (keep responsive) */
iframe{
  max-width:100%;
}



/* Glass ahumado (efecto cristal) */
.site-header .container,
main.container{
  background: var(--smash-glass);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}
main.container{
  border-radius: var(--smash-radius);
  padding: 20px;
  margin-top: 18px;
  margin-bottom: 34px;
}
.site-header .container{
  border-radius: 22px;
  padding: 12px 14px;
}
.card,
.slider,
.audio-card{
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}
@media (max-width:640px){
  main.container{padding:16px}
  .site-header .container{border-radius:18px}
}

/* Splash logo: asegurar transparencia total (sin "recuadro") */
.smash-splash__logo img{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}




/* ==========================================================
   HOTFIX v1.6.49 — Logo splash sin recuadro + "cristal ahumado"
   (No cambia layout; solo apariencia/profundidad y transparencia)
   ========================================================== */

/* Fondo (que se vea más) */
.smash-bg-image{
  opacity: var(--smash-bg-opacity, .45) !important;
}
.smash-bg-layer{
  opacity: .30 !important;
}
.smash-noise{
  opacity: .05 !important;
}

/* Cristal ahumado global */
:root{
  --smash-glass-bg: rgba(10, 14, 20, 0.32);
  --smash-glass-border: rgba(255,255,255,0.12);
  --smash-glass-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.site-header,
.site-footer{
  background: rgba(10, 14, 20, 0.28) !important;
  border-color: rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
}

.glass,
.card,
.slider,
.tabs-wrap,
.audio-card,
.video-card,
.service-card,
.clients-card,
.modal-card{
  background: var(--smash-glass-bg) !important;
  border: 1px solid var(--smash-glass-border) !important;
  box-shadow: var(--smash-glass-shadow) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
}

/* Evitar que se "tape" el fondo por capas sólidas */
.section,
.site-main,
main{
  background: transparent !important;
}

/* Splash: sin halo/recuadro alrededor del logo */
.smash-splash__content{
  background: transparent !important;
  padding: 0 !important;
}
.smash-splash__logo{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;         /* quita el drop-shadow que se veía como recuadro */
  backdrop-filter: none !important;
}
.smash-splash__logo img{
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
.smash-splash__logo::before,
.smash-splash__logo::after{
  background: transparent !important;
  box-shadow: none !important;
}



/* Mobile header polish */
@media (max-width: 920px){
  /* Make the mobile dropdown menu position relative to the header (prevents overlap) */
  .header-inner{position:relative}
  .nav.is-open{top:calc(100% + 10px)}
}

@media (max-width: 560px){
  /* Prevent social icons from overflowing the header on small screens */
  .header-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "actions actions";
    align-items:center;
    column-gap:10px;
    row-gap:10px;
    padding:12px 0;
  }
  .brand{grid-area:brand;min-width:0}
  .brand .title{
    font-size:14px;
    line-height:1.1;
    max-width: 48vw;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .brand .muted{display:none}
  .brand .custom-logo{max-width:44px;height:auto}
  .menu-toggle{grid-area:toggle;justify-self:end}
  .header-actions{
    grid-area:actions;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
    max-width:100%;
  }
  .header-actions a{flex:0 0 auto}
  .icon-btn{width:38px;height:38px;border-radius:12px}
  .icon-btn svg{width:18px;height:18px}
}

@media (max-width: 380px){
  /* Ultra-small phones */
  .brand .title{max-width: 42vw}
  .icon-btn{width:36px;height:36px;border-radius:12px}
}



/* --- Mobile/iPad embed fitting: keep player inside container without changing internal layout --- */
@media (max-width: 1024px){
  .smash-player-slider .sps-slide{overflow:hidden}
  .smash-player-slider .sps-embed{height:320px;min-height:320px}
  .smash-player-slider /* When we detect a fixed-size iframe demo, scale it down to fit (keeps aspect & avoids overflow/scroll) */
  .smash-player-slider .sps-embed--iframe.is-scaled{height:320px !important;min-height:320px !important;padding-top:0 !important;display:flex;align-items:center;justify-content:center}
  .smash-player-slider .sps-embed--iframe.is-scaled .sps-fit-inner{transform-origin:50% 50%;will-change:transform}
  .smash-player-slider .sps-embed--iframe.is-scaled iframe{position:relative !important;inset:auto !important;display:block;border:0}
}



/* --- Mobile polish v1.6.52 --- */


/* 1) Sliders principales en móvil: que se vean completos y elegantes */
@media (max-width: 720px){
  /* HERO slider: más alto y con contenido legible sin cortarse */
  .hero{margin-top:14px}
  .hero .slider{border-radius:22px;overflow:hidden}
  .hero .slide-img{height:clamp(280px, 54vh, 440px)}
  .hero .slide::after{
    /* overlay vertical (más pro en móvil) */
    background: linear-gradient(180deg,
      rgba(0,0,0,.18) 0%,
      rgba(0,0,0,.35) 45%,
      rgba(0,0,0,.75) 78%,
      rgba(0,0,0,.88) 100%
    );
  }
  .hero .slide-content{padding:16px 16px 18px}
  .hero .slide-content .pill{display:inline-flex;max-width:100%}
  .hero .slide-content h1{font-size:20px;line-height:1.12;margin:10px 0 8px 0}
  .hero .slide-content p{font-size:14px;line-height:1.35;margin:0 0 12px 0}
  .hero .slide-content .btn{width:100%;justify-content:center}
  .hero .slider-dots{right:12px;bottom:12px}
}

/* Player slider (demos) en móvil: más “app like”, sin salirse */
@media (max-width: 1024px){
  .smash-player-slider{max-width:100%;overflow:hidden}
  .smash-player-slider .sps-slide{padding:10px}
}
@media (max-width: 720px){
  .smash-player-slider .sps-embed{
    height: clamp(320px, 56vh, 440px);
    min-height: 320px;
  }
  .smash-player-slider .smash-player-slider .sps-embed--iframe.is-scaled{
    height: clamp(320px, 56vh, 440px) !important;
    min-height: 320px !important;
  }
  .smash-player-slider .sps-controls{bottom:10px}
}

/* 2) Mini players de audios (tarjetas) en móvil: no desbordan, más estéticos */
@media (max-width: 520px){
  .audio-card{gap:12px}
  .audio-cover{width:72px;height:72px;border-radius:16px}
  .audio-title{font-size:15px}
  .smash-audio-player{flex-wrap:wrap;gap:10px;padding:12px}
  .sap-mid{flex:1 1 100%}
  .sap-time{justify-content:flex-start}
  .sap-btn{width:44px;height:44px}
}


/* === HOTFIX 1.6.56: PC player demo iframes nunca se salen del contenedor ===
   El problema era que algunos iframes (players “app like”) renderizan un layout interno más ancho que 100%,
   lo que provoca scroll horizontal y “desborde” visual. Aquí forzamos un modo de encaje:
   - El wrapper .sps-embed--iframe se comporta como viewport fijo.
   - JS crea .sps-fit-inner y aplica transform: scale() cuando hace falta.
*/

.smash-player-slider .sps-embed--iframe{
  position: relative !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  height: 460px !important;
  min-height: 460px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.22);
}

.smash-player-slider .sps-embed--iframe iframe{
  border: 0 !important;
  background: transparent !important;
}

.smash-player-slider .sps-embed--iframe .sps-fit-inner{
  flex: 0 0 auto;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Cuando JS activa el modo encajado */
.smash-player-slider .sps-embed--iframe.is-scaled iframe{
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

@media (max-width: 680px){
  .smash-player-slider .sps-embed--iframe{
    height: 320px !important;
    min-height: 320px !important;
  }
}

/* 3) Modal de videos (y cualquier embed) en móvil: nunca se sale de pantalla */
.modal{padding:14px;box-sizing:border-box;overflow:auto;align-items:flex-start}
.modal-inner{max-height:calc(100vh - 28px);display:flex;flex-direction:column}
.modal-top{flex:0 0 auto}
.modal-body{flex:1 1 auto;overflow:auto}

/* Envolver embeds para que respeten el ancho/alto */
.modal-body .modal-media{padding:0}
.modal-body iframe,
.modal-body video{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:16/9;
  min-height: 180px;
  max-height: 72vh;
  border:0;
  display:block;
}

@media (max-width: 520px){
  .modal{padding:10px}
  .modal-inner{width:100%;border-radius:22px}
  .modal-top{padding:12px 12px}
  .modal-title{font-size:14px}
}



/* =========================================================
   Mobile polish (sliders + audio/video players) — v1.6.53
   Objetivo: nada se sale del viewport y todo se ve "pro".
   ========================================================= */

/* Evita scroll horizontal por cualquier embed */
html, body{overflow-x:hidden}
main, .section, .glass, .card{max-width:100%}

/* Modal video: siempre dentro de pantalla en móvil */
.modal-inner{box-sizing:border-box}
.modal-body{box-sizing:border-box}
.modal-body iframe,.modal-body video{max-width:100% !important}

/* Cuando el modal está abierto, bloquea scroll del fondo */
html.smash-modal-open{overflow:hidden}
html.smash-modal-open body{overflow:hidden}

@media (max-width: 720px){
  .modal-inner{
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    margin: 9px;
    border-radius: 22px;
  }
  .modal-top{gap:10px;flex-wrap:wrap}
  .modal-title{max-width: calc(100% - 56px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .modal-body{
    max-height: calc(100vh - 18px - 58px);
    overflow:auto;
  }
  /* Usa aspect-ratio para que el video/iframe no rebase */
  .modal-body iframe,.modal-body video{
    width:100% !important;
    height:auto !important;
    aspect-ratio:16/9;
    max-height: 62vh;
    display:block;
  }
}

/* Sliders principales: que se vean completos y sin cortes en móvil */
@media (max-width: 720px){
  .slide-img{
    height: 320px;
    object-fit: contain;
    background: rgba(0,0,0,.25);
  }
  .slide::after{
    background:linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  }
  .slide-content{padding:16px}
  .slide-sub{max-width: 44ch}
}

/* Carrusel horizontal (Servicios/Clientes): cards más grandes y completas en móvil */
@media (max-width: 640px){
  .hcar-controls{display:none}
  .hcard{min-width: 84vw; max-width: 84vw}
  /* En móvil queremos que la imagen del servicio se vea “grande” como en PC */
  .hcard img{height: 280px; object-fit: cover; background: rgba(0,0,0,.18)}
  .hcard .svc-thumb{height: 280px}
  .hcard .svc-thumb img{height:100%; object-fit: cover; border-bottom:0}
  .hcar-track{padding: 2px 10px 12px 10px}
}

/* Slider de Players (iframes): nunca desborda, escala suave en móviles */
.sps-embed{box-sizing:border-box;max-width:100%}
.sps-embed *{max-width:100%}
@media (max-width: 680px){
  .sps-embed{height:360px;min-height:360px}
  }
/* (el encaje de iframes ahora se hace por JS con .is-scaled; evitamos hacks de scale fijos) */

/* Audios: el mini player jamás se sale en móvil */
.audio-card, .smash-audio-player{box-sizing:border-box;max-width:100%}
.audio-card{overflow:hidden}
.smash-audio-player{width:100%;max-width:100%}
.sap-mid{min-width:0}
.sap-bar{max-width:100%}
.sap-range{max-width:100%}
@media (max-width: 640px){
  .audio-card{flex-wrap:wrap}
  .audio-cover{flex:0 0 72px}
  .audio-meta{flex:1 1 calc(100% - 84px);min-width:0}
  .smash-audio-player{flex:1 1 100%}
}
@media (max-width: 420px){
  /* Layout tipo app: controles arriba, barra abajo, todo dentro */
  .smash-audio-player{flex-wrap:wrap;gap:10px}
  .sap-btn{width:52px;height:52px}
  .sap-mid{flex:1 1 calc(100% - 62px)}
  .sap-time{justify-content:space-between}
}


/* Mobile: acomodo bonito de logos de clientes */
@media (max-width: 560px){
  #clientes .hcar-controls{display:none}
  #clientes .hcar-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible;scroll-snap-type:none;padding:0;margin-top:10px}
  #clientes .logo{width:100%;height:auto;aspect-ratio:1/1;border-radius:18px}
  #clientes .logo img{width:82%;height:82%;object-fit:contain;padding:10px}
}


/* === HOTFIX 1.6.56: Encaje definitivo de iframes de Player (PC + móvil) ===
   Algunos demos (players "app-like") renderizan con un ancho interno fijo, causando scroll horizontal
   dentro del iframe y/o desborde visual. El JS agrega la clase .is-scaled y envuelve el iframe en
   .sps-fit-inner para aplicar transform: scale() de forma limpia.
*/
.smash-player-slider .sps-embed--iframe{
  /* Anula estilos antiguos de ratio 16:9 que ponían height:0 */
  height: 460px !important;
  min-height: 460px !important;
  padding-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.smash-player-slider .sps-embed--iframe iframe{
  border: 0 !important;
}
.smash-player-slider .sps-embed--iframe.is-scaled .sps-fit-inner{
  flex: 0 0 auto;
  transform-origin: 50% 50%;
  will-change: transform;
}
.smash-player-slider .sps-embed--iframe.is-scaled iframe{
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}
@media (max-width: 680px){
  .smash-player-slider .sps-embed--iframe{
    height: 320px !important;
    min-height: 320px !important;
  }
}


/* --- v1.6.57 HOTFIX: Players (PC normal size, no overflow) --- */
.smash-player-slider .sps-slide{overflow:hidden !important;}
.smash-player-slider .sps-embed{
  position:relative !important;
  overflow:hidden !important;
  height:460px !important;
  min-height:460px !important;
}
.smash-player-slider .sps-embed--iframe{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  padding-top:0 !important; /* disable 16:9 wrapper */
}
.smash-player-slider .smash-player-slider .sps-embed .sps-fit-inner{
  width:100% !important;
  height:100% !important;
  transform:none !important;
}
@media (max-width: 1024px){
  .smash-player-slider .sps-embed{
    height: clamp(320px, 56vh, 440px) !important;
    min-height: 320px !important;
  }
}




/* Footer: Apps oficiales */
.footer-apps{width:100%}
.apps-badges{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:center}
@media (max-width: 900px){.apps-badges{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* En móvil los acomodamos tipo “grid” (no en columna larga) */
@media (max-width: 420px){
  .apps-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .apps-badges .app-badge{min-height:56px;}
  .apps-badges .app-badge img{height:36px;max-height:36px;}
  /* Último botón (Roku por defecto) centrado */
  .apps-badges .app-badge:last-child{grid-column:1/-1;max-width:340px;justify-self:center;}
}
.app-badge{
  display:flex;align-items:center;justify-content:center;
  min-height:54px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--smash-border);
  background:rgba(12,18,30,.40);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease, background .18s ease;
}
.app-badge:hover{transform:translateY(-1px);border-color:rgba(231,236,255,.28);background:rgba(12,18,30,.48)}
.app-badge img{
  width:100%;
  height:38px;
  max-height:38px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.app-badge-text{font-weight:800;font-size:13px;color:rgba(231,236,255,.92);text-align:center;line-height:1.2}
.footer-contact-row{margin-top:14px}
.footer-contact .btn{white-space:nowrap}
.footer-contact-inner{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
@media (min-width: 901px){.footer-contact-inner{justify-content:flex-end}}

/* Orden de botones en el footer (móvil):
   1) WhatsApp (1 y 2)  2) Teléfonos (1 y 2)  3) Telegram  4) Correo */
@media (max-width: 900px){
  .footer-contact-inner a[href^="https://wa.me"],
  .footer-contact-inner a[href*="api.whatsapp.com"]{order:1;}
  .footer-contact-inner a[href*="telegram"],
  .footer-contact-inner a[href*="t.me"]{order:2;}
  .footer-contact-inner a[href^="tel:"]{order:3;}
  .footer-contact-inner a[href^="mailto:"]{order:4;}
}


/* Contact Typer */
.smash-contact-card{display:flex;gap:18px;align-items:flex-start;justify-content:space-between}
.smash-contact-left{flex:1;min-width:240px}
.smash-contact-title{font-size:22px;font-weight:800;margin:0 0 8px}
.smash-contact-typer{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:14px;line-height:1.45;opacity:.95;margin:0 0 14px;
  color: rgba(210,230,255,.92);
}
.smash-contact-typer .smash-typer-text{color: rgba(210,230,255,.95)}
.smash-contact-typer .smash-typer-cursor{display:inline-block;width:.6ch;margin-left:2px;opacity:1;
  color: rgba(126,220,255,.95);
  animation: smashCursorBlink 1s steps(1,end) infinite;
}
@keyframes smashCursorBlink{50%{opacity:0}}
.smash-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:320px;max-width:520px}
.smash-contact-actions .btn{justify-content:flex-start;gap:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smash-contact-actions .btn span{overflow:hidden;text-overflow:ellipsis}
.smash-contact-actions .btn.btn-primary{box-shadow:0 10px 24px rgba(0,0,0,.25)}
.smash-contact-actions .btn .icon{display:inline-flex;align-items:center;justify-content:center}
@media (max-width: 860px){
  .smash-contact-card{flex-direction:column}
  .smash-contact-actions{min-width:unset;max-width:unset;width:100%}
}
@media (max-width: 520px){
  .smash-contact-actions{grid-template-columns:1fr}
}


/* "Hagamos tu proyecto" typer */
.smash-project-box{position:relative;min-height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.smash-project-box:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.08) 0,
    rgba(255,255,255,.08) 1px,
    transparent 1px,
    transparent 28px
  );
}
.smash-project-typer{position:relative;z-index:1;max-width:100%;padding:10px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.6;
  letter-spacing: .2px;
  color: rgba(235,242,255,.96);
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}
.smash-project-typer .smash-typer-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.smash-project-typer .smash-typer-cursor{display:inline-block;width:.6ch;margin-left:2px;opacity:1;
  color: rgba(126,220,255,.95);
  animation: smashCursorBlink 1s steps(1,end) infinite;
}


/* === Patch 1.6.64: Footer centered + contact typer in Contacto section === */
.site-footer .footer-apps{ text-align:center; }
.site-footer .apps-badges{ justify-items:center; }
.site-footer .footer-inner{ margin-left:auto; margin-right:auto; }
.site-footer .footer-contact-inner{ justify-content:center; }


@media (max-width: 640px){
  .footer-contact-inner{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:12px;
    justify-items:stretch;
  }
  .footer-contact-inner a{
    width:100%;
    max-width:none;
    justify-content:center;
  }
  .footer-contact-inner a[href*="telegram"],
  .footer-contact-inner a[href*="t.me"],
  .footer-contact-inner a[href^="mailto:"]{
    grid-column: 1 / -1;
  }
}


/* Desktop hover zoom (services / videos / demos) */
@media (min-width: 901px){
  .svc-card .svc-thumb img,
  .video-card .video-thumb img,
  .audio-card .audio-cover img{
    transition: transform .35s ease;
    transform: scale(1);
    will-change: transform;
  }
  .svc-card:hover .svc-thumb img,
  .video-card:hover .video-thumb img,
  .audio-card:hover .audio-cover img{
    transform: scale(1.06);
  }
}
