/* Página «Reparación de electrodomésticos en Miajadas».
   Usa la portada nocturna de la home (hero-nocturno.css) y los componentes de site.css y minimal.css;
   aquí solo va lo propio de esta página, con el prefijo rp-. */

/* Portada: misma foto, velo añil y halos que la home, con el título visible en vez del logotipo */
.rp-hero .nx-inner { gap: 28px; padding-top: 128px; padding-bottom: 40px; }
.rp-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--nx-text-2); }
.rp-crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.rp-crumbs a { color: inherit; text-decoration: none; transition: color .3s var(--out); }
.rp-crumbs a:hover { color: var(--nx-star); }
.rp-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(21, 17, 61, .35); box-shadow: inset 0 0 0 1px var(--nx-line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 14px/1 var(--display); letter-spacing: .02em; color: var(--nx-text); }
.rp-badge .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--nx-star); color: #14113a; }
.rp-hero h1 { margin: 0; max-width: 15ch; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 30px rgba(21, 17, 61, .55); }
.rp-hero h1 em { font-style: normal; color: var(--nx-star); }
.rp-hero h1::after { content: ""; display: block; width: 84px; height: 4px; border-radius: 4px; margin: 28px auto 0; background: linear-gradient(90deg, var(--nx-star), #fff6a8); transform-origin: center; }
.rp-lead { max-width: 56ch; margin: 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 14px rgba(21, 17, 61, .7); text-wrap: pretty; }
.rp-hero .nx-facts { grid-template-columns: 1fr 1fr 1.25fr; }
.rp-hero .nx-facts > a { transition: background-color .4s var(--out); }
.fine .rp-hero .nx-facts > a:hover { background: rgba(255, 255, 255, .05); }
.rp-fact { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 14px !important; }
.rp-fact > .icon { flex: none; width: 22px; height: 22px; color: var(--nx-star); }
.rp-fact b { display: block; font: 500 19px/1.2 var(--display); }
.rp-fact small { display: block; margin-top: 5px; }
.rp-stars { color: var(--nx-star); letter-spacing: .08em; }

/* Entrada de la portada */
.intro .rp-hero .rp-crumbs, .intro .rp-hero .rp-badge { animation: nx-surface 1.3s var(--nx-out) .3s both; }
.intro .rp-hero h1 { animation: nx-surface 1.5s var(--nx-out) .45s both; }
.intro .rp-hero h1::after { animation: rp-bar 1.4s var(--nx-out) 1.1s both; }
.intro .rp-hero .rp-lead { animation: nx-surface 1.4s var(--nx-out) .65s both; }
@keyframes rp-bar { from { transform: scaleX(0); } to { transform: none; } }

/* Qué reparamos: una tarjeta por aparato; cada una abre WhatsApp con el aparato ya escrito */
.rp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rp-app { position: relative; isolation: isolate; overflow: hidden; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 32px 32px 28px; border-radius: 18px; background: var(--surface-low); box-shadow: inset 0 0 0 1px var(--outline-variant); color: inherit; text-decoration: none; transition: transform .7s var(--out), box-shadow .7s var(--out), background-color .6s var(--out); }
.rp-app::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 18px solid var(--primary); opacity: .05; transition: transform 1.2s var(--out), opacity .8s var(--out); }
.rp-app-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--primary); color: var(--on-primary); transition: transform .8s var(--out), background-color .6s var(--out), color .6s var(--out); }
.rp-app-ico .icon { width: 30px; height: 30px; }
.rp-app h3 { margin: 10px 0 0; font-size: 24px; line-height: 1.15; }
.rp-app p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-surface-variant); }
.rp-app-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--outline-variant); font-size: 15px; font-weight: 600; color: var(--primary); }
.rp-app-go .icon { width: 18px; height: 18px; transition: transform .5s var(--out); }
.fine .rp-app:hover { transform: translateY(-6px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--primary), 0 30px 60px -36px rgba(21, 17, 61, .45); }
.fine .rp-app:hover::before { transform: scale(1.25) rotate(20deg); opacity: .1; }
.fine .rp-app:hover .rp-app-ico { transform: rotate(-8deg) scale(1.06); background: var(--star); color: #14113a; }
.fine .rp-app:hover .rp-app-go .icon { transform: translateX(5px); }
.rp-app:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.rp-also { margin: 28px auto 0; max-width: 60ch; text-align: center; font-size: 16px; color: var(--on-surface-variant); }
.reveal-on .rp-apps .reveal { transition-delay: calc(var(--k, 0) * 80ms); }

/* Cómo trabajamos: cuatro pasos sobre la banda oscura, unidos por una línea que se dibuja al llegar */
.rp-steps { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.rp-steps::before { content: ""; position: absolute; left: 31px; top: 36px; bottom: 36px; width: 2px; background: linear-gradient(var(--gold), rgba(239, 220, 85, .15)); transform-origin: top; }
.rp-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 26px 0; }
.rp-step + .rp-step { border-top: 1px solid var(--ink-line); }
.rp-num { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); font: 700 22px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; transition: background-color .6s var(--out), color .6s var(--out); }
.rp-step h3 { margin: 8px 0 8px; font-size: 26px; line-height: 1.15; }
.rp-step p { margin: 0; max-width: 42ch; font-size: 16px; line-height: 1.6; color: var(--on-ink-variant); }
.rp-step p a { color: var(--gold); }
.fine .rp-step:hover .rp-num { background: var(--gold); color: var(--ink); }
.reveal-on .rp-steps::before { transform: scaleY(0); transition: transform 2.2s var(--out) .4s; }
.reveal-on .band.in .rp-steps::before { transform: none; }
.reveal-on .band .rp-step { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--out), transform 1.3s var(--out); transition-delay: calc(.3s + var(--k, 0) * 140ms); }
.reveal-on .band.in .rp-step { opacity: 1; transform: none; }
.reveal-on .band .rp-num { transform: scale(.6); transition: transform 1s var(--out), background-color .6s var(--out), color .6s var(--out); transition-delay: calc(.4s + var(--k, 0) * 140ms); }
.reveal-on .band.in .rp-num { transform: none; }

/* Averías frecuentes: una ficha desplegable por aparato */
.rp-faults { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rp-fault { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--outline-variant); transition: box-shadow .6s var(--out), background-color .6s var(--out); }
.rp-fault[open] { box-shadow: inset 0 0 0 1px var(--primary), 0 24px 50px -34px rgba(21, 17, 61, .4); }
.rp-fault summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; border-radius: 18px; }
.rp-fault summary::-webkit-details-marker { display: none; }
.rp-fault summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.rp-fault-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-low); color: var(--primary); transition: background-color .5s var(--out), color .5s var(--out), transform .7s var(--out); }
.rp-fault-ico .icon { width: 24px; height: 24px; }
.rp-fault[open] .rp-fault-ico { background: var(--primary); color: var(--on-primary); transform: rotate(-6deg); }
.rp-fault summary b { flex: 1; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.rp-fault summary small { font-size: 13px; color: var(--on-surface-variant); white-space: nowrap; }
.rp-fault summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--outline); font-size: 22px; line-height: 1; color: var(--primary); transition: transform .5s var(--out), background-color .4s var(--out); }
.rp-fault[open] summary::after { transform: rotate(45deg); background: var(--surface-low); }
.fine .rp-fault:not([open]):hover { box-shadow: inset 0 0 0 1px var(--outline); }
.rp-fault ul { display: grid; gap: 0; margin: 0; padding: 0 24px 14px; list-style: none; }
.rp-fault li { display: grid; gap: 4px; padding: 14px 0 14px 28px; border-top: 1px solid var(--outline-variant); position: relative; }
.rp-fault li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--star); box-shadow: 0 0 0 3px rgba(247, 234, 25, .25); }
.rp-fault li b { font-size: 16px; font-weight: 600; }
.rp-fault li span { font-size: 15px; line-height: 1.5; color: var(--on-surface-variant); }
.rp-fault li a { color: var(--primary); }
.rp-fault[open] li { animation: rp-drop .7s var(--out) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes rp-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rp-faults-note { margin: 28px auto 0; max-width: 62ch; text-align: center; font-size: 16px; color: var(--on-surface-variant); }
.rp-faults-note a { color: var(--primary); font-weight: 600; }
#averias { background: var(--surface-low); }
.reveal-on .rp-faults .reveal { transition-delay: calc(var(--k, 0) * 70ms); }

/* ¿Compensa repararlo? Foto de la tienda + compromiso */
.rp-honest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.rp-photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--out); }
.rp-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(21, 17, 61, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; }
.rp-photo figcaption b { display: block; font-size: 17px; font-weight: 600; }
.rp-photo figcaption small { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }
.rp-photo figcaption .icon { flex: none; width: 22px; height: 22px; color: var(--star); }
.reveal-on .rp-photo.reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 22px); transition: clip-path 1.5s var(--out); }
.reveal-on .rp-photo.reveal.in { clip-path: inset(0 0 0 0 round 22px); }
.reveal-on .rp-photo.reveal:not(.in) img { transform: scale(1.12); }
.rp-honest-copy { display: grid; gap: 22px; justify-items: start; }
.rp-honest-copy .eyebrow { color: var(--on-surface-variant); }
.rp-honest-copy h2 { margin: 0; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; }
.rp-honest-copy h2 em { font-style: normal; color: var(--primary); }
.rp-honest-copy h2::after { content: ""; display: block; width: 84px; height: 4px; border-radius: 4px; margin-top: 24px; background: linear-gradient(90deg, var(--primary), #7b6fe0); }
.rp-honest-copy > p { margin: 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--on-surface-variant); }
.rp-checks { display: grid; gap: 14px; margin: 6px 0 8px; padding: 0; list-style: none; }
.rp-checks li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.5; }
.rp-checks .icon { width: 26px; height: 26px; color: var(--primary); }
.rp-checks b { font-weight: 600; }
.reveal-on .rp-checks li { opacity: 0; transform: translateX(-10px); transition: opacity 1s var(--out), transform 1.2s var(--out); transition-delay: calc(.3s + var(--k, 0) * 120ms); }
.reveal-on .rp-honest-copy.in .rp-checks li { opacity: 1; transform: none; }

/* Opiniones y zona, ajustes de esta página */
#opiniones { background: var(--surface); }
#opiniones .review { background: var(--surface-low); }
.rp-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-rating { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 32px; padding: 10px 20px; border-radius: 999px; background: var(--surface-low); font-size: 15px; color: var(--on-surface-variant); }
.rp-rating b { font-size: 22px; font-weight: 700; color: var(--on-surface); }
.rp-rating .rp-stars { color: #e2b500; font-size: 18px; }
.rp-center { text-align: center; }
#zona .area { margin-top: 0; text-align: center; justify-items: center; padding: 56px 40px; }
#zona .towns { justify-content: center; max-width: 900px; }
main > section#zona:not(.hero) { padding-top: 0 !important; }

@media (max-width: 960px) {
  .rp-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-honest { grid-template-columns: 1fr; gap: 40px; }
  .rp-photo { aspect-ratio: 16 / 10; }
  .rp-reviews { grid-template-columns: 1fr; }
  .rp-hero .nx-facts { grid-template-columns: 1fr 1fr; }
  .rp-hero .nx-facts > a:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--nx-line); }
}
@media (max-width: 760px) {
  .rp-hero .nx-inner { gap: 22px; padding-top: 104px; padding-bottom: 28px; }
  .rp-hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .rp-hero h1::after { margin-top: 20px; width: 64px; }
  .rp-lead { font-size: 16px; }
  .rp-badge { font-size: 13px; }
  .rp-apps { grid-template-columns: 1fr; gap: 12px; }
  .rp-app { grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; padding: 20px; border-radius: 16px; }
  .rp-app-ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; }
  .rp-app-ico .icon { width: 26px; height: 26px; }
  .rp-app h3 { margin: 2px 0 0; font-size: 19px; }
  .rp-app p { font-size: 14px; }
  .rp-app-go { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; font-size: 14px; }
  .rp-steps::before { left: 23px; }
  .rp-step { grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; }
  .rp-num { width: 48px; height: 48px; font-size: 18px; }
  .rp-step h3 { margin-top: 4px; font-size: 21px; }
  .rp-step p { font-size: 15px; }
  .rp-faults { grid-template-columns: 1fr; gap: 10px; }
  .rp-fault summary { padding: 16px 16px; gap: 12px; }
  .rp-fault-ico { width: 40px; height: 40px; border-radius: 12px; }
  .rp-fault summary b { font-size: 18px; }
  .rp-fault summary small { display: none; }
  .rp-fault ul { padding: 0 16px 8px; }
  .rp-honest-copy h2 { font-size: 34px; }
  .rp-honest-copy > p, .rp-checks li { font-size: 16px; }
  #zona .area { padding: 36px 20px; }
  #zona .area h3 { font-size: 26px; }
  .rp-rating { flex-wrap: wrap; justify-content: center; row-gap: 2px; padding: 10px 18px; font-size: 14px; }
}
@media (max-width: 560px) {
  .rp-hero .nx-facts { grid-template-columns: 1fr; width: 100%; justify-self: stretch; }
  .rp-hero .nx-facts > a { min-height: 0; padding: 14px 20px; }
  .rp-hero .nx-facts > a + a { border-left: 0; border-top: 1px solid var(--nx-line); }
  .rp-fact b { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-app, .rp-app::before, .rp-app-ico, .rp-fault[open] li { transition: none !important; animation: none !important; }
}

/* En esta página la portada no lleva el logotipo grande, así que el logo de la barra se ve siempre */
.appbar.over .brand { opacity: 1; visibility: visible; }
.rp-lead { text-wrap: balance; }
.tabs .pill { display: none; }
.tabs a[href="/#servicios"] { opacity: 1; text-decoration: underline 2px var(--gold); text-underline-offset: 6px; }
