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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
    text-align: center;
}

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

header {
    background: #111827;
    padding: 0.75em 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.125em 0.625em rgba(0,0,0,0.15);
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;

    padding: 10px 18px;

    border: 1px solid rgba(56,189,248,.35);
    border-radius: 999px;

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

    display: inline-block;

    transition: all .3s ease;
}

header nav ul li a:hover {
    background: #38bdf8;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(56,189,248,.35);
}

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

.hero {
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
    padding: 3em 1.25em 2em;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    text-align: center;
}

.hero__img {
    width: 13.75em;
    height: 13.75em;
    object-fit: cover;
    border-radius: 50%;
    border: 0.3125em solid #38bdf8;
    box-shadow: 0 0.25em 1.25em rgba(56,189,248,0.3);
    margin: 0;
    display: block;
    transition: 0.3s;
}

.hero__img:hover {
    transform: scale(1.03);
}

.hero__title {
    font-size: 2.625em;
    color: #111827;
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

/* =========================
   CONTENT WRAPPER
========================= */

.content-wrapper {
    width: 95%;
    max-width: 68.75em;
    margin: 0 auto;
    padding: 2.5em 0;
}

/* =========================
   TITULOS
========================= */

h1 {
    font-size: 2.625em;
    text-align: center;
    margin-bottom: 1.875em;
    color: #111827;
}

h2 {
    font-size: 1.75em;
    margin-bottom: 0.9375em;
    color: #0f172a;
    border-left: 0.375em solid #38bdf8;
    padding-left: 0.75em;
    text-align: left;
}

h3 {
    margin: 1.25em 0 0.625em;
    color: #334155;
    text-align: left;
}

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

section {
    background: white;
    margin-bottom: 2.1875em;
    padding: 1.875em;
    border-radius: 1.125em;
    box-shadow: 0 0.3125em 1.25em rgba(0,0,0,0.08);

    text-align: left;
}

/* =========================
   TEXTOS
========================= */

p {
    font-size: 1.0625em;
    margin-top: 0.625em;
    color: #444;
    text-align: left;
}

ul {
    margin-top: 0.625em;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

ul li {
    margin-bottom: 0.5em;
}

/* =========================
   IMAGENES (generales)
========================= */

img {
    width: 100%;
    max-width: 31.25em;
    border-radius: 0.9375em;
    display: block;
    margin: 1.25em auto;
    box-shadow: 0 0.25em 0.9375em rgba(0,0,0,0.15);
    transition: 0.3s;
}

img:hover {
    transform: scale(1.02);
}

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

footer {
    background: #38bdf8;
    color: white;
    padding: 2.5em 1.25em;
    margin-top: 3.125em;
    text-align: center;
}

footer nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25em;
    list-style: none;
    margin-bottom: 1.25em;
}

footer nav ul li a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
}

footer p {
    max-width: 62.5em;
    margin: 0 auto;
    text-align: left;
    color: white;
    font-size: 0.875em;
}

/* =========================
   RESPONSIVE - MOVIL
========================= */

@media (max-width: 48em) {

    html {
        font-size: 17px;
    }

    /* HEADER */

    header {
        padding: 0.75em;
    }

    header nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5em;
    }

    header nav ul li {
        flex: 0 0 auto;
    }

    header nav ul li a {
        padding: 8px 14px;
        font-size: 0.80rem;
    }

    /* HERO */

    .hero {
        min-height: auto;
        padding: 1.5em 1em;
    }

    .hero__title,
    h1 {
        font-size: 2em;
    }

    .hero__img {
        width: 10em;
        height: 10em;
    }

    /* CONTENIDO */

    .content-wrapper {
        width: 100%;
        padding: 1.5em 0.75em;
    }

    section {
        padding: 1.25em 1em;
    }

    h2 {
        font-size: 1.375em;
    }

    h3 {
        font-size: 1.0625em;
    }

    img {
        width: 100%;
        max-width: 100%;
    }

    /* FOOTER */

    footer nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: left;
        gap: 1em;
    }
}

/* =========================
   BOTONES ROTULOS
========================= */

.rotulos-nav {
    margin: 30px 0 25px;
}

.rotulos-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.rotulos-nav a {
    display: inline-block;

    padding: 12px 24px;

    background: #111827;
    color: #fff;

    text-decoration: none;
    font-weight: 600;

    border: 2px solid #38bdf8;
    border-radius: 999px;

    transition: all .3s ease;
}

.rotulos-nav a:hover {
    background: #38bdf8;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56,189,248,.35);
}

@media (max-width: 768px) {

    .rotulos-nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    .rotulos-nav a {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}
