@font-face {
    font-family: 'fuentetitulo';
    src: url('Fonts/batmfo__.ttf') format('truetype');
}

@font-face {
    font-family: 'fuenteh1';
    src: url('Fonts/SuperJoyful.ttf') format('truetype');
}

@font-face {
    font-family: 'fuentetexto';
    src: url('Fonts/Coolvetica.otf') format('opentype');
}

body {
    cursor: url('cursor.cur'), auto;
}

/* -------------------- CABECERA -------------------- */
#cabecera {
    background-color: #3E5879;
    width: 100%;
    height: 400px;
}

#contcabecera {
    background-color: #213555;
    width: 1024px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
}

#logo {
    width: 300px;
    height: 300px;
    float: left;
    margin-left: 50px;
    margin-bottom: 0px;
    margin-top: 50px;
}

#titulo {
    width: 500px;
    height: 125px;
    float: right;
    margin-right: 165px;
    margin-top: 50px;
}

#subtitulo {
    width: 600px;
    height: 125px;
    float: right;
    margin-right: 40px;
    margin-top: 0px;
}

nav {
    clear: both;
    padding-top: 20px;
    text-align: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.menu li a {
    display: block;
    padding: 10px 20px;
    background-color: #c00909;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.menu li a:hover {
    background-color: #5d769b;
}

/* -------------------- SECCIONES -------------------- */
#seccion {
    background-color: #5d769b;
    width: 1024px;
    height: 1800px;
    margin-left: auto;
    margin-right: auto;
}

#seccionlarga {
    background-color: #82A1CE;
    border-radius: 20px;
    width: 964px;
    height: 280px;
    float: left;
    margin: 50px 30px 30px 30px;
}

#seccioncorta {
    background-color: #2F4E81;
    width: 452px;
    height: 480px;
    margin: 30px;
    float: left;
}

#seccionsubtitulo {
    background-color: #2F4E81;
    width: 964px;
    height: 150px;
    margin: 30px;
    float: left;
}

/* -------------------- PIE -------------------- */
#pie {
    background-color: #08152E;
    width: 100%;
    height: 400px;
}

#contpie {
    background-color: rgba(20, 94, 159, 0.555);
    width: 1024px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
}

#pie1 {
    background-color: rgb(11, 87, 162);
    width: 472px;
    height: 140px;
    margin: 20px;
    float: left;
}

#pie2 {
    background-color: rgb(11, 87, 162);
    width: 984px;
    height: 170px;
    margin: 20px;
    float: left;
}

/* -------------------- TEXTOS Y ELEMENTOS -------------------- */
.logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.subtitulo {
    text-align: center;
    color: #BFC9DA;
    font-size: 45px;
    font-family: 'fuentetitulo';
}

.titulo {
    text-align: center;
    color: #FFFFFF;
    font-family: 'fuentetitulo';
    font-size: 60px;
}

.img {
    width: 452px;
    height: 280px;
    margin-top: 80px;
}

.img2 {
    width: 964px;
    height: 280px;
}

.h1 {
    background-color: #213555;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    margin-left: 25px;
    box-sizing: border-box;
    font-family: 'fuenteh1';
    margin-bottom: 0px;
}

h2 {
    background-color: #213555;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    margin-left: 25px;
    box-sizing: border-box;
    font-family: 'fuenteh1';
    margin-bottom: 0px;
    font-size: 20px;
}

p, details {
    font-family: 'fuentetexto';
    color: #FFFFFF;
    font-size: 20px;
    margin-left: 30px;
    margin-right: 10px;
}

a {
    color: #FFFFFF;
    font-family: 'fuentetexto';
}

/* -------------------- RESPONSIVE -------------------- */

/* ======================  TABLET  ====================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    #contcabecera, #seccion, #contpie {
        width: 90%;
        max-width: 750px;
        margin: 20px auto;
        padding: 10px;
        display: block;
        height: auto;
        box-sizing: border-box;
    }

    #logo, #titulo, #subtitulo {
        width: 100%;
        height: auto;
        float: none;
        margin: 5px auto;
        padding: 10px;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }

    /* secciones internas */
    #seccionlarga, #seccioncorta, #seccionsubtitulo {
        width: 100%;
        height: auto;
        min-height: 200px;
        margin: 10px 0;
        padding: 15px;
        float: none;
        display: block;
        box-sizing: border-box;
    }

    #pie1, #pie2 {
        width: 100%;
        height: auto;
        min-height: 150px;
        margin: 10px 0;
        padding: 15px;
        float: none;
        box-sizing: border-box;
    }

    .logo, .img, .img2 {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .titulo { font-size: 40px; }
    .subtitulo { font-size: 30px; }
    p, ul, ol { font-size: 16px; margin: 15px 0; }
    h1, h2 { font-size: 20px; margin: 10px 0; }

    .menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        padding: 5px 0;
    }

    .menu li a {
        width: auto;
        padding: 5px 20px;
        text-align: center;
        white-space: nowrap;
    }
}

/* ======================  CELULAR  ====================== */
@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    #cabecera {
        height: auto;
        padding: 20px 0;
    }

    #contcabecera, #seccion, #contpie {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        height: auto;
    }

    #logo, #titulo, #subtitulo {
        width: 100%;
        height: auto;
        margin: 10px 0;
        padding: 10px;
        text-align: center;
        float: none;
    }

    #seccionlarga, #seccioncorta, #seccionsubtitulo, #pie1, #pie2 {
        width: 100%;
        height: auto;
        margin: 10px 0;
        padding: 10px;
        text-align: center;
        float: none;
        display: block;
        box-sizing: border-box;
    }

    .menu {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }

    .menu li a {
        width: 90%;
    }

    img, .logo, .img, .img2 {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .titulo { font-size: 32px; }
    .subtitulo { font-size: 22px; }
    h1, h2 { font-size: 18px; }
    p { font-size: 14px; line-height: 1.5; }
}

