* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Navbar transparente en scroll */
.header.transparent {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-right: 10px;
    border-radius: 20%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* hover SIN línea naranja */
.nav-link:hover {
    color: #555;
}

/* solo el activo tiene línea naranja */
.nav-link.active {
    color: #ff6b35;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

/* subrayado solo en el activo */
.nav-link.active::after {
    width: 100%;
}

/* Hamburguesa móvil */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* HERO (el de servicios es simple, sin carrusel) */
.hero {
    position: relative;
    height: 60vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('trabajadores-de-la-construccion-al-atardecer.jpg') center/cover;
    color: white;
    margin-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    font-weight: 300;
}

/* fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Títulos responsive */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #e9ecef, #f7931e);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
    color: transparent;
}

/* Responsive */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .hero {
        height: 50vh;
        margin-top: 70px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {

    .logo-img {
        height: 50px;
    }

    .hero {
        height: 45vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}
