/* ==========================================================
   SISTEMA DE DISEÑO DE ALTA GAMA - PRODUCTOS DE AHORRO
   Archivo: /css/productos-ahorros.css
   ========================================================== */

:root {
  --ahorros-blue-dark: #03183d;
  --ahorros-blue-900: #06245c;
  --ahorros-blue-primary: #0d6fd1;
  --ahorros-green: #1fa02c;
  --ahorros-gold: #d7a62f;
  --ahorros-gold-light: #ffd466;
  --ahorros-white: #ffffff;
  --ahorros-bg: #f4f7fa;
  --ahorros-card-bg: #ffffff;
  --ahorros-text: #1e293b;
  --ahorros-text-muted: #64748b;
  --ahorros-border: #e2e8f0;
  --ahorros-radius: 16px;
  --ahorros-radius-xl: 24px;
  --ahorros-shadow: 0 10px 30px rgba(2, 18, 48, 0.04);
  --trans-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hg-ahorros-page {
  font-family: 'Poppins', sans-serif;
  background-color: var(--ahorros-bg);
  color: var(--ahorros-text);
  margin: 0;
  padding: 0;
}

/* --- HERO CON ULTRA CONTRASTE --- */
.hg-ahorros-hero {
  position: relative;
  padding: 90px 0;
  background: radial-gradient(circle at 12% 15%, rgba(13, 111, 209, 0.22), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(36, 200, 119, 0.18), transparent 45%),
              linear-gradient(135deg, #0a3581 0%, #04571c 100%) !important;
  color: var(--ahorros-white) !important;
}

.hg-ahorros-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.hg-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ahorros-gold-light);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hg-ahorros-hero-text h1 {
  font-size: clamp(34px, 4.5vw, 54px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 0 22px 0 !important;
  color: var(--ahorros-white) !important;
}

.hg-ahorros-hero-text h1 span {
  color: var(--ahorros-gold) !important;
  display: block;
}

.hg-ahorros-hero-text p {
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 35px !important;
  max-width: 590px;
}

.hg-hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.hg-btn-primary {
  background: var(--ahorros-blue-primary);
  color: var(--ahorros-white) !important;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--trans-premium);
  box-shadow: 0 4px 15px rgba(13, 111, 209, 0.35);
}

.hg-btn-primary:hover { background: #117ee6; transform: translateY(-2px); }

.hg-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ahorros-white) !important;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--trans-premium);
}

.hg-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* METRICAS GLASSMORPHIC */
.hg-ahorros-hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--ahorros-radius-xl);
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.hg-ahorros-hero-card h3 {
  margin: 0 0 22px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ahorros-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.hg-ahorros-hero-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.hg-ahorros-hero-stat > div {
  padding: 16px;
  border-radius: var(--ahorros-radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number { display: block; font-size: 22px; font-weight: 700; color: var(--ahorros-gold-light); }
.stat-label { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.65); margin-top: 3px; }

/* --- SECCIÓN PRODUCTOS INTERNOS --- */
.hg-ahorros-content { padding: 90px 0; }
.hg-section-header { text-align: center; margin-bottom: 60px; }
.hg-section-header h2 { font-size: 32px !important; font-weight: 700 !important; color: var(--ahorros-blue-900) !important; margin-bottom: 14px !important; }
.hg-section-header p { font-size: 16px !important; color: var(--ahorros-text-muted) !important; max-width: 620px; margin: 0 auto !important; }

/* DISEÑO AVANZADO DE TARJETAS (CARDS) */
.hg-ahorros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 35px; }

.hg-ahorros-card {
  background: var(--ahorros-white);
  border: 1px solid var(--ahorros-border);
  border-radius: var(--ahorros-radius-xl);
  padding: 40px;
  box-shadow: var(--ahorros-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--trans-premium);
  position: relative;
  overflow: hidden;
}

.hg-ahorros-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: transparent;
  transition: var(--trans-premium);
}

/* Colores de Enfoque por Categoría */
.hg-ahorros-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(2, 18, 48, 0.08);
}
.hg-ahorros-card:has(.green):hover::before { background: var(--ahorros-green); }
.hg-ahorros-card:has(.blue):hover::before { background: var(--ahorros-blue-primary); }
.hg-ahorros-card:has(.gold):hover::before { background: var(--ahorros-gold); }

.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 26px;
}
.card-icon.green { background: rgba(31, 160, 44, 0.08); color: var(--ahorros-green); }
.card-icon.blue { background: rgba(13, 111, 209, 0.08); color: var(--ahorros-blue-primary); }
.card-icon.gold { background: rgba(215, 166, 47, 0.08); color: var(--ahorros-gold); }

/* BADGES INTERNOS */
.hg-producto-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 16px;
}
.badge-vista { background: rgba(31, 160, 44, 0.08); color: var(--ahorros-green); }
.badge-tasa { background: rgba(13, 111, 209, 0.08); color: var(--ahorros-blue-primary); }
.badge-junior { background: rgba(215, 166, 47, 0.08); color: var(--ahorros-gold); }

.hg-card-body h3 { font-size: 22px !important; font-weight: 700 !important; color: var(--ahorros-blue-900) !important; margin: 0 0 14px 0 !important; }
.hg-card-body p { font-size: 14.5px !important; line-height: 1.65 !important; color: var(--ahorros-text-muted) !important; margin-bottom: 25px !important; }

/* LISTA DE BENEFICIOS */
.hg-benefit-list { list-style: none; padding: 0; margin: 0 0 30px 0; }
.hg-benefit-list li { font-size: 14px; font-weight: 500; color: var(--ahorros-text); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hg-benefit-list li i { color: var(--ahorros-green); font-size: 15px; }

/* CAJA DE REQUISITOS */
.hg-requisitos-box {
  background: var(--ahorros-bg);
  border-radius: var(--ahorros-radius);
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--trans-premium);
}
.hg-requisitos-box h4 { font-size: 14px !important; font-weight: 600 !important; color: var(--ahorros-blue-900) !important; margin: 0 0 10px 0 !important; }
.hg-requisitos-box ul { list-style: none; padding: 0; margin: 0; }
.hg-requisitos-box ul li { font-size: 13px; color: var(--ahorros-text-muted); margin-bottom: 8px; position: relative; padding-left: 14px; }
.hg-requisitos-box ul li::before { content: '•'; position: absolute; left: 0; color: var(--ahorros-gold); font-size: 16px; top: -2px; }
.hg-requisitos-box ul li:last-child { margin-bottom: 0; }

/* BOTÓN PREMIUM DE SOLICITUD */
.hg-card-footer { margin-top: auto; }
.hg-producto-btn {
  display: block; text-align: center; padding: 14px 22px;
  background: linear-gradient(135deg, var(--ahorros-green) 0%, #167820 100%);
  color: var(--ahorros-white) !important; text-decoration: none !important;
  border-radius: var(--ahorros-radius); font-weight: 600; font-size: 14.5px;
  box-shadow: 0 4px 12px rgba(31, 160, 44, 0.2); transition: var(--trans-premium);
}
.hg-producto-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(31, 160, 44, 0.35); filter: brightness(1.06); }

/* RESPONSIVE */
@media (max-width: 991px) {
  .hg-ahorros-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hg-ahorros-hero { padding: 65px 0; }
}
@media (max-width: 480px) {
  .hg-ahorros-hero-stat { grid-template-columns: 1fr; gap: 15px; }
  .hg-ahorros-grid { grid-template-columns: 1fr; }
  .hg-ahorros-card { padding: 30px 25px; }
}