/* Reseteo básico del modelo de cajas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 650;
    font-style: normal;
    background-color: #121212; 
    color: #e0e0e0; 
    font-size: 1rem; 
    line-height: 1.6;
}

.acento {
    color: #03dac6;
}

/* CABECERA */
header {
    background-color: #1e1e1e; 
    border-bottom: 2px solid #bb86fc;
    padding: 2.5rem;
    text-align: center;
}

header h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #bb86fc;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(187, 134, 252, 0.1); 
    border: 1px solid #bb86fc;
    color: #ffffff;
}

/* SECCIONES PRINCIPALES */
section {
    width: 85%;
    max-width: 950px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: #1e1e1e; 
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
    overflow: auto;
}

h2 {
    color: #03dac6;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.foto-perfil {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 230px;
    border-radius: 50%; 
    border: 3px solid #03dac6;
}

/* LISTA DE HABILIDADES */
.habilidades-lista ul {
    list-style-type: square;
    padding-left: 2rem;
    color: #bb86fc; 
}
.habilidades-lista li {
    color: #e0e0e0; 
    margin-bottom: 8px;
}

.habilidades-lista li strong {
    color: #03dac6;
    letter-spacing: 1px;
}

.contenedor-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* ESTILO GENERAL DE LAS TARJETAS */
.tarjeta {
    background-color: #2c2c2c;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.8);
    border-color: #bb86fc;
}

.tarjeta h3 {
    color: #03dac6;
    margin-bottom: 10px;
}

/* TAMAÑOS ESPECÍFICOS: SECCIÓN MIS PROYECTOS*/
#tarjetas .tarjeta {
    width: 45%;
    min-width: 300px;
}

#tarjetas .tarjeta img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* TAMAÑOS ESPECÍFICOS: SECCIÓN DE PELÍCULAS*/
#peliculas .tarjeta {
    width: 30%;
    min-width: 220px;
}

#peliculas .tarjeta img {
    width: 183px;  
    height: 275px; 
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

/* FORMULARIO MODO OSCURO */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80%;
    margin: 0 auto;
}

label {
    font-weight: bold;
    color: #bb86fc;
}

input {
    padding: 0.8rem;
    border: 1px solid #444;
    background-color: #121212;
    color: #ffffff;
    border-radius: 4px;
    font-family: 'courier new', monospace;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Efecto al escribir en el formulario */
input:focus {
    border-color: #03dac6;
    outline: none;
    background-color: #1a1a1a;
}

.btn-enviar {
    background-color: #bb86fc;
    color: #121212;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #03dac6;
}

/* PIE DE PÁGINA */
footer {
    text-align: center;
    background-color: #1e1e1e;
    color: #888888;
    padding: 2.5rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

footer a {
    color: #03dac6;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}