/* ==========================================================================
   Adhequim Familias de Productos Addon Stylesheet
   ========================================================================== */

/* Contenedor Principal */
.adhequim-fp-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Cabecera de la Sección */
.adhequim-fp-header-block {
    text-align: center;
    margin-bottom: 48px;
}

.adhequim-fp-title {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 14px 0;
    text-wrap: balance;
    letter-spacing: -0.015em;
}

.adhequim-fp-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15.5px;
    color: #64748b;
    margin: 0;
    text-wrap: balance;
}

/* Cuadrícula Grid (4 Columnas) */
.adhequim-fp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Tarjeta de Familia */
.adhequim-fp-card {
    position: relative;
    background-color: #f8fafc;
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Hover de Tarjeta (Elevación y Fondo Celeste) */
.adhequim-fp-card:hover {
    transform: translateY(-4px);
    background-color: #eff6ff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.05);
}

/* Burbuja de Icono circular */
.adhequim-fp-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.adhequim-fp-card-icon i,
.adhequim-fp-card-icon svg {
    color: #2563eb;
    fill: #2563eb;
    font-size: 16px;
    width: 1em;
    height: 1em;
}

/* Título de la Familia */
.adhequim-fp-card-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.adhequim-fp-card-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.525;
    color: #64748b;
    margin: -8px 0 20px 0;
    text-wrap: balance;
}


/* Enlace inferior "Ver productos >" */
.adhequim-fp-card-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.adhequim-fp-card-link:hover {
    color: #1d4ed8;
}

.adhequim-fp-link-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.adhequim-fp-card-link:hover .adhequim-fp-link-arrow {
    transform: translateX(3px);
}

/* Botón de Llamada (CTA) Inferior */
.adhequim-fp-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.adhequim-fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: #040814;
    border: 1px solid #040814;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(4, 8, 20, 0.12);
    cursor: pointer;
}

.adhequim-fp-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.adhequim-fp-btn-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.adhequim-fp-btn:hover .adhequim-fp-btn-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .adhequim-fp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .adhequim-fp-title {
        font-size: 32px;
    }
}

@media (max-width: 520px) {
    .adhequim-fp-grid {
        grid-template-columns: 1fr;
    }
    
    .adhequim-fp-title {
        font-size: 26px;
    }
    
    .adhequim-fp-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .adhequim-fp-wrapper {
        padding: 50px 16px;
    }
    
    .adhequim-fp-cta-wrapper {
        margin-top: 36px;
    }
    
    .adhequim-fp-btn {
        width: 100%;
    }
}
