/* Variables globales */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --primary-color: #ff4444;
    --secondary-color: #ff6666;
    --dark-bg: #1a1a1a;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

.text-purple {
    color: #8b5cf6 !important;
}

.text-orange {
    color: #f97316 !important;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    color: #2c3e50;
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-primary);
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-weight: 700;
    letter-spacing: -1px;
}

.hero .lead {
    font-family: var(--font-secondary);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.card-title {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.category-card h3 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.filter-bar {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    background: #f3f4f6;
    padding: 1.2rem 2rem 1.2rem 2rem;
    margin-bottom: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1.5px 8px rgba(0,0,0,0.04);
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1000;
}
.filter-bar .btn-group .btn,
.filter-bar .dropdown-toggle {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 32px;
  font-weight: 600;
  background: #e5e7eb;
  color: #3b82f6;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
}
.filter-bar .btn-group .btn.active,
.filter-bar .dropdown-toggle.active,
.filter-bar .btn-group .btn:hover,
.filter-bar .dropdown-toggle:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.filter-bar .dropdown-menu {
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.filter-bar .dropdown-item {
  font-size: 1.05rem;
  padding: 0.7rem 1.2rem;
  color: #3b82f6;
  font-weight: 500;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
.filter-bar .dropdown-item.active,
.filter-bar .dropdown-item:hover {
  background: #3b82f6;
  color: #fff;
}
.filter-bar .form-select {
  font-size: 1.05rem;
  border-radius: 16px;
  border: 1.5px solid #e5e7eb;
  color: #3b82f6;
  font-weight: 500;
  background: #e5e7eb;
  transition: border 0.2s;
}
.filter-bar .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f633;
}
.filter-bar .input-group {
  max-width: 260px;
}
.filter-bar .form-control {
  border-radius: 16px 0 0 16px;
  border: 1.5px solid #e5e7eb;
  font-size: 1.05rem;
  background: #e5e7eb;
  color: #222;
}
.filter-bar .btn-primary {
  border-radius: 0 16px 16px 0;
  background: #3b82f6;
  border: 1.5px solid #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}
.filter-bar .btn-primary:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.form-label {
    font-family: var(--font-primary);
    font-weight: 500;
}

.price-tag {
    font-family: var(--font-primary);
    font-weight: 600;
}

.modal-title {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.footer h5 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Mejoras en la legibilidad */
.text-muted {
    color: #6c757d !important;
}

.small {
    font-size: 0.875rem;
}

/* Ajustes de espaciado */
.card-body {
    line-height: 1.5;
}

.lead {
    line-height: 1.6;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

.navbar.navbar-scrolled {
    padding: 10px 0;
    background: rgba(33, 37, 41, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.navbar-brand i {
    color: var(--primary-color);
    font-size: 1.7rem;
    transform: rotate(-15deg);
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(0deg);
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-search {
    position: relative;
    width: 300px;
}

.nav-search .form-control {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 102, 102, 0.15));
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: white;
    padding: 0.3rem 1rem 0.3rem 1rem;
    padding-right: 3rem;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.nav-search .form-control:focus {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(255, 102, 102, 0.25));
    color: white;
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4), 0 0 0 3px rgba(255, 68, 68, 0.1);
    transform: translateY(-2px);
}

.nav-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search .btn {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0;
    color: white;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-search .btn:hover {
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -30%);
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

.hero-content {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero .lead {
    font-size: 1.6rem;
    max-width: 750px;
    margin: 0 auto 4rem auto;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

.hero .btn-primary, .hero .btn-outline-light {
    padding: 1rem 2.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero .btn-primary:hover, .hero .btn-outline-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero .btn-outline-light {
    border-width: 2px;
}

/* Categorías */
.categories {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.categories-bg {
    position: relative;
    padding: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    position: relative;
}



.categories-bg > * {
    position: relative;
    z-index: 2;
}

.categories-bg .container {
    padding: 40px 0;
}

.category-card {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover::before {
    opacity: 0.3;
}

.category-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Productos */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  min-height: 56px;
  background: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding-bottom: 16px;
  z-index: 2;
}
.product-card:hover .product-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-overlay-content {
    text-align: center;
    width: 100%;
}

.product-overlay-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-overlay-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-overlay-content .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.product-overlay-content .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-overlay .btn {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    transition: background 0.2s;
}

.product-overlay .btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Estilos para el modal de detalle de producto */
.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-detail-image img {
    transition: transform 0.3s ease;
}

.product-detail-image:hover img {
    transform: scale(1.05);
}

.product-detail-info h3 {
    color: var(--dark-bg);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail-info .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

#productDetailPrice {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

#productDetailFeatures {
    list-style: none;
    padding: 0;
}

#productDetailFeatures li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

#productDetailFeatures li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

#productDetailFeatures li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta {
    background: linear-gradient(45deg, var(--secondary-color), var(--dark-bg));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/pattern.png');
    opacity: 0.1;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    padding: 60px 0 30px;
}

.footer-title {
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-brand h4 {
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer .list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

.footer .list-inline-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer .list-inline-item a:hover {
    color: var(--primary-color);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notificaciones */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.product-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.85);
    color: var(--primary-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s;
    pointer-events: none;
}
.product-card:hover .product-zoom-icon {
    background: var(--primary-color);
    color: #fff;
}

.product-more-info-label {
  display: inline-block;
  position: absolute;
  top: 16px;
  right: 56px;
  background: rgba(59,130,246,0.85);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(59,130,246,0.10);
}
.product-card:hover .product-more-info-label {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#productDetailModal .input-group {
    max-width: 140px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    height: 44px;
}
#productDetailModal #productQuantity {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    background: #f8f9fa;
    color: #222;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    width: 60px;
    height: 44px;
    margin: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#productDetailModal .btn-outline-secondary {
    font-size: 1.2rem;
    padding: 0 12px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.quantity-selector {
    background: #f8f9fa;
    border-radius: 30px;
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-width: 180px;
}
.quantity-btn {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.quantity-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.quantity-input {
    font-size: 1.5rem;
    font-weight: bold;
    width: 60px;
    height: 44px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-align: center;
    margin: 0 10px;
    background: #fff;
    color: #222;
}
#productDetailModal .btn-lg.w-100 {
    font-size: 1.2rem;
    padding: 0.9rem 0;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-top: 10px;
}

/* Estilos para el selector de sabor */
#flavorSelectorContainer {
    margin-bottom: 15px;
}

#flavorSelectorContainer .form-label {
    font-weight: 600;
    color: #333;
}

#flavorSelectorContainer .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#flavorSelectorContainer .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#flavorSelectorContainer .form-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#flavorSelectorContainer small {
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

/* Estilos para productos con sabores en el hover */
.product-overlay .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.95);
    border-radius: 50px;
    padding: 15px 25px;
    margin: 20px;
    max-width: 200px;
}

.product-overlay .text-center i {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.product-overlay .text-center p {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

/* Estilos mejorados para los encabezados del carrito */
.cart-modal .table thead th {
    background: linear-gradient(135deg, #8B0000 0%, #660000 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    border: none;
    position: relative;
}

.cart-modal .table thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.cart-modal .table thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.cart-modal .table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.cart-modal .table tbody tr {
    transition: all 0.3s ease;
}

.cart-modal .table tbody tr:hover {
    background-color: rgba(139, 0, 0, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

/* Estilos adicionales para mejorar la tabla del carrito */
.cart-modal .table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.cart-modal .table tbody td {
    padding: 18px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

.cart-modal .table tbody tr:last-child td {
    border-bottom: none;
}

/* Animación suave para los botones de cantidad */
.cart-modal .input-group .btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.cart-modal .input-group .btn:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
}

/* Estilo para el precio y subtotal */
.cart-modal .fw-bold {
    color: #8B0000;
    font-weight: 700;
}

/* Estilo para el fondo del modal */
.cart-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-detail-image img#productDetailImage {
  display: block;
  margin: 0 auto 20px auto;
  background: #fff;
  max-width: 100%;
  max-height: 95vh;
  min-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.categories .row {
  align-items: stretch;
}
.category-card {
  height: 340px;
  min-width: 260px;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.92);
  transition: opacity 0.3s;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  text-shadow: 0 2px 8px #000;
}

.products-section {
  background: #fff;
  padding-top: 0;
  padding-bottom: 40px;
}

.scroll-down-indicator {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  position: sticky;
  top: 80px;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Estilos para el brand FULLFIT en el hero */
.hero-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-brand .d-flex {
    justify-content: center !important;
    align-items: center !important;
}

.hero-brand .hero-title {
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}



.hero-brand i {
    display: block;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 4px;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.quantity-controls {
    min-width: 120px;
}

.quantity-controls .btn {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-controls .btn:hover {
    transform: scale(1.1);
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: none;
}

.product-gallery img.active {
    display: block;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-gallery::after {
    content: "Toca para ampliar";
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 10;
    pointer-events: none;
}
