/* =================== HERENCIA =================== */
body {
    font-family: 'Segoe UI', sans-serif;
    color: #d8e2ff;
    background: #0a0f1f;
    margin: 0;
}

/* =================== SELECTORES =================== */

/* Clase */
.titulo {
    text-align: center;
    color: #4ca3ff;
    text-shadow: 0 0 10px #00aaff;
}

/* ID */
#top {
    background: #111c33;
    position: sticky;
    top: 0;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

/* Selector de elemento */
nav ul li {
    display: inline-block;
    margin-right: 25px;
}

/* Pseudoclase */
nav ul li a:hover {
    color: #00eaff;
}

/* Pseudoelemento */
h2::after {
    content: " ⚙️";
    color: #4ca3ff;
}

/* =================== POSICIONAMIENTO =================== */
.caja-flotante {
    background: #142850;
    padding: 10px;
    margin-top: 20px;
    position: sticky;
    top: 20px;
    border-left: 5px solid #00aaff;
    border-radius: 6px;
}

/* Tarjetas con posición relativa */
.tarjeta {
    background: #112240;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
}

/* =================== ANIMACIONES =================== */

/* Botón con transición */
.btn-animado {
    background: #007bff;
    color: white;
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.4s ease, background 0.3s;
}

.btn-animado:hover {
    background: #005fcc;
    transform: scale(1.15);
}

/* Animación futurista */
@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.img:hover {
    animation: girar 2s linear infinite;
}

/* =================== MULTIMEDIA =================== */
.contenedor {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.img {
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 0 15px #00aaff;
}
