/* ==========================================================================
   Variables y Tipografía Base
   ========================================================================== */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #6c757d;
    --dark-bg: #12151a;
    --warning-color: #ffc107;
    --text-dark: #2b2d42;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading {
    font-family: var(--font-heading);
}

/* ==========================================================================
   Clases de Utilidad y Animaciones Generales
   ========================================================================== */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.lh-tight {
    line-height: 1.15;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
.top-bar-veritas {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-warning:hover {
    color: var(--warning-color) !important;
}

.brand-title {
    letter-spacing: -1px;
    color: #1a1a1a;
}

.brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Dropdown hover en desktop */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }
}

.custom-dropdown .dropdown-item {
    transition: all 0.2s;
    font-weight: 500;
}

.custom-dropdown .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.btn-cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background-image: url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop'); /* Placeholder imagen construcción/reparación */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-overlay {
    mix-blend-mode: multiply;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-light:hover {
    transform: scale(1.05);
    background-color: #fff !important;
    color: var(--text-dark) !important;
}

.bg-transparent-hover:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Glassmorphism para la tarjeta del formulario */
.custom-glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.custom-glass-card .form-control, 
.custom-glass-card .form-select {
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.custom-glass-card .form-control:focus, 
.custom-glass-card .form-select:focus {
    background: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
}

/* ==========================================================================
   Secciones B2B y Servicios
   ========================================================================== */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.service-card .icon-wrapper {
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: rotateY(180deg);
}

/* ==========================================================================
   Grupo Veritas (Filiales)
   ========================================================================== */
.hover-border-primary:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1) !important;
}

/* ==========================================================================
   Packs de Mantenimiento (Pricing)
   ========================================================================== */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.price-tag span:first-child {
    letter-spacing: -2px;
}

.pricing-card .card-header i {
    transition: all 0.3s ease;
}

.pricing-card:hover .card-header i {
    transform: scale(1.2);
}

/* ==========================================================================
   Footer y SEO Cards
   ========================================================================== */
.seo-card {
    border-color: rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.02) !important;
}

.seo-card:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: var(--primary-color) !important;
}

.hover-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border-color: #495057;
    transition: all 0.3s;
}

.btn-social:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.custom-footer-links a {
    transition: all 0.2s;
}

.custom-footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.hover-white:hover {
    color: #fff !important;
}

/* ==========================================================================
   Responsive Ajustes
   ========================================================================== */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    .hero-section {
        min-height: auto;
        padding-top: 8rem !important;
    }
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}