/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body */
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, #004aad, #007bff);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.header .logo-container img.logo {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.texto-logo h1 {
  font-size: 1.5rem;
  margin-bottom: 3px;
}

.texto-logo h2 {
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.texto-logo p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Navegación */
nav {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e60813;
}

.nav a.active {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
}

/* Promo banner */
.promo-banner {
    background: linear-gradient(to right, #0066cc, #3399ff);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.promo-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.promo-banner p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.promo-btn {
    background-color: #ffd700;
    color: #004aad;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.promo-btn:hover {
    background-color: #ffc107;
    color: #000;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-card h3,
.product-card h4 {
    color: #004aad;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.product-card p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-card .price {
    color: #ff4500;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card .reviews {
    color: #ffa500;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-card .add-to-cart {
    background-color: #004aad;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-card .add-to-cart:hover {
    background-color: #003399;
}

.product-card strong {
    color: #ff4500;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #004aad;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* SLIDER EXTRA */
.slider-extra {
    text-align: center;
    margin: 60px auto;
}

.slider-extra h2 {
    color: #004aad;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: bold;
}

.slider-extra-container {
    position: relative;
    width: 85%;
    max-width: 820px;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.extra-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.extra-slides img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

/* FLECHAS */
.extra-prev,
.extra-next {
    position: absolute;
    top: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    padding: 8px 14px;
    transform: translateY(-50%);
    transition: 0.3s;
    border-radius: 5px;
}

.extra-prev:hover,
.extra-next:hover {
    background: #004aad;
}

.extra-prev {
    left: 10px;
}

.extra-next {
    right: 10px;
}

/* Botón subir */
#btnSubir {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #00e0ff, #0066ff);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px rgba(0, 153, 255, 0.8);
  transition: all 0.3s ease-in-out;
  z-index: 9999;
  animation: pulse 2s infinite;
}

/* Hover */
#btnSubir:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 20px rgba(0, 153, 255, 1);
}

/* Animación del botón */
@keyframes pulse {
  0% {
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 153, 255, 1);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.7);
  }
}

/* Estilos para carrito */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input, .filters select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.carrito-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-item h3 {
    margin: 0;
}

.carrito-item p {
    margin: 5px 0;
}

.carrito-item button {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.carrito-item .decrease,
.carrito-item .increase {
    background-color: #ccc;
}

.carrito-item .remove {
    background-color: #ff4500;
    color: #fff;
}

#checkout {
    background-color: #004aad;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 20px;
}

#checkout:hover {
    background-color: #003399;
}

#checkout-form {
    max-width: 400px;
    margin: 20px auto;
}

#checkout-form input,
#checkout-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#checkout-form button {
    background-color: #004aad;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%;
}

#checkout-form button:hover {
    background-color: #003399;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .caption h3 {
        font-size: 1rem;
    }
    
    .caption p {
        font-size: 0.8rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
    }
}

/* Icono flotante del carrito */
#carrito-flotante {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #004aad;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background-color 0.3s;
}

#carrito-flotante:hover {
    background-color: #003399;
}

#carrito-flotante a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    
    .product-card h3 {
        font-size: 1rem;
    }
    
    .product-card .price {
        font-size: 1rem;
    }
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {

    .header h1 {
        font-size: 1.4rem;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.85rem;
    }

    .extra-slides img {
        height: 160px;
    }

    .slider-extra-container {
        width: 95%;
    }
}
