:root {
    --primary: #0056b3;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* Ajustes Carousel */
.carousel-item {
    height: 85vh;
    background-size: cover;
    background-position: center;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
}

.carousel-caption {
    z-index: 5;
    bottom: 25%;
}

/* Gráfico SVG de Obra en Proceso */
.svg-construction-container {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.crane-arm {
    transform-origin: 20% 70%;
    animation: swing 4s ease-in-out infinite;
}

.crane-hook {
    animation: hoist 4s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes hoist {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Badge Animada de Obra en Proceso */
.work-in-progress-container {
    overflow: hidden;
}

.animated-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    animation: pulse-badge 2s infinite;
}

.animated-badge .dot {
    height: 8px;
    width: 8px;
    background-color: #d9534f;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.service-box {
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-box:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-10px);
}

.service-box:hover i, .service-box:hover p {
    color: white !important;
}

@media (max-width: 768px) {
    .carousel-item { height: 60vh; }
    .carousel-caption h1 { font-size: 2rem; }
}