/* ==========================================
   LifeSmart - Página de Familias de Productos
   ========================================== */

/* ==========================================
   Hero Section
   ========================================== */
.families-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 100px 80px;
    background-color: #FAFAFA;
    margin-top: 80px;
    text-align: center;
}

.families-hero .hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #0D6E6E;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.families-hero .hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

.families-hero .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

/* ==========================================
   Families Section
   ========================================== */
.families-section {
    padding: 80px;
    background-color: #FFFFFF;
}

.families-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ==========================================
   Family Card
   ========================================== */
.family-card {
    width: 400px;
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E5E5E5;
    overflow: hidden;
    transition: all 0.3s ease;
}

.family-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.family-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.family-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.family-card:hover .family-card-image img {
    transform: scale(1.05);
}

.family-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.family-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.family-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.family-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

.family-card-btn:hover {
    background-color: #EEE;
    color: #333;
    transform: translateY(-2px);
}

/* ==========================================
   Responsive - Tablet (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .families-hero {
        padding: 80px 40px;
    }

    .families-hero .hero-title {
        font-size: 40px;
    }

    .families-hero .hero-subtitle {
        font-size: 18px;
    }

    .families-section {
        padding: 60px 40px;
    }

    .families-grid {
        gap: 24px;
    }

    .family-card {
        width: calc(50% - 12px);
        min-width: 320px;
    }
}

/* ==========================================
   Responsive - Mobile (max 768px)
   ========================================== */
@media (max-width: 768px) {
    .families-hero {
        padding: 60px 24px;
        margin-top: 70px;
    }

    .families-hero .hero-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .families-hero .hero-title {
        font-size: 32px;
    }

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

    .families-section {
        padding: 48px 24px;
    }

    .families-grid {
        flex-direction: column;
        align-items: center;
    }

    .family-card {
        width: 100%;
        max-width: 400px;
    }

    .family-card-image {
        height: 220px;
    }

    .family-card-content {
        padding: 24px;
    }

    .family-card-title {
        font-size: 22px;
    }

    .family-card-desc {
        font-size: 14px;
    }
}

/* ==========================================
   Responsive - Small Mobile (max 480px)
   ========================================== */
@media (max-width: 480px) {
    .families-hero {
        padding: 48px 16px;
    }

    .families-hero .hero-title {
        font-size: 28px;
    }

    .families-hero .hero-subtitle {
        font-size: 15px;
    }

    .families-section {
        padding: 40px 16px;
    }

    .family-card-image {
        height: 200px;
    }

    .family-card-content {
        padding: 20px;
    }

    .family-card-title {
        font-size: 20px;
    }

    .family-card-btn {
        width: 100%;
    }
}

/* ==========================================
   Animations
   ========================================== */
.family-card {
    opacity: 0;
    transform: translateY(30px);
}

.family-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.family-card.animate-in:hover {
    transform: translateY(-8px);
}
