/* fonts: Montserrat, Castoro,  */
@import url('https://fonts.googleapis.com/css2?family=Castoro:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

:root {
    --main-color: #062033;
    --bg-color: #fff;
    --grid-color-1: #FFAB73;
    --grid-color-2: #D2ECFF;
    --grid-color-3: #062033;
    --grid-color-4: #F2F2F2;
    --grid-color-5: #FFCB39;
    --grid-color-6: #062033;
    --grid-color-7: #FFF1D9;
    --grid-color-8: #FFAB73;
    --font-monserrat: "Montserrat", sans-serif;
    --font-castoro: "Castoro", serif;
}

body {
    margin: 0;
    font-family: var(--font-monserrat);
}

header {
    width: 100%;
    height: 39px;
    background: #015DCA;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 5rem;
}

header img {
    width: 82px;
    height: 16px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    z-index: 100;
}

nav img {
    width: auto;
    height: 42px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

nav ul li {
    padding: 5px 5px;
    font-size: 15px;
}

.menu-active {
    border-bottom: 3px solid var(--main-color);
}

.login-btn {
    background-color: var(--main-color);
    color: white;
    padding: 10px 20px;
    border-radius: 3px;
}

.login-btn:hover {
    background-color: #ff7212;
}

/* Estilos para el menú hamburguesa (solo visible en móvil) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#banner {
    position: relative;
    width: 100%;
    height: 443px;
    display: flex;
    justify-content: center;
    align-items: center;
}

figure {
    width: 100%;
    height: 443px;
    overflow: hidden;
}

.overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.89) 0%, rgba(0, 0, 0, 0) 70%);
}

figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.agenda {
    position: absolute;
    right: 0;
    opacity: 0.6;
    height: 100%;
}

.welcome {
    position: absolute;
    top: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5rem 0 3rem;
    color: #FFF;
    z-index: 50;
}

.welcome h3 {
    font-size: 25px;
    line-height: 30px;
    letter-spacing: 10px;
    font-weight: 500;
}

.welcome h2 {
    font-size: 59px;
    font-family: var(--font-castoro);
    font-weight: 400;
    text-align: center;
    padding: 0 1.2rem;
}

.welcome h4 {
    font-size: 25px;
    font-weight: 500;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.know-more-btn {
    background-color: var(--main-color);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    max-width: 226px;
    margin-top: 1rem;
    font-family: var(--font-monserrat) !important;
}

.know-more-btn span {
    font-weight: 400;
}

.know-more-btn:hover {
    background-color: #ff7212;
}

.know-more-btn-black {
    background-color: var(--main-color);
    border: 1px solid white;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    border-radius: 5px;
    max-width: 226px;
    margin-top: 1rem;
    font-family: var(--font-monserrat) !important;
}

.know-more-btn-black span {
    font-weight: 400;
}

.know-more-btn-black:hover {
    background-color: #ff7212;
    border: none;
}

.grid {
    overflow: hidden;
    border-radius: 10px;
    margin-top: 5rem !important;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: auto 1rem;
    max-width: 1320px;
}

.grid .card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid .card div {
    margin-top: 1.5rem;
}

.grid .card div h3 {
    margin-bottom: 1rem;
}


.grid .card h3 {
    text-align: start;
    font-size: 32px;
    font-weight: 400;
    font-family: var(--font-castoro);
}

.grid .card p {
    padding: 0;
    text-align: start;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: 1rem
}

.card-1 {
    background-color: var(--grid-color-1);
    grid-column: span 2;
}

.card-2 {
    background-color: var(--grid-color-2);
    grid-column: span 2;
}

.card-3 {
    background-color: var(--grid-color-3);
    grid-column: span 2;
    color: white;
}

.card-4 {
    background-color: var(--grid-color-4);
    grid-column: span 3;
}

.card-5 {
    background-color: var(--grid-color-5);
    grid-column: span 3;
}

.card-6 {
    background-color: var(--grid-color-6);
    grid-column: span 2;
    color: white;
}

.card-7 {
    background-color: var(--grid-color-7);
    grid-column: span 2;
}

.card-8 {
    background-color: var(--grid-color-8);
    grid-column: span 2;
}

footer {
    display: flex;
    height: 68px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 5rem;
    background-color: var(--main-color);
    color: white;
    font-size: 18px;
    margin-top: 8rem;
}

.espacial-box {
    display: flex;
}

.ml {
    margin-left: 220px;
}

/* Media queries para responsive */
@media (max-width: 992px) {
    nav {
        padding: 1rem 2rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }

    #know-agent a {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-around;
        color: white;
        border-radius: 0;
        padding: 2rem;
        gap: 1rem;
    }

    #know-agent a p {
        text-align: center;
        margin-bottom: 1rem;
    }

    .welcome {
        gap: 1rem;
        top: 100px;
    }

    .welcome h3 {
        font-size: 20px;
    }

    .welcome h2 {
        font-size: 40px;
    }

    .welcome h4 {
        font-size: 18px;
    }

    main p {
        padding: 0 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        margin: auto 0.5rem;
        max-width: 100%;
    }

    .grid .card {
        min-height: auto;
    }

    .espacial-box {
        display: flex;
        flex-direction: column;
    }

    .ml {
        margin-left: 0px;
    }

    .agenda {
        bottom: 0;
        height: 54%;
    }

}

@media (max-width: 768px) {
    .overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.89) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .welcome {
        top: 30px;
    }

    .welcome h3 {
        letter-spacing: 4px;
    }

    .grid {
        margin: 1.5rem 1rem !important;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 105px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 100;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    nav {
        padding: 1rem;
    }

    header {
        padding: 0 1rem;
    }

    footer {
        font-size: 14px;
        padding: 0 1rem;
        gap: 5px;
        justify-content: center;
        flex-direction: column;
    }

    #know-agent a div {
        justify-content: center;
        align-items: center;
    }

    .grid .card {
        padding: 2.5rem 2rem;
    }

}

@media (max-width: 480px) {
    nav img {
        height: 36px;
    }
}