/* ============================================
   ChecksForLinks - Estilos página de inicio
   ============================================ */

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: var(--accent-hover);
}

/* Disclosure */
.disclosure {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 3rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.disclosure strong {
    color: var(--text-primary);
}

.disclosure a {
    color: var(--accent);
    text-decoration: none;
}

.disclosure a:hover {
    text-decoration: underline;
}

/* Products Section */
.products-section {
    padding: 3rem 0 4rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.products-refresh-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-card);
}

.products-refresh-btn--loading svg {
    animation: products-refresh-spin 0.8s linear infinite;
}

@keyframes products-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.product-image-link {
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.product-image-link:hover {
    opacity: 0.9;
}

.product-image {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.product-link:hover {
    text-decoration: underline;
}

.product-link::after {
    content: '→';
}

/* Estados de carga y error */
.products-loading,
.products-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.products-error {
    color: #f87171;
}

/* Responsive */
@media (max-width: 640px) {
    .hero {
        padding: 2.5rem 0;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}
