:root {
    --bg-dark: #070707;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --text-primary: #f0f0f0;
    --text-secondary: #9e9e9e;
    --accent: #d4d4d4;
    --accent-glow: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --chrome-gradient: linear-gradient(135deg, #eee, #888, #ccc, #555);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

/* --- SHIPPING BAR --- */
.shipping-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #030303; /* Fondo negro profundo */
    border-bottom: 1px solid var(--accent);
    text-align: center;
    padding: 0.6rem 20px;
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: clamp(0.65rem, 2.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/black-mamba.png');
    opacity: 0.3;
    z-index: 1;
}

.navbar {
    z-index: 10;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: clamp(55px, 6vw, 90px);
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    transition: var(--transition);
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transform: scale(1.02);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.admin-logo {
    margin: 0 auto;
    height: clamp(70px, 8vw, 110px);
    margin-bottom: 1rem;
}

.accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.btn-nav {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(200,200,200,0.2));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

.catalog-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.separator {
    height: 2px;
    width: 60px;
    background: var(--accent);
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* --- FILTERS BAR --- */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-type-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: rgba(255,255,255,0.5);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    font-weight: 600;
}

.filter-style-wrapper {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--accent);
}

.filter-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #111;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1.5rem;
}

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

.product-price-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.size-selector {
    width: 100%;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    margin-top: auto;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.size-selector:hover, .size-selector:focus {
    border-color: var(--accent);
}

.btn-add {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-add:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-primary);
}

.cart-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    transition: var(--transition);
}

.cart-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--bg-card-hover);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

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

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

.cart-header h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: rgba(255,255,255,0.1);
}

.cart-item-img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 4px 0;
}

.cart-item-price {
    font-weight: 600;
    color: var(--accent);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    margin-top: 5px;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.5);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.btn-whatsapp:hover:not(:disabled) {
    background: #128C7E;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .catalog-section { padding: 4rem 20px; }
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .form-row { flex-direction: column; }
}

/* --- ADMIN STYLES --- */
.admin-body {
    background: #000;
}

.admin-login-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.admin-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.admin-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.admin-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table th {
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .admin-main {
        grid-template-columns: 1fr;
    }
}

/* --- ANIMATIONS & LOADERS --- */
.skeleton-loader {
    animation: pulse 1.5s infinite alternate;
    color: var(--text-secondary);
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { 
        opacity: 1; 
        text-shadow: 0 0 10px rgba(255,255,255,0.2); 
    }
}

/* --- DELIVERY PROMO & MODAL --- */
.delivery-promo-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
}
.promo-este, .promo-centro, .promo-costa { 
    color: var(--text-secondary); 
}

.highlight-green {
    color: #25D366;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}

.highlight-silver {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.zone-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--text-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}
.zone-link:hover {
    color: var(--accent);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}
.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.modal-header h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
}
.modal-body ul {
    list-style: none;
}
.modal-body li {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}
.modal-body strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
