* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
h1 { font-size: 3.5em; }
h2, h3 { font-size: 2.7em; }
p { font-size: 1.25em; }
button {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid #8a2be2;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: #8a2be2;
}
button:hover {
    background-color: #5a1d82;
}
.container {
    max-width: 1400px;
    margin: auto;
}  
body {
    margin: 0;
    background-color: #1a000d;
    color: white;
}

header {
    background-color: #2b0a18;
}
header .logo {
    margin: 0;
    padding: 25px 30px;
    font-weight: bold;
    color: #8a2be2;
    font-size: 1.6em;
}
header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
header nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}
header a {
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: white;
}
header a:hover {
    color: #8a2be2;
}

#YO {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 80vh;
    color: white;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    ), url("img/01.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1 {
    color: white;
}

#quien-soy .container {
    text-align: center;
    padding: 200px 12px;
    background-image: linear-gradient(  
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ), url("img/quien-soy.jpg");
}

#mis-habilidades {
    background-color: #2b0a18;
    color: white;
    text-align: center;
}
#mis-habilidades .container {
    padding: 100px 0px;
}
#mis-habilidades h2 {
    margin-top: 0;  
}
#mis-habilidades p {
    display: none;
}

#mis-habilidades .carta {
    background-size: cover;
    background-position: center center;
    padding: 50px;
    margin: 20px;
    border-radius: 15px;
}
.carta:first-child {
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    ), url("img/ccna.jpg");
    background-repeat: no-repeat;
}
.carta:nth-child(2) {
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    ), url("img/itess.jpg");
    background-repeat: no-repeat;
}
.carta:nth-child(3) {
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    ), url("img/python.png");
    background-repeat: no-repeat;
}

footer {
    background-color: #3c0f26;
}
footer p {
    margin: 0;
    padding: 12px;
    background-color: #3c0f26;
}
footer .container {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 720px){
    header {
        position: fixed;
        width: 100%;
    }
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    header nav {
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }
}

#mis-hobbies {
    background-color: #3c0f26;
    color: white;
    background-image: none;
    position: relative;
    padding: 150px 12px;
}

#mis-hobbies .container {
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Fondo negro para el bloque de texto completo */
#mis-hobbies .container .texto-hobbies {
    background-color: #000;
    padding: 30px 50px;
    border-radius: 15px;
    display: inline-block;
}

/* Imágenes a los lados */
#mis-hobbies .img-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 0;
    pointer-events: none;
}

/* Imagen izquierda */
#mis-hobbies .img-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -180px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url("img/imagen-izquierda.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Imagen derecha */
#mis-hobbies .img-container::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -180px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url("img/imagen-derecha.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}
