@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --azul-primary: #85C8F2;
    --azul-principal: #6BB3F2;
    --azul-fondo: #e3f2fd;
    --azul-claro: #f0f9ff;
    --negro-suave: #1e293b;
    --gris-texto: #475569;
    --gris-suave: #64748b;
    --font-main: 'Poppins', sans-serif;
    --main-bg: #e3f2fd;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--negro-suave);
    overflow-x: hidden;
    line-height: 1.6;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    grid-template-areas:
        "header"
        "main"
        "footer";
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    z-index: 1000;
    background: transparent;
    border: none;
}

.titulo-header {
    display: flex;
    align-items: center;
}

.titulo-header h1 {
    font-size: 25px;
    font-weight: 700;
    color: var(--negro-suave);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.titulo-header img {
    width: 80px;
    height: 70px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--negro-suave);
    border-radius: 2px;
    transition: all 0.3s ease;
}

nav ul li {
    font-weight: 600;
    margin: 0 20px;
}

nav ul li a {
    font-size: 15px;
    text-decoration: none;
    color: var(--gris-texto);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--azul-principal);
}

nav ul li a::after {
    content: "";
    height: 3px;
    width: 0;
    display: block;
    transition: all .3s;
    background-color: var(--azul-principal);
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 100%;
}

#decoration-login-button {
    border: 2px solid var(--azul-principal);
    border-radius: 50px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#decoration-login-button:hover {
    background: var(--azul-principal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 179, 242, 0.4);
}

#decoration-login-button a {
    text-decoration: none;
    color: var(--azul-principal);
    font-weight: 600;
}

#decoration-login-button:hover a {
    color: white;
}

#decoration-login-button a::after {
    display: none;
}

/* MAIN CONTENT */
main {
    grid-area: main;
}

section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 100px 80px 100px;
    gap: 60px;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--azul-fondo) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeIn 0.8s ease-out;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--negro-suave);
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 20px;
    color: var(--gris-texto);
    max-width: 500px;
}

.hero-text span {
    color: var(--azul-principal);
    font-weight: 700;
}

.hero-text a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    background: var(--azul-principal);
    width: fit-content;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(107, 179, 242, 0.3);
}

.hero-text a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(107, 179, 242, 0.4);
    background: #50a1e3;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ABOUT SECTION */
.about-section {
    background: white;
    flex-direction: row;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--negro-suave);
    position: relative;
}

.about-text h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--azul-principal);
    margin-top: 10px;
    border-radius: 2px;
}

.about-text p {
    font-size: 18px;
    color: var(--gris-texto);
    text-align: justify;
}

/* CARDS SECTION */
.cards-section {
    background: var(--azul-claro);
    flex-direction: column;
    padding: 100px 120px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--negro-suave);
}

.card p {
    font-size: 15px;
    color: var(--gris-texto);
    line-height: 1.6;
}

/* FOOTER */
footer {
    grid-area: footer;
    background: #f8fafc;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

footer p {
    color: var(--gris-suave);
    font-size: 14px;
}

@media (max-width: 1024px) {
    header {
        padding: 10px 20px !important;
        background: #e3f2fd !important;
        position: fixed !important;
        z-index: 2000;
    }

    .titulo-header h1 {
        font-size: 16px;
    }

    .titulo-header img {
        width: 60px;
        height: 50px;
    }

    .menu-toggle {
        display: flex;
        z-index: 2100;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
        z-index: 2050;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 20px;
        color: var(--negro-suave);
    }

    .menu-toggle.active {
        position: fixed;
        right: 20px;
        top: 25px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        margin-top: 40px;
    }

    .cards-section {
        padding: 60px 40px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 10px 40px;
    }

    section {
        padding: 60px 40px;
        flex-direction: column;
        text-align: center;
    }

    .about-section {
        flex-direction: column-reverse;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-image img,
    .about-image img {
        max-width: 100%;
    }

    .about-text {
        align-items: center;
    }

    .about-text h2::after {
        margin: 10px auto;
    }
}