/* Fuente global */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9fafc;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
header h1 {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navegación */
nav {
    background: #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0.8rem;
}
nav ul li {
    margin: 0 1.5rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.2rem;
}
nav ul li a:hover {
    color: #ff9800;
    border-bottom: 2px solid #ff9800;
}

/* Secciones */
section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: auto;
}
section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2a5298;
    font-size: 2rem;
}

/* Sobre mí */
#sobre-mi img {
    display: block;
    margin: 1rem auto;
    border-radius: 50%;
    width: 150px;
    border: 3px solid #2a5298;
}

/* Tarjetas con Flexbox */
.tarjetas-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.tarjeta {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.tarjeta img {
    width: 100%;
    border-radius: 8px;
}

/* Habilidades */
#habilidades ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
#habilidades li {
    background: #e3e9f0;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}
form label {
    margin-top: 0.5rem;
    font-weight: bold;
}
form input, form button {
    margin-bottom: 1rem;
    padding: 0.7rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}
form input:focus {
    border-color: #2a5298;
    outline: none;
}
form button {
    background: #2a5298;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
form button:hover {
    background: #1e3c72;
}

/* Películas con Grid */
.peliculas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.pelicula {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}
.pelicula:hover {
    transform: scale(1.03);
}
.pelicula img {
    width: 100%;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}
footer a {
    color: #ff9800;
    text-decoration: none;
    margin: 0 0.5rem;
}
footer a:hover {
    text-decoration: underline;
}
