/* --- ESTILOS GLOBALES Y VARIABLES --- */
:root {
    --primary-color: #7044a3;
    --pink-strong: #4c2b70;
    --pink-light: #f4eff9;
    --text-color: #211a27;
    --light-gray: #f8f5fb;
    --border-color: #e9e2f0;
    --white-color: #fff;
    --shadow: rgba(0,0,0,0.08);
}
.product-art { height: 250px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #eee8f5; }
.product-art img { width: 76%; height: 90%; object-fit: contain; margin: 0; filter: drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-lilac { background: #eee5f7; }.tone-rose { background: #f5e9f3; }.tone-night { background: #e5e9f5; }.tone-sun { background: #f6f0df; }.tone-sky { background: #e5eef4; }
.tone-rose img { filter: hue-rotate(36deg) saturate(.8) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-night img { filter: hue-rotate(115deg) saturate(.72) brightness(.82) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-sun img { filter: hue-rotate(190deg) saturate(.76) brightness(1.05) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-sky img { filter: hue-rotate(85deg) saturate(.7) brightness(1.03) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.product-tag { display: inline-block; margin: 10px auto 0; color: var(--primary-color); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.producto h3 { color: var(--text-color); font-size: 1.05rem; margin: 10px 0; }
.text-link { display: block; width: fit-content; margin: 32px auto 0; color: var(--pink-strong); font-weight: 700; text-decoration: none; }

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--white-color);
}
.rest-banner { padding: 46px 24px; text-align: center; border-radius: 20px; background: linear-gradient(135deg, #f2ecf8, #fbf8fd); }
.rest-banner h2 { color: var(--text-color); margin: 8px auto 24px; max-width: 650px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.footer-brand { color: var(--pink-strong); font-weight: 700; }

h1, h2, h3, h4 {
    font-family: "Poppins", sans-serif;
    color: var(--pink-strong);
    text-align: center;
    font-weight: 700;
}
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h1 { font-weight: 600; }

/* --- ENCABEZADO Y NAVEGACIÓN --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px var(--shadow);
}
.logo { display: flex; align-items: center; }
.logo-mark { color: var(--primary-color); font-size: 1.35rem; margin-right: 9px; }
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--text-color); letter-spacing: -.04em; }
.logo-text span { color: var(--primary-color); font-weight: 500; }
.top-bar { overflow: hidden; padding: 8px 0; background: var(--pink-strong); color: white; font-size: .8rem; letter-spacing: .06em; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 24s linear infinite; }
.ticker-track span { padding: 0 4vw; }
.top-bar:hover .ticker-track { animation-play-state: paused; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; justify-content: center; width: 100%; } .ticker-track span:nth-child(2) { display: none; } }
.announcement-banner { max-width: 1160px; margin: 24px auto 0; padding: 18px 24px; display: flex; align-items: flex-start; gap: 18px; border: 1px solid #e3d6ef; border-left: 5px solid var(--primary-color); border-radius: 14px; background: linear-gradient(110deg, #f4eff9, #fbf9fd); }
.announcement-banner[hidden] { display: none; }
.announcement-label { flex: 0 0 auto; padding: 6px 12px; border-radius: 20px; background: var(--pink-strong); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.announcement-copy h2 { margin: 0 0 5px; color: var(--text-color); text-align: left; font-size: 1.2rem; }
.announcement-copy p { margin: 0; color: #62596a; line-height: 1.6; }
@media (max-width: 1200px) { .announcement-banner { margin: 15px; } }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text-color); font-weight: 500; }
.main-nav a.active {
    color: var(--pink-strong);
    font-weight: 700;
}
.header-icons { display: flex; align-items: center; gap: 20px; }
.cart-icon { position: relative; font-size: 1.5rem; cursor: pointer; }
.hamburger { display: none; }

/* --- ESTILOS DEL CONTADOR DEL CARRITO --- */
#cart-counter {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--pink-strong);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    transform: scale(0);
    transition: transform 0.2s ease-out;
}
#cart-counter.show {
    transform: scale(1);
}

/* --- SECCIÓN HERO --- */
.hero {
    display: flex;
    align-items: center;
    padding: 50px 40px;
    background: radial-gradient(circle at 90% 0%, #ebe1f5 0, transparent 36%), var(--light-gray);
    border-radius: 20px;
    margin: 20px;
}
.hero-content {
    flex: 1;
    padding-right: 40px;
}
.hero-content h1 {
    font-size: 3rem;
    text-align: left;
    line-height: 1.13;
    color: var(--text-color);
}
.nuevo-envio { display: inline-block; padding: 7px 12px; border-radius: 20px; color: var(--pink-strong); background: #eee6f5; font-size: .82rem; font-weight: 600; }
.hero-features {
    list-style: none;
    padding: 0;
}
.hero-features i, .trust-badges i { color: var(--primary-color); }
.hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.btn-lookbook {
    padding: 10px 20px;
    background-color: var(--pink-strong);
    color: var(--white-color);
    border: 1px solid var(--pink-strong);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 30px;
}
.subscription-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.subscription-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.subscription-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
.trust-badges span {
    margin-right: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-image { flex: 1; }
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; border-radius: 48% 48% 22px 22px; background: linear-gradient(145deg, #e8ddf3, #faf7fd 70%); }
.hero-art img { width: 76%; max-height: 340px; filter: drop-shadow(0 18px 20px rgba(48, 28, 70, .16)); }
.hero-sparkle { position: absolute; color: var(--primary-color); font-size: 2.2rem; }
.sparkle-one { top: 15%; left: 16%; }.sparkle-two { top: 28%; right: 14%; }
.hero-art-note { position: absolute; right: 12%; bottom: 12%; color: var(--pink-strong); font-size: .9rem; font-style: italic; }
.eyebrow { margin: 0 0 10px; color: var(--primary-color); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-align: center; }
.about { text-align: center; max-width: 820px; }
.about h2, .featured-products h2, .testimonials h2, .contact h2 { color: var(--text-color); }
.about > p:last-child { line-height: 1.8; color: #62596a; }
.catalog-note { margin: -8px 0 28px; color: #786d80; text-align: center; font-size: .85rem; }

/* --- PRODUCTOS --- */
.product-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.producto {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.producto img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    height: 250px;
    object-fit: cover;
}
.producto .price { font-weight: bold; margin-bottom: 1rem; }
.producto .btn-add-to-cart {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: auto;
}
.catalog-empty { width: 100%; padding: 28px; color: #62596a; text-align: center; }
.producto .stock-status { margin: -8px 0 12px; color: #42734a; font-size: .84rem; font-weight: 600; }
.producto .stock-status.is-low { color: #9a6500; }
.producto .stock-status.is-out { color: #a63232; }
.producto .btn-add-to-cart:disabled { background: #8a8490; cursor: not-allowed; }
.whatsapp-float { position: fixed; z-index: 2500; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 30px; background: #20bd5a; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 5px 18px rgba(0,0,0,.2); }
.whatsapp-float i { font-size: 1.35rem; }
.whatsapp-choices { position: fixed; z-index: 2500; right: 22px; bottom: 82px; display: grid; gap: 8px; }
.whatsapp-choices[hidden] { display: none; }
.whatsapp-choices a { padding: 11px 15px; border-radius: 10px; background: #fff; color: #211a27; box-shadow: 0 4px 15px rgba(0,0,0,.16); text-decoration: none; font-size: .9rem; }
.announcement-image { display: block; width: min(100%, 860px); max-height: 420px; margin: 10px auto; border-radius: 12px; object-fit: cover; }

/* --- TESTIMONIOS --- */
.testimonials {
    background-color: var(--pink-light);
    padding-top: 60px;
    padding-bottom: 60px;
}
.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    width: 300px;
}
.testimonial-card p { font-style: italic; margin-bottom: 20px; }
.testimonial-card .author { font-weight: bold; }
.testimonial-card i { color: var(--primary-color); font-size: 1.65rem; }
.testimonial-card h3 { color: var(--text-color); margin-bottom: 8px; }
.testimonial-card p { color: #62596a; line-height: 1.65; font-style: normal; }

/* --- OTRAS SECCIONES --- */
.contact {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.contact-info, .contact-form {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}
.contact-info h2, .contact-form h2 {
    text-align: left;
    margin-bottom: 10px;
}
.contact-details {
    list-style: none;
    padding: 0;
}
.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-info .social-icons a {
    margin-right: 15px;
    color: #000000;
    font-size: 1.5rem;
    text-decoration: none;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e6deef;
    background-color: #fdfbff;
    border-radius: 8px;
    box-sizing: border-box;
}
.form-group textarea {
    height: 150px;
    resize: vertical;
}
.btn-submit {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.instagram-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.instagram-card:hover img { transform: scale(1.05); }

/* --- CARRITO DE COMPRAS --- */
.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 380px;
    height: 100%;
    background: linear-gradient(180deg, var(--white-color) 0%, #f8f4fb 100%);
    box-shadow: -12px 20px 50px rgba(0, 0, 0, 0.12);
    padding: 20px;
    transition: right 0.4s cubic-bezier(.2,.9,.3,1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.cart.open { right: 0; }
.cart-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}
.cart h3 { text-align: left; color: var(--pink-strong); }
.cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-bottom: 15px;
}
.cart-summary {
    flex-shrink: 0;
    border-top: 1px dashed #ccc;
    padding-top: 1rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 10px;
}
.item-info .item-name { font-weight: bold; display: block; }
.item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}
.item-qty {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 4px;
}
.item-remove {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}
.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cart-row.total {
    font-weight: bold;
    font-size: 1.1rem;
}
.shipping-options {
    border: none;
    padding: 0;
    margin: 10px 0;
    font-size: 0.9rem;
}
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
.cart-actions .primary {
    flex: 1;
    background: linear-gradient(90deg, var(--pink-strong), var(--primary-color));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
#clear-cart {
    background-color: #eee;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.wholesale-notice {
    display: none;
    background-color: #fffbe6;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    color: #856404;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wholesale-notice.show {
    display: flex;
}

/* --- MODAL DE CHECKOUT --- */
.checkout-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
}
.checkout-modal-content {
    background-color: #fefefe;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    margin: 0;
}
#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}
#delivery-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}
#delivery-form input, #delivery-form select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.cart-summary select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font: inherit; }
.pickup-city-field[hidden] { display: none; }
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.modal-buttons button {
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}
.modal-buttons .primary {
    background-color: var(--pink-strong);
    color: white;
    border: none;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    background: var(--text-color);
    color: #f7f3fa;
    padding: 25px 0;
    font-size: 0.9rem;
}
.footer-social-icons { margin-bottom: 10px; }
.footer-social-icons a {
    color: #f7f3fa;
    margin: 0 10px;
    font-size: 1.2rem;
}
.footer-brand { color: #f7f3fa; font-weight: 700; }
footer img { width: 150px; height: auto; vertical-align: middle; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 10px 24px 28px; display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 30px; text-align: left; }
.footer-content p { color: #d5cedc; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h2 { margin: 0 0 5px; color: #fff; text-align: left; font-size: 1rem; }
.footer-column a, .footer-column > span { color: #e4dfea; text-decoration: none; line-height: 1.5; }
.footer-column a:hover { color: #c8a9e7; }
.footer-column i { color: #c8a9e7; margin-right: 5px; }
.footer-pending { color: #b9afc3; font-size: .82rem; }
.wompi-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #6c5b79; border-radius: 8px; color: white !important; font-weight: 700; }
.footer-bottom { border-top: 1px solid #413847; padding: 16px 24px 0; }
.footer-bottom p { margin: 8px 0; }
.footer-bottom img { display: inline-block; margin-top: 8px; }
@media (max-width: 700px) {
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}
@media (max-width: 460px) {
    .footer-content { grid-template-columns: 1fr; padding-right: 20px; padding-left: 20px; }
}

/* --- ESTILOS PARA LA NOTIFICACIÓN "TOAST" --- */
.custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    background: linear-gradient(135deg, #fff, #f4eff9);
    color: #555;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Poppins", sans-serif;
    min-width: 280px;
    max-width: 90%;
    z-index: 9999;
    flex-wrap: wrap;
}
.custom-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-icon {
    font-size: 28px;
    line-height: 1;
}
.toast-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}
.toast-title {
    font-weight: 700;
    color: var(--pink-strong);
}
.toast-subtitle { font-size: 13px; }
.toast-close-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    position: absolute;
    top: 10px;
    right: 10px;
}
.toast-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.toast-action-btn, .toast-cancel-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.toast-action-btn {
    background: var(--pink-strong);
    color: white;
}
.toast-cancel-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* =============================================== */
/* --- ESTILOS RESPONSIVE PARA MÓVILES --- */
/* =============================================== */
@media (max-width: 1200px) {
    .container { padding: 30px 15px; }
    h2 { font-size: 2rem; }

    header { padding: 10px 15px; }
    .logo-text { font-size: 1.2rem; }

    .main-nav {
        display: block;
        position: fixed;
        top: 67px;
        left: 0;
        width: 100%;
        height: calc(100vh - 67px);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 25px;
    }
    .main-nav ul a {
        font-size: 1.5rem;
        color: var(--pink-strong);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    .hamburger.open .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger.open .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        flex-direction: column-reverse;
        padding: 30px 15px;
        text-align: center;
        margin: 15px;
    }
    .hero-content { padding: 0; }
    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    .hero-image img { margin-bottom: 20px; }

    .product-grid, .testimonial-grid, .contact { flex-direction: column; }
    .producto, .testimonial-card {
        width: 100%;
        box-sizing: border-box;
    }
    .contact-info h2, .contact-form h2 { text-align: center; }

    .cart {
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(.2,.9,.3,1);
        box-shadow: none;
        border-radius: 0;
    }
    .cart.open { transform: translateY(0); }

    .checkout-modal-content { margin: auto 15px; }

    .custom-toast {
        width: 90%;
        min-width: 0;
        box-sizing: border-box;
    }
    .toast-buttons {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-end;
    }
    .toast-close-btn { top: 5px; right: 5px; }
}
