/* ============================================================
   PRODUCTOS / MICROCREDITOS - CREDI HERMES PREMIUM STYLE
   ============================================================ */

:root {
    --primary-color: #0d4b33;
    --primary-dark: #062117;
    --primary-light: #136344;
    --accent-color: #f4c542;
    --accent-hover: #e0b232;
    --bg-light: #f8faf9;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(13, 75, 51, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hg-productos-page {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================================
   HERO PRINCIPAL DE ALTO IMPACTO
   ============================================================ */
.hg-productos-hero {
    position: relative;
    padding: 100px 0 90px;
    background: radial-gradient(circle at 15% 15%, rgba(244, 197, 66, 0.15), transparent 35%), radial-gradient(circle at 85% 85%, rgba(19, 99, 68, 0.4), transparent 40%), linear-gradient(135deg, #02235c 0%, #110da3 60%, #0a113a 100%);
    color: #ffffff;
    overflow: hidden;
}
/* Patrón de líneas decorativo moderno en CSS */
.hg-productos-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hg-productos-hero-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hg-productos-hero-info {
    flex: 1;
    max-width: 620px;
}

.hg-productos-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hg-productos-hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hg-productos-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-weight: 300;
}

.hg-productos-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hg-productos-point {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 75, 51, 0.6);
    border-left: 3px solid var(--accent-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.hg-productos-point i {
    color: var(--accent-color);
    font-size: 16px;
}

.hg-productos-hero-img {
    flex: 0 1 400px;
    position: relative;
}

.hg-productos-hero-img img {
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================================
   SECCIÓN DE PRODUCTOS & GRILLA
   ============================================================ */
.hg-productos-section {
    padding: 80px 0;
}

.hg-productos-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.hg-productos-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.hg-productos-title p {
    font-size: 15px;
    color: var(--text-muted);
}

.hg-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ============================================================
   PRODUCT CARDS (TARJETAS PREMIUM)
   ============================================================ */
.hg-producto-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(13, 75, 51, 0.05);
    display: flex;
    flex-direction: column;
}

.hg-producto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 75, 51, 0.15);
}

.hg-producto-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hg-producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hg-producto-card:hover .hg-producto-img img {
    transform: scale(1.06);
}

.hg-producto-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hg-producto-tag.badge-gold { background: #b8860b; }
.hg-producto-tag.badge-alert { background: #d946ef; }
.hg-producto-tag.badge-eco { background: #16a34a; }

.hg-producto-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hg-card-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 18px 0;
}

/* Listas técnicas estructuradas sin BR */
.hg-producto-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.hg-producto-specs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.hg-producto-specs li:last-child {
    border-bottom: none;
}

.hg-producto-specs li i {
    color: var(--primary-color);
    font-size: 15px;
    margin-top: 3px;
    width: 18px;
    text-align: center;
}

.hg-producto-specs li span {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 90px;
}

.hg-spec-highlight {
    background: #f1f5f9;
    padding: 10px 12px !important;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 400 !important;
    border-bottom: none !important;
}

/* Botones de acción */
.hg-producto-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.hg-producto-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
    text-align: center;
}

.hg-producto-btn:hover {
    background: var(--primary-light);
}

.hg-producto-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color);
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
}

.hg-producto-btn-secondary:hover {
    background: rgba(13, 75, 51, 0.05);
}

/* ============================================================
   RESPONSIVE DESIGN (RESPONSIVO FLUIDO)
   ============================================================ */
@media (max-width: 991px) {
    .hg-productos-hero {
        padding: 70px 0;
    }
    .hg-productos-hero h1 {
        font-size: 34px;
    }
    .hg-productos-hero-box {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }
    .hg-productos-hero-info {
        max-width: 100%;
    }
    .hg-productos-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hg-productos-points {
        justify-content: center;
    }
    .hg-productos-hero-img img {
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    .hg-productos-section {
        padding: 50px 0;
    }
    .hg-productos-title {
        margin-bottom: 40px;
    }
    .hg-productos-title h2 {
        font-size: 26px;
    }
    .hg-productos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hg-producto-body {
        padding: 20px;
    }
}