/*
Theme Name:   REDePARES Child
Theme URI:    https://www.redepares.org/
Description:  Child theme de Hello Elementor para la Fundación REDePARES. Diseñado 100% para Elementor Free (drag & drop). Incluye Top Bar Ticker animada, variables de marca, estilos globales y clases utilitarias listas para usar.
Author:       Fundación REDePARES — Desarrollado con Elementor Free 2026
Author URI:   https://www.redepares.org/
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  redepares-child
Tags:         elementor, one-page, nonprofit, disaster-management
*/

/* ============================================================
   VARIABLES DE MARCA — REDePARES
   Modifica aquí y se aplica en todo el sitio
   ============================================================ */
:root {
  --rp-azul-1:       #0047AB;  /* Azul corporativo principal */
  --rp-azul-2:       #003580;  /* Azul oscuro */
  --rp-azul-3:       #001F5E;  /* Azul profundo */
  --rp-cyan:         #00B5E2;  /* Acento cyan */
  --rp-rojo-alerta:  #C62828;  /* Rojo alertas / emergencias */
  --rp-amarillo:     #FFC107;  /* Amarillo ticker / advertencias */
  --rp-verde:        #1B5E20;  /* Verde éxito */
  --rp-gris:         #4A5568;  /* Texto secundario */
  --rp-blanco:       #FFFFFF;
  --rp-font-display: 'Syne', 'Oswald', sans-serif;
  --rp-font-body:    'Nunito', 'Inter', sans-serif;
  --rp-radius:       12px;
  --rp-shadow:       0 8px 32px rgba(0,71,171,0.18);
  --rp-transition:   all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE GLOBAL (Hello Elementor compatible)
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--rp-font-body);
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ██████  TOP BAR TICKER — PROBLEMA / SOLUCIÓN
   Clase: .rp-topbar | Colocar en Sección Elementor con ID "rp-topbar"
   Configuración Elementor: Avanzado → Efectos de movimiento → Sticky: Top | z-index: 9999
   ============================================================ */
#rp-topbar,
.rp-topbar {
  width: 100%;
  background: var(--rp-amarillo);
  color: #1a1a2e;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9999;
  border-bottom: 2px solid rgba(0,0,0,0.12);
}

/* Etiqueta fija izquierda */
.rp-topbar__label {
  flex-shrink: 0;
  background: var(--rp-rojo-alerta);
  color: #fff;
  font-family: var(--rp-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
}

/* Track animado */
.rp-topbar__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: rp-ticker-scroll 55s linear infinite;
  will-change: transform;
  padding-left: 60px;
}

.rp-topbar__track:hover {
  animation-play-state: paused;
}

/* Item individual del ticker */
.rp-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 50px 0 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--rp-font-body);
  color: #1a1a2e;
  white-space: nowrap;
}

.rp-topbar__item .rp-problem {
  color: #7f1d1d;
}

.rp-topbar__item .rp-arrow {
  color: var(--rp-rojo-alerta);
  font-weight: 900;
  font-size: 15px;
}

.rp-topbar__item .rp-solution {
  color: #1B5E20;
  font-weight: 800;
}

.rp-topbar__separator {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rp-rojo-alerta);
  border-radius: 50%;
  margin: 0 30px;
  flex-shrink: 0;
}

/* Keyframe del scroll infinito */
@keyframes rp-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER / NAV GLOBAL
   ============================================================ */
.rp-header {
  background: rgba(0,35,80,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--rp-cyan);
  transition: var(--rp-transition);
}

/* ============================================================
   HERO — Clases utilitarias para la sección hero
   Sección Elementor: Diseño → Altura: 100vh
   ============================================================ */
.rp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.rp-hero__badge {
  display: inline-block;
  background: rgba(0,181,226,0.15);
  border: 1px solid rgba(0,181,226,0.45);
  color: var(--rp-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 18px;
}

/* Overlays de color para imagen de fondo del hero */
.rp-overlay-hero {
  background: linear-gradient(135deg,
    rgba(0,71,171,0.91)  0%,
    rgba(0,53,128,0.88) 55%,
    rgba(0,31,94,0.95) 100%
  );
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.rp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rp-cyan);
  color: var(--rp-azul-2) !important;
  font-family: var(--rp-font-body);
  font-weight: 800;
  font-size: 15px;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: var(--rp-transition);
  box-shadow: 0 4px 20px rgba(0,181,226,0.35);
}

.rp-btn-primary:hover {
  background: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,181,226,0.5);
}

.rp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  font-family: var(--rp-font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 38px;
  border-radius: 50px;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.65);
  cursor: pointer;
  transition: var(--rp-transition);
}

.rp-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.rp-btn-alerta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rp-rojo-alerta);
  color: #fff !important;
  font-family: var(--rp-font-body);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: var(--rp-transition);
  animation: rp-pulse-red 2s ease-in-out infinite;
}

@keyframes rp-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(198,40,40,0); }
}

/* ============================================================
   TARJETAS — Cards de servicios / líneas de trabajo
   ============================================================ */
.rp-card {
  background: #fff;
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: 32px 28px;
  border-top: 4px solid var(--rp-cyan);
  transition: var(--rp-transition);
  height: 100%;
}

.rp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,71,171,0.22);
  border-top-color: var(--rp-azul-1);
}

.rp-card__icon {
  font-size: 42px;
  margin-bottom: 16px;
  display: block;
}

.rp-card__title {
  font-family: var(--rp-font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--rp-azul-2);
  margin-bottom: 10px;
}

.rp-card__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--rp-gris);
}

/* ============================================================
   SECCIÓN DE STATS — Contadores
   ============================================================ */
.rp-stats-section {
  background: linear-gradient(135deg, var(--rp-azul-1), var(--rp-azul-3));
  padding: 70px 0;
}

.rp-stat__number {
  font-family: var(--rp-font-display);
  font-size: 54px;
  font-weight: 800;
  color: var(--rp-cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.rp-stat__label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   SECCIÓN QUIÉNES SOMOS / MISIÓN
   ============================================================ */
.rp-section-title {
  font-family: var(--rp-font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--rp-azul-2);
  line-height: 1.2;
  margin-bottom: 16px;
}

.rp-section-title span {
  color: var(--rp-cyan);
}

.rp-section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rp-cyan);
  margin-bottom: 12px;
}

.rp-section-lead {
  font-size: 17px;
  line-height: 1.78;
  color: var(--rp-gris);
  max-width: 640px;
}

/* ============================================================
   LÍNEAS DE TRABAJO — Acordeón / Lista
   ============================================================ */
.rp-linea {
  border-left: 4px solid var(--rp-cyan);
  padding: 20px 24px;
  background: #f8faff;
  border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
  margin-bottom: 14px;
  transition: var(--rp-transition);
}

.rp-linea:hover {
  border-left-color: var(--rp-azul-1);
  background: #eef4ff;
}

.rp-linea__title {
  font-family: var(--rp-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--rp-azul-2);
  margin-bottom: 6px;
}

.rp-linea__text {
  font-size: 14px;
  color: var(--rp-gris);
  line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.rp-cta-section {
  background: linear-gradient(135deg, var(--rp-azul-2), var(--rp-azul-3));
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rp-cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(0,181,226,0.08);
}

.rp-cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(0,181,226,0.06);
}

.rp-cta-section h2 {
  font-family: var(--rp-font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.rp-cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.rp-footer {
  background: var(--rp-azul-3);
  color: rgba(255,255,255,0.65);
  padding: 40px;
  text-align: center;
  font-size: 14px;
}

.rp-footer a {
  color: var(--rp-cyan);
  text-decoration: none;
}

.rp-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   VALORES — Grid de chips
   ============================================================ */
.rp-valor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,71,171,0.07);
  border: 1px solid rgba(0,71,171,0.18);
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rp-azul-1);
  transition: var(--rp-transition);
  margin: 5px;
}

.rp-valor-chip:hover {
  background: var(--rp-azul-1);
  color: #fff;
  border-color: var(--rp-azul-1);
}

/* ============================================================
   UTILIDADES GENERALES
   ============================================================ */
.rp-text-cyan    { color: var(--rp-cyan) !important; }
.rp-text-azul    { color: var(--rp-azul-1) !important; }
.rp-text-blanco  { color: #fff !important; }
.rp-text-alerta  { color: var(--rp-rojo-alerta) !important; }
.rp-bg-azul      { background: var(--rp-azul-1) !important; }
.rp-bg-cyan      { background: var(--rp-cyan) !important; }
.rp-bg-dark      { background: var(--rp-azul-3) !important; }
.rp-font-display { font-family: var(--rp-font-display) !important; }
.rp-fw-800       { font-weight: 800 !important; }
.rp-radius       { border-radius: var(--rp-radius) !important; }
.rp-shadow       { box-shadow: var(--rp-shadow) !important; }

/* ============================================================
   FADE-IN ANIMACIONES (CSS puro, sin JS)
   Usar en Elementor: Avanzado → Animaciones CSS → fadeInUp
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rp-fadein { animation: fadeInUp 0.7s ease both; }
.rp-fadein-delay-1 { animation-delay: 0.15s; }
.rp-fadein-delay-2 { animation-delay: 0.30s; }
.rp-fadein-delay-3 { animation-delay: 0.45s; }
.rp-fadein-delay-4 { animation-delay: 0.60s; }

/* ============================================================
   RESPONSIVE — Ajustes móvil
   ============================================================ */
@media (max-width: 767px) {
  .rp-section-title { font-size: 26px; }
  .rp-stat__number  { font-size: 38px; }
  .rp-topbar__label { padding: 0 12px; font-size: 10px; }
  .rp-topbar__item  { font-size: 12px; }
  .rp-btn-primary,
  .rp-btn-outline   { padding: 13px 28px; font-size: 14px; }
}
