:root {
    --primary: #ee6a3e;
    --primary-dark: #d55a32;
    --secondary: #0a1d37;
    --bg: #f8fafa;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-light: #666;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --border: #eef2f5;
    --success: #27ae60;
    --error: #e74c3c;
    --glass: rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

body { background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* TICKER BAR */
.ticker-bar {
    background: var(--secondary);
    color: white;
    padding: 10px 5%;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    font-style: italic;
    transition: opacity 1s ease-in-out;
    border-bottom: 3px solid var(--primary);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOADING SCREEN */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: 0.5s ease;
}

#loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loader-content { text-align: center; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 2rem; letter-spacing: 4px; }
.progress-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 10px; margin: 20px auto; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: var(--primary); animation: load 2s infinite ease-in-out; }

@keyframes load { 0% { width: 0%; } 50% { width: 100%; } 100% { width: 0%; } }

/* NAVBAR PREMIUM */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-brand { cursor: pointer; display: flex; flex-direction: column; line-height: 1.1; }
.brand-top { font-size: 0.7rem; letter-spacing: 3px; color: var(--primary); font-weight: 700; }
.brand-main { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--secondary); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.cart-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(10, 29, 55, 0.2);
}
.cart-btn ion-icon { font-size: 1.6rem; }
.cart-btn:hover { background: var(--primary); transform: scale(1.1); box-shadow: 0 8px 25px rgba(238, 106, 62, 0.3); }
#cart-count { background: var(--primary); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) { .cart-sidebar { width: 100%; right: -100%; } }

.cart-sidebar.active { right: 0; }
.cart-header { padding: 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.cart-header button { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--secondary); }

.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #f0f0f0; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.cart-item-info p { color: var(--primary); font-weight: 700; }
.cart-remove-btn { background: none; border: none; color: #ccc; font-size: 1.4rem; cursor: pointer; transition: 0.3s; }
.cart-remove-btn:hover { color: var(--error); }

.cart-footer { padding: 2rem; background: #fafafa; }
.subtotal { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

/* BOTONES */
.btn {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(238, 106, 62, 0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(238, 106, 62, 0.3); }

.btn-secondary { background: #eef2f5; color: var(--secondary); }
.btn-secondary:hover { background: #e2e8ed; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 0.75rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* CATALOGO HEADER & SEARCH */
.catalog-header { text-align: center; padding: 6rem 1rem 3rem; background: linear-gradient(180deg, #fff 0%, #f8fafa 100%); }
.catalog-header p { text-transform: uppercase; letter-spacing: 4px; color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.catalog-header h1 { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--secondary); line-height: 1.1; margin-bottom: 3rem; }

.search-box {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 1rem;
    border-right: 1px solid var(--border);
}

.search-input-wrapper ion-icon { font-size: 1.4rem; color: var(--text-light); }
.search-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
    font-family: 'Outfit', sans-serif;
}

.search-box select {
    border: none;
    outline: none;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    padding: 0 1rem;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 600px) {
    .search-box { flex-direction: column; }
    .search-input-wrapper { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
}

@media (max-width: 768px) { .catalog-header h1 { font-size: 2.5rem; } }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}
.product-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.product-image { height: 350px; background: #fdfdfd; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .product-image img { transform: scale(1.1); }

.product-info { padding: 1.8rem; }
.product-info .brand { font-size: 0.7rem; text-transform: uppercase; color: var(--primary); font-weight: 800; letter-spacing: 2px; }
.product-info h3 { margin: 0.5rem 0; font-size: 1.3rem; color: var(--secondary); font-family: 'Outfit', sans-serif; }
.product-info .price { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 1.5rem; }

/* PRODUCT DETAIL */
.product-detail-container { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.btn-back-floating { border: none; background: white; padding: 12px 25px; border-radius: 50px; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--secondary); cursor: pointer; box-shadow: var(--shadow); margin-bottom: 2rem; transition: 0.3s; font-family: 'Outfit', sans-serif; }
.btn-back-floating:hover { background: var(--secondary); color: white; transform: translateX(-5px); }

.product-detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; background: white; padding: 3rem; border-radius: 40px; box-shadow: var(--shadow); align-items: flex-start; }
@media (max-width: 992px) { .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; } }

.product-gallery .main-img { width: 100%; border-radius: 25px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.product-info-detailed .detail-brand { text-transform: uppercase; letter-spacing: 2px; color: var(--primary); font-weight: 700; font-size: 0.8rem; }
.product-info-detailed h1 { font-family: 'Playfair Display', serif; font-size: 3rem; margin: 0.5rem 0 1.5rem; color: var(--secondary); line-height: 1.2; }
.detail-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 2rem; }

.detailed-desc { background: #fdfdfd; padding: 1.8rem; border-radius: 20px; border: 1px solid #f0f0f0; margin-bottom: 2rem; }
.detailed-desc p { font-size: 1rem; line-height: 1.7; color: #555; }
.detail-content h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin: 0.5rem 0; color: var(--secondary); }
.detail-price { font-size: 2.8rem; font-weight: 700; color: var(--primary); margin: 1.5rem 0; }
.detail-description { color: var(--text-light); margin-bottom: 2.5rem; font-size: 1.15rem; line-height: 1.8; }

.specs { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0; margin-bottom: 2.5rem; }
.spec { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1rem; }
.spec strong { color: var(--secondary); }

.persuasion-box { background: #fff8f5; padding: 2rem; border-radius: 20px; display: flex; gap: 20px; align-items: center; border-left: 5px solid var(--primary); margin-top: 3rem; }
.persuasion-box ion-icon { font-size: 2.5rem; color: var(--primary); }
.persuasion-box p { font-style: italic; color: #88452e; font-size: 1rem; line-height: 1.5; }

/* ADMIN */
.admin-dashboard { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
@media (max-width: 768px) { .admin-dashboard { grid-template-columns: 1fr; } }

.admin-sidebar { background: var(--secondary); color: white; padding: 3rem 2rem; }
.sidebar-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 2.5rem; text-align: center; color: var(--primary); font-weight: 700; letter-spacing: 2px; }
.admin-sidebar button { width: 100%; background: none; border: none; color: rgba(255,255,255,0.6); text-align: left; padding: 15px; font-size: 1rem; cursor: pointer; border-radius: 12px; margin-bottom: 0.8rem; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.admin-sidebar button ion-icon { font-size: 1.3rem; }
.admin-sidebar button:hover, .admin-sidebar button.active { background: rgba(255,255,255,0.1); color: white; }

.admin-main { padding: 4rem; background: #fdfdfd; }
.admin-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.status-badge { display: inline-block; padding: 6px 15px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; color: white; background: #95a5a6; margin-left: 15px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; }
.stat { background: white; padding: 2.5rem; border-radius: 25px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border); transition: 0.3s; }
.stat:hover { transform: translateY(-5px); border-color: var(--primary); }
.stat h4 { color: var(--text-light); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1rem; }
.stat p { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }

/* TABLES ADMIN */
.table-container { background: white; padding: 2rem; border-radius: 25px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-top: 2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1.2rem; border-bottom: 2px solid var(--border); color: var(--text-light); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }
td { padding: 1.2rem; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* ORDER DETAILS */
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; font-size: 0.9rem; border-top: 1px dashed var(--border); padding-top: 1rem; }
.status-nuevo { background: #f1c40f; color: white; }
.status-contactado { background: #3498db; color: white; }
.status-finalizado { background: #27ae60; color: white; }
.status-entregado { background: #2ecc71; color: white; }

.order-items-list { margin-top: 1rem; background: #f9f9f9; padding: 1rem; border-radius: 12px; }
.order-items-list h5 { margin-bottom: 0.5rem; color: var(--text-light); font-size: 0.75rem; text-transform: uppercase; }
.order-items-list ul { list-style: none; }
.order-items-list li { display: flex; justify-content: space-between; margin-bottom: 0.3rem; border-bottom: 1px solid #eee; padding-bottom: 0.3rem; }
.order-items-list li:last-child { border: none; }

/* CHECKOUT PAGE */
.checkout-page { padding: 4rem 1.5rem; max-width: 1000px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; background: white; padding: 3rem; border-radius: 40px; box-shadow: var(--shadow); }

@media (max-width: 850px) { .checkout-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; } }

.checkout-summary-section h2, .checkout-form-section h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 2rem; color: var(--secondary); }
.checkout-summary-item { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
.checkout-summary-item strong { color: var(--primary); }
.checkout-total { margin-top: 2rem; padding: 1.5rem; background: #fafafa; border-radius: 15px; font-size: 1.5rem; font-weight: 800; text-align: center; color: var(--secondary); }

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 29, 55, 0.4);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    width: 100%;
    max-width: 550px;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { margin-bottom: 2.5rem; text-align: center; }
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; }

/* FORMS */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.85rem; color: var(--secondary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fdfdfd;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(238, 106, 62, 0.1); }

/* TOASTS */
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--secondary); color: white; padding: 18px 30px; border-radius: 15px; display: flex; align-items: center; gap: 12px; z-index: 4000; box-shadow: 0 15px 30px rgba(0,0,0,0.2); transform: translateX(120%); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.toast.active { transform: translateX(0); }
.toast.error { background: var(--error); }
.toast ion-icon { font-size: 1.5rem; }

/* MOBILE MENU */
.mobile-toggle { display: none; font-size: 2.2rem; cursor: pointer; color: var(--secondary); }
.mobile-menu { position: fixed; top: 75px; left: 0; width: 100%; height: 0; background: white; overflow: hidden; transition: 0.4s; display: flex; flex-direction: column; align-items: center; gap: 2rem; padding-top: 0; z-index: 900; }
.mobile-menu.active { height: calc(100vh - 75px); padding-top: 5rem; }
.mobile-menu a { text-decoration: none; color: var(--secondary); font-size: 1.5rem; font-family: 'Playfair Display', serif; font-weight: 700; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
}


/* HERO BANNERS SLIDER */
.hero-banners {
    position: relative;
    width: 100%;
    height: 500px;
    background: #eee;
    overflow: hidden;
    margin-bottom: 2rem;
}

@media (max-width: 992px) { .hero-banners { height: 450px; } }
@media (max-width: 600px) { .hero-banners { height: 400px; } }

.banners-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.banner-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.banner-slide.active { opacity: 1; z-index: 2; }

.banners-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banners-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.banners-dots span.active {
    background: var(--primary);
    transform: scale(1.3);
    border-color: white;
}

.banners-dots span:hover { background: rgba(255,255,255,0.8); }
@media (max-width: 1100px) {
    .alerts-grid { grid-template-columns: 1fr !important; }
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 900;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float { width: 55px; height: 55px; font-size: 1.8rem; bottom: 20px; left: 20px; }
}
