/*
==============================================
DIGITAL WISE COMPANY S.A.S. - DIWICO.COM
==============================================

Paleta oficial WISE:
- Vinotinto principal: #6A1B1B
- Azul oscuro complementario: #1B263B
- Gris neutro: #E5E5E5
- Blanco puro: #FFFFFF
- Negro suave: #222222
- Dorado elegante: #D4AF37 (solo detalles premium)

==============================================
*/

:root {
    --primary-color: #6A1B1B;
    --secondary-color: #1B263B;
    --white-color: #FFFFFF;
    --gray-color: #E5E5E5;
    --light-gray-color: #E5E5E5;
    --dark-color: #222222;
    --accent-color: #D4AF37;
    --success-color: #059669;
    --warning-color: #d97706;
    --info-color: #6A1B1B;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5A1616;
    border-color: #5A1616;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.min-vh-75 {
    min-height: 30vh;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #6A1B1B 0%, #222222 100%);
    color: #FFFFFF;
    padding: 100px 0;
    text-align: left;
}

.hero-section h1, 
.hero-section h2, 
.hero-section p {
    color: #FFFFFF;
}

.hero-section .btn-primary {
    background-color: #6A1B1B;
    border: 1px solid #D4AF37;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: #D4AF37;
    color: #6A1B1B;
    border-color: #D4AF37;
}

.hero-section .btn-outline-light {
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    background-color: transparent;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background-color: #FFFFFF;
    color: #6A1B1B;
    border-color: #FFFFFF;
}

/* Service cards hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Navbar customization */
.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    margin-right: 0.5rem;
}

.navbar-logo {
    max-height: 40px;
    height: auto;
    width: auto;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

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

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Contact form */
.contact-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 27, 0.25);
}

/* Social links */
.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Footer customization */
footer {
    background-color: var(--secondary-color) !important;
}

/* Animations */
@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) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .display-1 {
        font-size: 4rem;
    }
    
    .navbar-brand {
        padding: 0.4rem 0.6rem;
        margin-right: 0.4rem;
    }
    
    .navbar-logo {
        max-height: 32px;
        padding: 0.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        padding: 0.3rem 0.5rem;
        margin-right: 0.3rem;
    }
    
    .navbar-logo {
        max-height: 28px;
        padding: 0.15rem;
    }
}

/* ============================
   HERO WISE INSTITUCIONAL
   ============================ */
.hero-wise {
    background: linear-gradient(135deg, #6A1B1B 0%, #222222 100%) !important;
    color: #FFFFFF !important;
    padding: 100px 0;
    text-align: left;
}

.hero-wise h1,
.hero-wise h2,
.hero-wise p {
    color: #FFFFFF !important;
}

.hero-wise .btn-primary {
    background-color: #6A1B1B !important;
    border: 1px solid #D4AF37 !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

.hero-wise .btn-primary:hover {
    background-color: #D4AF37 !important;
    color: #6A1B1B !important;
}

.hero-wise .btn-outline-light {
    border: 1px solid #FFFFFF !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

.hero-wise .btn-outline-light:hover {
    background-color: #FFFFFF !important;
    color: #6A1B1B !important;
}

/* Hero Logo Styles */
.hero-logo {
    width: clamp(200px, 50vw, 400px);
    height: auto;
    opacity: 1 !important;
    filter: none;
}

.logo-fade-to-white {
    display: inline-block;
    padding: 2rem 2rem 0rem 0rem;
}

/* Optional overlay for hero-wise section */
.hero-section.hero-wise::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
    z-index: 1;
}

.hero-section.hero-wise {
    position: relative;
}

.hero-section.hero-wise .container {
    position: relative;
    z-index: 2;
}

/* ============================
   NAVBAR BLANCO PERSONALIZADO
   ============================ */
.navbar-light .navbar-brand {
    color: #6A1B1B !important;
    font-weight: bold;
}

.navbar-light .navbar-nav .nav-link {
    color: #222222 !important;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #6A1B1B !important;
}

.navbar-light .navbar-toggler {
    border-color: #6A1B1B;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236A1B1B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* About Section - Value Items */
.about-value-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 27, 27, 0.1);
    min-height: 120px;
    overflow: hidden;
    word-wrap: break-word;
    text-overflow: ellipsis;
}

.about-value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 27, 27, 0.15) !important;
    border-color: rgba(106, 27, 27, 0.3);
}

.about-value-item i {
    transition: all 0.3s ease;
}

.about-value-item:hover i {
    transform: scale(1.1);
}

.about-value-item span {
    font-size: 0.95rem;
    line-height: 1.2;
}

/* About Section and Separator */
#about, .about-section {
    position: relative;
    padding-bottom: 3rem;
}

.about-separator, #about .about-separator, #about i.fa-users {
    position: static !important;
    transform: none !important;
    display: block;
    margin: 1.25rem auto 0 !important;
    text-align: center;
    line-height: 1;
    z-index: auto !important;
}

#about i.fa-users {
    font-size: clamp(28px, 4.5vw, 56px);
    opacity: .75;
}

@media (max-width: 576px) {
    #about .about-separator {
        display: none;
    }
}

/* Social Links Buttons */
.social-links .btn-outline-primary {
    border-color: #6A1B1B;
    color: #6A1B1B;
    background-color: transparent;
    transition: all 0.3s ease;
}

.social-links .btn-outline-primary:hover {
    background-color: #6A1B1B !important;
    border-color: #6A1B1B !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(106, 27, 27, 0.3);
}

.social-links .btn-outline-primary:focus {
    background-color: #6A1B1B !important;
    border-color: #6A1B1B !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 0.25rem rgba(106, 27, 27, 0.25);
}