:root {
    --primary-color: #0b3c5d;   /* Azul IGEHSA */
    --accent-color: #d9534f;    /* Rojo / Naranja */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 10%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo img {
    height: 52px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(11, 60, 93, 0.8), rgba(11, 60, 93, 0.8)), 
                url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* --- SECTION LAYOUTS --- */
section {
    padding: 70px 10%;
    max-width: 1300px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.section-title span {
    color: var(--accent-color);
}

/* --- NOSOTROS --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- SERVICIOS --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    width: calc(33.333% - 20px);
    min-width: 280px;
    max-width: 360px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    position: relative;
    height: 200px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- EQUIPO DE TRABAJO --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    width: calc(33.333% - 20px);
    min-width: 280px;
    max-width: 360px;
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 4px solid var(--primary-color);
    background-color: #e0e0e0;
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* --- CLIENTES --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    align-items: center;
}

.client-logo {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.client-logo img {
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- CONTACTO --- */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-item p a {
    color: var(--text-dark);
    transition: color 0.2s;
}

.contact-item p a:hover {
    color: var(--accent-color);
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 25px 10%;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .service-card,
    .team-member {
        width: 100%;
    }
}