:root {
    --primary-color: #0d6efd;
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !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(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand i {
    color: #ffd700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(-15deg);
}

.nav-link {
    font-weight: 500;
    color: #e9ecef !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.15);
}

.admin-link {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 25px;
    margin-left: 1rem !important;
}

.admin-link:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004085 100%);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: var(--primary-color);
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #6c757d;
}

/* Social Links */
.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

/* Swiper Styles */
.swiper {
    width: 100%;
    padding: 20px 0 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Typed.js Styles */
#typed-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* 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: #ffd700;
    height: 3px;
    border-radius: 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;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    body {
        padding-top: 66px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
    
    .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: linear-gradient(135deg, #dc3545, #c82333);
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        margin-top: 0.5rem;
    }
}
/* Estadísticas Móvil Mejoradas */
.stats-card-mobile {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.stat-item-mobile {
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item-mobile:hover {
    background: rgba(0,0,0,0.02);
    transform: translateY(-2px);
}

.stats-icon-mobile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1rem;
}

/* Versión ultra compacta para móviles muy pequeños */
@media (max-width: 375px) {
    .stats-icon-mobile {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .stat-item-mobile h4 {
        font-size: 1.1rem;
    }
    
    .stat-item-mobile small {
        font-size: 0.75rem;
    }
}

/* Alternativa: Diseño horizontal continuo */
.stats-horizontal {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.stat-horizontal-item {
    flex: 1;
    padding: 1rem 0.5rem;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.stat-horizontal-item:last-child {
    border-right: none;
}

.stat-horizontal-item:hover {
    background: rgba(0,0,0,0.02);
}

.stat-horizontal-item h4 {
    margin-bottom: 0.25rem;
}

.stat-horizontal-item small {
    font-size: 0.75rem;
    font-weight: 600;
}
