:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 84px;
    max-width: 220px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--light-bg);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-text {
    padding-left: 2rem;
}

.hero-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .cta-button,
.hero-buttons .button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    transition: all 0.3s;
    box-sizing: border-box;
    cursor: pointer;
}

.hero-buttons .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.hero-buttons .cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-buttons .button {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-buttons .button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Servicios Section */
.servicios {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.servicios h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.servicio-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.servicio-card p {
    margin-bottom: 1.5rem;
}

/* Nosotros Section */
.nosotros {
    padding: 4rem 0;
}

.nosotros h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nosotros-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.nosotros-card:hover {
    transform: translateY(-5px);
}

.nosotros-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nosotros-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Equipo Section */
.equipo {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.equipo h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.equipo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.equipo-imagen {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--light-bg);
    margin: 0 auto 1rem;
    background-size: cover;
    background-position: center;
}

.equipo-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.equipo-card .cargo {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Clientes Section */
.clientes {
    padding: 4rem 0;
}

.clientes h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.cliente-logo {
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.cliente-logo img {
    max-height: 90px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.cliente-logo:hover img {
    filter: grayscale(0%);
}

/* Contacto Section */
.contacto {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.contacto h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contacto-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contacto-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contacto-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacto-info i {
    color: var(--secondary-color);
}

.redes-sociales {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.redes-sociales a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.redes-sociales a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    width: 100%;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.footer-links h3 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-text {
        padding-left: 0;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-text h2 {
        font-size: 2.2rem;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Nav Hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
    margin-left: 1rem;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0.5rem 10px;
        min-height: 56px;
    }
    .logo img {
        height: 70px;
        max-width: 140px;
    }
    .nav-toggle {
        display: flex;
        margin-left: 0;
    }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        box-shadow: none;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(.77,0,.18,1);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav.open {
        transform: translateX(0);
    }
    .nav ul {
        flex-direction: column;
        gap: 2.2rem;
        padding: 0;
        align-items: center;
    }
    .nav ul li {
        margin: 0;
        padding: 0;
        border: none;
    }
    .nav ul li a {
        font-size: 1.5rem;
        color: var(--primary-color);
        font-weight: 700;
        letter-spacing: 0.5px;
        transition: color 0.2s;
    }
    .nav ul li a:hover {
        color: var(--secondary-color);
    }
    body.menu-open {
        overflow: hidden;
    }
} 