/* ================================
   RESET Y ESTILOS BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ================================
   HEADER
   ================================ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   NAVEGACIÓN
   ================================ */
#menu {
    display: none;
}

.menu-icono {
    width: 30px;
    height: 30px;
    display: none;
    cursor: pointer;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar a:hover {
    color: #667eea;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* ================================
   CARRITO DE COMPRAS
   ================================ */
.submenu {
    position: absolute;
    top: 20px;
    right: 20px;
}

#img-carrito {
    width: 30px;
    height: 30px;
    cursor: pointer;
    filter: invert(0.4) sepia(1) saturate(2) hue-rotate(220deg);
    transition: transform 0.3s ease;
}

#img-carrito:hover {
    transform: scale(1.1);
}

.carrito-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Pulse animation for the cart badge */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#carrito {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    min-width: 400px;
    max-width: 500px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

#lista-carrito {
    width: 100%;
    border-collapse: collapse;
}

#lista-carrito th,
#lista-carrito td {
    padding: 0.8rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#lista-carrito th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Styles for the cart actions */
.carrito-acciones {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

/* Add to cart buttons styling */
.btn-cantidad {
    background: #667eea;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.btn-cantidad:hover {
    background: #5a6fd8;
}

.btn-eliminar {
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: background 0.3s ease !important;
}

.btn-eliminar:hover {
    background: #c0392b !important;
}

/* ================================
   BOTONES DE COMPRA
   ================================ */
.btn-comprar {
    background: #27ae60 !important;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    background: #219a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.4);
}

/* ================================
   HEADER CONTENT
   ================================ */
.header-content {
    padding: 4rem 0;
}

.swiper-slide {
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 500px;
}

.header-info {
    flex: 1;
}

.header-txt h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prices {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    align-items: baseline;
}

.price-1 {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.price-2 {
    font-size: 1.5rem;
    color: #7f8c8d;
    text-decoration: line-through;
}

.header-img {
    flex: 1;
    text-align: center;
}

.header-img img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.header-img img:hover {
    transform: scale(1.05);
}

/* ================================
   BOTONES
   ================================ */
.btn-1, .btn-3, .btn-principal, .btn-secundario {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.btn-1, .btn-principal {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-1:hover, .btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-3 {
    background: #e74c3c;
    color: white;
    margin: 5px;
}

.btn-3:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.4);
}

.btn-secundario {
    background: #95a5a6;
    color: white;
}

.btn-secundario:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* ================================
   SWIPER PERSONALIZACIÓN
   ================================ */
.swiper-button-next,
.swiper-button-prev {
    color: #667eea !important;
    background: rgba(255, 255, 255, 0.9) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    width: 12px !important;
    height: 12px !important;
}

.swiper-pagination-bullet-active {
    background: #667eea !important;
    transform: scale(1.2);
}

/* ================================
   SECCIONES
   ================================ */
.promos, .products {
    padding: 4rem 0;
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.promos h2, .products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.promos h2::after, .products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ================================
   CATEGORÍAS
   ================================ */
.categoria {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.categoria:nth-child(even) {
    flex-direction: row-reverse;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.categoria-1 {
    flex: 1;
}

.categoria-1 h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.categoria-img {
    flex: 1;
    text-align: center;
}

.categoria-img img {
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.categoria-img img:hover {
    transform: scale(1.05);
}

/* ================================
   PRODUCTOS
   ================================ */
.product {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1rem;
}

.product-txt h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-txt p {
    color: #666;
    margin-bottom: 0.5rem;
}

.precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.link {
    flex: 1;
    min-width: 200px;
}

.link h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.link ul {
    list-style: none;
}

.link ul li {
    margin-bottom: 0.5rem;
}

.link a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link a:hover {
    color: #667eea;
}

/* ================================
   MODAL DE LOGIN
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 2rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-content input {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #667e;}

    