:root {
    --primary-red: #E41E26;
    --primary-black: #0C0C0C;
    --secondary-gold: #D8A21F;
    --complementary-blue: #1E2D5C;
    --light-white: #F4F4F4;
    --text-color: #0C0C0C;
    --text-light: #6c757d;
    --gradient-blue: linear-gradient(135deg, #1E2D5C 0%, #2A3D6E 100%);
    --gradient-gold: linear-gradient(135deg, #D8A21F 0%, #E8B229 100%);
    --gradient-hero: linear-gradient(135deg, #1E2D5C 0%, #2A3D6E 50%, #3A4D80 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.navbar {
    background: var(--complementary-blue) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 45, 92, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-gold) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--light-white) !important;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--light-white) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-gold) !important;
    background: rgba(216, 162, 31, 0.1);
}

.nav-link.active {
    color: var(--secondary-gold) !important;
    background: rgba(216, 162, 31, 0.15);
}

.admin-link {
    background: var(--primary-red);
    border-radius: 25px;
    margin-left: 1rem !important;
    color: var(--light-white) !important;
}

.admin-link:hover {
    background: #C21820;
    transform: scale(1.05);
    color: var(--light-white) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding-top: 100px !important;
    color: var(--light-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--primary-red);
    border: none;
    color: var(--light-white);
    font-weight: 600;
}

.btn-primary:hover {
    background: #C21820;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(228, 30, 38, 0.3);
    color: var(--light-white);
}

.btn-warning {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-black);
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #C8921B 0%, #D8A21F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(216, 162, 31, 0.3);
    color: var(--primary-black);
}

.btn-success {
    background: #25d366;
    border: none;
    font-weight: 600;
}

.btn-success:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Product Cards - ESTILOS ESTANDARIZADOS */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: var(--light-white);
    height: 480px; /* Altura fija para todas las cards */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card .position-relative {
    height: 200px;
    overflow: hidden;
}

/* Badge de disponibilidad */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.availability-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Badge de categoría */
.category-badge {
    background: var(--complementary-blue);
    color: var(--light-white);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* Cuerpo de la card estandarizado */
.product-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    color: var(--complementary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Precio */
.price-tag {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Botón de WhatsApp */
.btn-whatsapp-catalog {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-whatsapp-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

/* Placeholder para imágenes */
.product-image-placeholder {
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--complementary-blue);
}

/* Estilos específicos para el carrusel de productos destacados */
.featured-products-swiper {
    padding: 20px 10px 60px 10px;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.swiper-slide .product-card {
    height: 480px; /* Altura fija para todas las cards */
    display: flex;
    flex-direction: column;
    margin: 0 5px;
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
}

/* Asegurar que todas las cards tengan la misma altura en el swiper */
.swiper-wrapper {
    align-items: stretch;
}

/* Service Cards */
.service-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: var(--light-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(216, 162, 31, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-gold);
}

.service-icon {
    color: var(--secondary-gold);
}

.service-card h4 {
    color: var(--complementary-blue);
    margin-bottom: 1rem;
}

/* Typed Text Section */
#typed-text {
    color: var(--primary-red);
    font-weight: 600;
}

/* Footer */
.footer-section {
    background: var(--complementary-blue);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.footer-brand h5 {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--secondary-gold);
}

.footer-brand i {
    font-size: 1.8rem;
    color: var(--secondary-gold);
}

.footer-badges .badge {
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.badge.bg-warning {
    background: var(--secondary-gold) !important;
    color: var(--primary-black);
}

.badge.bg-primary {
    background: var(--complementary-blue) !important;
}

.badge.bg-success {
    background: var(--primary-red) !important;
}

.footer-title {
    color: var(--secondary-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-gold);
    border-radius: 2px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(216, 162, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(216, 162, 31, 0.2);
    transform: scale(1.1);
}

.contact-text strong {
    font-size: 1rem;
}

.social-links {
    display: grid;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light-white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--light-white);
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); border-color: transparent; }
.social-link.tiktok:hover { background: #000; border-color: #000; }
.social-link.whatsapp:hover { background: #25d366; border-color: #25d366; }

.social-link i {
    width: 20px;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.quick-links .row {
    margin: 0 -0.5rem;
}

.quick-link {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: block;
    transition: all 0.3s ease;
}

.quick-link:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-credits i {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hover Effects */
.hvr-grow {
    transform: perspective(1px) translateZ(0);
    transition-duration: 0.3s;
    transition-property: transform;
}

.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
    transform: scale(1.05);
}

.hvr-underline-from-center {
    transform: perspective(1px) translateZ(0);
    position: relative;
    overflow: hidden;
}

.hvr-underline-from-center:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 51%;
    right: 51%;
    bottom: 0;
    background: var(--secondary-gold);
    height: 2px;
    transition-property: left, right;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

.hvr-underline-from-center:hover:before, 
.hvr-underline-from-center:focus:before, 
.hvr-underline-from-center:active:before {
    left: 0;
    right: 0;
}

/* Section backgrounds */
.bg-light {
    background-color: var(--light-white) !important;
}

.bg-dark {
    background-color: var(--primary-black) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        margin: 0.2rem 0;
        padding: 0.8rem 1rem !important;
    }
    
    .admin-link {
        margin: 0.5rem 0 0 0 !important;
        background: var(--primary-red);
    }
    
    .navbar-collapse {
        background: rgba(30, 45, 92, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        margin-top: 0.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .contact-text {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .quick-links .row {
        justify-content: center;
    }
    
    .quick-link {
        text-align: center;
    }
}

/* Responsive para cards y carrusel */
@media (max-width: 768px) {
    .product-card {
        height: 450px;
    }
    
    .product-card .product-image {
        height: 180px;
    }
    
    .product-card .position-relative {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 1.25rem;
    }
    
    .swiper-slide .product-card {
        height: 450px;
    }
    
    .swiper-slide .product-image {
        height: 180px;
    }
    
    .swiper-slide .position-relative {
        height: 180px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 576px) {
    .product-card {
        height: 420px;
    }
    
    .product-card .product-image {
        height: 160px;
    }
    
    .product-card .position-relative {
        height: 160px;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .price-tag {
        font-size: 1.1rem;
    }
    
    .btn-whatsapp-catalog {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .swiper-slide .product-card {
        height: 420px;
    }
    
    .swiper-slide .product-image {
        height: 160px;
    }
    
    .swiper-slide .position-relative {
        height: 160px;
    }
    
    .swiper-slide .card-title {
        font-size: 1rem;
    }
    
    .swiper-slide .price-tag {
        font-size: 1.1rem;
    }
    
    .swiper-slide .btn-whatsapp-catalog {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Animación de entrada para los items del navbar */
.navbar-nav .nav-item {
    opacity: 0;
    animation: slideInRight 0.6s ease forwards;
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}