/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-color: #FFD700;       /* Color amarillo principal */
    --secondary-color: #FFC107;     /* Color amarillo secundario */
    --dark-color: #424242;          /* Color oscuro para textos */
    --light-color: #f8f9fa;         /* Color claro de fondo */
    --accent-color: #FFA500;        /* Color de acento naranja */
    --gray-color: #757575;          /* Color gris para textos secundarios */
    --dark-bg: #1a1a1a;             /* Fondo oscuro */
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.custom-navbar {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1030;
}

.custom-navbar.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== BOTONES ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* ===== HERO SECTION CON VIDEO ===== */
.hero-section {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000; /* Fallback color */
}

/* Contenedor del video */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

/* Overlay sobre el video para mejor legibilidad */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Asegurar que el contenido esté sobre el video */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== CONTENEDORES CENTRADOS ===== */
.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.title-container {
    width: 100%;
    margin-bottom: 20px;
}

.subtitle-container {
    width: 100%;
    margin-bottom: 40px;
}

.road-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.buttons-container {
    width: 100%;
    margin-top: 30px;
}

/* ===== TÍTULO PRINCIPAL - ANIMACIÓN DE LETRAS AMARILLAS ===== */
.hero-title-yellow {
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.animated-letters-yellow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    width: 100%;
}

/* Organización en dos líneas */
.title-line {
    display: block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.first-line {
    margin-bottom: 5px;
}

.second-line {
    margin-top: 5px;
}

/* Estilos individuales de cada letra */
.letter-yellow {
    display: inline-block;
    opacity: 0;
    transform: translateY(-100px);
    animation: letter-fall-yellow 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: #ffffff; /* Amarillo fuerte */
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 20px rgba(255,215,0,0.4);
}

.space-yellow {
    display: inline-block;
    width: 12px;
}

/* Animación de caída de letras */
@keyframes letter-fall-yellow {
    0% {
        opacity: 0;
        transform: translateY(-150px) scale(1.8);
        text-shadow: 
            4px 4px 8px rgba(0,0,0,0.8),
            0 0 40px rgba(255,215,0,0.8);
        color: #FFA500;
    }
    60% {
        opacity: 1;
        transform: translateY(20px) scale(1.1);
        text-shadow: 
            2px 2px 6px rgba(0,0,0,0.6),
            0 0 30px rgba(255,215,0,0.6);
        color: #FFC107;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.5),
            0 0 20px rgba(255,215,0,0.4);
        color: #ffffff;
    }
}

/* ===== TIMING DE ANIMACIÓN - PRIMERA LÍNEA (DESARROLLOS) ===== */
.first-line .letter-yellow:nth-child(1) { animation-delay: 0.1s; }  /* D */
.first-line .letter-yellow:nth-child(2) { animation-delay: 0.2s; }  /* E */
.first-line .letter-yellow:nth-child(3) { animation-delay: 0.3s; }  /* S */
.first-line .letter-yellow:nth-child(4) { animation-delay: 0.4s; }  /* A */
.first-line .letter-yellow:nth-child(5) { animation-delay: 0.5s; }  /* R */
.first-line .letter-yellow:nth-child(6) { animation-delay: 0.6s; }  /* R */
.first-line .letter-yellow:nth-child(7) { animation-delay: 0.7s; }  /* O */
.first-line .letter-yellow:nth-child(8) { animation-delay: 0.8s; }  /* L */
.first-line .letter-yellow:nth-child(9) { animation-delay: 0.9s; }  /* L */
.first-line .letter-yellow:nth-child(10) { animation-delay: 1.0s; } /* O */
.first-line .letter-yellow:nth-child(11) { animation-delay: 1.1s; } /* S */

/* ===== TIMING DE ANIMACIÓN - SEGUNDA LÍNEA (ASFÁLTICOS S.A.) ===== */
.second-line .letter-yellow:nth-child(1) { animation-delay: 1.3s; }  /* A */
.second-line .letter-yellow:nth-child(2) { animation-delay: 1.4s; }  /* S */
.second-line .letter-yellow:nth-child(3) { animation-delay: 1.5s; }  /* F */
.second-line .letter-yellow:nth-child(4) { animation-delay: 1.6s; }  /* Á */
.second-line .letter-yellow:nth-child(5) { animation-delay: 1.7s; }  /* L */
.second-line .letter-yellow:nth-child(6) { animation-delay: 1.8s; }  /* T */
.second-line .letter-yellow:nth-child(7) { animation-delay: 1.9s; }  /* I */
.second-line .letter-yellow:nth-child(8) { animation-delay: 2.0s; }  /* C */
.second-line .letter-yellow:nth-child(9) { animation-delay: 2.1s; }  /* O */
.second-line .letter-yellow:nth-child(10) { animation-delay: 2.2s; } /* S */
.second-line .letter-yellow:nth-child(11) { animation-delay: 2.3s; } /* espacio */
.second-line .letter-yellow:nth-child(12) { animation-delay: 2.4s; } /* S */
.second-line .letter-yellow:nth-child(13) { animation-delay: 2.5s; } /* . */
.second-line .letter-yellow:nth-child(14) { animation-delay: 2.6s; } /* A */
.second-line .letter-yellow:nth-child(15) { animation-delay: 2.7s; } /* . */

/* ===== SUBTÍTULO - ANIMACIÓN COMPLETA CORREGIDA ===== */
.hero-subtitle-yellow {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
}

.subtitle-letters-yellow {
    display: inline-block;
    white-space: nowrap;
}

.sub-letter-yellow {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: subtitle-appear-yellow 0.8s ease-out forwards;
    color: #FFD700;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.4),
        0 0 15px rgba(255,215,0,0.3);
    white-space: nowrap;
}

.sub-space-yellow {
    display: inline-block;
    width: 5px;
}

/* Animación de aparición del subtítulo */
@keyframes subtitle-appear-yellow {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        text-shadow: 
            3px 3px 6px rgba(0,0,0,0.6),
            0 0 25px rgba(255,215,0,0.5);
        color: #FFA500;
    }
    70% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.5),
            0 0 20px rgba(255,215,0,0.4);
        color: #FFC107;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 
            1px 1px 3px rgba(0,0,0,0.4),
            0 0 15px rgba(255,215,0,0.3);
        color: #FFD700;
    }
}

/* ===== TIMING DE ANIMACIÓN COMPLETO - SUBTÍTULO (34 letras) ===== */
.sub-letter-yellow:nth-child(1) { animation-delay: 3.0s; }  /* C */
.sub-letter-yellow:nth-child(2) { animation-delay: 3.1s; }  /* o */
.sub-letter-yellow:nth-child(3) { animation-delay: 3.2s; }  /* n */
.sub-letter-yellow:nth-child(4) { animation-delay: 3.3s; }  /* s */
.sub-letter-yellow:nth-child(5) { animation-delay: 3.4s; }  /* t */
.sub-letter-yellow:nth-child(6) { animation-delay: 3.5s; }  /* r */
.sub-letter-yellow:nth-child(7) { animation-delay: 3.6s; }  /* u */
.sub-letter-yellow:nth-child(8) { animation-delay: 3.7s; }  /* y */
.sub-letter-yellow:nth-child(9) { animation-delay: 3.8s; }  /* e */
.sub-letter-yellow:nth-child(10) { animation-delay: 3.9s; } /* n */
.sub-letter-yellow:nth-child(11) { animation-delay: 4.0s; } /* d */
.sub-letter-yellow:nth-child(12) { animation-delay: 4.1s; } /* o */
.sub-letter-yellow:nth-child(13) { animation-delay: 4.2s; } /* espacio */
.sub-letter-yellow:nth-child(14) { animation-delay: 4.3s; } /* e */
.sub-letter-yellow:nth-child(15) { animation-delay: 4.4s; } /* l */
.sub-letter-yellow:nth-child(16) { animation-delay: 4.5s; } /* espacio */
.sub-letter-yellow:nth-child(17) { animation-delay: 4.6s; } /* c */
.sub-letter-yellow:nth-child(18) { animation-delay: 4.7s; } /* a */
.sub-letter-yellow:nth-child(19) { animation-delay: 4.8s; } /* m */
.sub-letter-yellow:nth-child(20) { animation-delay: 4.9s; } /* i */
.sub-letter-yellow:nth-child(21) { animation-delay: 5.0s; } /* n */
.sub-letter-yellow:nth-child(22) { animation-delay: 5.1s; } /* o */
.sub-letter-yellow:nth-child(23) { animation-delay: 5.2s; } /* espacio */
.sub-letter-yellow:nth-child(24) { animation-delay: 5.3s; } /* d */
.sub-letter-yellow:nth-child(25) { animation-delay: 5.4s; } /* e */
.sub-letter-yellow:nth-child(26) { animation-delay: 5.5s; } /* l */  /* "del" JUNTO */
.sub-letter-yellow:nth-child(27) { animation-delay: 5.6s; } /* espacio */
.sub-letter-yellow:nth-child(28) { animation-delay: 5.7s; } /* f */
.sub-letter-yellow:nth-child(29) { animation-delay: 5.8s; } /* u */
.sub-letter-yellow:nth-child(30) { animation-delay: 5.9s; } /* t */
.sub-letter-yellow:nth-child(31) { animation-delay: 6.0s; } /* u */
.sub-letter-yellow:nth-child(32) { animation-delay: 6.1s; } /* r */
.sub-letter-yellow:nth-child(33) { animation-delay: 6.2s; } /* o */
.sub-letter-yellow:nth-child(34) { animation-delay: 6.3s; } /* . */

/* ===== CARRETERA ANIMADA - CENTRADA Y MEJORADA ===== */
.road-animation-enhanced {
    position: relative;
    margin: 0 auto;
    height: 100px;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    opacity: 0;
    animation: road-container-appear 0.5s ease-out forwards;
    animation-delay: 6.8s;
}

.road-enhanced {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #1a1a1a, #2d2d2d, #1a1a1a);
    animation: road-build-enhanced 2s ease-in-out forwards;
    animation-delay: 6.9s;
    border-radius: 8px;
}

.road-line-enhanced {
    position: absolute;
    bottom: 25px;
    left: -100%;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 25px,
        var(--primary-color) 25px,
        var(--primary-color) 50px
    );
    animation: road-line-build-enhanced 1.5s ease-in-out forwards;
    animation-delay: 7.2s;
}

.construction-icons-enhanced {
    position: absolute;
    bottom: 60px;
    left: -100%;
    display: flex;
    gap: 40px;
    animation: icons-move-enhanced 2.5s ease-in-out forwards;
    animation-delay: 7.5s;
}

.icon-enhanced {
    font-size: 28px;
    opacity: 0;
    animation: icon-appear-enhanced 0.6s ease-in-out forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Timing de iconos de construcción */
.icon-enhanced:nth-child(1) { animation-delay: 7.9s; }
.icon-enhanced:nth-child(2) { animation-delay: 8.1s; }
.icon-enhanced:nth-child(3) { animation-delay: 8.3s; }
.icon-enhanced:nth-child(4) { animation-delay: 8.5s; }
.icon-enhanced:nth-child(5) { animation-delay: 8.7s; }
.icon-enhanced:nth-child(6) { animation-delay: 8.9s; }
.icon-enhanced:nth-child(7) { animation-delay: 9.1s; }
.icon-enhanced:nth-child(8) { animation-delay: 9.3s; }
.icon-enhanced:nth-child(9) { animation-delay: 9.5s; }
.icon-enhanced:nth-child(10) { animation-delay: 9.7s; }

/* Animaciones de la carretera */
@keyframes road-container-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes road-build-enhanced {
    0% {
        left: -100%;
        width: 0%;
    }
    50% {
        left: 0;
        width: 0%;
    }
    100% {
        left: 0;
        width: 100%;
    }
}

@keyframes road-line-build-enhanced {
    0% {
        left: -100%;
        width: 0%;
    }
    100% {
        left: 0;
        width: 100%;
    }
}

@keyframes icons-move-enhanced {
    0% { left: -100%; }
    100% { 
        left: 50%;
        transform: translateX(-50%);
    }
}

@keyframes icon-appear-enhanced {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Efectos de textura para la carretera */
.road-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.4) 100%);
    border-radius: 8px 8px 0 0;
}

.road-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.5) 100%);
    border-radius: 0 0 8px 8px;
}

/* ===== ANIMACIÓN DE BOTONES ===== */
@keyframes button-appear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: button-appear 0.8s ease-out forwards;
}

.hero-section .btn-primary {
    animation-delay: 8.9s;
}

.hero-section .btn-outline-primary {
    animation-delay: 9.1s;
}

/* ===== SECCIÓN DE CLIENTES ===== */
.clients-section {
    background-color: #FAFAFA;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.02"><circle cx="50" cy="50" r="2" fill="%23FFD700"/></svg>') repeat;
    background-size: 50px 50px;
}

.clients-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.clients-title::before,
.clients-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--primary-color);
}

.clients-title::before {
    left: -50px;
}

.clients-title::after {
    right: -50px;
}

.client-logo {
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.client-logo:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.05);
}

.client-logo img {
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===== SECCIÓN NOSOTROS ===== */
.about-section {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.02"><polygon points="50,10 90,90 10,90" fill="%23FFD700"/></svg>') repeat;
    background-size: 60px 60px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-section .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 20px;
}

.about-section ul li {
    padding: 8px 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.about-section ul li:hover {
    transform: translateX(10px);
}

.about-section ul li i {
    transition: all 0.3s ease;
}

.about-section ul li:hover i {
    transform: scale(1.2);
}

/* ===== SECCIÓN MISIÓN Y VISIÓN ===== */
.mission-vision-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.02"><path fill="%23FFD700" d="M500,100 L600,300 L800,350 L650,500 L700,700 L500,600 L300,700 L350,500 L200,350 L400,300 Z"/></svg>') repeat;
    background-size: 200px 200px;
}

/* Tarjetas de Misión y Visión */
.mission-vision-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.mission-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
}

.vision-card:hover {
    border-color: rgba(255, 193, 7, 0.3);
}

/* Iconos de las tarjetas */
.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #000;
    transition: all 0.3s ease;
}

.mission-vision-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Títulos de las tarjetas */
.mission-vision-card h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #212121;
    position: relative;
}

.mission-vision-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Contenido de las tarjetas */
.card-content p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.05rem;
}

/* Características */
.card-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 12px;
    width: 20px;
}

.feature-item span {
    color: var(--dark-color);
    font-weight: 500;
}

/* ===== SECCIÓN DE VALORES CORREGIDA ===== */
.values-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.values-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212121;
    position: relative;
    margin-bottom: 40px !important;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Items de Valores - CORREGIDO */
.value-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: block !important; /* Forzar display block */
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.05);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 15px !important;
    font-size: 28px;
    color: #000;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
}

.value-item h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #212121;
    display: block !important;
}

.value-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    display: block !important;
}

/* ===== SECCIÓN DE SERVICIOS ===== */
.services-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.02"><rect x="25" y="25" width="50" height="50" fill="%23FFD700"/></svg>') repeat;
    background-size: 40px 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #EEEEEE;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #212121;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* ===== CARRUSEL SIMPLE ===== */
.carousel-simple-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.simple-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background: #000;
}

.carousel-track {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.1);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 3;
}

.carousel-slide.active .slide-caption {
    transform: translateY(0);
}

/* Controles del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
    border-color: white;
}

/* ===== SECCIÓN DE CONTACTO ===== */
.contact-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #EEEEEE;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* ===== SECCIÓN DE TÍTULOS ===== */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #212121;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 30px auto 50px;
    text-align: center;
    line-height: 1.7;
}

/* ===== FOOTER CORREGIDO ===== */
.footer {
    background: #212121;
    color: white;
    padding: 80px 0 30px;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Contacto en footer CORREGIDO */
.footer-contact h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item span {
    color: rgba(255,255,255,0.7);
    word-break: break-word;
}

/* Asegurar que el correo largo se ajuste */
.contact-item:nth-child(3) span {
    word-break: break-all;
    font-size: 0.95rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* ===== SECCIÓN DE OBRAS (PÁGINA SEPARADA) ===== */
.obras-page-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 100vh;
    padding: 100px 0 60px;
    display: none;
}

.obras-page-header {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.obras-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.obras-page-subtitle {
    color: var(--gray-color);
    font-size: 1.2rem;
    margin: 0;
}

/* Botón volver al main */
.btn-back-to-main {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back-to-main:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Estadísticas de obras */
.obras-stats {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--gray-color);
    font-weight: 500;
    margin: 0;
}

/* Lista de obras */
.obras-lista {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.categoria-lista-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
}

/* Items de obra */
.obra-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.obra-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.obra-item-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.obra-item-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212121;
    margin: 0;
    flex: 1;
}

.obra-year {
    background: var(--primary-color);
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.obra-item-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.obra-item-content strong {
    color: #212121;
}

.obra-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.feature-badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--dark-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ===== MODAL PARA IMAGEN AMPLIADA ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* ===== ANIMACIONES AOS PERSONALIZADAS ===== */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-up"] {
    transform: perspective(1000px) rotateX(-90deg);
}

[data-aos="flip-up"].aos-animate {
    transform: perspective(1000px) rotateX(0);
}

[data-aos="flip-down"] {
    transform: perspective(1000px) rotateX(90deg);
}

[data-aos="flip-down"].aos-animate {
    transform: perspective(1000px) rotateX(0);
}

/* ===== ESTILOS PARA EL FORMULARIO DE CONTACTO ===== */
.was-validated .form-control:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg");
    }
    
    .was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Estilos para alertas */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
    border-left: 4px solid #117a8b;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Botón de enviar con loading */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== MEJORAS PARA CARRUSEL CON 10 IMÁGENES ===== */

/* Ajustar indicadores para muchas imágenes */
.carousel-indicators {
    flex-wrap: wrap;
    gap: 8px;
    bottom: 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Mejorar responsive del carrusel */
@media (max-width: 768px) {
    .carousel-indicators {
        gap: 6px;
        bottom: 10px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Asegurar que todas las imágenes tengan el mismo aspecto */
.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Optimizar para móviles */
@media (max-width: 992px) {
    .carousel-slide img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel-slide img {
        height: 250px;
    }
}

/* Mejorar transiciones para más slides */
.carousel-slide {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .animated-letters-yellow {
        font-size: 3.8rem;
    }
    .hero-subtitle-yellow {
        font-size: 2.0rem;
    }
}

@media (max-width: 992px) {
    .animated-letters-yellow {
        font-size: 3.2rem;
    }
    .hero-subtitle-yellow {
        font-size: 1.8rem;
    }
    .carousel-track {
        height: 400px;
    }
    .hero-section {
        padding: 120px 0 80px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .obras-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .animated-letters-yellow {
        font-size: 2.8rem;
    }
    .hero-subtitle-yellow {
        font-size: 1.6rem;
        white-space: normal;
    }
    .hero-title-yellow {
        min-height: 150px;
    }
    .carousel-track {
        height: 300px;
    }
    .road-animation-enhanced {
        height: 80px;
    }
    .road-enhanced {
        height: 35px;
    }
    .construction-icons-enhanced {
        bottom: 45px;
        gap: 20px;
    }
    .icon-enhanced {
        font-size: 20px;
    }
    .section-title {
        font-size: 2rem;
    }
    .service-card {
        padding: 30px 20px;
    }
    .mission-vision-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    .mission-vision-card h3 {
        font-size: 1.7rem;
    }
    .values-section {
        padding: 30px 20px;
    }
    .value-item {
        padding: 15px 10px;
    }
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    .clients-title::before,
    .clients-title::after {
        width: 20px;
    }
    .clients-title::before {
        left: -30px;
    }
    .clients-title::after {
        right: -30px;
    }
    .obras-page-header {
        padding: 25px;
    }
    .obras-page-title {
        font-size: 1.8rem;
    }
    .btn-back-to-main {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .obras-stats {
        padding: 25px 15px;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
    .obra-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .obra-year {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .animated-letters-yellow {
        font-size: 2.2rem;
    }
    .hero-subtitle-yellow {
        font-size: 1.3rem;
    }
    .hero-title-yellow {
        min-height: 120px;
    }
    .hero-section {
        padding: 100px 0 60px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-form {
        padding: 30px 20px;
    }
    .mission-vision-section {
        padding: 60px 0;
    }
    .mission-vision-card {
        padding: 25px 15px;
    }
    .values-section {
        padding: 25px 15px;
    }
    .feature-item {
        padding: 8px 12px;
    }
    .feature-item i {
        font-size: 1rem;
        margin-right: 10px;
    }
    .clients-title::before,
    .clients-title::after {
        display: none;
    }
    .obras-page-title {
        font-size: 1.5rem;
    }
    .obras-page-subtitle {
        font-size: 1rem;
    }
    .categoria-lista-title {
        font-size: 1.5rem;
    }
    .obra-item {
        padding: 20px;
    }
    .obra-item-header h3 {
        font-size: 1.2rem;
    }
}

/* ===== UTILIDADES ===== */
.bg-light-custom {
    background-color: #FAFAFA;
}

.text-center {
    text-align: center;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-3 {
    gap: 1rem;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }