/* =====================================================================
   Electromanchamaster — HOME premium (moderno claro) 2026
   Se encola solo en la portada.
   ===================================================================== */
:root{
  --em-primary:#ea580c;
  --em-primary-2:#f97316;
  --em-primary-dark:#c2410c;
  --em-secondary:#facc15;
  --em-ink:#171717;
  --em-muted:#6b7280;
  --em-line:#ececec;
  --em-grad:linear-gradient(120deg,#f97316 0%,#ea580c 55%,#c2410c 100%);
}

/* El contenido de la home va a sangre; el tema mantiene su cabecera/pie */
.home .entry-content{ margin:0; }
.home .entry-content > .alignfull{ margin-top:0; margin-bottom:0; }
.em-sec{ width:100%; }
/* Sin hueco entre la cabecera y el hero: el contenedor de contenido de Blocksy
   añade padding-top (--theme-content-vertical-spacing). Se anula en la home y en Repuestos. */
.home main.site-main,
.home .ct-container-full,
.home .ct-content-block,
.home #main-container > .entry-content,
.page-id-1555 main.site-main,
.page-id-1555 .ct-container-full,
.page-id-1555 .ct-content-block,
.page-id-1555 #main-container > .entry-content{ padding-top:0 !important; margin-top:0 !important; }
.home .entry-content > .alignfull:first-child,
.page-id-1555 .entry-content > .alignfull:first-child{ margin-top:0 !important; }

/* Integración cabecera + hero: mismo fondo, sin costura (solo en la home) */
.home .ct-header,
.home .ct-header [data-row]{ background:#fff8f4 !important; box-shadow:none !important; border-bottom:0 !important; }
.home .em-hero{ padding-top:36px; }        /* la cabecera ya aporta aire arriba */
.home .em-hero__bg::before{ top:-220px; }  /* el blob sube tras la cabecera */

/* Iconos de línea (SVG) elegantes */
.em-ico{ display:inline-flex; width:1em; height:1em; color:currentColor; flex:0 0 auto; }
.em-ico svg{ width:100%; height:100%; display:block; }
.em-hero__chips .em-ico{ font-size:19px; color:var(--em-primary); }
.em-hero__badge .em-ico{ font-size:30px; color:var(--em-primary); }
.em-trust__ico{ color:var(--em-primary); }
.em-trust__ico .em-ico{ font-size:25px; }
.em-step__num .em-ico{ font-size:30px; color:#fff; }
.em-cat__go .em-ico{ font-size:19px; }
.em-about__seal .em-ico{ font-size:22px; color:var(--em-primary); }
.em-map__row .em-ico{ font-size:22px; color:var(--em-primary); margin-top:1px; }
.em-cta .em-btn .em-ico{ font-size:18px; }
.em-wrap{ max-width:1200px; margin:0 auto; padding-inline:24px; }

/* Cabecera de sección reutilizable */
.em-sec-head{ text-align:center; max-width:720px; margin:0 auto 40px; }
.em-eyebrow{
  display:inline-block; font-size:13px; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:var(--em-primary);
  background:rgba(234,88,12,.09); padding:6px 14px; border-radius:999px; margin-bottom:14px;
}
.em-sec-title{
  font-size:clamp(26px,3.4vw,40px); line-height:1.12; font-weight:800; color:var(--em-ink);
  margin:0 0 12px; letter-spacing:-.02em;
}
.em-sec-sub{ color:var(--em-muted); font-size:17px; margin:0; }
.em-grad-text{
  background:var(--em-grad); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}

/* Botones */
.em-btn{
  display:inline-flex; align-items:center; gap:9px; font-weight:700; font-size:16px;
  padding:15px 28px; border-radius:12px; text-decoration:none; position:relative; overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease; will-change:transform;
}
.em-btn--primary{ background:var(--em-grad); color:#fff; box-shadow:0 10px 24px rgba(234,88,12,.32); }
.em-btn--primary:hover{ color:#fff; transform:translateY(-3px); box-shadow:0 16px 34px rgba(234,88,12,.42); }
.em-btn--primary::after{
  content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent); transform:skewX(-20deg);
}
.em-btn--primary:hover::after{ animation:em-shine .9s ease; }
@keyframes em-shine{ to{ left:130%; } }
.em-btn--ghost{ background:#fff; color:var(--em-ink); border:1.5px solid var(--em-line); }
.em-btn--ghost:hover{ color:var(--em-primary); border-color:var(--em-primary); transform:translateY(-3px); box-shadow:0 12px 26px rgba(0,0,0,.08); }
.em-btn--wa{ background:#25d366; color:#fff; box-shadow:0 10px 24px rgba(37,211,102,.3); }
.em-btn--wa:hover{ color:#fff; transform:translateY(-3px); box-shadow:0 16px 30px rgba(37,211,102,.42); }

/* =========================== HERO =========================== */
.em-hero{ position:relative; overflow:hidden; background:#fff8f4; padding:72px 0 84px; }
.em-hero__bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.em-hero__bg::before,.em-hero__bg::after{
  content:""; position:absolute; border-radius:50%; filter:blur(70px); opacity:.55;
}
.em-hero__bg::before{ width:520px; height:520px; top:-160px; right:-120px;
  background:radial-gradient(circle at 30% 30%,#fdba74,#f97316); animation:em-float 9s ease-in-out infinite; }
.em-hero__bg::after{ width:420px; height:420px; bottom:-160px; left:-100px;
  background:radial-gradient(circle at 50% 50%,#fed7aa,#fb923c); opacity:.4; animation:em-float 11s ease-in-out infinite reverse; }
@keyframes em-float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(26px) } }
.em-hero__inner{
  position:relative; z-index:1; max-width:1200px; margin:0 auto; padding-inline:24px;
  display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
}
.em-hero__logo{ height:56px; width:auto; margin-bottom:22px; }
.em-hero__title{
  font-size:clamp(34px,4.6vw,56px); line-height:1.06; font-weight:800; letter-spacing:-.025em;
  color:var(--em-ink); margin:0 0 18px;
}
.em-hero__sub{ font-size:19px; line-height:1.6; color:#4b5563; max-width:540px; margin:0 0 28px; }
.em-hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:26px; }
.em-hero__chips{ list-style:none; display:flex; flex-wrap:wrap; gap:10px 22px; padding:0; margin:0; }
.em-hero__chips li{ display:flex; align-items:center; gap:8px; font-weight:600; color:#374151; font-size:15px; }
.em-hero__media{ position:relative; }
.em-hero__media img{
  width:100%; height:460px; object-fit:cover; border-radius:24px;
  box-shadow:0 30px 60px rgba(17,17,17,.18); border:6px solid #fff;
}
.em-hero__badge{
  position:absolute; bottom:22px; left:-18px; background:#fff; border-radius:16px;
  padding:14px 18px; box-shadow:0 18px 40px rgba(0,0,0,.16); display:flex; align-items:center; gap:12px;
  font-weight:700; color:var(--em-ink);
}
.em-hero__badge span{ font-size:30px; line-height:1; }
.em-hero__badge small{ display:block; font-weight:500; color:var(--em-muted); font-size:12px; }

/* ====================== BARRA DE CONFIANZA ====================== */
.em-trustbar{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; max-width:1150px; margin:0 auto; }
.em-trust{
  display:flex; align-items:center; gap:16px; background:#fff; border:1px solid var(--em-line);
  border-radius:16px; padding:20px; transition:transform .2s, box-shadow .2s, border-color .2s;
}
.em-trust:hover{ transform:translateY(-5px); box-shadow:0 18px 36px rgba(234,88,12,.12); border-color:#fed7aa; }
.em-trust__ico{
  flex:0 0 52px; width:52px; height:52px; border-radius:14px; display:grid; place-items:center;
  font-size:26px; background:linear-gradient(135deg,#fff1e8,#ffe1cc);
}
.em-trust strong{ display:block; font-size:15.5px; color:var(--em-ink); }
.em-trust span{ font-size:13px; color:var(--em-muted); }

/* ======================== CATEGORÍAS (tiles fotográficos) ======================== */
.em-cats{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:230px; gap:18px; max-width:1200px; margin:0 auto; }
.em-cat{
  position:relative; display:block; border-radius:18px; overflow:hidden; background:#171717;
  text-decoration:none; box-shadow:0 8px 20px rgba(0,0,0,.10); transition:transform .25s, box-shadow .25s;
}
.em-cat:hover{ transform:translateY(-6px); box-shadow:0 22px 44px rgba(0,0,0,.18); }
.em-cat__img{ position:absolute; inset:0; }
.em-cat__img img{ width:100%; height:100%; object-fit:cover; transition:transform .55s ease; }
.em-cat:hover .em-cat__img img{ transform:scale(1.08); }
.em-cat__body{
  position:absolute; inset:auto 0 0 0; z-index:1; padding:18px 18px 15px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:linear-gradient(to top,rgba(0,0,0,.85) 6%,rgba(0,0,0,.35) 55%,transparent);
}
.em-cat__name{ font-weight:700; color:#fff; font-size:16px; line-height:1.25; }
.em-cat__go{ color:#fff; font-weight:800; display:inline-flex; transform:translateX(-6px); opacity:0; transition:.25s; }
.em-cat:hover .em-cat__go{ opacity:1; transform:translateX(0); }
.em-cat::after{ content:""; position:absolute; inset:0; border:2px solid transparent; border-radius:18px; transition:border-color .25s; pointer-events:none; }
.em-cat:hover::after{ border-color:var(--em-primary); }
/* Destacada (bento): la primera ocupa 2x2 en escritorio */
.em-cats--bento .em-cat:first-child{ grid-column:span 2; grid-row:span 2; }
.em-cats--bento .em-cat:first-child .em-cat__name{ font-size:22px; }
.em-cats--bento .em-cat:first-child .em-cat__body{ padding:24px 24px 20px; }

/* ======================= CÓMO COMPRAR ======================= */
.em-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; max-width:1150px; margin:0 auto; position:relative; }
.em-step{ text-align:center; position:relative; padding:8px; }
.em-step__num{
  width:70px; height:70px; margin:0 auto 18px; border-radius:20px; display:grid; place-items:center;
  font-size:28px; color:#fff; background:var(--em-grad); box-shadow:0 12px 26px rgba(234,88,12,.3);
  position:relative; z-index:1; transition:transform .25s;
}
.em-step:hover .em-step__num{ transform:translateY(-5px) rotate(-4deg); }
.em-step__num b{ position:absolute; top:-8px; right:-8px; width:26px; height:26px; border-radius:50%;
  background:#fff; color:var(--em-primary); font-size:13px; display:grid; place-items:center; box-shadow:0 4px 10px rgba(0,0,0,.14); }
.em-step h4{ font-size:17px; font-weight:700; margin:0 0 6px; color:var(--em-ink); }
.em-step p{ font-size:14px; color:var(--em-muted); margin:0; line-height:1.55; }
.em-steps::before{ content:""; position:absolute; top:43px; left:12%; right:12%; height:2px;
  background:repeating-linear-gradient(90deg,#fdba74 0 8px,transparent 8px 16px); z-index:0; }

/* ========================== MARCAS ========================== */
.em-marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.em-marquee__track{ display:flex; gap:16px; width:max-content; animation:em-scroll 34s linear infinite; }
.em-marquee:hover .em-marquee__track{ animation-play-state:paused; }
@keyframes em-scroll{ to{ transform:translateX(-50%); } }
.em-brand{
  display:inline-flex; align-items:center; justify-content:center; min-width:150px; height:74px;
  padding:0 26px; background:#fff; border:1px solid var(--em-line); border-radius:14px;
  font-weight:800; letter-spacing:.03em; color:#374151; font-size:18px; text-transform:uppercase;
  text-decoration:none; transition:.2s;
}
.em-brand:hover{ color:var(--em-primary); border-color:var(--em-primary); box-shadow:0 10px 22px rgba(234,88,12,.14); }

/* ====================== SOBRE NOSOTROS ====================== */
.em-about{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; max-width:1150px; margin:0 auto; }
.em-about__img{ position:relative; }
.em-about__img img{ width:100%; height:420px; object-fit:cover; border-radius:22px; box-shadow:0 24px 50px rgba(0,0,0,.14); }
.em-about__img::after{ content:""; position:absolute; inset:auto -14px -14px auto; width:150px; height:150px; z-index:-1;
  border-radius:22px; background:var(--em-grad); opacity:.25; filter:blur(6px); }
.em-about h2{ font-size:clamp(26px,3.2vw,36px); font-weight:800; letter-spacing:-.02em; margin:0 0 16px; color:var(--em-ink); }
.em-about p{ color:#4b5563; font-size:16.5px; line-height:1.7; margin:0 0 16px; }
.em-about__seals{ display:flex; gap:22px; flex-wrap:wrap; margin-top:6px; }
.em-about__seal{ display:flex; align-items:center; gap:10px; font-weight:700; color:var(--em-ink); }
.em-about__seal span{ font-size:26px; }

/* ========================== MAPA ========================== */
.em-map{ display:grid; grid-template-columns:1.4fr 1fr; gap:0; max-width:1150px; margin:0 auto;
  border-radius:22px; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.12); border:1px solid var(--em-line); }
.em-map__frame{ min-height:420px; }
.em-map__frame iframe{ width:100%; height:100%; min-height:420px; border:0; display:block; filter:saturate(1.05); }
.em-map__info{ background:#171717; color:#fff; padding:40px 36px; display:flex; flex-direction:column; justify-content:center; gap:18px; }
.em-map__info h3{ font-size:24px; font-weight:800; margin:0; color:#fff !important; }
.em-map__row{ display:flex; gap:12px; align-items:flex-start; }
.em-map__row span{ font-size:22px; line-height:1; }
.em-map__row div{ font-size:15px; color:#d4d4d8; line-height:1.5; }
.em-map__row strong{ color:#fff; display:block; margin-bottom:2px; }
.em-map__info a.em-btn{ align-self:flex-start; margin-top:6px; }

/* ========================= CTA FINAL ========================= */
.em-cta{ position:relative; overflow:hidden; background:var(--em-grad); color:#fff; text-align:center;
  padding:66px 24px; }
.em-cta::before{ content:""; position:absolute; inset:0; background:
  radial-gradient(circle at 15% 20%,rgba(255,255,255,.18),transparent 40%),
  radial-gradient(circle at 85% 80%,rgba(255,255,255,.14),transparent 45%); }
.em-cta__in{ position:relative; z-index:1; max-width:760px; margin:0 auto; }
.em-cta h2{ font-size:clamp(26px,3.4vw,40px); font-weight:800; margin:0 0 12px; letter-spacing:-.02em; }
.em-cta p{ font-size:18px; opacity:.95; margin:0 0 26px; }
.em-cta__btns{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.em-cta .em-btn--ghost{ background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.55); backdrop-filter:blur(4px); }
.em-cta .em-btn--ghost:hover{ background:#fff; color:var(--em-primary); }

/* ======================== PÁGINA REPUESTOS ======================== */
.em-rep-hero{ position:relative; overflow:hidden; padding:92px 0 96px; color:#fff; text-align:center; }
.em-rep-hero__bg{ position:absolute; inset:0; z-index:0; }
.em-rep-hero__bg img{ width:100%; height:100%; object-fit:cover; }
.em-rep-hero__bg::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(18,18,20,.66), rgba(18,18,20,.82)); }
.em-rep-hero__inner{ position:relative; z-index:1; max-width:830px; margin:0 auto; padding-inline:24px; }
.em-eyebrow--ondark{ background:rgba(255,255,255,.16); color:#fff; }
.em-rep-hero__title{ color:#fff !important; font-size:clamp(30px,4.2vw,52px); font-weight:800; letter-spacing:-.02em; line-height:1.08; margin:14px 0 16px; }
.em-rep-hero__sub{ font-size:18px; line-height:1.65; color:#e8eaed; margin:0 0 30px; }
.em-rep-hero__cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.em-btn--glass{ background:rgba(255,255,255,.14); color:#fff; border:1.5px solid rgba(255,255,255,.55); backdrop-filter:blur(4px); }
.em-btn--glass:hover{ background:#fff; color:var(--em-primary); transform:translateY(-3px); }
.em-rep-sec{ padding:62px 0 68px; background:#fff; }
.em-rep-sec--alt{ background:#fafafa; }
.em-steps--3{ grid-template-columns:repeat(3,1fr); max-width:960px; }
.em-steps--3::before{ left:16%; right:16%; }
@media (max-width:760px){ .em-steps--3{ grid-template-columns:1fr; } .em-steps--3::before{ display:none; } .em-rep-hero{ padding:64px 0 68px; } }

/* ==================== REVEAL AL HACER SCROLL ==================== */
.em-reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; }
.em-reveal.in-view{ opacity:1; transform:none; }
.em-reveal.d1{ transition-delay:.08s } .em-reveal.d2{ transition-delay:.16s }
.em-reveal.d3{ transition-delay:.24s } .em-reveal.d4{ transition-delay:.32s }

/* ========================= RESPONSIVE ========================= */
@media (max-width:980px){
  .em-hero__inner{ grid-template-columns:1fr; gap:34px; }
  .em-hero__media{ order:-1; }
  .em-hero__media img{ height:320px; }
  .em-trustbar{ grid-template-columns:repeat(2,1fr); }
  .em-cats{ grid-template-columns:repeat(2,1fr); grid-auto-rows:200px; }
  .em-cats--bento .em-cat:first-child{ grid-column:span 2; grid-row:auto; }
  .em-steps{ grid-template-columns:repeat(2,1fr); }
  .em-steps::before{ display:none; }
  .em-about,.em-map{ grid-template-columns:1fr; }
  .em-about__img{ order:-1; }
}
@media (max-width:560px){
  .em-hero{ padding:48px 0 60px; }
  .em-trustbar{ grid-template-columns:1fr; }
  .em-cats{ grid-template-columns:1fr 1fr; gap:14px; grid-auto-rows:150px; }
  .em-hero__logo{ height:46px; }
  .em-btn{ padding:13px 22px; font-size:15px; }
}

/* ===================== ACCESIBILIDAD MOTION ===================== */
@media (prefers-reduced-motion:reduce){
  .em-reveal{ opacity:1 !important; transform:none !important; }
  .em-hero__bg::before,.em-hero__bg::after,.em-marquee__track{ animation:none !important; }
}
