/* Compu Express — refinamiento visual y correcciones */

:root {
    --brand: #0f72b8;
    --brand-dark: #0a4d7a;
    --brand-light: #38bdf8;
    --brand-rgb: 15, 114, 184;
}

/* Hero principal */
.hero-home {
    min-height: 52vh;
    padding: 72px 24px 56px;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.95);
}

.hero-home h1 {
    margin: 0 0 20px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f8fafc;
    background: none;
    -webkit-text-fill-color: #f8fafc;
    border: none;
    padding: 0;
    cursor: default;
}

.hero-home h1::after,
.hero-home .slice::after {
    display: none !important;
    animation: none !important;
}

.hero-home .hero-copy {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.12rem;
    color: rgba(248, 250, 252, 0.9);
}

/* Navegación */
nav a.nav-active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    border-radius: 10px;
    text-shadow: none;
}

nav a.nav-admin {
    color: #fde68a !important;
}

.auth-user-label {
    align-self: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

/* Footer profesional */
.site-footer {
    margin-top: auto;
    padding: 32px 24px 40px;
    background: rgba(3, 8, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.site-footer-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: #f8fafc;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a {
    color: #94a3b8;
    font-size: 0.92rem;
    text-decoration: none;
    margin: 6px 0 0;
    display: block;
}

.site-footer a:hover {
    color: var(--brand-light);
}

.site-footer-copy {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Catálogo */
.catalog-page .product-grid {
    max-width: 1180px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 16px 40px;
}

.catalog-page .product-card:not(.product-card--catalog) {
    background: linear-gradient(180deg, rgba(12, 29, 59, 0.98) 0%, rgba(6, 13, 31, 0.99) 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28) !important;
}

.catalog-page .product-info h3,
.catalog-page .product-price,
.catalog-page .product-meta,
.catalog-page .product-seller {
    color: #f8fafc !important;
}

.catalog-page .product-stock.low-stock {
    color: #f87171 !important;
    font-weight: 700;
}

.product-emoji {
    font-size: 4rem;
    line-height: 1;
}

.catalog-intro .catalog-title,
.catalog-intro .catalog-tagline {
    text-shadow: none !important;
    animation: none !important;
}

/* Botones de marca */
.btn,
.card-btn,
.hero-actions .btn {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
    color: #ffffff !important;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    box-shadow: 0 12px 32px rgba(var(--brand-rgb), 0.28);
}

.btn::after,
.card-btn::after {
    display: none;
}

.btn:hover,
.card-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    outline: none;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: none;
}

/* Tarjetas de inicio */
.features-row--home {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    max-width: 1100px;
    margin: 28px auto 0 !important;
}

.features-row--home .uiverse-card {
    max-width: none;
    width: 100%;
    min-height: 220px;
    font-family: 'Inter', sans-serif;
}

/* Contacto — colores en modern.css */

/* Carrito */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cart-header .cart-count {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), 0.15);
    color: #7dd3fc;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Formularios login */
.form-btn {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
}

.sign-up-link {
    color: var(--brand) !important;
    text-decoration-color: var(--brand) !important;
}

/* Etiquetas de sección */
.section-label {
    animation: fadeIn 0.6s ease 0.1s backwards;
}

/* Transición suave del header */
header {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Catálogo: barra de búsqueda pulida */
.catalog-header-bar {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.catalog-header-bar:hover {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.category-btn {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-btn:active {
    transform: scale(0.97);
}
