/* ==========================================================================
   El Fallero · Landing de reparaciones — página CMS "reparaciones"
   Rediseño alineado con los mockups (hero con foto, tarjetas con icono,
   pasos, antes/después, precios, stats, testimonio, CTA y formulario).
   ========================================================================== */
.rep {
  --navy:#0d2a5e; --navy-2:#16367e; --blue:#1b50c4; --tile:#12377f;
  --ink:#1b2430; --muted:#5c6672; --soft:#f3f6fc; --line:#e4eaf4;
  color:var(--ink);
  font-family:inherit;
}
.rep-wrap { max-width:1160px; margin:0 auto; padding:0 22px; }
.rep h2 { font-size:clamp(1.55rem,3vw,2.1rem); font-weight:800; text-align:center; margin:0 0 .4rem; color:var(--navy); letter-spacing:-.01em; }
.rep .rep-h2-light { color:#fff; }
.rep-sub { text-align:center; color:var(--muted); max-width:660px; margin:0 auto 2.2rem; }
.rep-sub-light { text-align:center; color:rgba(255,255,255,.85); max-width:660px; margin:0 auto 2.4rem; }
.rep-center { text-align:center; margin-top:2rem; }

/* ---- Botones ---- */
.rep-btn { display:inline-flex; align-items:center; gap:.5rem; padding:.85rem 1.7rem; border-radius:11px; font-weight:700; font-size:1rem; text-decoration:none; border:2px solid transparent; cursor:pointer; transition:transform .15s, box-shadow .15s, background .15s; }
.rep-btn--light { background:#fff; color:var(--navy); box-shadow:0 10px 24px rgba(0,0,0,.16); }
.rep-btn--light:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.22); }
.rep-btn--ghost { background:transparent; color:#fff; border-color:rgba(255,255,255,.55); }
.rep-btn--ghost:hover { background:rgba(255,255,255,.12); }
.rep-btn--primary { background:var(--navy); color:#fff; box-shadow:0 10px 24px rgba(13,42,94,.25); }
.rep-btn--primary:hover { transform:translateY(-2px); background:var(--navy-2); }
.rep-btn--block { width:100%; justify-content:center; padding:1rem; font-size:1.05rem; }

/* ---- Avisos ---- */
.rep-alert { max-width:1160px; margin:1.25rem auto; padding:1rem 1.25rem; border-radius:12px; }
.rep-alert--ok { background:#e7f7ee; border:1px solid #b6e3c9; color:#14663b; }
.rep-alert--err { background:#fdecec; border:1px solid #f5c2c2; color:#8a1f1f; }

/* ============================ HERO ============================ */
.rep-hero { position:relative; color:#fff; padding:clamp(3rem,7vw,5.5rem) 0; overflow:hidden; background:#0b2350; min-height:578px; display:flex; align-items:center; }
.rep-hero::before { content:""; position:absolute; inset:0; background:var(--csi-repairs-hero-image, url(../img/reparaciones/hero-taller-dentro.webp)) right center / auto 140% no-repeat; -webkit-mask-image:linear-gradient(90deg, transparent 0%, transparent 28%, rgba(0,0,0,.45) 44%, #000 62%); mask-image:linear-gradient(90deg, transparent 0%, transparent 28%, rgba(0,0,0,.45) 44%, #000 62%); }
.rep-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(9,28,64,.97) 0%, rgba(9,28,64,.93) 27%, rgba(9,28,64,.62) 50%, rgba(11,35,80,.22) 76%, rgba(11,35,80,0) 100%); }
.rep-hero .rep-wrap { position:relative; z-index:1; width:100%; }
.rep-hero-copy { max-width:560px; }
.rep-badge { display:inline-block; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); padding:.4rem 1rem; border-radius:999px; font-size:.74rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.rep .rep-hero-copy h1 { color:#fff; font-size:clamp(2rem,4.6vw,3.1rem); line-height:1.08; font-weight:800; margin:1rem 0 .9rem; letter-spacing:-.02em; }
.rep-hero-copy > p { font-size:1.1rem; line-height:1.6; opacity:.92; max-width:33em; margin:0 0 1.3rem; }
.rep-hero-badges { list-style:none; display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; padding:0; margin:0 0 1.7rem; }
.rep-hero-badges li { display:flex; align-items:center; gap:.5rem; font-weight:600; font-size:.97rem; }
.rep-tick { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.16); font-size:.72rem; }
.rep-hero-cta { display:flex; flex-wrap:wrap; gap:.8rem; }


/* ==================== SERVICIOS ==================== */
.rep-services { background:var(--soft); padding:clamp(2.4rem,5vw,3.8rem) 0; }
.rep-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:1.15rem; margin-top:1.9rem; }
.rep-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:1.5rem 1.35rem; display:flex; flex-direction:column; box-shadow:0 6px 18px rgba(13,42,94,.04); }
.rep-card-icon { width:52px; height:52px; border-radius:13px; background:linear-gradient(135deg,var(--navy),var(--blue)); color:#fff; display:inline-flex; align-items:center; justify-content:center; margin-bottom:1rem; }
.rep-card-icon svg { width:26px; height:26px; }
.rep-card h3 { margin:0 0 .5rem; font-size:1.1rem; color:var(--navy); }
.rep-card p { margin:0 0 1rem; color:var(--muted); font-size:.95rem; line-height:1.5; flex:1; }
.rep-card-link { color:var(--blue); font-weight:700; text-decoration:none; font-size:.92rem; }
.rep-card-link:hover { text-decoration:underline; }

/* ==================== PASOS ==================== */
.rep-steps { background:linear-gradient(135deg,#0b2350 0%,#16367e 100%); color:#fff; padding:clamp(2.6rem,5vw,4rem) 0; }
.rep-steps-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; align-items:stretch; position:relative; overflow:hidden; border-radius:22px; background:#fff; box-shadow:0 12px 30px rgba(0,0,0,.2); }
.rep-steps-track::before { content:""; position:absolute; top:37px; left:10%; right:10%; border-top:2px dashed #b8c7e2; }
.rep-step { position:relative; z-index:1; display:flex; flex-direction:column; min-width:0; padding:1.35rem 1.1rem 1.15rem; border:0; border-left:1px solid #dce4f1; border-radius:0; background:transparent; color:var(--ink); box-shadow:none; }
.rep-step:first-child { border-left:0; }
.rep-step-num { width:47px; height:47px; flex:0 0 47px; border-radius:50%; background:var(--navy); color:#fff; font-weight:800; font-size:1.05rem; display:inline-flex; align-items:center; justify-content:center; margin:0 0 .9rem; letter-spacing:.04em; }
.rep-step-icon { display:inline-flex; width:48px; height:48px; margin:0 0 .9rem; color:var(--navy); }
.rep-step-icon svg { width:100%; height:100%; }
.rep-step-copy { min-width:0; }
.rep-step h3 { margin:0 0 .55rem; font-size:1.14rem; line-height:1.15; color:var(--navy); }
.rep-step p { margin:0; color:#303a49; font-size:.9rem; line-height:1.48; }
.rep-step-form-link { align-self:flex-start; margin-top:1rem; padding:.65rem .9rem; font-size:.82rem; }
.rep-step-note { display:flex; gap:.5rem; align-items:flex-start; margin-top:1rem; padding:.7rem; border-radius:10px; background:#eaf1ff; color:var(--navy); font-size:.78rem; font-weight:600; line-height:1.35; }
.rep-step-note p { margin:0; }
.rep-step-note > span { display:inline-flex; flex:0 0 19px; align-items:center; justify-content:center; width:19px; height:19px; border-radius:50%; background:var(--navy); color:#fff; font-family:Georgia,serif; font-weight:700; }
.rep-duration { display:flex; align-items:center; gap:1rem; max-width:760px; margin:1.25rem auto 0; padding:1rem 1.2rem; border-radius:16px; background:#eaf1ff; color:var(--navy); }
.rep-duration-icon { flex:0 0 58px; width:58px; height:58px; }
.rep-duration-icon svg { width:100%; height:100%; }
.rep-duration h3 { margin:0 0 .25rem; font-size:1.18rem; color:var(--navy); }
.rep-duration p { margin:0; color:#253b66; font-size:.9rem; line-height:1.42; }

/* ==================== ANTES / DESPUÉS ==================== */
.rep-gallery { padding:clamp(2.4rem,5vw,3.8rem) 0; }
.rep-gallery-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.6rem; flex-wrap:wrap; }
.rep .rep-gallery-head h2 { text-align:left; margin:0; }
.rep-gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.35rem; }
.rep-ba-card { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:0 6px 18px rgba(13,42,94,.05); }
.rep-ba { position:relative; aspect-ratio:16/9; overflow:hidden; background:#0b1c3a; }
.rep-ba-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.rep-ba-img--before { filter:grayscale(.9) brightness(.62) contrast(.95) sepia(.15); clip-path:inset(0 50% 0 0); }
.rep-ba::after { content:""; position:absolute; top:0; bottom:0; left:50%; width:2px; margin-left:-1px; background:rgba(255,255,255,.9); z-index:2; }
.rep-ba-tag { position:absolute; top:.55rem; z-index:3; background:rgba(20,30,45,.8); color:#fff; font-size:.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:.25rem .6rem; border-radius:6px; }
.rep-ba-tag--left { left:.55rem; }
.rep-ba-tag--right { right:.55rem; background:var(--blue); }
.rep-ba-card h3 { margin:1rem 1.15rem .35rem; font-size:1.02rem; color:var(--navy); }
.rep-ba-card p { margin:0 1.15rem 1.2rem; color:var(--muted); font-size:.9rem; line-height:1.5; }

/* ==================== PRECIOS ==================== */
.rep-prices { background:var(--soft); padding:clamp(2.4rem,5vw,3.8rem) 0; }
.rep-prices h2 { display:flex; align-items:center; gap:1rem; justify-content:center; margin-bottom:1.45rem; }
.rep-prices h2::before, .rep-prices h2::after { content:""; width:clamp(2.5rem,7vw,5.5rem); border-top:1px solid var(--blue); }
.rep-price-notice, .rep-price-time { display:flex; align-items:flex-start; gap:1rem; max-width:900px; margin:0 auto 1.35rem; padding:1.1rem 1.35rem; border:1px solid #ccdaf3; border-radius:16px; background:rgba(255,255,255,.42); color:var(--navy); }
.rep-price-notice p, .rep-price-time p { margin:0; font-size:.98rem; line-height:1.55; }
.rep-price-notice-icon, .rep-price-time-icon { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:var(--blue); color:#fff; font-family:Georgia,serif; font-size:1.45rem; font-weight:700; }
@media (min-width:768px) {
  .rep-price-notice p { font-size:.9rem; white-space:nowrap; }
  .rep-price-notice br { display:none; }
}
.rep-price-time { max-width:100%; margin:1.35rem 0 0; padding:.95rem 1.2rem; }
.rep-price-time-icon { width:42px; height:42px; border-radius:12px; }
.rep-price-time-icon svg { width:25px; height:25px; }
.rep-price-time p { font-size:.88rem; }
@media (min-width:768px) {
  .rep-price-time p { width:100%; font-size:.78rem; line-height:1.35; text-align:justify; text-align-last:justify; white-space:nowrap; }
}
.rep-prices-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; align-items:stretch; }
.rep-price { background:#fff; border:1px solid var(--line); border-radius:16px; padding:1.2rem 1rem; box-shadow:0 6px 18px rgba(13,42,94,.06); display:flex; flex-direction:column; min-width:0; }
.rep-price-icon { display:inline-flex; align-items:center; justify-content:center; width:58px; height:58px; margin:0 auto .85rem; border-radius:50%; background:#e8f0ff; color:var(--blue); }
.rep-price-icon svg { width:34px; height:34px; }
.rep-price-copy h3 { margin:0 0 .45rem; color:var(--navy); font-size:1.05rem; line-height:1.2; }
.rep-price-copy p { margin:0; color:var(--muted); font-size:.86rem; line-height:1.45; }
.rep-price-amount { margin:1rem 0 0; padding-top:.9rem; border-top:1px solid #cfdbf1; color:var(--navy); font-size:1.85rem; font-weight:800; line-height:1; text-align:center; margin-top:auto; }

/* ==================== POR QUÉ EL FALLERO ==================== */
.rep-why { background:var(--navy); color:#fff; padding:clamp(2.8rem,5vw,4.2rem) 0; }
.rep-why h2 { margin-bottom:2rem; }
.rep-why h2 { color:#fff; }
.rep-stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:clamp(2.75rem, 5vw, 5rem); }
.rep-stat { min-width:0; display:grid; grid-template-columns:46px minmax(0, 1fr); column-gap:.85rem; }
.rep-stat-icon { width:46px; height:46px; flex:0 0 46px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; background:rgba(255,255,255,.13); color:#b9d3ff; }
.rep-stat-icon svg { width:23px; height:23px; }
.rep-stat-head { align-self:center; margin-bottom:.75rem; min-height:46px; }
.rep-stat-head span { display:block; margin-bottom:.12rem; color:#b9d3ff; font-size:.68rem; font-weight:800; letter-spacing:.075em; line-height:1.2; text-transform:uppercase; }
.rep-stat-head strong { display:block; color:#fff; font-size:1.02rem; font-weight:800; line-height:1.22; }
.rep-stat p { grid-column:1 / -1; margin:0; color:rgba(255,255,255,.78); font-size:.9rem; line-height:1.52; }

/* ==================== TESTIMONIO ==================== */
.rep-testi { background:var(--soft); padding:clamp(2.4rem,5vw,3.6rem) 0; }
.rep-quote { max-width:720px; margin:1.6rem auto 0; background:#fff; border:1px solid var(--line); border-radius:16px; padding:2rem; text-align:center; box-shadow:0 6px 18px rgba(13,42,94,.05); }
.rep-stars { color:#f5b301; font-size:1.2rem; letter-spacing:.15em; margin-bottom:.8rem; }
.rep-quote blockquote { margin:0 0 1rem; font-size:1.15rem; line-height:1.6; color:var(--ink); font-style:italic; }
.rep-quote figcaption { color:var(--muted); font-weight:700; }

/* ==================== CTA FINAL ==================== */
.rep-cta { background:linear-gradient(135deg,#0b2350 0%,#16367e 100%); color:#fff; padding:clamp(2rem,4vw,3rem) 0; }
.rep-cta-inner { display:flex; align-items:center; gap:1.6rem; flex-wrap:wrap; }
.rep-cta-icon { flex:0 0 auto; width:60px; height:60px; border-radius:16px; background:rgba(255,255,255,.12); display:inline-flex; align-items:center; justify-content:center; }
.rep-cta-icon svg { width:30px; height:30px; }
.rep-cta-text { flex:1 1 320px; }
.rep-cta-text .rep-h2-light { text-align:left; margin-bottom:.35rem; }
.rep-cta-text p { margin:0 0 1.1rem; opacity:.88; }
.rep-cta-art { flex:0 0 auto; width:210px; max-width:32%; color:rgba(255,255,255,.4); }
.rep-cta-art img { display:block; width:100%; height:auto; }

/* ==================== FORMULARIO ==================== */
.rep-form-section { padding:clamp(2.4rem,5vw,4rem) 0; }
.rep-form { max-width:840px; margin:1.8rem auto 0; background:#fff; border:1px solid var(--line); border-radius:18px; padding:clamp(1.4rem,3vw,2.4rem); box-shadow:0 14px 34px rgba(13,42,94,.07); }
.rep-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem 1.3rem; margin-bottom:1rem; }
.rep-field { margin-bottom:1rem; }
.rep-field > label { display:block; font-weight:600; font-size:.92rem; margin-bottom:.4rem; color:var(--ink); }
.rep-field input[type=text], .rep-field input[type=email], .rep-field input[type=tel], .rep-field select, .rep-field textarea { width:100%; border:1px solid #cdd6e4; border-radius:10px; padding:.75rem .85rem; font-size:.98rem; font-family:inherit; background:#fff; }
.rep-field input:focus, .rep-field select:focus, .rep-field textarea:focus { outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(13,42,94,.12); }
.rep-check label { display:flex; align-items:flex-start; gap:.55rem; font-weight:500; font-size:.95rem; cursor:pointer; }
.rep-check input { margin-top:.2rem; }
.rep-pickup-cost { margin:.35rem 0 0 1.55rem; color:var(--muted); font-size:.88rem; }
.rep-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ==================== RESPONSIVE ==================== */
@media (max-width:900px) {
  .rep-hero { min-height:500px; }
  .rep-hero::before { background-image:var(--csi-repairs-hero-mobile-image, var(--csi-repairs-hero-image)) !important; background-position:center bottom; background-size:cover; -webkit-mask-image:none; mask-image:none; }
  .rep-hero::after { background:linear-gradient(180deg, rgba(9,28,64,.80) 0%, rgba(9,28,64,.90) 100%); }
  .rep-hero-copy { max-width:none; }
  .rep-cta-art { display:none; }
  .rep-cards { grid-template-columns:repeat(2,1fr); }
  .rep-steps-track { grid-template-columns:repeat(2,1fr); gap:0; }
  .rep-gallery-grid { grid-template-columns:1fr; max-width:460px; margin-left:auto; margin-right:auto; }
  .rep-prices-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rep-stats { grid-template-columns:repeat(2,1fr); gap:2rem 2.5rem; }
}
@media (max-width:767px) {
  .rep-prices-grid { grid-template-columns:1fr; gap:.8rem; }
  .rep-price { display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:.9rem; padding:1rem; }
  .rep-price-icon { width:62px; height:62px; margin:0; }
  .rep-price-icon svg { width:37px; height:37px; }
  .rep-price-copy h3 { font-size:1.04rem; }
  .rep-price-copy p { font-size:.83rem; }
  .rep-price-amount { align-self:stretch; display:flex; align-items:center; margin:0; padding:.2rem 0 .2rem .85rem; border-top:0; border-left:1px solid #cfdbf1; font-size:1.72rem; text-align:left; white-space:nowrap; }
}
@media (max-width:540px) {
  .rep-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rep-steps-track { grid-template-columns:1fr; gap:0; max-width:480px; margin:0 auto; border-radius:22px; }
  .rep-steps-track::before { top:62px; bottom:54px; left:43px; right:auto; border-top:0; border-left:2px dashed #c5d1e7; }
  .rep-step { display:grid; grid-template-columns:76px 1fr; column-gap:.85rem; padding:1.2rem 1rem; border:0; }
  .rep-step + .rep-step { border-top:1px solid #dce4f1; }
  .rep-step-num { grid-column:1; grid-row:1; width:56px; height:56px; margin:0; align-self:center; }
  .rep-step-icon { grid-column:1; grid-row:2; width:53px; height:53px; margin:.9rem 0 0; align-self:start; }
  .rep-step-copy { grid-column:2; grid-row:1 / span 2; }
  .rep-step-form-link { grid-column:2; grid-row:3; justify-self:center; align-self:center; margin-top:.15rem; padding:.5rem .75rem; font-size:.75rem; }
  .rep-step h3 { font-size:1.2rem; }
  .rep-step p { font-size:.94rem; }
  .rep-step-note { grid-column:1 / -1; font-size:.84rem; }
  .rep-duration { margin-top:1rem; align-items:flex-start; padding:1rem; }
  .rep-duration-icon { flex-basis:48px; width:48px; height:48px; }
  .rep-form-grid { grid-template-columns:1fr; }
  .rep-stats { grid-template-columns:1fr; gap:1.45rem; }
  .rep-cta-inner { flex-direction:column; text-align:center; }
  .rep-cta-text .rep-h2-light, .rep-cta-text p { text-align:center; }
  .rep-prices h2 { gap:.7rem; font-size:clamp(1.45rem,8vw,2rem); }
  .rep-price-notice, .rep-price-time { padding:1rem; gap:.8rem; }
  .rep-price-notice p { font-size:.94rem; }
}
