/*
Theme Name: JRV — hijo de GeneratePress
Theme URI: https://jesusricovargas.com
Description: Tema propio de jesusricovargas.com. Hijo de GeneratePress: hereda los 84 valores visuales ya configurados (colores, tipografía y espaciado) y añade sobre ellos las plantillas nativas del blog, para dejar de depender de Elementor.
Author: Jesús Rico Vargas
Author URI: https://jesusricovargas.com
Template: generatepress
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: jrv
*/

/* ------------------------------------------------------------------
   Los estilos van aquí y no en línea porque este archivo se cachea en
   el navegador: se descarga una vez y sirve para todo el sitio. Solo
   contiene lo que añaden los bloques propios; el resto lo pone
   GeneratePress con la configuración que ya tenías.
   ------------------------------------------------------------------ */

/* Variables tomadas de la identidad visual ya configurada en el tema. */
:root {
  --jrv-azul: #12306e;
  --jrv-azul-vivo: #1d4fd8;
  --jrv-amarillo: #f1c40f;
  --jrv-tinta: #16213a;
  --jrv-suave: #f4f7fc;
  --jrv-linea: rgba(18, 48, 110, .14);
}

/* --- Bloque de autor -------------------------------------------------- */
.jrv-autor {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--jrv-suave);
  border: 1px solid var(--jrv-linea);
  border-radius: 14px;
  padding: 24px;
  margin: 40px 0;
}
.jrv-autor__foto {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.jrv-autor__nombre { font-size: 20px; font-weight: 800; margin: 0 0 2px; line-height: 1.25; }
.jrv-autor__rol {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--jrv-azul-vivo); margin: 0 0 10px;
}
.jrv-autor__bio { margin: 0; font-size: 15.5px; line-height: 1.62; }

/* --- Bloque de entrenamiento ------------------------------------------ */
.jrv-promo {
  background: linear-gradient(135deg, var(--jrv-azul), #0b1220);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  margin: 40px 0;
  text-align: center;
}
.jrv-promo__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--jrv-amarillo); margin: 0 0 8px;
}
.jrv-promo__titulo { color: #fff; font-size: 27px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; text-wrap: balance; }
.jrv-promo__sub { color: rgba(255,255,255,.86); margin: 0 0 20px; font-size: 16px; }
.jrv-promo__video { position: relative; max-width: 720px; margin: 0 auto 22px; border-radius: 12px; overflow: hidden; }
.jrv-promo__video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.jrv-boton {
  display: inline-block; background: var(--jrv-amarillo); color: #16213a;
  font-weight: 800; font-size: 17px; text-decoration: none;
  padding: 15px 34px; border-radius: 99px; transition: transform .16s ease, box-shadow .16s ease;
}
.jrv-boton:hover, .jrv-boton:focus-visible {
  color: #16213a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* --- Recursos (los banners de guías) --------------------------------- */
.jrv-recursos { margin: 40px 0; }
.jrv-recursos__titulo {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--jrv-azul-vivo); margin: 0 0 14px; text-align: center;
}
.jrv-recursos__rejilla {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.jrv-recursos a { display: block; border-radius: 12px; overflow: hidden; line-height: 0;
  transition: transform .16s ease, box-shadow .16s ease; }
.jrv-recursos a:hover, .jrv-recursos a:focus-visible {
  transform: translateY(-3px); box-shadow: 0 10px 26px rgba(18,48,110,.18);
}
.jrv-recursos img { width: 100%; height: auto; }

/* --- Compartir -------------------------------------------------------- */
.jrv-compartir { margin: 36px 0; text-align: center; }
.jrv-compartir__titulo {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--jrv-azul-vivo); margin: 0 0 12px;
}
.jrv-compartir__lista { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jrv-compartir__enlace {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 99px; text-decoration: none;
  font-size: 14.5px; font-weight: 700; color: #fff; background: var(--jrv-azul);
  transition: transform .16s ease, opacity .16s ease;
}
.jrv-compartir__enlace:hover, .jrv-compartir__enlace:focus-visible { color: #fff; transform: translateY(-2px); opacity: .9; }
.jrv-compartir__enlace--whatsapp { background: #1faa53; }
.jrv-compartir__enlace--linkedin { background: #0a66c2; }
.jrv-compartir__enlace--x { background: #16213a; }

/* --- Suscripción ------------------------------------------------------ */
.jrv-suscribir {
  background: var(--jrv-suave);
  border: 1px solid var(--jrv-linea);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}
.jrv-suscribir__titulo { font-size: 22px; font-weight: 800; margin: 0 0 6px; text-wrap: balance; }
.jrv-suscribir__sub { margin: 0 0 18px; font-size: 15.5px; opacity: .82; }
.jrv-suscribir__campos {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 620px; margin: 0 auto;
}
.jrv-suscribir input[type=text], .jrv-suscribir input[type=email] {
  flex: 1 1 210px; padding: 13px 16px; border: 1px solid var(--jrv-linea);
  border-radius: 10px; font-size: 15.5px; background: #fff; color: var(--jrv-tinta);
}
.jrv-suscribir button {
  flex: 0 0 auto; padding: 13px 28px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--jrv-azul-vivo); color: #fff; font-weight: 800; font-size: 15.5px;
}
.jrv-suscribir button:hover { opacity: .92; }
.jrv-suscribir__aviso { margin: 14px 0 0; font-size: 13.5px; }
.jrv-suscribir__aviso--ok { color: #15803d; font-weight: 700; }
.jrv-suscribir__aviso--error { color: #b91c1c; font-weight: 700; }
.jrv-trampa { position: absolute; left: -9999px; }

/* --- Índice de contenidos: se hereda del plugin, aquí solo el ajuste fino --- */
.jrv-indice { max-width: 100%; }

@media (max-width: 620px) {
  .jrv-autor { flex-direction: column; align-items: center; text-align: center; }
  .jrv-promo { padding: 26px 20px; }
  .jrv-promo__titulo { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .jrv-boton, .jrv-recursos a, .jrv-compartir__enlace { transition: none; }
  .jrv-boton:hover, .jrv-recursos a:hover, .jrv-compartir__enlace:hover { transform: none; }
}

/* ------------------------------------------------------------------
   La banda azul del blog, bajo la cabecera.
   Reemplaza la pieza 3 de la plantilla de Elementor. Los valores están
   leídos de su `_elementor_data`, no aproximados: fondo #004361, texto
   blanco en Montserrat, mayúsculas, «INMOBILIARIO» subrayado en amarillo.
   ------------------------------------------------------------------ */
.jrv-banda-blog {
    background-color: #004361;
    padding: 14px 20px;
    text-align: center;
}

.jrv-banda-blog__titulo {
    margin: 0;
    color: #fff;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3.4vw, 30px);
    line-height: 1.25;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.jrv-banda-blog__titulo span {
    color: #ffff00;
    text-decoration: underline;
    text-underline-offset: .12em;
}

/* ------------------------------------------------------------------
   Página de «no encontrado». Sustituye la plantilla 1299 de Elementor.
   ------------------------------------------------------------------ */
.jrv-404 { max-width: 720px; margin: 0 auto; text-align: center; }
.jrv-404__ilustracion img { max-width: 260px; width: 100%; height: auto; }
.jrv-404__titulo { margin: 26px 0 8px; }
.jrv-404__entradilla { color: #5a6478; margin: 0 auto 34px; max-width: 46ch; }
.jrv-404__salidas { list-style: none; margin: 0; padding: 0;
    display: grid; gap: 18px; text-align: left; }
.jrv-404__salidas li { display: flex; flex-wrap: wrap; gap: 14px;
    align-items: center; justify-content: space-between;
    border: 1px solid #dde3ee; border-radius: 12px; padding: 16px 20px; }
.jrv-404__salidas p { margin: 0; flex: 1 1 260px; }
.jrv-404__buscador { margin-top: 38px; }
.jrv-404__buscador p { margin-bottom: 10px; color: #5a6478; }
