* {
    box-sizing: border-box;
}

:root {
    --color-bg-header: rgb(189, 205, 236);
    --color-btn-bg: rgb(69, 81, 134);
    --color-btn-hover-bg: rgb(151, 38, 44);
    --color-text-btn: rgb(204, 234, 254);
    --color-text-header-links: rgba(55, 58, 89, 0.964);
}

body {
    margin: 0;
    padding: 20px 20px;
    font-weight: bold;
    color: rgb(83, 98, 134);
}

h1 { font-size: 3.0em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.5em; }
p  { font-size: 1.25em; }

button {
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px;
    border: 2px solid rgb(0, 0, 0);
    box-shadow: 2px 2px 10px rgba(108, 109, 169, 0.945);
    color: var(--color-text-btn);
    background-color: var(--color-btn-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--color-btn-hover-bg);
}

header {
    background: var(--color-bg-header);
}

header .logo {
    margin: 0;
    padding: 15px;
    font-weight: bold;
    color: rgb(79, 119, 219);
    font-size: 1.6em;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

header a {
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: var(--color-text-header-links);
}

header a:hover {
    color: rgb(34, 93, 223);
}

#mio {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    color: white;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.2)
    ), url("img/oa.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#quien-soy .container {
    background-color: rgb(230, 250, 250);
    text-align: center;
    padding: 200px 12px;
    height: 100vh;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.2)
    ), url("img/2887af84-ff07-46b3-82a2-7d9d5514116a.jpg");
    color: white;
}

#mis-hobbies {
    background-color: rgb(68, 103, 120);
    color: white;
    padding: 200px 12px;
    height: 100vh;
}

#mis-hobbies .container {
    text-align: center;
    padding: 200px 12px;
}

#mis-habilidades .container {
    background-color: rgb(219, 238, 255);
    text-align: center;
    padding: 200px 12px;
    height: 100vh;
}

#mis-habilidades .carta {
    background-size: cover;
    background-position: center center;
    padding: 50px;
    margin: 20px;
    border-radius: 15px;
    color: white;
}

.carta:first-child {
    background-image: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        url("img/ccna.jpg");
    background-repeat: no-repeat;
}

.carta:nth-child(2) {
    background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.5),
            rgba(0, 0, 0,0.5)
    ),
    url("img/itess.jpg");
    background-repeat: no-repeat;
}

.carta:nth-child(3) {
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0, 0, 0,0.5)
    ),
    url("img/python.png");
    background-repeat: no-repeat;
}

footer div p {
    text-align: center;
    margin-top: 90px;
}

/* Media queries para móviles */
@media (max-width: 768px) {
    #quien-soy .container,
    #mis-hobbies,
    #mis-hobbies .container,
    #mis-habilidades .container {
        padding: 50px 12px;
        height: auto;
    }
}

footer div p {
    margin-top: 400px;
}
