/* Bootstrap Overrides y Estilos Personalizados */

/* Variables personalizadas */
:root {
    --bs-primary: #2c3e50;
    --bs-secondary: #e74c3c;
    --bs-warning: #f39c12;
    --bs-info: #3498db;
    --bs-success: #27ae60;
    --bs-danger: #e74c3c;
    --bs-light: #ecf0f1;
    --bs-dark: #2c3e50;
    --bs-gray: #95a5a6;
    --bs-light-gray: #f8f9fa;
    --bs-white: #ffffff;
    --bs-black: #333333;
    --transition: all 0.3s ease;
}

/* Gradiente personalizado para el hero */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-dark) 100%) !important;
}

/* Altura mínima para el hero */
.min-vh-75 {
    min-height: 75vh;
}

/* Hero background pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero image styling */
.hero-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-main-image {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

/* Floating elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Navbar personalizado */
.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.navbar-brand small {
    font-size: 0.75rem;
    font-weight: 400;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

/* Navbar scrolled effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar-scrolled .navbar-brand h1 {
    color: var(--bs-primary) !important;
}

.navbar-scrolled .navbar-brand small {
    color: var(--bs-gray) !important;
}

/* Botones personalizados */
.btn-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-white);
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    color: var(--bs-white);
}

.btn-outline-light:hover {
    background-color: var(--bs-white);
    color: var(--bs-primary);
}

/* Cards personalizadas */
.card {
    transition: var(--transition);
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.product-card {
    cursor: pointer;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-image {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Icon circles */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Badges personalizados */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* Iconos personalizados */
.info-icon i {
    color: var(--bs-primary);
    transition: var(--transition);
}

.card:hover .info-icon i {
    transform: scale(1.1);
}

/* Marcas */
.brand-slide {
    transition: var(--transition);
}

.brand-slide:hover {
    transform: scale(1.05);
}

.brand-logo {
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.brand-slide:hover .brand-logo {
    filter: grayscale(0%);
}

/* Estadísticas */
.stat-item {
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.stat-item:hover {
    background-color: var(--bs-light-gray);
}

.stat-number {
    font-size: 2.5rem;
    line-height: 1;
}

/* Catálogo card */
.catalog-card {
    transition: var(--transition);
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Testimonios */
.stars {
    font-size: 0.9rem;
}

.avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA section */
.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer improvements */
.hover-white:hover {
    color: var(--bs-white) !important;
}

.social-link {
    transition: var(--transition);
}

.social-link:hover {
    color: var(--bs-warning) !important;
    transform: scale(1.2);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    line-height: 60px;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand h1 {
        font-size: 1.25rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-element {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .hero-image-bg {
        width: 200px;
        height: 200px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .hero-image-bg {
        width: 150px;
        height: 150px;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

/* Estilos para el catálogo */
.catalog-download {
    transition: var(--transition);
}

.catalog-download:hover {
    transform: scale(1.02);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mejoras de tipografía */
.lead {
    font-weight: 400;
    line-height: 1.7;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Espaciado personalizado */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (min-width: 992px) {
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Tooltip customizations */
.tooltip {
    font-size: 0.875rem;
}

/* Performance optimizations */
.card, .btn, .nav-link {
    will-change: transform;
}

/* Print styles */
@media print {
    .whatsapp-float,
    .navbar,
    .btn {
        display: none !important;
    }
}

footer, footer * {
    color: #fff !important;
}

footer a, footer a:visited {
    color: #e0e0e0 !important;
    transition: color 0.2s;
}

footer a:hover, footer a:focus, footer .hover-white:hover {
    color: #fff !important;
    text-decoration: none;
}

/* Footer mejorado */
footer.bg-dark {
    background: #232629 !important;
    color: #fff !important;
}
footer .text-light, footer .text-white, footer .fw-bold, footer .h5, footer .small, footer .badge {
    color: #fff !important;
}
footer .text-muted {
    color: #d1d5db !important;
}
footer .badge {
    font-size: 0.85em;
    padding: 0.5em 0.8em;
    border-radius: 0.5em;
}
footer .footer-social-link {
    color: #fff;
    background: #232629;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-size: 1.5em;
}
footer .footer-social-link:hover {
    background: #ffc107;
    color: #232629;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
}
footer .navbar-brand img {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 991px) {
    footer .navbar-brand, footer .brand-content {
        justify-content: center !important;
        text-align: center !important;
    }
    footer .d-flex.flex-lg-row {
        flex-direction: column !important;
        align-items: center !important;
    }
    footer .text-start {
        text-align: center !important;
        margin-left: 0 !important;
    }
}
footer hr {
    border-color: #444;
    opacity: 0.5;
    margin: 2rem 0 1rem 0;
} 