/**
 * home-featured.css
 * Estilos para la sección de bienvenida y featured (gratis + packs)
 */

/* ═══════════════════════════════════════════════════════════════
   SECCIÓN DE BIENVENIDA
   ═══════════════════════════════════════════════════════════════ */

.welcome-section {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 800px;
}

/* ═══════════════════════════════════════════════════════════════
   FILA FEATURED (GRATIS + PACKS)
   ═══════════════════════════════════════════════════════════════ */

.home-featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-col {
    min-height: 320px;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTO GRATIS DEL DÍA (Columna Izquierda)
   ═══════════════════════════════════════════════════════════════ */

.free-product-card {
    display: block;
    height: 100%; /* Misma altura que la columna de packs */
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.free-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.free-product-card:hover .free-name,
.free-product-card:hover .free-cta,
.free-product-card:hover .price-old,
.free-product-card:hover .free-countdown {
    color: white !important;
}

.free-product-card:hover .price-free {
    color: #ffd700 !important;
}

.free-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffd700;
    color: #1a1a2e;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Imagen ocupa TODO el espacio */
.free-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.free-image img,
.free-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Muestra la parte superior */
}

/* Info como overlay en la parte inferior */
.free-info {
    position: absolute;
    bottom: 32px; /* Espacio para countdown */
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: rgba(102, 78, 162, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
}

.free-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.free-prices {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    opacity: 0.8;
    color: white;
}

.price-free {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
}

.free-cta {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: background 0.2s;
}

.free-product-card:hover .free-cta {
    background: rgba(255,255,255,0.35);
}

/* Countdown en la parte más baja */
.free-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem;
    background: rgba(60, 40, 100, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.8rem;
    color: white;
    z-index: 5;
}

.free-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ═══════════════════════════════════════════════════════════════
   PACKS Y SUSCRIPCIÓN (Columna Derecha)
   ═══════════════════════════════════════════════════════════════ */

.featured-packs {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.packs-header {
    text-align: center;
    margin-bottom: 1rem;
}

.packs-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.packs-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.packs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    flex: 1;
}

.pack-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s;
}

.pack-mini-card:hover {
    border-color: #667eea;
    background: #f1f5ff;
}

.pack-mini-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.pack-mini-downloads {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.pack-mini-price {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
}

/* Pack Premium destacado */
.pack-mini-card.pack-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.pack-mini-card.pack-premium:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.pack-mini-card.pack-premium .pack-mini-name {
    color: #92400e;
}

.pack-mini-card.pack-premium .pack-mini-price {
    color: #b45309;
}

.packs-more-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.packs-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .home-featured-row {
        grid-template-columns: 1fr;
    }
    
    .featured-col {
        min-height: 280px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .welcome-section {
        padding: 1.5rem 0 1rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .packs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .pack-mini-card {
        padding: 0.6rem;
    }
    
    .pack-mini-name {
        font-size: 0.75rem;
    }
    
    .pack-mini-downloads {
        font-size: 0.65rem;
    }
    
    .pack-mini-price {
        font-size: 0.9rem;
    }
}
