/* Clear & Elegant Shop CSS */
:root {
    --bg-color: #FCF8F8; /* Soft blush white */
    --card-bg: #FFFFFF;
    --primary: #D4A5A5; /* Lunea Blush Pink */
    --primary-dark: #B88A8A;
    --text-main: #4A4A4A;
    --text-muted: #8E8E8E;
    --border-color: #F0E6E6;
    --shadow: 0 8px 24px rgba(212, 165, 165, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(212, 165, 165, 0.4);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-main);
}

/* SEARCH */
.search-container {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 50px;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.search-container:focus-within {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(212, 165, 165, 0.1);
}

.search-icon {
    color: var(--primary-dark);
    margin-right: 10px;
}

.search-container input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
}

.contact-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary);
}

/* HERO SECTION */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 40px auto;
    padding: 60px 40px;
    gap: 40px;
    background: linear-gradient(-45deg, #ffffff, #fdf8f8, #fbf4f4, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(212, 165, 165, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(212, 165, 165, 0.15);
    filter: blur(80px);
    z-index: 0;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(80px);
    z-index: 0;
    animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

.hero-content, .hero-image {
    position: relative;
    z-index: 1; /* Float above the glowing background */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(45deg, var(--text-main), #a69b9b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-primary-hero {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.4);
}

.btn-primary-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px 20px 100px 20px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        margin-top: 30px;
    }
    .hero-title {
        font-size: 3rem;
    }
}



/* MAIN CONTENT */
.main-content {
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 30px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* CATEGORIES */
.categories-section {
    margin-bottom: 40px;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.cat-chip {
    padding: 10px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
    user-select: none;
}

.cat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.cat-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.4);
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card-img-wrap {
    height: 240px;
    background: #ffffff;
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--bg-color);
}

.card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bg-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    z-index: 10;
    pointer-events: none;
}

.badge.agotado {
    background: #ffeaea;
    color: #e74c3c;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    color: var(--primary-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-main);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 20px;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: var(--primary-dark);
}

.btn-buy.disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* CONTACT CTA SECTION */
.contact-cta {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-color), #f9efef);
    display: flex;
    justify-content: center;
}

.cta-wrapper {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(212, 165, 165, 0.2);
    border: 1px solid rgba(212, 165, 165, 0.4);
}

.cta-image {
    flex: 1;
    min-height: 400px;
    position: relative;
    background: #fff;
}

.cta-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.cta-content-right {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.instagram-large-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 40px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(212, 165, 165, 0.4);
}

.ig-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/e/e7/Instagram_logo_2016.svg') no-repeat center center / contain;
    filter: brightness(0) invert(1);
}

.instagram-large-btn:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
    box-shadow: 0 15px 35px rgba(212, 165, 165, 0.6);
}

.footer-elegant {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .cta-wrapper {
        flex-direction: column;
    }
    .cta-image {
        min-height: 300px;
    }
    .cta-content-right {
        padding: 50px 30px;
        align-items: center;
        text-align: center;
    }
    .cta-title {
        font-size: 2.8rem;
    }
}

/* SYSTEM MSG */
.status-msg {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* --- RESPONSIVIDAD MÓVIL (MOBILE RESPONSIVE) --- */
@media (max-width: 768px) {
    /* Header Wrap */
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 20px;
    }
    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    .contact-link {
        display: none;
    }
    .logo {
        justify-content: center;
        width: 100%;
    }
    .logo-text {
        font-size: 2.5rem;
    }
    .logo-img {
        width: 55px;
        height: 55px;
    }

    /* Main Content */
    .main-content {
        padding: 20px 15px;
    }
    .page-title h1 {
        font-size: 2.2rem;
    }
    .page-title p {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 0 20px;
        margin: 20px auto;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Categories Wrap */
    .cat-chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Teléfonos pequeños */
@media (max-width: 500px) {
    /* 2 Columns Product Layout for mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .card-img-wrap {
        height: 160px;
        padding: 10px;
    }
    .card-body {
        padding: 12px;
    }
    .card-category {
        font-size: 0.65rem;
        margin-bottom: 5px;
    }
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    .card-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .btn-buy {
        font-size: 0.8rem;
        padding: 8px 5px;
        gap: 5px;
    }
    .btn-buy svg {
        width: 16px;
        height: 16px;
        margin-right: 0px !important;
    }
    
    /* Hero tweaks */
    .hero-image {
        margin-top: 20px;
    }
    .hero-image img {
        border-radius: 20px 20px 60px 20px;
    }
    .hero-title {
        font-size: 2.2rem;
    }

    /* CTA Section tweaks */
    .cta-content-right {
        padding: 40px 20px;
    }
    .cta-title {
        font-size: 2rem;
    }
    .instagram-large-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}
