/* ============================================================
   MisPlumillas.com · Estilos compartidos para páginas de Ayuda
   Paleta navy de marca (sin verde). Fuentes: Archivo + Sora.
   Usado por: preguntas-frecuentes.html, tipos-de-plumillas.html,
   guia-de-instalacion.html, mi-vehiculo-no-aparece.html, pqr.html,
   blog.html, sobre-rexion.html, contacto.html
   ============================================================ */

:root {
  --navy: #031b3f;
  --navy-2: #0A3270;
  --blue-soft: #EEF3FF;
  --blue-line: rgba(3, 27, 63, 0.10);
  --ink: #171A20;
  --muted: #5C5E62;
  --muted-2: #8A8F98;
  --bg: #ffffff;
  --bg-soft: #F6F8FC;
  --radius: 16px;
  --shadow: 0 12px 40px -14px rgba(3, 27, 63, 0.28);
  --shadow-sm: 0 4px 18px -8px rgba(3, 27, 63, 0.22);
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Sora", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); }

/* ---------------- Header ---------------- */
.rx-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 16px rgba(3, 27, 63, 0.08);
  font-family: var(--body);
}
.rx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid #E5E5E5;
}
.rx-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rx-logo img { height: 24px; width: auto; display: block; }
.rx-nav-right { display: flex; align-items: center; gap: 10px; }

.rx-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: var(--body);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.rx-nav-link:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.rx-nav-link.rx-ghost { color: var(--muted); }

.rx-nav-cta {
  background: linear-gradient(120deg, var(--navy), #3B82F6);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px -12px var(--navy);
  transition: transform .15s ease, box-shadow .25s ease;
}
.rx-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(3, 27, 63, 0.8); }

/* ---------------- Dropdown "Ayuda y Consejos" ---------------- */
.rx-dropdown { position: relative; }
.rx-dropdown-toggle .rx-chev { transition: transform .2s ease; }
.rx-dropdown.rx-open .rx-dropdown-toggle { background: var(--blue-soft); border-color: var(--blue-line); }
.rx-dropdown.rx-open .rx-chev { transform: rotate(180deg); }

.rx-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid #EAEEF5;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.rx-dropdown.rx-open .rx-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.rx-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .14s ease, color .14s ease;
}
.rx-dropdown-item:hover { background: var(--blue-soft); color: var(--navy); }
.rx-dropdown-item.rx-active { background: var(--navy); color: #fff; font-weight: 600; }
.rx-dropdown-item.rx-active .rx-di-ico { color: #fff; opacity: 1; }
.rx-di-ico { flex-shrink: 0; color: var(--navy-2); opacity: .85; display: flex; }
.rx-di-ico svg { display: block; }

/* ---------------- Page hero / breadcrumb ---------------- */
.rx-page-hero {
  background: radial-gradient(ellipse at 30% -10%, rgba(3, 27, 63, 0.10), transparent 60%), var(--bg-soft);
  border-bottom: 1px solid var(--blue-line);
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 44px);
}
.rx-wrap { max-width: 920px; margin: 0 auto; }
.rx-wrap-wide { max-width: 1100px; margin: 0 auto; }
.rx-crumb { font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.rx-crumb a { color: var(--muted); text-decoration: none; }
.rx-crumb a:hover { color: var(--navy); }
.rx-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 10px;
}
.rx-page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: var(--ink);
}
.rx-lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 680px; margin: 0; }

/* ---------------- Content ---------------- */
.rx-main { padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) 64px; }
.rx-main h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 40px 0 14px;
}
.rx-main h2:first-child { margin-top: 0; }
.rx-main h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 26px 0 8px; }
.rx-main p { color: #3B3F45; margin: 0 0 16px; }
.rx-main ul, .rx-main ol { color: #3B3F45; padding-left: 22px; margin: 0 0 18px; }
.rx-main li { margin-bottom: 8px; }
.rx-main strong { color: var(--ink); }

/* Cards / grids */
.rx-grid { display: grid; gap: 18px; }
.rx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rx-card {
  background: #fff;
  border: 1px solid #EAEEF5;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.rx-card h3 { margin-top: 0; }
.rx-card .rx-ico-box {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 14px;
}
.rx-card .rx-ico-box svg { display: block; }

.rx-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  background: var(--blue-soft); color: var(--navy-2);
  border-radius: 999px; padding: 5px 12px;
}

.rx-note {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  color: #2C3340;
}
.rx-note strong { color: var(--navy); }

/* ---------------- FAQ accordion ---------------- */
.rx-faq { border: 1px solid #EAEEF5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.rx-faq-item { border-bottom: 1px solid #EEF1F6; }
.rx-faq-item:last-child { border-bottom: none; }
.rx-faq-q {
  width: 100%; text-align: left; background: #fff; border: none; cursor: pointer;
  padding: 18px 20px; font-size: 16px; font-weight: 600; color: var(--ink);
  font-family: var(--body); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.rx-faq-q:hover { background: var(--bg-soft); }
.rx-faq-q .rx-faq-plus { flex-shrink: 0; color: var(--navy-2); transition: transform .2s ease; font-size: 22px; line-height: 1; }
.rx-faq-item.rx-open .rx-faq-q .rx-faq-plus { transform: rotate(45deg); }
.rx-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.rx-faq-a-inner { padding: 0 20px 18px; color: #3B3F45; }
.rx-faq-item.rx-open .rx-faq-a { max-height: 600px; }

/* ---------------- Contact form / cards ---------------- */
.rx-contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.rx-field { margin-bottom: 16px; }
.rx-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.rx-input {
  width: 100%; padding: 12px 14px; border: 1px solid #DCE2EC; border-radius: 12px;
  font-family: var(--body); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .16s ease;
}
.rx-input:focus { outline: none; border-color: var(--navy); }
textarea.rx-input { resize: vertical; min-height: 120px; }
.rx-submit {
  background: linear-gradient(120deg, var(--navy), #3B82F6); color: #fff; border: none;
  border-radius: 12px; padding: 14px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--body); width: 100%; transition: transform .15s ease, box-shadow .25s ease;
}
.rx-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px var(--navy); }

.rx-contact-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  border: 1px solid #EAEEF5; border-radius: 14px; background: #fff; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.rx-contact-card .rx-ico-box { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; }
.rx-contact-card a { font-weight: 600; text-decoration: none; }
.rx-contact-card .rx-cc-label { font-size: 13px; color: var(--muted-2); }

/* ---------------- Blog list ---------------- */
.rx-article {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid #EAEEF5; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease;
}
.rx-article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rx-article-cover { height: 150px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; color: rgba(255,255,255,.85); }
.rx-article-body { padding: 18px 20px 22px; }
.rx-article-body h3 { margin: 6px 0 8px; color: var(--ink); }
.rx-article-body p { font-size: 14.5px; color: var(--muted); margin: 0; }
.rx-article-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--navy-2); }

/* ---------------- CTA strip ---------------- */
.rx-cta-strip {
  margin: 48px clamp(16px, 4vw, 48px) 0;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  text-align: center;
}
.rx-cta-strip h2 { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3vw, 32px); margin: 0 0 10px; color: #fff; }
.rx-cta-strip p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 22px; }
.rx-cta-strip .rx-cta-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--navy);
  font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 12px; font-size: 16px;
  transition: transform .15s ease;
}
.rx-cta-strip .rx-cta-btn:hover { transform: translateY(-2px); }

/* ---------------- Footer ---------------- */
.rx-footer {
  margin-top: 56px;
  background: #fff;
  border-top: 1px solid var(--blue-line);
  padding: 40px clamp(16px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.rx-footer img.rx-footer-logo { height: 30px; width: auto; opacity: .85; }
.rx-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.rx-footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.rx-footer-links a:hover { color: var(--navy); }
.rx-social { display: flex; gap: 12px; }
.rx-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--navy); transition: background .16s ease, transform .15s ease;
}
.rx-social a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.rx-footer-copy { font-size: 13px; color: var(--muted-2); }

/* ---------------- WhatsApp float ---------------- */
.rx-wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  text-decoration: none; transition: transform .15s ease;
}
.rx-wa-float:hover { transform: scale(1.06); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .rx-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rx-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rx-grid-2, .rx-grid-3 { grid-template-columns: 1fr; }
  .rx-nav-link.rx-hide-mobile, .rx-nav-cta.rx-hide-mobile { display: none; }
  .rx-dropdown-panel { position: fixed; left: 12px; right: 12px; min-width: 0; top: 70px; }
  .rx-logo img { height: 20px; }
}
