/* Minimal overrides when using Tailwind utilities
   This file keeps the font imports and a small top accent.
   The bulk of layout/styling is done with Tailwind classes. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

html,body{height:100%;}
body{
    font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background:#F0F8FF;
    color:#263238;
}

/* Minimal CSS variables used by some legacy rules */
:root{
    --white:#ffffff;
    --border: rgba(0,0,0,0.06);
    --primary: #2E5EAA;
    --accent: #87CEEB;
    --accent-bright: #42A5F5;
    --text-light: #5A6C7D;
    --dark:#1B3A5F;
}

/* Top accent bar kept as a small visual touch */
.top-accent{height:6px;background:linear-gradient(90deg,#2E5EAA,#42A5F5,#87CEEB);}

/* Grid fallback so cards are visible even if Tailwind classes are missing */
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;margin-top:2rem;padding:0 0.5rem}

/* Basic product card visible by default (we removed complex animations to simplify) */
.product-card{opacity:1;background:var(--white);border-radius:8px;overflow:hidden;transition:transform .28s ease,box-shadow .28s ease;border:1px solid var(--border);position:relative}
.product-card.exclusive{box-shadow:0 6px 20px rgba(244,197,66,0.12);}

/* Helpers */
.product-title{font-family:'Cormorant Garamond',serif}

/* Ensure product image area has a reasonable height on all viewports */
.product-image{width:100%;height:16rem;background:linear-gradient(135deg,#E3F2FD 0%,#BBDEFB 100%);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-bottom:1px solid var(--border)}
@media(min-width:768px){.product-image{height:22.5rem}}

/* Force product titles to be blue */
.product-title { color: #1e40af !important; }


.badge-exclusive {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(90deg, #d4af37, #f7d07a);
    color: #111;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.18);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2E5EAA 0%, #87CEEB 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.product-card:nth-child(odd) { animation-delay: 0.1s; }
.product-card:nth-child(even) { animation-delay: 0.3s; }

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(46, 94, 170, 0.25),
        0 0 0 1px var(--accent-bright),
        0 0 30px rgba(135, 206, 235, 0.3);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 0.03;
}

/* Product Image */
.product-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.8s ease;
}

.product-card:hover .product-image::after {
    left: 150%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) saturate(1);
}

.product-card:hover .product-image img {
    transform: scale(1.15);
    filter: brightness(1.05) saturate(1.1);
}

/* Placeholder para productos sin imagen */
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    opacity: 0.25;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.3);
}

.product-card:hover .product-image-placeholder {
    transform: scale(1.2) rotate(-5deg);
    opacity: 0.35;
}

/* Product Info */
.product-info {
    padding: 3rem;
    position: relative;
    z-index: 1;
    background: var(--white);
    transition: background 0.5s ease;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover .product-title {
    color: var(--primary);
    transform: translateX(5px);
}

.product-description {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.product-card:hover .product-description {
    color: var(--text);
}

/* Divider animado */
.divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem 0;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.5s ease;
}

.product-card:hover .divider {
    width: 100px;
}

.product-card:hover .divider::after {
    left: 0;
}

/* Price container con efecto */
.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-price-container {
    transform: scale(1.05);
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.product-price-currency {
    font-size: 2rem;
    vertical-align: super;
    margin-right: 0.2rem;
}

.product-price-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón interactivo "Ver más" */
.product-action {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.product-card:hover .product-action {
    opacity: 1;
    transform: translateY(0);
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-bright));
    border: none;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 94, 170, 0.3);
}

.btn-view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-view-more:hover {
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(46, 94, 170, 0.5);
}

.btn-view-more:hover::before {
    left: 0;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-view-more:hover .btn-arrow {
    transform: translateX(5px);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 2rem;
    margin-top: 6rem;
    border-top: 3px solid var(--accent);
}

footer p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Detalle adicional - línea decorativa superior */
.top-accent {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #2E5EAA, #42A5F5, #87CEEB, #64B5F6, #2E5EAA);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Contador de productos */
.product-count {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.product-count p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 1px;
}

.product-count span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        gap: 3rem;
    }


/* Rounded font helper */
.font-rounded { font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }


/* Floating controls (right side) */
.floating-controls { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border-radius: 12px; box-shadow: 0 8px 30px rgba(2,6,23,0.12); padding: 8px; z-index: 60; display:flex;flex-direction:column; gap:8px; align-items:stretch; }
.floating-controls .btn { background: #f1f5f9; border-radius:8px; padding:6px 10px; cursor:pointer; border:none; font-weight:600; display:block; min-width:44px; text-align:center }
.floating-controls .small { padding:6px 8px }
.floating-controls .row { display:flex; flex-direction:column; gap:8px; align-items:center }

    .product-image {
        height: 400px;
    }

    .product-info {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-image {
        height: 380px;
    }

    .product-info {
        padding: 2rem;
    }

    .product-title {
        font-size: 1.9rem;
    }

    .product-price {
        font-size: 2.5rem;
    }

    .catalog-intro h2 {
        font-size: 2.2rem;
    }

    .container {
        padding: 3rem 1.5rem;
    }

    /* Botón siempre visible en móvil */
    .product-action {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-image {
        height: 320px;
    }

    .product-info {
        padding: 1.5rem;
    }
}

/* Efecto de parallax sutil en scroll */
@media (prefers-reduced-motion: no-preference) {
    .product-card {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}