/* ==========================================================================
   FUENTES Y VARIABLES (DISEÑO CORPORATIVO LUCY'S STORE)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght=0,400;0,600;1,400&display=swap');

:root {
    --rosa-principal: #ff8fa3;
    --rosa-claro: #f8d4e4;
    --rosa-hover: #fff0f3;
    --gris-texto: #2d2d2d;
    --gris-suave: #6c757d;
    --gris-borde: #e9ecef;
    --blanco: #ffffff;
    --negro-suave: #212529;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.06);
    --sombra-hover: 0 20px 40px rgba(232, 62, 140, 0.12);
}

/* ==========================================================================
   RESET & REGLAS GENERALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-texto);
    background: linear-gradient(135deg, #ffffff 0%, #fffafc 100%);
    overflow-x: hidden;
}

/* ===== ANUNCIO SUPERIOR ===== */
.top-announcement {
    background: var(--rosa-principal);
    color: var(--blanco);
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ==========================================================================
   ESTRUCTURA DE NAVEGACIÓN Y NAVBAR
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-center {
    text-align: center;
    padding: 15px 0 10px;
}

.nav-center img {
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left a {
    text-decoration: none;
    color: var(--gris-texto);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-left a:hover {
    color: var(--rosa-principal);
}

/* ===== ACCIONES DE USUARIO Y LOGIN ===== */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px;
}

.btn-login {
    background-color: transparent;
    color: var(--negro-suave);
    border: 2px solid var(--negro-suave);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-login i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-login:hover {
    background-color: var(--rosa-principal);
    border-color: var(--rosa-principal);
    color: var(--blanco);
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
    transform: translateY(-2px);
}

.btn-login:hover i {
    transform: scale(1.1);
}

.btn-login:active {
    transform: translateY(0);
}

/* ===== ICONO CARRITO NAVBAR ===== */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--gris-texto);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--rosa-principal);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--rosa-principal);
    color: var(--blanco);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   NUEVO CENTRO DE CONTROL: FILTROS INTEGRADOS (SUCURSAL Y CATEGORÍAS)
   ========================================================================== */
.filter-bar {
    background: var(--blanco);
    padding: 15px 30px;
    border-bottom: 1px solid var(--gris-borde);
    max-width: 1400px;
    margin: 0 auto;
}

.filter-group-selectors {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    flex: 1;
    max-width: 350px;
}

.custom-select-wrapper i {
    position: absolute;
    left: 18px;
    color: var(--rosa-principal);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.modern-select {
    width: 100%;
    padding: 12px 40px 12px 45px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gris-texto);
    background-color: var(--blanco);
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.modern-select:hover, .modern-select:focus {
    background-color: var(--rosa-hover);
    border-color: var(--rosa-principal);
}

.custom-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    color: var(--gris-suave);
    font-size: 0.8rem;
    pointer-events: none;
}

/* ==========================================================================
   SECCIÓN PRINCIPAL Y GRID DE PRODUCTOS
   ========================================================================== */
.store-container {
    padding: 60px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gris-texto);
    letter-spacing: -0.5px;
}

.underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--rosa-principal), var(--rosa-claro));
    margin: 15px auto;
    border-radius: 3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* ===== TARJETA DE PRODUCTO (CARDS) ===== */
.product-card {
    background: var(--blanco);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--sombra);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--sombra-hover);
}

.product-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
    background-color: #fff4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;/*cambio*/
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    bottom: -70px;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    transition: bottom 0.4s ease;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.product-card:hover .image-overlay {
    bottom: 0;
}

@media (max-width: 768px) {

    .image-overlay {
        position: static;
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .quick-add {
        width: 100%;
    }

}

@media (max-width: 480px) {

    .nav-center img {
        height: 38px;
    }

    .nav-center {
        padding: 4px 0;
    }

    .filter-bar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

}
.quick-add {
    background: var(--rosa-principal);
    color: var(--blanco);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-add:hover {
    background: var(--blanco);
    color: var(--rosa-principal);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
}

.product-details {
    padding: 20px;
    text-align: center;
    background: var(--blanco);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category {
    font-size: 0.7rem;
    color: var(--gris-suave);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-details h4 {
    margin: 5px 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gris-texto);
}

.price {
    color: var(--rosa-principal);
    font-weight: 700;
    font-size: 1.3rem;
}

/* ==========================================================================
   SIDEBAR COMPACTO DE CARRITO
   ========================================================================== */
.cart-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 420px;
    height: 100%;
    background: var(--blanco);
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 2px solid var(--gris-borde);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gris-texto);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gris-suave);
    transition: all 0.3s ease;
}

.close-cart:hover {
    color: var(--rosa-principal);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--rosa-hover);
    transform: translateX(-5px);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--gris-texto);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
}

.qty-btn {
    background: var(--rosa-principal);
    color: var(--blanco);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
    background: var(--negro-suave);
}

.item-qty {
    font-weight: 600;
    min-width: 25px;
    text-align: center;
    font-size: 1rem;
}

.item-price {
    color: var(--rosa-principal);
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    transform: scale(1.15);
}

.clear-cart-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #dc3545;
    color: var(--blanco);
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid var(--gris-borde);
    background: #fafafa;
}

.total-cart {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.btn-checkout-total {
    width: 100%;
    background: var(--gris-texto);
    color: var(--blanco);
    border: none;
    padding: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-checkout-total:hover {
    background: var(--rosa-principal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 143, 163, 0.3);
}

/* ==========================================================================
   MODALES (CHECKOUT Y VER PRODUCTO EXCLUSIVO)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active, .modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.checkout-modal, .shop-preview {
    background: var(--blanco);
    width: 100%;
    max-width: 550px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.modal-overlay.active .shop-preview,
.modal-overlay.show .checkout-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 25px;
    background: var(--rosa-principal);
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.close-btn, .close-modal-x {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blanco);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Formulario Interno Modales */
.checkout-body {
    padding: 30px;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gris-texto);
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid var(--gris-borde);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
    border-color: var(--rosa-principal);
    box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.15);
}

.checkout-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px;
}

.checkout-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--gris-suave);
}

.checkout-summary hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid var(--gris-borde);
}

.checkout-summary .total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 20px;
}

/* Botón WhatsApp */
.btn-confirm {
    width: 100%;
    background: #25D366;
    color: var(--blanco);
    border: none;
    padding: 14px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-confirm:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ===== MODAL VISTA PREVIA DETALLADA ===== */
.shop-preview {
    max-width: 850px !important;
    padding: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.preview-img img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    background-color: #fff4f6;
}

.preview-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-category {
    color: var(--rosa-principal);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.preview-price {
    font-size: 2rem;
    color: var(--negro-suave);
    font-weight: 800;
    margin: 15px 0;
}

.btn-add-cart {
    background: var(--negro-suave);
    color: var(--blanco);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-cart:hover {
    background: var(--rosa-principal);
    box-shadow: 0 5px 15px rgba(255, 143, 163, 0.3);
}

/* ==========================================================================
   ANIMACIONES FEEDBACK INTERACTIVO
   ========================================================================== */
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.bump {
    animation: bump 0.3s ease-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIVO
   ========================================================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    .product-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .store-container {
        padding: 40px 20px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-image {
        height: 260px;
    }
    .cart-sidebar {
        width: 100%;
    }
    .image-overlay {
        position: static;
        background: none;
        padding: 10px 0 0;
    }
    .quick-add {
        padding: 10px;
        font-size: 0.75rem;
    }
    .nav-container {
        padding: 10px 20px;
    }
    .nav-center img {
        height: 55px;
    }
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .preview-img img {
        min-height: 300px;
    }
    .filter-group-selectors {
        flex-direction: column;
        gap: 12px;
    }
    .custom-select-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 550px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-image {
        height: 180px;
    }
    .checkout-body {
        padding: 20px;
    }
}

input,
select,
textarea {
    font-size: 16px;
}


/*Para telefonos*/
/* ==========================================
   MOVILES PEQUEÑOS
========================================== */
@media (max-width: 480px) {

    /* GENERAL */
    body {
        font-size: 14px;
    }

    /* ANUNCIO */
    .top-announcement {
        padding: 6px;
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    /* LOGO */
    .nav-center {
        padding: 8px 0;
    }

    .nav-center img {
        height: 45px;
    }

    /* NAVBAR */
    .nav-container {
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .nav-left a {
        font-size: 0.75rem;
    }

    .user-actions {
        gap: 8px;
    }

    .btn-login {
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    /* CARRITO */
    .cart-icon {
        font-size: 1.2rem;
    }

    .cart-count {
        top: -6px;
        right: -8px;
        font-size: 0.6rem;
    }

    /* FILTROS */
    .filter-bar {
        padding: 10px 12px;
    }

    .modern-select {
        font-size: 0.8rem;
        padding: 10px 35px 10px 40px;
    }

    .custom-select-wrapper i {
        left: 14px;
        font-size: 0.85rem;
    }

    /* CONTENEDOR */
    .store-container {
        padding: 25px 12px;
    }

    /* TITULO */
    .section-title {
        margin-bottom: 25px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .underline {
        width: 60px;
    }

    /* PRODUCTOS */
    .products-grid {
        gap: 18px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-image {
        height: 280px;
    }

    .product-details {
        padding: 14px;
    }

    .product-details h4 {
        font-size: 0.95rem;
    }

    .price {
        font-size: 1.1rem;
    }

    .category {
        font-size: 0.65rem;
    }

    .quick-add {
        font-size: 0.7rem;
        padding: 9px;
    }

    /* SIDEBAR */
    .cart-header {
        padding: 18px;
    }

    .cart-footer {
        padding: 18px;
    }

    /* MODALES */
    .modal-overlay {
        padding: 10px;
    }

    .checkout-modal,
    .shop-preview {
        border-radius: 18px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .checkout-body {
        padding: 15px;
    }

    .preview-details {
        padding: 20px;
    }

    .preview-price {
        font-size: 1.5rem;
    }

}