/* Reset y Variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ff8c42;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-dark: #0f3460;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Body y Estilos Generales */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    transition: var(--transition);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.none {
    display: none !important;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-out;
}

header h2 {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Login Section */
#login-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeIn 0.8s ease-out;
}

#login-container h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-btn {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn.microsoft {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.logout-btn {
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,53,69,0.4);
}

#user-status {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--success);
    animation: pulse 2s infinite;
}

.student-discount {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
    animation: slideInRight 0.5s ease-out;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
    animation: fadeIn 1s ease-out 0.5s both;
}

#buscador {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: var(--white);
    box-shadow: var(--shadow);
    outline: none;
    transition: var(--transition);
}

#buscador:focus {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border: 2px solid var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

#buscador:focus + .search-icon {
    color: var(--primary-color);
}

/* Recommendations Section */
.recommendations-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.recommendation-card:hover::before {
    left: 100%;
}

.recommendation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.recommendation-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.recommendation-card:hover .recommendation-image {
    transform: scale(1.05);
}

.recommendation-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.recommendation-reason {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-style: italic;
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: 8px;
}

.recommendation-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255,140,66,0.3);
}

.recommendation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,66,0.4);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s ease-out;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
}

.quantity-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.add-to-cart-btn:hover::before {
    width: 200px;
    height: 200px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

/* Cart Icon */
#iconoDelCarrito {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#iconoDelCarrito:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
    animation: pulse 1s infinite;
}

#iconoDelCarrito i {
    font-size: 1.5rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

/* Cart Sidebar */
#carrito {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: none;
}

#carrito.active {
    right: 0;
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.close-cart:hover {
    background: var(--light-gray);
    color: var(--text-dark);
    transform: rotate(90deg);
}

#productosAgregadosAlCarrito {
    margin-bottom: 1rem;
}

#productosAgregadosAlCarrito > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    animation: slideInRight 0.3s ease-out;
}

#productosAgregadosAlCarrito > div:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.boton-eliminar {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.boton-eliminar:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Delivery Form */
.delivery-form {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    animation: fadeIn 0.5s ease-out;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    resize: vertical;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    transform: translateY(-2px);
}

.payment-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    outline: none;
    background: white;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.payment-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

/* Cart Totals */
.cart-totals {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    animation: fadeIn 0.5s ease-out;
}

.subtotal-cost, .discount-cost, .shipping-cost, .total-cost {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtotal-cost {
    color: var(--text-dark);
}

.discount-cost {
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.shipping-cost {
    color: var(--info);
}

.total-cost {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-top: 2px solid var(--white);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.checkout-btn:hover::before {
    width: 300px;
    height: 300px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40,167,69,0.4);
}

/* Order History Section */
.history-toggle {
    background: linear-gradient(135deg, #6c757d 0%, #5a638a 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto;
}

.history-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,117,125,0.4);
}

.order-item {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.order-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.order-header h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.order-details p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.order-total {
    font-size: 1.1rem;
    color: var(--primary-color) !important;
    margin-top: 1rem !important;
    background: rgba(255,107,53,0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.order-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 10px rgba(40,167,69,0.3);
}

.status-pending {
    background: var(--warning);
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(255,193,7,0.3);
}

.status-delivered {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 10px rgba(40,167,69,0.3);
}

.no-orders {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 3rem;
    font-size: 1.1rem;
}

/* About Section */
#quienes-somos {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.about-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 2rem auto;
}

.about-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

#info-integrantes {
    text-align: left;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

#info-integrantes h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

#info-integrantes p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-member {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.team-member:hover {
    transform: translateX(10px);
    background: var(--primary-color);
    color: white;
}

/* Dark Mode Toggle */
#modoOscuroToggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#modoOscuroToggle:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--shadow-hover);
}

#modoOscuroToggle i {
    font-size: 1.2rem;
}

/* Processing Modal */
#procesando {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.processing-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

/* Loading Modal */
#loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.loading-spinner i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    animation: slideInRight 0.4s ease-out;
}

.modal-content h3 {
    color: var(--danger);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-content.success h3 {
    color: var(--success);
}

.modal-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.modal-btn.success-btn {
    background: var(--success);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Dark Mode Styles */
.dark-mode {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--white);
}

.dark-mode .product-card,
.dark-mode #login-container,
.dark-mode #quienes-somos,
.dark-mode .recommendation-card,
.dark-mode .order-item,
.dark-mode .modal-content {
    background: var(--darker-bg);
    color: var(--white);
}

.dark-mode .product-title,
.dark-mode .cart-title,
.dark-mode .form-label,
.dark-mode .recommendation-content h3,
.dark-mode .order-header h4,
.dark-mode .recommendations-title {
    color: var(--white);
}

.dark-mode .product-description,
.dark-mode .recommendation-reason,
.dark-mode .order-date {
    color: #ccc;
}

.dark-mode #carrito {
    background: var(--darker-bg);
    color: var(--white);
}

.dark-mode .form-input,
.dark-mode .payment-select,
.dark-mode .quantity-input {
    background: var(--dark-bg);
    color: var(--white);
    border-color: #444;
}

.dark-mode .form-input:focus,
.dark-mode .payment-select:focus,
.dark-mode .quantity-input:focus {
    border-color: var(--primary-color);
}

.dark-mode #productosAgregadosAlCarrito > div,
.dark-mode .delivery-form,
.dark-mode .cart-totals,
.dark-mode .team-member,
.dark-mode .recommendation-reason,
.dark-mode .order-date {
    background: var(--dark-bg);
    color: var(--white);
}

.dark-mode .order-details p,
.dark-mode .modal-content p {
    color: var(--white);
}

.dark-mode #buscador {
    background: var(--darker-bg);
    color: var(--white);
}

.dark-mode #buscador::placeholder {
    color: #ccc;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast-success {
    background: var(--success);
    color: white;
}

.toast-error {
    background: var(--danger);
    color: white;
}

.toast-info {
    background: var(--info);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header h2 {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recommendations-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .login-buttons {
        flex-direction: column;
    }

    #carrito {
        width: 100%;
        right: -100%;
    }

    #iconoDelCarrito {
        width: 60px;
        height: 60px;
        top: 1rem;
        right: 1rem;
    }

    #modoOscuroToggle {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .recommendation-card {
        padding: 0.8rem;
    }

    .recommendation-image {
        height: 100px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        margin: 0 10px;
    }

    #login-container,
    #quienes-somos {
        margin: 1rem 10px;
        padding: 1.5rem;
    }

    .search-container {
        margin: 1rem 10px;
    }

    .cart-count {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .toast {
        right: 10px;
        max-width: 300px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

/* Print Styles */
@media print {
    .dark-mode-toggle,
    #iconoDelCarrito,
    #modoOscuroToggle,
    .login-buttons,
    .add-to-cart-btn,
    .checkout-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .product-card,
    .order-item {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
