/* ==========================================================================
   Reparación de Lavadoras — landing de campaña
   Sistema de diseño propio: técnico, sobrio, un solo color de acento.
   Bordes finos, esquinas rectas, sin sombras difusas ni gradientes.
   ========================================================================== */

:root {
  --rl-accent: #2c5c78;
  --rl-accent-dark: #1e4358;
  --rl-ink: #1c2226;
  --rl-body: #3a4349;
  --rl-line: #d7dde1;
  --rl-line-strong: #b9c2c8;
  --rl-bg: #ffffff;
  --rl-bg-alt: #f4f6f7;
  --rl-whatsapp: #1f8a4c;
  --rl-focus: #0b5fff;
  --rl-radius: 0;
  --rl-gap: 24px;
  --rl-maxw: 1180px;
}

/* ---- Reset local / base ---- */
.rl-page {
  color: var(--rl-body);
  background: var(--rl-bg);
  font-family: var(--font-default);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.rl-page * {
  box-sizing: border-box;
}

.rl-page img {
  max-width: 100%;
  display: block;
}

.rl-page a {
  color: var(--rl-accent);
}

.rl-page strong {
  font-weight: 700;
  color: var(--rl-ink);
}

.rl-page :focus-visible {
  outline: 3px solid var(--rl-focus);
  outline-offset: 2px;
}

.rl-container {
  max-width: var(--rl-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.rl-h1,
.rl-h2,
.rl-h3 {
  font-family: var(--font-secondary);
  color: var(--rl-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.rl-h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.rl-h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.rl-h3 {
  font-size: 1.05rem;
}

.rl-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--rl-line);
}

.rl-section--alt {
  background: var(--rl-bg-alt);
}

.rl-section-head {
  margin-bottom: 28px;
  max-width: 70ch;
}

.rl-section-head .rl-h2 {
  margin-bottom: 8px;
}

.rl-eyebrow {
  display: block;
  color: var(--rl-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ==========================================================================
   Barra superior fija (desktop) + botones
   ========================================================================== */
.rl-topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--rl-bg);
  border-bottom: 1px solid var(--rl-line);
}

.rl-topbar-inner {
  max-width: var(--rl-maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}

.rl-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex: none;
}

.rl-logo img {
  width: 34px;
  height: 34px;
}

.rl-logo-text {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--rl-ink) !important;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.rl-topbar-contact {
  display: none;
}

@media (min-width: 992px) {
  .rl-topbar-contact {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.rl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rl-accent);
  border-radius: var(--rl-radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.rl-btn-solid {
  background: var(--rl-accent);
  color: #fff !important;
}

.rl-btn-solid:hover {
  background: var(--rl-accent-dark);
  border-color: var(--rl-accent-dark);
}

.rl-btn-outline {
  background: transparent;
  color: var(--rl-accent) !important;
}

.rl-btn-outline:hover {
  background: var(--rl-bg-alt);
}

.rl-btn-whatsapp {
  border-color: var(--rl-whatsapp);
  background: var(--rl-whatsapp);
  color: #fff !important;
}

.rl-btn-whatsapp:hover {
  background: #176b3a;
  border-color: #176b3a;
}

/* ---- Nav principal (desktop) ---- */
.rl-nav {
  display: none;
}

@media (min-width: 992px) {
  .rl-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .rl-nav-item {
    position: relative;
  }

  .rl-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--rl-ink);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }

  .rl-nav-item:hover .rl-nav-link,
  .rl-nav-item:focus-within .rl-nav-link {
    color: var(--rl-accent);
    border-bottom-color: var(--rl-accent);
  }

  .rl-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rl-bg);
    border: 1px solid var(--rl-line);
    box-shadow: 0 2px 0 var(--rl-line);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    min-width: 420px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 20;
  }

  .rl-nav-item:hover .rl-megamenu,
  .rl-nav-item:focus-within .rl-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rl-megamenu-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rl-accent);
    margin: 0 0 10px;
  }

  .rl-megamenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .rl-megamenu li + li {
    margin-top: 6px;
  }

  .rl-megamenu a {
    color: var(--rl-body);
    text-decoration: none !important;
    font-size: 0.85rem;
    display: inline-block;
    padding: 3px 0;
  }

  .rl-megamenu a:hover {
    color: var(--rl-accent);
    text-decoration: underline !important;
  }
}

/* ---- Menú móvil: <details> nativo, sin JS ---- */
.rl-mobile-nav-toggle {
  display: inline-flex;
  margin-left: auto;
}

@media (min-width: 992px) {
  .rl-mobile-nav-toggle {
    display: none;
  }
}

.rl-mobile-nav {
  position: relative;
}

.rl-mobile-nav > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rl-line);
}

.rl-mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.rl-mobile-nav[open] > summary {
  border-color: var(--rl-accent);
  color: var(--rl-accent);
}

.rl-mobile-nav-panel {
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--rl-bg);
  overflow-y: auto;
  padding: 12px 20px 90px;
  z-index: 400;
}

.rl-mobile-nav-panel > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rl-mobile-cat > summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rl-line);
}

.rl-mobile-cat > summary::-webkit-details-marker {
  display: none;
}

.rl-mobile-cat > summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--rl-accent);
}

.rl-mobile-cat[open] > summary::after {
  content: "\2212";
}

.rl-mobile-cat ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 14px 12px;
}

.rl-mobile-cat li + li {
  margin-top: 2px;
}

.rl-mobile-cat a {
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--rl-body);
  text-decoration: none !important;
  font-size: 0.9rem;
}

.rl-mobile-nav-plain {
  display: block;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--rl-ink) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--rl-line);
}

@media (min-width: 992px) {
  .rl-mobile-nav {
    display: none;
  }
}

/* ---- Barra inferior fija (solo móvil) ---- */
.rl-bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 490;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rl-line);
}

.rl-bottombar a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.rl-bottombar-call {
  background: var(--rl-accent);
  color: #fff !important;
}

.rl-bottombar-whatsapp {
  background: var(--rl-whatsapp);
  color: #fff !important;
}

@media (min-width: 992px) {
  .rl-bottombar {
    display: none;
  }
}

body.rl-has-bottombar {
  padding-bottom: 52px;
}

@media (min-width: 992px) {
  body.rl-has-bottombar {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.rl-hero {
  padding: 40px 0;
  border-bottom: 1px solid var(--rl-line);
}

.rl-hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .rl-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.rl-hero-subtitle {
  font-size: 1.05rem;
  color: var(--rl-body);
  margin: 14px 0 22px;
  max-width: 52ch;
}

.rl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.rl-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rl-line);
  border: 1px solid var(--rl-line);
}

@media (min-width: 560px) {
  .rl-trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rl-trust-item {
  background: var(--rl-bg);
  padding: 12px 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rl-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rl-trust-item i {
  color: var(--rl-accent);
  font-size: 1.2rem;
}

.rl-hero-media {
  border: 1px solid var(--rl-line);
  overflow: hidden;
}

.rl-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Cuadrícula genérica de fichas (problemas, por qué elegirnos)
   ========================================================================== */
.rl-grid {
  display: grid;
  gap: 1px;
  background: var(--rl-line);
  border: 1px solid var(--rl-line);
}

@media (min-width: 640px) {
  .rl-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .rl-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .rl-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.rl-card {
  background: var(--rl-bg);
  padding: 24px;
}

.rl-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.rl-card-title i {
  color: var(--rl-accent);
  font-size: 1.15rem;
  flex: none;
}

.rl-card-title .rl-h3 {
  margin: 0;
}

.rl-card ul {
  margin: 0;
  padding-left: 18px;
}

.rl-card li + li {
  margin-top: 6px;
}

.rl-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---- Fichas numeradas (mantenimiento, servicio rápido) ---- */
.rl-numbered-grid {
  display: grid;
  gap: 1px;
  background: var(--rl-line);
  border: 1px solid var(--rl-line);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .rl-numbered-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .rl-numbered-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .rl-numbered-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rl-numbered-item {
  background: var(--rl-bg);
  padding: 18px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rl-numbered-index {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rl-accent);
  color: var(--rl-accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-numbered-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Marcas
   ========================================================================== */
.rl-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--rl-line);
  border: 1px solid var(--rl-line);
  margin-bottom: 28px;
}

.rl-brand-name {
  background: var(--rl-bg);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--rl-ink);
  text-decoration: none !important;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px;
}

.rl-brand-name:hover {
  color: var(--rl-accent);
}

.rl-brand-fiches {
  border-top: 1px solid var(--rl-line);
}

.rl-fiche {
  border-bottom: 1px solid var(--rl-line);
}

.rl-fiche > summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--rl-ink);
  padding: 0 4px;
}

.rl-fiche > summary::-webkit-details-marker {
  display: none;
}

.rl-fiche > summary::after {
  content: "+";
  color: var(--rl-accent);
  font-size: 1.2rem;
  font-weight: 400;
}

.rl-fiche[open] > summary::after {
  content: "\2212";
}

.rl-fiche p {
  margin: 0 0 16px;
  padding: 0 4px;
  font-size: 0.9rem;
  color: var(--rl-body);
}

/* ==========================================================================
   Cobertura
   ========================================================================== */
.rl-coverage-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.rl-coverage-badge {
  border: 1px solid var(--rl-accent);
  color: var(--rl-accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
}

.rl-coverage-toggle {
  border: 1px solid var(--rl-line);
}

.rl-coverage-toggle > summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 700;
  color: var(--rl-ink);
}

.rl-coverage-toggle > summary::-webkit-details-marker {
  display: none;
}

.rl-coverage-toggle > summary::after {
  content: "Mostrar";
  color: var(--rl-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.rl-coverage-toggle[open] > summary::after {
  content: "Ocultar";
}

.rl-coverage-body {
  padding: 16px;
  border-top: 1px solid var(--rl-line);
}

.rl-coverage-group + .rl-coverage-group {
  margin-top: 18px;
}

.rl-coverage-columns {
  columns: 2;
  column-gap: 24px;
}

@media (min-width: 768px) {
  .rl-coverage-columns {
    columns: 3;
  }
}

@media (min-width: 1100px) {
  .rl-coverage-columns {
    columns: 4;
  }
}

.rl-coverage-columns li {
  font-size: 0.85rem;
  padding: 3px 0;
  break-inside: avoid;
}

/* ==========================================================================
   FAQ (details/summary)
   ========================================================================== */
.rl-faq-item {
  border-bottom: 1px solid var(--rl-line);
}

.rl-faq-item > summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--rl-ink);
  padding: 4px 0;
}

.rl-faq-item > summary::-webkit-details-marker {
  display: none;
}

.rl-faq-item > summary::after {
  content: "+";
  color: var(--rl-accent);
  font-size: 1.3rem;
  flex: none;
}

.rl-faq-item[open] > summary::after {
  content: "\2212";
}

.rl-faq-item p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  max-width: 70ch;
}

/* ==========================================================================
   Formulario 5% descuento
   ========================================================================== */
.rl-form-section {
  background: var(--rl-bg-alt);
}

.rl-form-intro {
  margin-bottom: 24px;
}

.rl-form-discount {
  display: inline-block;
  border: 1px solid var(--rl-accent);
  color: var(--rl-accent);
  font-weight: 700;
  padding: 6px 14px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.rl-form-grid {
  display: grid;
  gap: 20px;
  background: var(--rl-bg);
  border: 1px solid var(--rl-line);
  padding: 28px;
}

@media (min-width: 720px) {
  .rl-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rl-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rl-ink);
}

.rl-field input,
.rl-field select,
.rl-field textarea {
  border: 1px solid var(--rl-line-strong);
  border-radius: var(--rl-radius);
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--rl-ink);
}

.rl-field textarea {
  min-height: 96px;
  resize: vertical;
}

.rl-field input:focus,
.rl-field select:focus,
.rl-field textarea:focus {
  border-color: var(--rl-accent);
}

.rl-field--full {
  grid-column: 1 / -1;
}

.rl-form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.rl-form-submit .rl-btn {
  padding: 0 28px;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.rl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .rl-page * {
    transition: none !important;
  }
}
