/* ================= RESET Y BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #5b5e67;
    background: #ffffff;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #f7f7f7;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* baja los enlaces */
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo img {
    height: 105px;
}

/* ================= NAV ================= */
nav {
    display: flex;
    gap: 40px;
    padding-bottom: 25px; /* alineación con SOLUTIONS */
}

nav a {
    position: relative;
    text-decoration: none;
    color: #5b5e67;
    font-weight: 500;
    padding-bottom: 5px;
}

/* animación subrayado */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #2e3192;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ================= HOME ================= */
.hero {
    padding-top: 180px; /* espacio por header fijo */
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    background: #f7f7f7;
}

.hero-content {
    max-width: 1100px;
    text-align: center;
}

.hero-logo {
    width: 220px;
    margin-bottom: 30px;
}

.primary {
    color: #2e3192;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

.hero p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.tagline {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #5b5e67;
}

/* imagen principal HOME */
.home-image {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.home-image img {
    width: 1100px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ================= SECCIONES GENERALES ================= */
.section {
    padding: 100px 60px;
    display: flex;
    justify-content: center;
}

.section > div,
.section > ul,
.section > p,
.section > h2 {
    max-width: 1100px;
    width: 100%;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #2e3192;
}

.gray {
    background: #f7f7f7;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #2e3192;
    margin: 4px 0;
}

@media (max-width: 768px) {

    nav {
        display: none;
        flex-direction: column;
        background: #f7f7f7;
        width: 100%;
        padding: 20px 0;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ================= FIX QUIÉNES SOMOS (MÓVIL) ================= */

/* ================= SECCIONES CON OVERLAY ================= */

.overlay-section {
    background: linear-gradient(
        rgba(46,49,146,0.9),
        rgba(46,49,146,0.9)
    ),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786") center/cover;
    color: #ffffff;
    text-align: center;
}

.overlay-content {
    max-width: 900px;
    margin: 0 auto;
}

.overlay-section h2 {
    color: #ffffff;
}

.overlay-section p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}



#about {
    display: block; /* elimina el flex problemático en móvil */
}

.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

@media (max-width: 768px) {

    #about {
        padding: 70px 20px;
    }

    .about-wrapper {
        padding: 0;
    }

    #about p {
        font-size: 15px;
        line-height: 1.6;
    }
}

.about-bg {
    background: linear-gradient(
        rgba(46,49,146,0.9),
        rgba(46,49,146,0.9)
    ),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d") center/cover;
}

.sectors-bg {
    background: linear-gradient(
        rgba(46,49,146,0.9),
        rgba(46,49,146,0.9)
    ),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786") center/cover;
}

/* ================= SERVICIOS (ESTILO OKOMU) ================= */

.services-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.services-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #2e3192;
    margin-bottom: 10px;
}

.services-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.6;
    color: #5b5e67;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: #ffffff;
    padding: 35px 30px;
    text-align: left;
    border-left: 6px solid #2e3192;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box h3 {
    font-size: 18px;
    color: #2e3192;
    margin-bottom: 15px;
}

.service-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #5b5e67;
}

/* efecto hover sutil tipo okomu */
.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* ================= SECTORES ================= */
#sectors {
    background: linear-gradient(
        rgba(46,49,146,0.9),
        rgba(46,49,146,0.9)
    ),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786") center/cover;
    color: #ffffff;
    text-align: center;
}

#sectors h2 {
    color: #ffffff;
}

.sectors {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.sectors li {
    margin-bottom: 15px;
    font-size: 16px;
}

/* ================= POR QUÉ ELEGIRNOS ================= */
#why {
    text-align: center;
}

.why {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.why li {
    margin-bottom: 15px;
    font-size: 16px;
}

/* ================= CONTACTO (VERTICAL) ================= */

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    margin-bottom: 40px;
    font-size: 16px;
    color: #5b5e67;
}

.contact-info-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #5b5e67;
}

.contact-item i {
    font-size: 20px;
    color: #2e3192;
}

/* mapa ya centrado */
.map iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

/* ================= FOOTER ================= */
footer {
    background: #5b5e67;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

    header {
        flex-direction: column;
        align-items: center;
    }

    nav {
        padding-bottom: 10px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section {
        padding: 80px 30px;
    }
	
}
@media (max-width: 1024px) {

    header {
        padding: 15px 30px;
    }

    nav {
        gap: 25px;
        padding-bottom: 15px;
    }

    .hero-content {
        max-width: 90%;
    }

    .home-image img {
        width: 100%;
    }

    .section {
        padding: 80px 40px;
    }

    .services-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {

    /* HEADER */
    header {
        position: relative;
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
    }

    .logo img {
        height: 80px;
        margin-bottom: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding-bottom: 0;
    }

    nav a {
        font-size: 14px;
    }

    /* HOME */
    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h3 {
        font-size: 18px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-logo {
        width: 180px;
    }

    /* SECCIONES */
    .section {
        padding: 70px 25px;
    }

    .section h2 {
        font-size: 26px;
    }

    /* SERVICIOS */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-box {
        padding: 30px 25px;
    }

    /* CONTACTO */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {

    nav a {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h3 {
        font-size: 16px;
    }

    .hero p {
        font-size: 14px;
    }

    .section h2 {
        font-size: 24px;
    }

    .service-box h3 {
        font-size: 16px;
    }

    .service-box p {
        font-size: 14px;
    }
}
