/* NESAGAVIRIA - Portada productos */
/* ================= PRODUCTOS ================= */
/* Fondo alineado con pm-infographic-section (parque.php) */
.products {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 55% at 0% 0%, rgba(0, 196, 138, 0.16), transparent 55%),
        radial-gradient(ellipse 75% 50% at 100% 100%, rgba(96, 187, 149, 0.14), transparent 50%),
        linear-gradient(165deg, #eef9f3 0%, #ffffff 42%, #f0f7f4 100%);
}

.products::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(../../images/sinbolos.png);
    background-repeat: repeat;
    background-size: clamp(180px, 22vw, 280px) auto;
    opacity: 0.045;
    pointer-events: none;
}

.products__glow {
    position: absolute;
    top: 12%;
    right: -8%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 169, 122, 0.2) 0%, transparent 68%);
    pointer-events: none;
    filter: blur(2px);
}

.products-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.products-header {
    max-width: 760px;
    margin: 0 auto 2.75rem;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 169, 122, 0.18);
    box-shadow:
        0 4px 24px rgba(0, 138, 102, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.products-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.25;
    margin: 0 0 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(125deg, #022c22 0%, var(--color-primary-dark) 45%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.products-intro.txt-p {
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    max-width: none;
}

.servicios-destacados {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2.75rem;
}

.servicio-destacado {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 169, 122, 0.14);
    box-shadow:
        0 4px 6px rgba(0, 74, 56, 0.04),
        0 18px 48px rgba(0, 74, 56, 0.1);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.servicio-destacado:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 12px rgba(0, 74, 56, 0.06),
        0 24px 56px rgba(0, 74, 56, 0.14);
    border-color: rgba(0, 169, 122, 0.22);
}

.servicio-destacado img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.servicio-destacado:hover img {
    transform: scale(1.04);
}

.servicio-destacado h3 {
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    margin: 1.25rem 1.25rem 0.75rem;
    font-weight: 600;
}

.servicio-destacado p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 1.25rem 1.5rem;
    text-align: left;
}

a.servicio-destacado--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.servicio-destacado--link:hover {
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .servicio-destacado,
    .servicio-destacado img {
        transition: none;
    }

    .servicio-destacado:hover {
        transform: none;
    }

    .servicio-destacado:hover img {
        transform: none;
    }
}
