:root {
    --primary: #1e3d59;
    --secondary: #0077b6;
    --accent: #00b4d8;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    /*background: var(--primary);*/
    /*color: #fff;*/
    /*padding: 10px 20px;*/
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
    /*position: sticky;*/
    /*top: 0;*/
    /*z-index: 1000;*/
    background: var(--primary);
    color: #fff;
    padding: 10px 40px;
    /* más espacio lateral */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 11;
    gap: 30px;
    /* espacio entre logo y nav */
}

header img {
    height: 100px;
    /* aumenta el tamaño */
    max-height: 100px;
    /* asegura que no se desborde */
    /* filter: none; /* elimina el filtro para mantener los colores originales */
    margin-right: 20px;
    /* separa el logo del menú */
    filter: brightness(0) invert(1);
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.hero {
    background: linear-gradient(rgba(30, 61, 89, 0.7), rgba(30, 61, 89, 0.7)),
        url('../img/ingenia_index.jpeg') no-repeat center center/cover;
    /* https://images.unsplash.com/photo-1521791136064-7986c2920216 */
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    animation: fadeInUp 1.5s ease;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--secondary);
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-team {
    padding: 0px 20px;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: var(--primary);
    margin-bottom: 40px;
}

.section a {
    color: var(--primary);
}

.section a:hover {
    color: var(--secondary);
}

.section b {
    color: var(--primary);
    font-size: 1.1rem;
}

.section p {
    margin-bottom: 1.2rem;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service {
    flex: 1 1 300px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
}

.service h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

/**/

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e3d59;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    z-index: 1;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #0077b6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.img-core {
    background-image: url('../img/ingenia_core.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 94vw;
    height: 60vw;

}

/**/
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* menu portafolio */

.portafolio {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radial-container {
    position: relative;
    width: 900px;
    height: 700px;
}

.connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.center-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(7, 45, 122, .25);
}

.center-node h2 {
    font-size: 36px;
    font-weight: 700;
}

.center-node span {
    opacity: .8;
    margin-top: 10px;
}

.menu-item {
    position: absolute;
    width: 170px;
    height: 80px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    cursor: pointer;
    transition: .35s ease;
    z-index: 5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.menu-item span {
    font-size: 22px;
}

.menu-item p {
    font-size: 14px;
    font-weight: 600;
    color: #243447;
}

.menu-item:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(7, 45, 122, .15);
}

.menu-item.active {
    background: var(--primary);
}

.menu-item.active p,
.menu-item.active .icon {
    color: white;
}

.menu-item.active span {
    filter: brightness(1.3);
}

.icon {
    font-size: 1.8rem;
    color: var(--primary);

}

@media(max-width:900px) {

    .radial-container {
        transform: scale(.7);
    }

}

/* modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 12;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    width: min(900px, 90vw);
    height: min(700px, 85vh);
    background: white;
    border-radius: 20px;
    overflow: auto;
    position: relative;
    padding: 40px;
    animation: popup .35s ease;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    border: none;
    background: none;
    font-size: 32px;
    cursor: pointer;
}

@keyframes popup {

    from {
        transform: scale(.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-window h1 {
    margin: 1rem 0;
    color: var(--primary);
    text-align: center;
}

.modal-window h3 {
    margin: 0.5rem 0;
    color: var(--secondary);
}

.modal-window .modal-columns {
    margin: 1rem 0;
    display: flex;
    gap: 20px;
}

.modal-window .modal-column {
    padding: 1rem;
    flex: 1;
    border-radius: 20px;
    transition: transform 0.5s ease;
    box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.1);
}

.modal-window .modal-column:hover {
    transform: translateY(-10px);
}

.modal-list {
    padding: 0 1rem;
    list-style: none;
}