/* Ajustes de integración con WordPress (no alteran el diseño público).
   Solo actúan cuando hay un usuario logueado con la barra de administración visible. */
body.admin-bar > header{top:32px;}
@media screen and (max-width:782px){
  body.admin-bar > header{top:46px;}
}
@media screen and (max-width:600px){
  body.admin-bar > header{top:0;}
}
/* Estado de envío del formulario de presupuesto */
.form-box .btn[disabled]{opacity:.7; cursor:wait;}

/* ---------- Logos de marcas (v1.0.3) ----------
   Mismo recuadro del diseño (3:2, borde --line). Logo en gris; a color al pasar el mouse. */
.marca-slot.has-logo, .cliente-slot.has-logo{position:relative; padding:0; background:var(--white);}
.marca-slot.has-logo img, .cliente-slot.has-logo img{
  position:absolute; left:15%; top:27%; width:70%; height:46%;
  max-width:none; object-fit:contain; object-position:center;
  filter:grayscale(1); opacity:.68; transition:filter .2s, opacity .2s, transform .2s;
}
.has-logo.logo-md img{left:21%; top:28%; width:58%; height:44%;}
.has-logo.logo-sq img{left:25%; top:22%; width:50%; height:56%;}
.has-logo.logo-xw img{left:15%; top:30%; width:70%; height:40%;}
.marca-slot.has-logo:hover, .cliente-slot.has-logo:hover{background:var(--white); border-color:var(--navy);}
.has-logo:hover img{filter:none; opacity:1; transform:scale(1.04);}
@media (hover:none){ .has-logo img{filter:none; opacity:1;} }

/* ---------- Videos (v1.0.4) ---------- */
.carmar-video{display:block; width:100%; height:100%; object-fit:cover; background:var(--ink);}
/* Hero: el video se funde sobre la foto de la fachada (que queda como respaldo). */
.hero-right .hero-video{position:absolute; inset:0; background:transparent; opacity:0; transition:opacity .9s ease;}
.hero-right .hero-video.is-playing{opacity:1;}
.vid-toggle{position:absolute; right:16px; bottom:16px; z-index:3; width:40px; height:40px; border-radius:50%; border:0; padding:0; cursor:pointer;
  background:rgba(29,29,27,.55); display:flex; align-items:center; justify-content:center; transition:background .15s;}
.vid-toggle[hidden]{display:none;}
.vid-toggle:hover, .vid-toggle:focus-visible{background:var(--red); outline:none;}
.vid-toggle svg{width:16px; height:16px; fill:var(--white);}
.vid-toggle .i-play{display:none;}
.vid-toggle.is-paused .i-play{display:block;}
.vid-toggle.is-paused .i-pause{display:none;}

/* Sección «Carmar en video» (Inicio) */
.spot{background:var(--ink);}
.spot-grid{display:grid; grid-template-columns:0.8fr 1.2fr; gap:64px; align-items:center;}
.spot h2{color:var(--white); margin-bottom:24px;}
.spot-list{display:flex; flex-direction:column; gap:14px; margin-bottom:26px;}
.spot-list li{position:relative; padding-left:22px; color:#C9CFDB; font-size:1.02rem; line-height:1.4;}
.spot-list li::before{content:""; position:absolute; left:0; top:.55em; width:10px; height:3px; background:var(--red); transform:skewX(-20deg);}
.spot-dir{color:var(--white); font-weight:600; font-size:.95rem; margin-bottom:30px;}
.spot-frame{position:relative; aspect-ratio:16/9; background:#000; overflow:hidden;}
.spot-frame::before{content:""; position:absolute; top:0; left:0; width:10px; height:100%; background:var(--red); z-index:2;}
@media (max-width:900px){
  .spot-grid{grid-template-columns:1fr; gap:36px;}
  .spot-frame{order:-1;}
}

/* ---------- Correcciones mobile del diseño original (v1.0.4) ----------
   La franja roja (4 columnas) y la grilla de marcas ensanchaban la página en celulares. */
@media (max-width:900px){
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .trust-item{padding:20px 22px;}
  .trust-item:nth-child(odd){border-left:0;}
  .trust-item:nth-child(n+3){border-top:1px solid rgba(255,255,255,0.25);}
}
@media (max-width:600px){
  .marcas-grid{grid-template-columns:repeat(2,1fr) !important;}
  .marca-slot, .cliente-slot{min-width:0; overflow-wrap:anywhere;}
  .clientes-grid .cliente-slot{flex-basis:30%;}
}
@media (max-width:420px){
  .trust-item{padding:18px 16px; gap:10px;}
}
@media (max-width:900px){ .hero-right .vid-toggle{top:16px; bottom:auto;} }
