/* ===========================
   RESET Y BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    min-height: 100vh;
}

/* ===========================
   HEADER
=========================== */
header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2.5em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 1.2em;
}

.cart-button {
    background: #ffd700;
    color: #c0392b;
    border: none;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s;
    position: relative;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c0392b;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

/* ===========================
   NAVEGACIÓN
=========================== */
nav {
    background: #2c3e50;
    padding: 15px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-button {
    background: #ffd700;
    color: #2c3e50;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-button:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

/* ===========================
   SECCIÓN PROMOCIONES
=========================== */
.promo-section {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    padding: 30px 0;
}

.promo-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.promo-title {
    color: #ffd700;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-btn {
    background: #ffd700;
    color: #c0392b;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* ===========================
   MODAL PROMOCIONES
=========================== */
.promo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.promo-modal.active {
    display: flex;
}

.promo-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.promo-modal-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-modal-header h2 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-close-btn {
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.2s;
}

.promo-close-btn:hover {
    background: rgba(255,255,255,0.5);
}

.promo-modal-body {
    padding: 25px 30px;
}

.promo-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff8f0;
    border-left: 5px solid #ffd700;
    transition: transform 0.2s;
}

.promo-item:hover {
    transform: translateX(5px);
}

.promo-item-icon {
    font-size: 2em;
    min-width: 45px;
    text-align: center;
}

.promo-item-text h3 {
    color: #c0392b;
    font-size: 1em;
    margin-bottom: 4px;
}

.promo-item-text p {
    color: #555;
    font-size: 0.88em;
    line-height: 1.4;
}

.promo-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 5px;
}

/* ===========================
   CONTENIDO PRINCIPAL
=========================== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.section-title {
    color: #e74c3c;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 4px solid #ffd700;
    padding-bottom: 10px;
}

/* ===========================
   TARJETAS DE PRODUCTOS
=========================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border: 3px solid #ffd700;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.product-description {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.product-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
}

.add-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.add-button:hover {
    background: #229954;
    transform: scale(1.05);
}

/* ===========================
   MODAL CARRITO
=========================== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 15px;
}

.cart-header h2 {
    color: #e74c3c;
    font-size: 1.8em;
}

.close-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

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

.cart-item-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.remove-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px solid #ffd700;
    text-align: right;
}

.cart-total h3 {
    color: #e74c3c;
    font-size: 1.8em;
}

.checkout-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    h1 { font-size: 1.8em; }
    .products-grid { grid-template-columns: 1fr; }
    .promo-buttons { flex-direction: column; align-items: center; }
    .promo-btn { width: 100%; max-width: 300px; justify-content: center; }
}

        /* ===============================
   FOOTER / COPYRIGHT
   =============================== */

.footer {
  background: #000000;
  color: #cccccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  margin-top: 40px;
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    font-size: 13px;
  }
}
