/* Estilos personalizados para Impresos Gráficos Pro */

:root {
    --primary-green: #28a745;
    --secondary-green: #20c997;
    --dark-green: #155724;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Enlace Admin especial */
.nav-link.text-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 8px 15px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.text-primary:hover {
    background: var(--primary-green);
    color: white !important;
    -webkit-text-fill-color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.nav-link.text-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 18px;
    opacity: 0.1;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.nav-link.text-primary:hover:before {
    opacity: 1;
}

/* Botones personalizados */
.btn-primary-custom {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary-custom {
    color: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Botón Solicita Cotización - Hover Amarillo */
.btn-primary-custom:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffc107 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-primary-custom:hover i {
    color: #ffc107 !important;
}

/* Hero Section - Sistema Híbrido con Variables CSS */
.hero-section {
    /* Variables CSS para control dinámico */
    --hero-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
    --hero-background: url('../img/hero-bg.jpg') center/cover no-repeat;
    --hero-custom-gradient: none;
    
    /* Aplicación condicional: gradiente personalizado o imagen por defecto */
    background: 
        var(--hero-overlay),
        var(--hero-custom-gradient, var(--hero-background));
    padding: 80px 0;
    position: relative;
    transition: background 0.8s ease-in-out;
    background-attachment: fixed;
}

/* Estados visuales del hero */
.hero-section.hero-gradient-mode {
    /* Indicador visual para modo gradiente */
    position: relative;
}

.hero-section.hero-gradient-mode::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
    animation: pulse 2s infinite;
}

.hero-section.hero-image-mode::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.1rem;
    color: #f1f3f5;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e9ecef;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Cards personalizadas */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

/* Secciones */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    display: block;
    margin: 1rem auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Galería */
.category-header {
    background: var(--light-gray);
    border-left: 5px solid var(--primary-green);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 10px 10px 0;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-green);
}

/* Clientes */
.client-logo {
    min-height: 100px;
    background: #ffffff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Desactivar completamente cualquier hover en la sección de clientes */
.client-logo:hover,
.client-logo *:hover {
    background: #ffffff !important;
    border-color: #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transform: none !important;
}

/* Prevenir hover en columnas de clientes */
.col-lg-3:hover .client-logo,
.col-md-4:hover .client-logo,
.col-sm-6:hover .client-logo {
    background: #ffffff !important;
    border-color: #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transform: none !important;
}

/* Forzar que NO haya efectos verdes en la sección de clientes */
section .col-lg-3, 
section .col-md-4, 
section .col-sm-6 {
    transition: none !important;
}

section .col-lg-3:hover, 
section .col-md-4:hover, 
section .col-sm-6:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Formulario de contacto */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-info-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
}

/* Botón Call to Action Especial */
.btn-cta-special {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: var(--primary-green) !important;
    border: 2px solid var(--primary-green);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(40, 167, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: pulse-green 3s ease-in-out infinite;
}

.btn-cta-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s;
}

.btn-cta-special:hover {
    color: white !important;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.5),
        0 15px 35px rgba(0, 123, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 123, 255, 0.4);
    border-color: #007bff;
    animation: none;
}

.btn-cta-special:hover::before {
    left: 100%;
}

.btn-cta-special:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s;
}

.btn-cta-special i {
    transition: transform 0.3s ease;
}

.btn-cta-special:hover i {
    transform: translateX(5px);
}

/* Efecto de pulso sutil verde */
@keyframes pulse-green {
    0% {
        box-shadow: 
            0 4px 15px rgba(40, 167, 69, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(40, 167, 69, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(40, 167, 69, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}



/* Utilidades */
.text-primary-custom {
    color: var(--primary-green) !important;
}

.bg-primary-custom {
    background-color: var(--primary-green) !important;
}

.border-primary-custom {
    border-color: var(--primary-green) !important;
}

/* Título puede ajustar a múltiples líneas sin truncar */