
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.cta-button {
    background: #ffd700;
    color: #1e3c72;
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    text-decoration: none;
}

/* ===== HERO (ARREGLADO SAFARI) ===== */
.hero {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: relative;

    min-height: 100vh;
    padding-top: 100px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* EFECTO VISUAL (reemplazo del SVG) */
.hero::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;

    background: radial-gradient(circle, rgba(255,255,255,0.08) 2px, transparent 2px);
    background-size: 40px 40px;

    animation: moveBg 20s linear infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes moveBg {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-40px, -40px);
    }
}
.hero h1 {
    font-size: 3rem;
}

/* ===== SECCIONES ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ===== UNIDADES ===== */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.unit-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.unit-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.unit-img img.active {
    opacity: 1;
}

/* ===== CONTACTO ===== */
.contact-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-align: center;
}

/* ===== HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1e3c72;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;

        transform: translateY(-120%);
        transition: 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .cta-button {
        display: none;
    }
}



