:root {
    --primary-color: #f1c40f; /* Amarillo cerveza */
    --primary-dark: #d4ac0d;
    --dark-bg: #111111;
    --darker-bg: #000000;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
header.main-header {
    background-color: var(--darker-bg);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav.main-nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav.main-nav ul li a:hover, nav.main-nav ul li a.active {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/cerveza_1.png') no-repeat center center/cover;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg) !important;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

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

.btn-danger { background-color: #e74c3c; color: white !important; }
.btn-danger:hover { background-color: #c0392b; }
.btn-success { background-color: #2ecc71; color: white !important; }
.btn-warning { background-color: #e67e22; color: white !important; }

/* Sections */
section {
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

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

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

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

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

.add-to-cart {
    background: var(--dark-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--darker-bg);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-left: 2px solid var(--primary-color);
}

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

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

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

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: var(--dark-bg);
    padding: 10px;
    border-radius: 5px;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
}

.cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

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

.bank-details {
    background: var(--dark-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px dashed var(--primary-color);
}

.whatsapp-btn {
    display: block;
    width: 100%;
    background-color: #25D366;
    color: white !important;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.qty-control input {
    width: 50px;
    background: var(--darker-bg);
    color: white;
    border: 1px solid var(--border-color);
    padding: 5px;
    text-align: center;
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
}

/* Admin Styles */
.admin-login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: var(--darker-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
    border-top: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--dark-bg);
    color: var(--text-light);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--darker-bg);
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
}

.sidebar-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.nav-links {
    list-style: none;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    border-left: 3px solid transparent;
}

.nav-links li a:hover, .nav-links li a.active {
    background: var(--dark-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.main-content {
    flex-grow: 1;
    padding: 30px;
}

.admin-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-cards {
    display: flex;
    gap: 20px;
}

.card {
    background: var(--darker-bg);
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
}

.card h3 { color: var(--text-muted); font-size: 1.1rem; }
.card-number { font-size: 2.5rem; color: var(--primary-color); font-weight: bold; margin-top: 10px; }

.admin-section {
    background: var(--darker-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th { color: var(--primary-color); }
.admin-table tbody tr:hover { background: var(--dark-bg); }

.form-inline { display: flex; gap: 10px; align-items: center; }

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info { background: var(--darker-bg); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px;}
.contact-info i { color: var(--primary-color); }

@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    nav.main-nav ul { display: none; } /* Podríamos añadir un hamburger menu real, por ahora simple */
}
