/* =========================
   RESET
========================= */

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


/* =========================
   BASE
========================= */

html {
    scroll-behavior: smooth;
}

body {

    font-family: Arial, Helvetica, sans-serif;

    background: #f5f7fb;

    color: #1b1b1b;

    line-height: 1.6;

    overflow-x: hidden;

}


a {

    text-decoration: none;

    color: inherit;

}



/* =========================
   HEADER
========================= */

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 8%;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(8px);

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);

}


.logo {

    font-size: 28px;

    font-weight: 800;

    color: #111;

}


.logo span {

    color: #2563eb;

}



/* =========================
   NAVEGACIÓN
========================= */

nav {

    display: flex;

    gap: 25px;

}


nav a {

    font-weight: 600;

    color: #444;

    transition: color .2s ease;

}


nav a:hover {

    color: #2563eb;

}


.menu-toggle {

    display: none;

    background: none;

    border: none;

    font-size: 30px;

    cursor: pointer;

}



/* =========================
   HERO
========================= */

.hero {

    min-height: 80vh;

    display: flex;

    align-items: center;

    padding: 0 8%;

    background:
        linear-gradient(
            135deg,
            #111827,
            #2563eb
        );

    color: white;

}


.hero-content {

    max-width: 750px;

}


.hero h1 {

    font-size: 58px;

    line-height: 1.1;

    margin-bottom: 20px;

}


.hero h1 span {

    display: block;

    margin-top: 10px;

    color: #93c5fd;

}


.hero p {

    font-size: 20px;

    margin-bottom: 35px;

}



/* =========================
   BOTÓN
========================= */

.btn {

    display: inline-block;

    padding: 14px 30px;

    background: white;

    color: #2563eb;

    border-radius: 8px;

    font-weight: bold;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.15);

}



/* =========================
   SECCIONES
========================= */

section {

    padding: 80px 8%;

}


section h2 {

    text-align: center;

    font-size: 36px;

    margin-bottom: 50px;

}



/* =========================
   CARDS
========================= */

.cards {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap: 25px;

}


.card {

    background: white;

    padding: 30px;

    border-radius: 15px;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);

}


.card h3 {

    font-size: 22px;

    margin-bottom: 15px;

}


.card p {

    color: #555;

    margin-bottom: 20px;

}


.card a {

    color: #2563eb;

    font-weight: bold;

}



/* =========================
   COMUNIDAD
========================= */

.newsletter {

    background: #111827;

    color: white;

    text-align: center;

}


.newsletter p {

    max-width: 700px;

    margin: 0 auto 30px;

}


#subscribeForm {

    display: flex;

    flex-direction: column;

    gap: 15px;

    max-width: 500px;

    margin: 0 auto;

}


.newsletter input,
.newsletter select {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 8px;

    outline: none;

    font-size: 16px;

}


.newsletter input:focus,
.newsletter select:focus {

    box-shadow:
        0 0 0 3px rgba(37,99,235,.35);

}


.newsletter button {

    padding: 15px;

    border: none;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;

}


.newsletter button:hover {

    background: #1d4ed8;

    transform: translateY(-2px);

}


.success-message {

    margin-top: 15px;

    color: #22c55e;

    font-weight: 600;

}



/* =========================
   FOOTER
========================= */

footer {

    text-align: center;

    padding: 40px 20px;

    background: white;

    border-top:
        1px solid #e5e7eb;

}


.footer-logo {

    font-size: 24px;

    font-weight: bold;

    margin-bottom: 10px;

}


.footer-logo span {

    color: #2563eb;

}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .header {

        padding: 18px 6%;

    }

    .logo {

        font-size: 22px;

    }

    .menu-toggle {

        display: block;

    }

    nav {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        gap: 0;

        box-shadow:
            0 10px 20px rgba(0,0,0,.08);

    }

    nav.active {

        display: flex;

    }

    nav a {

        padding: 18px;

        border-bottom:
            1px solid #e5e7eb;

    }

    .hero {

        text-align: center;

        min-height: 70vh;

        padding: 60px 8%;

    }

    .hero h1 {

        font-size: 40px;

    }

    .hero p {

        font-size: 18px;

    }

    section h2 {

        font-size: 30px;

    }

}
