* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0,86,164,0.3);
}

.btn-primary:hover {
    background: #0066c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,86,164,0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(229,75,27,0.3);
}

.btn-secondary:hover {
    background: #f55c2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,75,27,0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    box-shadow: 0 4px 15px rgba(0,86,164,0.1);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,86,164,0.2);
}

.hero {
    padding: 8rem 5% 4rem;
    background: var(--background-hero);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/800/600') no-repeat right center;
    background-size: contain;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    color: var(--text-oscuro);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.stats {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2;
    transition: transform 0.3s ease;
}

.stats:hover {
    transform: translateY(-52%) scale(1.02);
}

.stats h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 5%;
    background: #f8f9fa;
}

.service-card {
    padding: 2rem;
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(1) {
    background: var(--primary-color);
}

.service-card:nth-child(2) {
    background: var(--secondary-color);
}

.service-card:nth-child(3) {
    background: #2a2c2e;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-card .btn {
    width: fit-content;
    background: white;
    color: var(--text-oscuro);
}

.section {
    padding: 5rem 5%;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.content-block small {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.content-block h2 {
    font-size: 2.5rem;
    color: var(--text-oscuro);
    margin-bottom: 1.5rem;
}

.content-block p {
    color: var(--hover-claro);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.image-grid img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.image-grid img:hover {
    transform: scale(1.03);
}

.projects {
    padding: 4rem 5%;
    background: #f8f9fa;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-oscuro);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 5% 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav {
        display: none;
    }
}