/* ============================================================================
   AGEMED — Diseño Minimalista y Moderno (Estilo Clínico Luminoso)
   Paleta armonizada con logotipo AGEMED y particles.js (#0288d1, #81d4fa, #ffffff)
   Hoja aislada para index.php y landingPage.php (NO altera páginas de pagos)
   ============================================================================ */

:root {
  --agemed-primary: #0288d1;
  --agemed-primary-dark: #01579b;
  --agemed-primary-hover: #0277bd;
  --agemed-sky: #81d4fa;
  --agemed-sky-soft: #b3e5fc;
  --agemed-ice-bg: #eef7fd;
  --agemed-ink: #0f2942;
  --agemed-text: #445b73;
  --agemed-muted: #6c8299;
  --agemed-surface: rgba(255, 255, 255, 0.84);
  --agemed-surface-strong: rgba(255, 255, 255, 0.94);
  --agemed-border: rgba(2, 136, 209, 0.13);
  --agemed-border-strong: rgba(2, 136, 209, 0.28);
  --agemed-shadow-sm: 0 6px 20px rgba(2, 60, 108, 0.06);
  --agemed-shadow-md: 0 14px 36px rgba(2, 60, 108, 0.09);
  --agemed-shadow-lg: 0 24px 54px rgba(2, 60, 108, 0.13);
  --agemed-radius-sm: 12px;
  --agemed-radius-md: 18px;
  --agemed-radius-lg: 24px;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- BASE & GLOBAL CANVAS ---------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.agemed-modern {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--agemed-text);
  background: linear-gradient(
    180deg,
    #e5f3fc 0%,
    #f2f9fe 24%,
    #eaf5fc 52%,
    #f5faff 78%,
    #eaf4fc 100%
  );
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Capa fija de partículas en toda la página */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#particles-js canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.agemed-page-wrapper {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--agemed-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  font-family: var(--font-body);
  color: var(--agemed-text);
}

a {
  color: var(--agemed-primary);
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

a:hover,
a:focus {
  color: var(--agemed-primary-dark);
  text-decoration: none;
}

/* ---------- UTILIDADES ---------- */
.agemed-section {
  padding: 88px 0;
  position: relative;
  scroll-margin-top: 84px;
}

.agemed-section-compact {
  padding: 64px 0;
  scroll-margin-top: 84px;
}

/* Limpiar pseudo-elementos de Bootstrap 3 en filas flexibles */
.hero-grid::before,
.hero-grid::after,
.innovation-row::before,
.innovation-row::after,
.modern-card-grid::before,
.modern-card-grid::after,
.pricing-grid::before,
.pricing-grid::after {
  display: none;
  content: none;
}

.agemed-section-soft {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(2, 136, 209, 0.08);
  border-bottom: 1px solid rgba(2, 136, 209, 0.08);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 136, 209, 0.1);
  border: 1px solid rgba(2, 136, 209, 0.18);
  color: var(--agemed-primary);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header-modern {
  max-width: 740px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-header-modern h2 {
  font-size: 36px;
  margin: 0 0 14px;
}

.section-header-modern p {
  font-size: 17px;
  color: var(--agemed-text);
  margin: 0;
}

.text-gradient-blue {
  background: linear-gradient(120deg, #01579b 0%, #0288d1 55%, #29b6f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- BOTONES MODERNOS ---------- */
.btn-agemed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-agemed-primary {
  background: linear-gradient(135deg, #0288d1 0%, #0277bd 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 136, 209, 0.28);
}

.btn-agemed-primary:hover,
.btn-agemed-primary:focus {
  background: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 136, 209, 0.36);
}

.btn-agemed-outline {
  background: rgba(255, 255, 255, 0.82);
  color: var(--agemed-primary);
  border-color: rgba(2, 136, 209, 0.35);
  backdrop-filter: blur(8px);
}

.btn-agemed-outline:hover,
.btn-agemed-outline:focus {
  background: var(--agemed-primary);
  color: #ffffff;
  border-color: var(--agemed-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 136, 209, 0.22);
}

.btn-agemed-whatsapp {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
}

.btn-agemed-whatsapp:hover,
.btn-agemed-whatsapp:focus {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.32);
}

.btn-agemed-sm {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-agemed-block {
  width: 100%;
}

/* ---------- NAVBAR MINIMALISTA ---------- */
.agemed-navbar {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  border-bottom: 1px solid rgba(2, 136, 209, 0.12);
  min-height: 76px;
  margin-bottom: 0;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  z-index: 1030;
}

.agemed-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(15, 41, 66, 0.08);
}

.agemed-navbar .navbar-brand {
  height: 76px;
  padding: 18px 15px;
  display: flex;
  align-items: center;
}

.agemed-navbar .navbar-brand img {
  height: 36px;
  width: auto;
}

.agemed-navbar .navbar-nav > li > a {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--agemed-ink);
  padding-top: 28px;
  padding-bottom: 28px;
  background: transparent !important;
}

.agemed-navbar .navbar-nav > li > a:hover,
.agemed-navbar .navbar-nav > li.active > a,
.agemed-navbar .navbar-nav > li.current > a {
  color: var(--agemed-primary);
}

.agemed-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0 17px 14px;
}

.agemed-navbar .nav-actions form {
  margin: 0;
}

.agemed-navbar .navbar-toggle {
  margin-top: 21px;
  border: 1px solid rgba(2, 136, 209, 0.28);
  border-radius: 10px;
  background: rgba(2, 136, 209, 0.08);
}

.agemed-navbar .navbar-toggle .icon-bar {
  background-color: var(--agemed-primary);
}

/* ---------- HERO PRINCIPAL ---------- */
.agemed-hero {
  padding: 132px 0 84px;
  position: relative;
}

.hero-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-copy {
  padding-right: 24px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--agemed-ink);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--agemed-text);
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 136, 209, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--agemed-ink);
  box-shadow: 0 4px 12px rgba(2, 60, 108, 0.04);
  backdrop-filter: blur(8px);
}

.hero-pill i {
  color: var(--agemed-primary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(2, 136, 209, 0.14);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--agemed-muted);
}

.hero-trust-item strong {
  color: var(--agemed-ink);
  display: block;
  font-family: var(--font-heading);
  font-size: 14.5px;
}

.hero-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(2, 136, 209, 0.1);
  color: var(--agemed-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hero-visual-wrap {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--agemed-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border: 1px solid rgba(2, 136, 209, 0.18);
  box-shadow: var(--agemed-shadow-lg);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.hero-float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(2, 136, 209, 0.18);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: 0 12px 28px rgba(15, 41, 66, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-float-badge.badge-top {
  top: 22px;
  left: -18px;
}

.hero-float-badge.badge-bottom {
  bottom: 22px;
  right: -14px;
}

.hero-float-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0288d1, #4fc3f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hero-float-badge .badge-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--agemed-ink);
  line-height: 1.2;
}

.hero-float-badge .badge-sub {
  font-size: 11.5px;
  color: var(--agemed-muted);
  line-height: 1.25;
}

/* ---------- NUEVA GENERACIÓN AGEMED (INNOVACIÓN) ---------- */
.innovation-block {
  background: var(--agemed-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--agemed-border);
  border-radius: var(--agemed-radius-lg);
  padding: 36px;
  margin-bottom: 30px;
  box-shadow: var(--agemed-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.innovation-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--agemed-shadow-md);
  border-color: var(--agemed-border-strong);
}

.innovation-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.innovation-media {
  border-radius: var(--agemed-radius-md);
  overflow: hidden;
  border: 1px solid rgba(2, 136, 209, 0.14);
  box-shadow: 0 12px 26px rgba(15, 41, 66, 0.08);
  background: #ffffff;
}

.innovation-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.innovation-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(2, 136, 209, 0.1);
  color: var(--agemed-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.innovation-content h3 {
  font-size: 27px;
  margin: 0 0 12px;
}

.innovation-content p {
  font-size: 15.5px;
  margin-bottom: 18px;
}

.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(2, 136, 209, 0.07);
  border: 1px solid rgba(2, 136, 209, 0.16);
  color: var(--agemed-ink);
  font-size: 13px;
  font-weight: 600;
}

.context-chip i {
  color: var(--agemed-primary);
  font-size: 12px;
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--agemed-ink);
}

.feature-check-list li:last-child {
  margin-bottom: 0;
}

.feature-check-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--agemed-primary);
  font-size: 15px;
}

.nom-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.nom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid rgba(2, 136, 209, 0.25);
  color: var(--agemed-primary-dark);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
}

.addon-micro-note {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(2, 136, 209, 0.06);
  border-left: 3px solid var(--agemed-primary);
  font-size: 13.5px;
  color: var(--agemed-text);
}

.addon-micro-note strong {
  color: var(--agemed-ink);
}

/* ---------- TARJETAS DE CARACTERÍSTICAS ---------- */
.modern-card-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.modern-card-col {
  padding: 12px;
  display: flex;
}

.glass-card {
  width: 100%;
  background: var(--agemed-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--agemed-border);
  border-radius: var(--agemed-radius-md);
  padding: 30px 26px;
  box-shadow: var(--agemed-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--agemed-shadow-md);
  border-color: var(--agemed-border-strong);
}

.card-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 136, 209, 0.14), rgba(129, 212, 250, 0.22));
  color: var(--agemed-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.glass-card h4 {
  font-size: 19px;
  margin: 0 0 10px;
}

.glass-card p {
  font-size: 14.8px;
  margin: 0;
  color: var(--agemed-text);
}

/* ---------- PLATAFORMA & APPS ---------- */
.platform-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(2, 136, 209, 0.12);
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-pillar:hover {
  border-color: rgba(2, 136, 209, 0.28);
  box-shadow: 0 8px 20px rgba(2, 60, 108, 0.06);
}

.platform-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 136, 209, 0.1);
  color: var(--agemed-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.platform-pillar h5 {
  font-size: 16px;
  margin: 0 0 4px;
}

.platform-pillar p {
  font-size: 14px;
  margin: 0;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.store-badges a img {
  height: 46px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.store-badges a:hover img {
  transform: translateY(-2px);
}

/* ---------- PLANES Y PRECIOS ---------- */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: -14px;
  margin-right: -14px;
}

.pricing-col {
  padding: 14px;
  display: flex;
}

.pricing-card {
  width: 100%;
  background: var(--agemed-surface-strong);
  backdrop-filter: blur(14px);
  border: 1px solid var(--agemed-border);
  border-radius: var(--agemed-radius-lg);
  padding: 36px 30px;
  box-shadow: var(--agemed-shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--agemed-shadow-md);
}

.pricing-card.is-featured {
  border: 2px solid var(--agemed-primary);
  box-shadow: 0 20px 46px rgba(2, 136, 209, 0.15);
}

.pricing-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(2, 136, 209, 0.12);
  color: var(--agemed-primary);
  margin-bottom: 14px;
}

.pricing-card.is-featured .pricing-tag {
  background: var(--agemed-primary);
  color: #ffffff;
}

.pricing-name {
  font-size: 24px;
  margin: 0 0 8px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 8px;
}

.pricing-currency {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--agemed-primary);
}

.pricing-rate {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: var(--agemed-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 15px;
  color: var(--agemed-muted);
  font-weight: 500;
}

.pricing-discounts {
  background: #f3f9fe;
  border: 1px solid rgba(2, 136, 209, 0.12);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 14px 0 22px;
  font-size: 13.5px;
}

.pricing-discounts p {
  margin: 0 0 4px;
  font-size: 13.5px;
}

.pricing-discounts p:last-child {
  margin-bottom: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  flex-grow: 1;
}

.pricing-features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14.5px;
  color: var(--agemed-text);
  border-bottom: 1px solid rgba(2, 136, 209, 0.07);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--agemed-primary);
  font-size: 13px;
}

/* Módulo Adicional de Nuevas Tecnologías IA ($490/mes) */
.addon-tech-card {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(232, 246, 254, 0.92) 100%);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(2, 136, 209, 0.34);
  border-radius: var(--agemed-radius-lg);
  padding: 34px 36px;
  box-shadow: 0 18px 42px rgba(2, 136, 209, 0.12);
  position: relative;
  overflow: hidden;
}

.addon-tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #0288d1 0%, #81d4fa 100%);
}

.addon-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: #ffffff;
  border: 1px solid rgba(2, 136, 209, 0.22);
  border-radius: 14px;
  padding: 12px 20px;
  box-shadow: 0 8px 20px rgba(2, 136, 209, 0.1);
}

.addon-price-pill .addon-plus {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--agemed-primary);
}

.addon-price-pill .addon-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  color: var(--agemed-ink);
  line-height: 1;
}

.addon-price-pill .addon-unit {
  font-size: 13.5px;
  color: var(--agemed-muted);
  font-weight: 600;
}

.addon-terms-box {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(2, 136, 209, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--agemed-ink);
}

.addon-terms-box span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.addon-terms-box i {
  color: var(--agemed-primary);
}

/* ---------- RENAPRO & CASOS DE ÉXITO ---------- */
.renapro-card {
  background: var(--agemed-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--agemed-border);
  border-radius: var(--agemed-radius-lg);
  padding: 40px;
  box-shadow: var(--agemed-shadow-sm);
}

.renapro-logo-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(2, 136, 209, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.renapro-logo-box img {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.client-logo-card {
  flex: 0 1 calc(25% - 12px);
  min-width: 190px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(2, 136, 209, 0.11);
  border-radius: 16px;
  padding: 20px 18px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.client-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--agemed-shadow-sm);
  border-color: var(--agemed-border-strong);
}

.client-logo-card img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.06);
  opacity: 0.85;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.client-logo-card:hover img {
  opacity: 1;
}

/* ---------- CTA FINAL ---------- */
.cta-banner-modern {
  background: linear-gradient(135deg, #0277bd 0%, #0288d1 55%, #29b6f6 100%);
  border-radius: var(--agemed-radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(2, 119, 189, 0.28);
  position: relative;
  overflow: hidden;
}

.cta-banner-modern h2 {
  color: #ffffff;
  font-size: 34px;
  margin: 0 0 12px;
}

.cta-banner-modern p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 28px;
}

.btn-cta-white {
  background: #ffffff;
  color: var(--agemed-primary-dark);
  border-color: #ffffff;
  box-shadow: 0 10px 24px rgba(1, 87, 155, 0.22);
}

.btn-cta-white:hover,
.btn-cta-white:focus {
  background: #f0f9ff;
  color: var(--agemed-primary-dark);
  transform: translateY(-2px);
}

/* ---------- FOOTER MODERNO ---------- */
body.agemed-modern .agemed-footer {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(2, 136, 209, 0.14);
  padding: 48px 0 36px;
  margin-top: 24px;
}

body.agemed-modern .agemed-footer .footer-logo {
  margin-bottom: 14px;
}

body.agemed-modern .agemed-footer p {
  font-size: 14px;
  color: var(--agemed-muted);
  margin-bottom: 6px;
}

body.agemed-modern .agemed-footer a {
  color: var(--agemed-primary);
  font-weight: 500;
}

body.agemed-modern .agemed-footer .social-sites {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body.agemed-modern .agemed-footer .social-sites li a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(2, 136, 209, 0.08);
  border: 1px solid rgba(2, 136, 209, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.agemed-modern .agemed-footer .social-sites li a:hover {
  background: rgba(2, 136, 209, 0.16);
  transform: translateY(-2px);
}

/* ---------- BOTONES FLOTANTES MODERNOS (Lado izquierdo, sin chocar con Tawk.to) ---------- */
.agemed-floating-contact {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agemed-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(15, 41, 66, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.agemed-float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px rgba(15, 41, 66, 0.28);
}

.agemed-float-btn.is-whatsapp {
  background: linear-gradient(135deg, #25d366, #16a34a);
}

.agemed-float-btn.is-phone {
  background: linear-gradient(135deg, #0288d1, #01579b);
  font-size: 20px;
}

/* ---------- MODAL MODERNO (#registro) ---------- */
body.agemed-modern .modal-content {
  border-radius: 20px;
  border: 1px solid rgba(2, 136, 209, 0.16);
  box-shadow: 0 24px 60px rgba(15, 41, 66, 0.2);
  overflow: hidden;
}

body.agemed-modern .modal-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(2, 136, 209, 0.12);
  padding: 22px 26px;
}

body.agemed-modern .modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--agemed-ink);
  font-size: 20px;
}

body.agemed-modern .modal-body {
  padding: 24px 26px;
}

body.agemed-modern .modal-footer {
  background: #f8fbfe;
  border-top: 1px solid rgba(2, 136, 209, 0.1);
  padding: 16px 26px;
}

body.agemed-modern .input-group-addon {
  background: #f0f9ff;
  border: 1px solid #d2e4f3;
  color: var(--agemed-primary);
  border-radius: 10px 0 0 10px;
}

body.agemed-modern .form-control {
  height: 44px;
  border: 1px solid #d2e4f3;
  border-radius: 0 10px 10px 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 14.5px;
}

body.agemed-modern .form-control:focus {
  border-color: var(--agemed-primary);
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.12);
}

.mensaje-error {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: #dc2626;
  font-weight: 500;
}

/* ---------- ESTILOS ESPECÍFICOS PARA LANDING PAGE ---------- */
.landing-hero {
  padding: 134px 0 60px;
}

.landing-hero-box {
  background: var(--agemed-surface-strong);
  backdrop-filter: blur(14px);
  border: 1px solid var(--agemed-border);
  border-radius: var(--agemed-radius-lg);
  padding: 52px 44px;
  box-shadow: var(--agemed-shadow-lg);
}

.landing-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.landing-step-card {
  background: var(--agemed-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--agemed-border);
  border-radius: var(--agemed-radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--agemed-shadow-sm);
  position: relative;
}

.landing-step-number {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0288d1, #4fc3f7);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(2, 136, 209, 0.25);
}

.landing-step-card h4 {
  font-size: 20px;
  margin: 0 0 8px;
}

.landing-step-card p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- SISTEMA DE PAGOS Y CUMPLIMIENTO DE NORMAS (En #service) ---------- */
.payments-feature-banner {
  margin-top: 26px;
  background: var(--agemed-surface-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--agemed-border-strong);
  border-radius: var(--agemed-radius-lg);
  padding: 32px 34px;
  box-shadow: var(--agemed-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payments-feature-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--agemed-shadow-md);
}

.payments-banner-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.payments-banner-header .card-icon-circle {
  margin-bottom: 0;
  flex-shrink: 0;
}

.payments-banner-header h3 {
  font-size: 23px;
  margin: 0 0 4px;
}

.payments-banner-header p {
  margin: 0;
  font-size: 15px;
  color: var(--agemed-text);
}

.payments-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.payment-highlight-item {
  background: rgba(238, 247, 253, 0.72);
  border: 1px solid rgba(2, 136, 209, 0.14);
  border-radius: 14px;
  padding: 18px 20px;
}

.payment-highlight-item h5 {
  font-size: 15.5px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--agemed-ink);
}

.payment-highlight-item h5 i {
  color: var(--agemed-primary);
}

.payment-highlight-item p {
  font-size: 14px;
  margin: 0;
  color: var(--agemed-text);
}

.compliance-panel {
  margin-top: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(235, 246, 254, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--agemed-border-strong);
  border-radius: var(--agemed-radius-lg);
  padding: 36px 34px;
  box-shadow: var(--agemed-shadow-sm);
}

.compliance-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.compliance-header h3 {
  font-size: 26px;
  margin: 0 0 8px;
}

.compliance-header p {
  margin: 0;
  font-size: 15.5px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.compliance-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(2, 136, 209, 0.14);
  border-radius: var(--agemed-radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(2, 60, 108, 0.04);
}

.compliance-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(2, 136, 209, 0.1);
  color: var(--agemed-primary-dark);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.compliance-card h4 {
  font-size: 17.5px;
  margin: 0 0 14px;
  line-height: 1.3;
}

.compliance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compliance-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 13.8px;
  line-height: 1.52;
  color: var(--agemed-text);
}

.compliance-list li:last-child {
  margin-bottom: 0;
}

.compliance-list li::before {
  content: "\f058";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--agemed-primary);
  font-size: 13.5px;
}

.compliance-list li strong {
  color: var(--agemed-ink);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .payments-highlights-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .innovation-row {
    display: block;
  }

  .pricing-col {
    width: 100%;
  }

  .agemed-hero {
    padding: 112px 0 60px;
  }

  .hero-copy {
    padding-right: 0;
    margin-bottom: 36px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-float-badge.badge-top {
    left: 12px;
    top: 12px;
  }

  .hero-float-badge.badge-bottom {
    right: 12px;
    bottom: 12px;
  }

  .client-logo-card {
    flex: 0 1 calc(33.333% - 11px);
    min-width: 0;
  }

  .landing-stepper {
    grid-template-columns: 1fr;
  }

  .innovation-content {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .modern-card-col {
    width: 100%;
  }

  .section-eyebrow {
    font-size: 11px;
    border-radius: 12px;
  }

  .agemed-section {
    padding: 60px 0;
  }

  .section-header-modern h2 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 31px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-float-badge {
    display: none;
  }

  .agemed-navbar .navbar-nav > li > a {
    padding: 12px 15px;
  }

  .agemed-navbar .nav-actions {
    padding: 12px 15px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .agemed-navbar .nav-actions .btn-agemed {
    width: 100%;
  }

  .innovation-block {
    padding: 24px 20px;
  }

  .addon-tech-card {
    padding: 26px 20px;
  }

  .payments-feature-banner,
  .compliance-panel {
    padding: 24px 18px;
  }

  .payments-banner-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-logo-card {
    flex: 0 1 calc(50% - 8px);
    min-width: 0;
  }

  .cta-banner-modern {
    padding: 40px 22px;
  }

  .cta-banner-modern h2 {
    font-size: 26px;
  }

  .landing-hero-box {
    padding: 32px 22px;
  }

  body.agemed-modern .agemed-footer .social-sites {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .agemed-floating-contact {
    left: 14px;
    bottom: 16px;
  }

  .agemed-float-btn {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}
