/* ============================================
   MUEBLES VIANNY - PREMIUM THEME
   Tema visual sofisticado para tienda de muebles de lujo
   ============================================ */

/* ============ VARIABLES ============ */
:root {
    --color-deep: #2e5f8e;
    --color-deep-light: #3f7ab5;
    --color-accent: #d4a574;
    --color-accent-light: #dcc8a3;
    --color-luxury: #9c805f;
    --color-white: #ffffff;
    --color-gray-light: #f9f7f4;
    --color-gray-dark: #1f1b0f;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ============ TYPOGRAPHY ============ */
body {
    font-family: var(--font-body);
    color: var(--color-gray-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.875rem;
    line-height: 1.3;
}

/* ============ BUTTONS ============ */
.btn-premium {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep-light) 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(46, 95, 142, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(46, 95, 142, 0.3);
}

.btn-secondary {
    border: 2px solid var(--color-deep);
    color: var(--color-deep);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--color-deep);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 165, 116, 0.2);
}

/* ============ CARDS ============ */
.card-premium {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(46, 95, 142, 0.05);
}

.card-premium:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* ============ PRODUCT CARDS ============ */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
    transition: all 0.4s ease;
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-gray-light);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card__image--secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image--secondary {
    opacity: 1;
}

.product-card:hover .product-card__image img {
    transform: scale(1.1) rotate(1deg);
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.product-card__content {
    padding: 1.5rem;
}

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-deep);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.product-card__description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card__colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-card__color {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card__color:hover {
    border-color: var(--color-deep);
    transform: scale(1.15);
}

.product-card__footer {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(46, 95, 142, 0.1);
}

.product-card__btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep-light) 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><path d="M0,0 L200,200 M200,0 L0,200" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect fill="url(%23pattern)" width="1200" height="600"/></svg>');
    opacity: 0.5;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slide-up 0.8s ease-out;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    animation: slide-up 0.8s ease-out 0.2s both;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slide-up 0.8s ease-out 0.4s both;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ SECTION TITLES ============ */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-deep);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 3px;
}

/* ============ FORMS ============ */
.input-premium {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-premium:focus {
    outline: none;
    border-color: var(--color-deep);
    box-shadow: 0 0 0 3px rgba(46, 95, 142, 0.1);
}

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(to bottom, #f9f7f4, white);
    border-top: 1px solid rgba(46, 95, 142, 0.1);
    padding: 4rem 1.5rem 2rem;
}

.footer__content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__section h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--color-deep);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer__link {
    display: block;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.footer__link:hover {
    color: var(--color-deep);
    margin-left: 0.5rem;
}

.footer__divider {
    border-top: 1px solid rgba(46, 95, 142, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ============ ANIMATIONS ============ */
.fade-in {
    animation: fade-in 0.8s ease-out;
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============ SCROLL REVEAL ============ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 400px;
        padding: 4rem 1.5rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============ LOADING SPINNER ============ */
.spinner {
    border: 4px solid rgba(46, 95, 142, 0.1);
    border-top-color: var(--color-deep);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ TRANSITIONS ============ */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ UTILITY CLASSES ============ */
.text-gradient {
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-luxury {
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-accent) 100%);
}

.shadow-luxury {
    box-shadow: 0 10px 40px rgba(46, 95, 142, 0.15);
}
