/* Rubicars Theme - estilos generales
   El estilo del buscador/catálogo/ficha de coche lo pone el plugin
   (rubicars-gestor-coches); este archivo cubre la "carcasa" del sitio:
   cabecera, pie, navegación y páginas/artículos de contenido. */

:root {
  --navy: #0b2545;
  --navy-light: #123a6b;
  --red: #e63946;
  --red-dark: #c62e3a;
  --green: #1e824c;
  --ink: #1a1a1a;
  --paper: #f4f6f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }

/* ---------- Cabecera ---------- */
.rt-header {
  border-bottom: 1px solid #eee;
}
.rt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rt-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rt-logo span { color: var(--red); }
.rt-logo img { max-height: 50px; width: auto; }

.rt-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.rt-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.rt-nav a:hover { color: var(--red); }

.rt-tel-header {
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
}
.rt-tel-header:hover { background: var(--navy-light); }

/* ---------- Contenido general ---------- */
.rt-main { min-height: 40vh; }

.rt-seccion {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}
.rt-seccion-estrecha {
  max-width: 780px;
}

.rt-titulo-pagina {
  color: var(--navy);
  font-size: 30px;
  margin: 0 0 20px;
}

.rt-contenido-pagina { font-size: 16px; line-height: 1.7; color: #222; }
.rt-contenido-pagina h2 { color: var(--navy); font-size: 22px; margin-top: 34px; }
.rt-contenido-pagina h3 { color: var(--navy); font-size: 18px; margin-top: 26px; }
.rt-contenido-pagina a { color: var(--red); }
.rt-contenido-pagina ul, .rt-contenido-pagina ol { padding-left: 22px; }

/* ---------- Artículos de blog (contenido SEO) ---------- */
.rt-meta-articulo { color: #888; font-size: 13px; margin: 0 0 20px; }
.rt-imagen-articulo { margin-bottom: 24px; border-radius: 12px; overflow: hidden; }
.rt-imagen-articulo img { display: block; width: 100%; object-fit: cover; }
.rt-contenido-articulo { font-size: 17px; }

.rt-resumen-articulo { margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.rt-resumen-articulo h2 { margin: 0 0 6px; }
.rt-resumen-articulo h2 a { color: var(--navy); text-decoration: none; }
.rt-resumen-articulo h2 a:hover { color: var(--red); }

/* ---------- Volver / navegación auxiliar ---------- */
.rt-volver {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.rt-volver:hover { color: var(--red); }

.rt-btn-primario {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  margin-top: 16px;
}
.rt-btn-primario:hover { background: var(--red-dark); }

.rt-404 { text-align: center; padding-top: 60px; padding-bottom: 80px; }

/* ---------- Pie de página ---------- */
.rt-footer {
  background: var(--navy);
  color: #cdd8e8;
  margin-top: 40px;
}
.rt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.rt-footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.rt-footer-logo span { color: var(--red); }
.rt-footer-col h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 12px; }
.rt-footer-col p { margin: 0 0 8px; font-size: 14px; }
.rt-footer-col a { color: #cdd8e8; text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; }
.rt-footer-col a:hover { color: #fff; }
.footer-widget-titulo { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 12px; }

.rt-footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #93a6c2;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .rt-header-inner { flex-direction: column; align-items: flex-start; }
  .rt-nav { order: 2; }
  .rt-titulo-pagina { font-size: 24px; }
}

/* ---------- Titulos de seccion (home) ---------- */
.rt-titulo-seccion { color: var(--navy); font-size: 30px; text-align: center; margin: 0 0 8px; }
.rt-subtitulo-seccion { text-align: center; color: #5b6b80; margin: 0 0 34px; font-size: 16px; }

/* ---------- Por que elegirnos ---------- */
.rt-porque { background: var(--paper); padding: 60px 24px; margin-top: 30px; }
.rt-porque-inner { max-width: 1200px; margin: 0 auto; }
.rt-porque-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rt-porque-card { background: #fff; border-radius: 14px; padding: 28px 22px; text-align: center; box-shadow: 0 2px 10px rgba(11,37,69,0.06); }
.rt-porque-icono { width: 62px; height: 62px; border-radius: 50%; background: rgba(230,57,70,0.1); color: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.rt-porque-card h3 { color: var(--navy); font-size: 18px; margin: 0 0 8px; }
.rt-porque-card p { margin: 0; color: #5b6b80; font-size: 14.5px; line-height: 1.55; }

/* ---------- Resenas ---------- */
.rt-resenas { padding: 60px 24px; }
.rt-resenas-inner { max-width: 1200px; margin: 0 auto; }
.rt-resenas .rt-titulo-seccion { margin-bottom: 34px; }
.rt-resenas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.rt-resena { margin: 0; background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(11,37,69,0.05); }
.rt-resena-estrellas { color: #f5a623; font-size: 20px; letter-spacing: 2px; margin-bottom: 12px; }
.rt-resena blockquote { margin: 0 0 20px; color: #2a3547; font-size: 15px; line-height: 1.65; flex: 1; }
.rt-resena figcaption { display: flex; align-items: center; gap: 12px; }
.rt-resena figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); }
.rt-resena figcaption span { display: flex; flex-direction: column; }
.rt-resena figcaption strong { color: var(--navy); font-size: 15px; }
.rt-resena figcaption em { color: #7a8799; font-size: 13px; font-style: normal; }

/* ---------- Llamada a la accion ---------- */
.rt-cta { background: var(--navy); color: #fff; padding: 54px 24px; text-align: center; }
.rt-cta-inner { max-width: 700px; margin: 0 auto; }
.rt-cta h2 { font-size: 28px; margin: 0 0 8px; }
.rt-cta p { color: #cdd8e8; margin: 0 0 22px; }
.rt-cta-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rt-cta .rt-btn-primario { margin-top: 0; }
.rt-btn-wa { display: inline-block; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 8px; }
.rt-btn-wa:hover { background: #1ebe5b; }

/* ---------- Paginas hechas con Elementor ---------- */
.rt-elementor-pagina { width: 100%; }

@media (max-width: 640px) {
  .rt-titulo-seccion { font-size: 24px; }
  .rt-porque, .rt-resenas { padding: 44px 18px; }
}
/* cabecera negra */
.rt-header { background: #000; border-bottom: 3px solid var(--red); }
.rt-header-inner { padding: 8px 24px; }
.rt-logo img { max-height: 64px; width: auto; display: block; }
.rt-nav a { color: #fff; }
.rt-nav a:hover { color: var(--red); }
.rt-nav { align-items: center; }
.rt-tel-header { background: var(--red); }
.rt-tel-header:hover { background: var(--red-dark); }
.rt-footer-logo span { color: var(--red); }
@media (max-width: 640px) { .rt-logo img { max-height: 52px; } .rt-header-inner { align-items: center; } }

/* ajustes v1.3 */
.rgc-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .rgc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rgc-grid { grid-template-columns: 1fr; } }

.rt-btn-primario, .rt-btn-primario:hover, .rt-btn-primario:visited,
.rt-btn-wa, .rt-btn-wa:hover, .rt-btn-wa:visited,
.rt-cta a:not(.rt-hbtn) { color: #fff !important; text-decoration: none; }
.rt-tel-header, .rt-tel-header:hover { color: #fff !important; }

.rt-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.rt-nav li { margin: 0; padding: 0; }
.rt-nav a { color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.rt-nav a:hover { color: var(--red) !important; }
.rt-footer-col ul { list-style: none; margin: 0; padding: 0; }
.rt-footer-col li { margin: 0; }
/* header solo botones */
.rt-header-inner { flex-wrap: nowrap; }
.rt-header-botones { display: flex; gap: 12px; align-items: center; }
.rt-hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none !important; line-height: 1; }
.rt-hbtn-llamar, .rt-hbtn-llamar:hover, .rt-hbtn-llamar:visited { background: #fff; color: #000 !important; }
.rt-hbtn-llamar:hover { background: #e9edf2; }
.rt-hbtn-wa, .rt-hbtn-wa:hover, .rt-hbtn-wa:visited { background: #25d366; color: #fff !important; }
.rt-hbtn-wa:hover { background: #1ebe5b; }
@media (max-width: 640px) {
  .rt-header-inner { flex-direction: row; align-items: center; padding: 8px 14px; }
  .rt-hbtn { padding: 10px 12px; font-size: 14px; }
  .rt-hbtn svg { width: 18px; height: 18px; }
  .rt-logo img { max-height: 46px; }
}
@media (max-width: 380px) { .rt-hbtn span { display: none; } }
/* botones iguales */
.rt-footer-col .rt-hbtn, .rt-cta .rt-hbtn { display: inline-flex; margin: 0; }
.rt-hbtn-grande { padding: 14px 26px; font-size: 16px; }
.rt-footer-botones { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.rt-footer-tel { margin: 0; font-size: 14px; color: #cdd8e8; }