:root {
    --primary: #6a5acd;
    --secondary: #f8f9fa;
    --accent: #ff6b6b;
    --text: #2c3e50;
    --light-text: #7f8c8d;
    --border: #ddd;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #ff6b6b;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

h1 {
    text-align: center;
    margin: 25px 0;
    color: white;
    background: blue;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    position: relative;
}

.product-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.product-price {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.view-details {
    background: linear-gradient(to right, #7f8c8d, #95a5a6);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-details i {
    margin-right: 8px;
}

.view-details:hover {
    background: linear-gradient(to right, #95a5a6, #bdc3c7);
    transform: translateY(-2px);
}

.add-to-cart {
    background: linear-gradient(to right, var(--primary), #5a4abc);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart i {
    margin-right: 8px;
}

.add-to-cart:hover {
    background: linear-gradient(to right, #5a4abc, #4a3aa6);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Modal de detalles del producto */
.details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.details-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-details {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light-text);
    transition: color 0.3s;
}

.close-details:hover {
    color: #dc3545;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .product-details {
        flex-direction: row;
    }
}

.details-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 10px;
    padding: 20px;
}

.details-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.details-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.details-description {
    color: var(--light-text);
    line-height: 1.6;
}

.details-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.duration-selector {
    margin: 15px 0;
}

.duration-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.duration-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.duration-selector select:focus {
    border-color: var(--primary);
    outline: none;
}

.details-add-to-cart {
    background: linear-gradient(to right, var(--primary), #5a4abc);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.details-add-to-cart:hover {
    background: linear-gradient(to right, #5a4abc, #4a3aa6);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Carrito de compras */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background-color: white;
    width: 90%;
    max-width: 700px;
    border-radius: 15px;
    padding: 25px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light-text);
    transition: color 0.3s;
}

.close-cart:hover {
    color: #dc3545;
}

.cart-items {
    margin-bottom: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
    background: var(--secondary);
    padding: 5px;
}

.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-price {
    color: var(--light-text);
    font-size: 14px;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.quantity-btn {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border);
    margin: 0 8px;
    border-radius: 4px;
    font-weight: 600;
}

.remove-item {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    font-size: 20px;
    transition: transform 0.2s;
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-summary {
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 10px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.total {
    font-weight: bold;
    font-size: 20px;
    border-top: 2px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
    color: var(--primary);
}

.checkout-btn {
    background: linear-gradient(to right, var(--accent), #ff5252);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-btn:hover {
    background: linear-gradient(to right, #ff5252, #ff3838);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.empty-cart {
    text-align: center;
    padding: 30px 20px;
    color: var(--light-text);
    font-size: 18px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .cart-content,
    .details-content {
        width: 95%;
        padding: 20px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .item-quantity {
        margin: 10px 0;
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image-container {
        height: 200px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .product-details {
        flex-direction: column;
    }
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.web-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-products p {
    font-size: 18px;
    margin-bottom: 20px;
}

.refresh-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.refresh-btn:hover {
    background-color: #45a049;
}

.product-image-container {
    position: relative;
}

/* Modal de Confirmación WhatsApp */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    color: #25D366;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.cancel-btn {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd !important;
}

.cancel-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.order-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #25D366;
}

.order-summary h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
}

.order-total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* Modal de Confirmación WhatsApp */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    color: #25D366;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.cancel-btn {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd !important;
}

.cancel-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.order-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #25D366;
}

.order-summary h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
}

.order-total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-products p {
    font-size: 18px;
    margin-bottom: 20px;
}

.refresh-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.refresh-btn:hover {
    background-color: #45a049;
}

/* From Uiverse.io by gharsh11032000 */ 
.button {
  cursor: pointer;
  position: relative;
  padding: 10px 24px;
  font-size: 18px;
  color: rgb(193, 163, 98);
  border: 2px solid rgb(193, 163, 98);
  border-radius: 34px;
  background-color: transparent;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: rgb(193, 163, 98);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.button:hover::before {
  scale: 3;
}

.button:hover {
  color: #212121;
  scale: 1.1;
  box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
}

.button:active {
  scale: 1;
}


