:root {
    /* Color Palette - Premium Banquet Elegance */
    --primary: #d4af37;
    /* Gold más brillante y puro */
    --primary-hover: #b5952f;
    --background: #ffffff;
    /* Blanco puro para más limpieza */
    --surface: #fdfdfd;
    --text-main: #1a1a1a;
    /* Negro más intenso */
    --text-muted: #555555;
    --border: #e2e2e2;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects - Menos redondeado, más serio */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 2px;
    --radius-sm: 2px;
    --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.logo i {
    color: var(--primary);
    font-size: 1.3rem;
}

.cart-toggle-explicit {
    background: var(--text-main);
    border: 1px solid var(--text-main);
    cursor: pointer;
    position: relative;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cart-toggle-explicit:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e11d48;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--surface);
}

/* HERO */
.hero {
    margin-top: 70px;
    height: 55vh;
    min-height: 400px;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?q=80&w=2070');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    font-style: italic;
    /* Toque elegante */
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    opacity: 0.9;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

/* HOW IT WORKS BANNER */
.how-it-works-banner {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.step-icon.whatsapp-color {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp);
}

.step p {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.step p strong {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.step-arrow {
    color: var(--border);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .step-arrow {
        display: none;
    }
}

/* CATALOG MAIN */
.catalog-section {
    padding: 60px 24px;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    /* Subrayado en lugar de pastilla */
    padding: 8px 16px;
    border-radius: 0;
    font-family: var(--font-heading);
    /* Tipografía seria para filtros */
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.active {
    background: transparent;
    color: var(--text-main);
    border-bottom-color: var(--primary);
    /* Subrayado dorado */
}

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.product-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    /* Wider aspect ratio for furniture */
    overflow: hidden;
    background: #f0f0f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.product-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-add-explicit {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border-radius: 0;
    /* Bordes cuadrados rectos */
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-explicit:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* CART DRAWER */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--surface);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background);
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.empty-cart-message i {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 16px;
    color: var(--primary);
}

.cart-item {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: auto;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--background);
    border-radius: 4px;
    padding: 4px 12px;
    border: 1px solid var(--border);
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
}

.qty-btn:hover {
    color: var(--text-main);
}

.qty {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: underline;
}

.btn-remove:hover {
    color: #b91c1c;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.cart-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-whatsapp {
    width: 100%;
    padding: 16px;
    background: var(--text-main);
    /* Negro en lugar de verde WA, más elegante */
    color: white;
    border: none;
    border-radius: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp i {
    color: var(--whatsapp);
    /* Icono verde WA contrastante */
}

.btn-whatsapp:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-whatsapp:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* PRODUCT MODAL - REDISEÑO PREMIUM */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    /* Fondo más oscuro para mayor enfoque */
    backdrop-filter: blur(8px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 95%;
    max-width: 1050px;
    /* Modal más ancho para efecto editorial */
    max-height: 90vh;
    /* Limitar altura para móviles */
    height: auto;
    /* Toma el espacio que necesite por defecto */
    background: var(--surface);
    border-radius: var(--radius);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    /* Cuidado con esto, el scroll debe estar DEBAJO */
    display: flex;
    flex-direction: column;
}

.product-modal.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}

.close-modal:hover {
    background: var(--text-main);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    /* Heredar el 90vh */
    height: 100%;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        height: 600px;
        /* Modal más alto en escritorio */
    }
}

.modal-image-container {
    flex: none;
    /* No expandirse, ser bloque de altura fija */
    background: #f0f0f0;
    position: relative;
    height: 180px;
    /* Reducir aún más la imagen en móviles para dar vida al contenido */
    max-width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .modal-image-container {
        height: auto;
        flex: 1.2;
        /* La imagen toma ligeramente más espacio visual en PC */
    }
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    padding: 24px 20px;
    /* Paddings más reducidos en móvil */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* IMPORTANTE: Habilitado scroll vertical aquí */
    -webkit-overflow-scrolling: touch;
    /* Scroll suave en iOS */
    overscroll-behavior: contain;
    /* Evitar hacer scroll background */
}

@media (min-width: 768px) {
    .modal-info {
        padding: 50px 60px;
        /* Respiración lujosa en escritorio */
    }
}

.modal-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.modal-category::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .modal-title {
        font-size: 2.6rem;
    }
}

.modal-price-row {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    /* Oro para precio destacado */
}

.modal-price-suffix {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-description-box {
    margin-bottom: 40px;
    flex: 1;
    background: #fcfcfc;
    border-left: 3px solid var(--primary);
    padding: 24px 30px;
    border-radius: 0 4px 4px 0;
}

.modal-description-box h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.modal-description-box p {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.8;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .modal-actions {
        flex-direction: row;
        /* Alineación horizontal en escritorio */
        align-items: flex-end;
    }
}

.modal-qty-selector {
    margin-bottom: 0;
}

.modal-qty-selector label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.modal-qty-controls {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    height: 52px;
    /* Botones más altos y cómodos */
}

.modal-qty-btn {
    background: transparent;
    border: none;
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s;
}

.modal-qty-btn:hover {
    background: #f5f5f5;
}

.modal-qty-input {
    width: 60px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    -moz-appearance: textfield;
    appearance: textfield;
    color: var(--text-main);
}

.modal-qty-input::-webkit-outer-spin-button,
.modal-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-add-btn {
    flex: 1;
    /* Toma todo el espacio restante en escritorio */
    height: 52px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    background: var(--text-main);
    color: white;
    border: 1px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-add-btn i {
    color: var(--primary);
    /* Icono dorado sobre negro */
    transition: transform 0.3s ease;
}

.modal-add-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.modal-add-btn:hover i {
    color: white;
    transform: rotate(90deg);
}

/* FLOATING CHECKOUT BUTTON */
.floating-checkout {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 48px);
    max-width: 400px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 99;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
}

@media (min-width: 768px) {
    .floating-checkout {
        display: none !important;
    }
}

.floating-checkout.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-checkout:hover {
    background: var(--primary);
}

.floating-checkout-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-checkout-action i {
    font-size: 0.9rem;
    margin-left: 5px;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.toast i {
    color: var(--primary);
}

@keyframes toastIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.hiding {
    animation: toastOut 0.3s forwards;
}

@keyframes toastOut {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Footer Banner */
.footer-demo-banner {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    color: var(--text-muted);
}

.footer-demo-banner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-demo-banner a:hover {
    text-decoration: underline;
}