.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    min-height: 450px;
    max-height: 700px;
    padding-top: 40px;
    padding-bottom: 40px;
    background-image: url("../Images/liceu.webp");
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: clamp(30px, 5vw, 80px);
    box-sizing: border-box;
    border-bottom: 7px solid transparent;
    border-image: linear-gradient(to right, #dec184, #f5e7c6, #dec184) 1;
    box-shadow: #000000 0 0 30px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(10, 30, 70, 0.95) 0%, rgba(10, 30, 70, 0.7) 45%, rgba(10, 30, 70, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: #31466b;
    z-index: 2;
    width: fit-content;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
    font-size: clamp(14px, 1.8vw, 28px);
}

.hero-content h2 {
    text-align: center;
    font-size: 2.2em;
    line-height: 1.15;
    font-weight: 500;
    background: linear-gradient(to bottom, #f5e7c6, #dec184);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    user-select: none;
    filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 1));
}

.hero-content p {
    text-align: center;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    background: linear-gradient(to bottom, #f5e7c6, #dec184);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    user-select: none;
    filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 1));
}

.hero-content a {
    padding: 0.8em 1.3em;
    font-size: 0.6em;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(to bottom, rgba(59, 83, 127, 1), rgba(5, 17, 36, 1));
    color: #fcf6ef;
    border: 1px solid #dec184;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    user-select: none;
    margin-top: 0.4em;
}

.hero-content a:hover {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .hero {
        height: 60vh;
        min-height: 470px;
        max-height: 650px;
        padding-left: clamp(30px, 5vw, 80px);
    }
}

@media (max-width: 768px) {
    .hero {
        height: calc(100svh - 250px);
        min-height: 420px;
        max-height: none;
        padding-left: 0;
        padding-top: 60px;
        padding-bottom: 60px;
        justify-content: center;
    }

    .hero::before {
        background: linear-gradient(to right, rgba(10, 30, 70, 0.95) 0%, rgba(10, 30, 70, 0.85) 60%, rgba(10, 30, 70, 0.4) 100%);
    }

    .hero-content {
        gap: 0.8em;
        font-size: clamp(18px, 4.5vw, 26px);
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .hero-content a {
        padding: 0.9em 1.5em;
        font-size: 0.6em;
    }
}

@media (max-width: 480px) {
    .hero {
        height: calc(100svh - 180px);
    }
}