* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f2ee;
    color: #241c21;
    line-height: 1.6;
}

header {
    background-color: #241c21;
    padding: 18px 8%;
    position: sticky;
    top: 0;
}

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

nav a {
    color: #f7f2ee;
    text-decoration: none;
    font-weight: bold;
}

.portada {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 70px 10%;
    background: linear-gradient(135deg, #f7f2ee, #ead7e4);
}

.texto-portada {
    max-width: 600px;
}

.etiqueta {
    color: #cf08a4;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

h1 {
    font-size: 65px;
    line-height: 0.95;
    margin-bottom: 20px;
}

h1 span {
    color: #cf08a4;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    color: #cf08a4;
    margin: 20px 0 10px;
}

.imagen-portada img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #cf08a4;
}

.bloque {
    padding: 60px 10%;
    max-width: 1200px;
    margin: auto;
}

.bloque p {
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.tarjeta {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.lista-columnas {
    columns: 2;
}

.datos {
    background-color: #ead7e4;
    border-radius: 30px;
    margin-bottom: 60px;
}

footer {
    background-color: #241c21;
    color: #f7f2ee;
    padding: 35px 10%;
    font-size: 14px;
    text-align: center;
}

footer p {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .portada {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 45px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .lista-columnas {
        columns: 1;
    }

    .imagen-portada img {
        width: 220px;
        height: 220px;
    }
}.historial{
    width:100%;
}

.nivel{
    display:grid;
    grid-template-columns:60px 120px 1fr 100px;
    align-items:center;
    gap:20px;
    margin:25px 0;
}

.numero{
    font-size:32px;
    font-weight:bold;
    color:#888;
}

.nombre{
    font-weight:bold;
    text-transform:uppercase;
}

.barra{
    height:8px;
    background:#ddd;
    border-radius:20px;
    overflow:hidden;
}

.progreso{
    height:100%;
    background:#cf08a4;
}

.completo{
    width:100%;
}

.parcial75{
    width:75%;
}

.parcial40{
    width:40%;
}

.estado{
    text-transform:uppercase;
    font-size:12px;
    font-weight:bold;
    letter-spacing:1px;
}

.aprobado{
    color:#1f9d55;
}

.encurso{
    color:#cf08a4;
}
/* ===== NUEVA ESTÉTICA: PORTFOLIO ESPACIAL / ARTÍSTICO ===== */

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(207, 8, 164, 0.35), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(98, 216, 255, 0.28), transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(133, 72, 255, 0.30), transparent 30%),
        #090814;
    color: #f7f2ee;
    cursor: crosshair;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(#ffffff 1px, transparent 1px),
        radial-gradient(#cf08a4 1px, transparent 1px);
    background-size: 80px 80px, 130px 130px;
    opacity: 0.18;
    z-index: -1;
}

header {
    background: rgba(9, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(247, 242, 238, 0.15);
}

nav a {
    color: #f7f2ee;
    padding: 8px 14px;
    border-radius: 30px;
    transition: 0.3s;
}

nav a:hover {
    color: #090814;
    background: #62d8ff;
    transform: translateY(-3px);
}

.portada {
    background:
        radial-gradient(circle at 20% 30%, rgba(207, 8, 164, 0.4), transparent 30%),
        radial-gradient(circle at 80% 60%, rgba(98, 216, 255, 0.25), transparent 28%);
}

.etiqueta {
    color: #62d8ff;
}

h1 {
    color: #f7f2ee;
    text-transform: uppercase;
    letter-spacing: -2px;
}

h1 span {
    color: #cf08a4;
}

h2 {
    color: #f7f2ee;
}

h3 {
    color: #62d8ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bloque {
    background: rgba(255, 255, 255, 0.04);
    margin-top: 35px;
    margin-bottom: 35px;
    border-radius: 35px;
    border: 1px solid rgba(247, 242, 238, 0.12);
    backdrop-filter: blur(10px);
}

.tarjeta {
    background: rgba(255, 255, 255, 0.07);
    color: #f7f2ee;
    border: 1px solid rgba(247, 242, 238, 0.14);
    transition: 0.35s;
}

.tarjeta:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 35px rgba(207, 8, 164, 0.35);
    border-color: #cf08a4;
}

.imagen-portada img {
    border: 4px solid #62d8ff;
    box-shadow:
        0 0 35px rgba(98, 216, 255, 0.55),
        0 0 70px rgba(207, 8, 164, 0.35);
    transition: 0.4s;
}

.imagen-portada img:hover {
    transform: rotate(-3deg) scale(1.05);
}

ul li {
    margin-bottom: 8px;
    transition: 0.25s;
}

ul li:hover {
    color: #62d8ff;
    transform: translateX(8px);
}

.historial {
    background: rgba(255, 255, 255, 0.03);
}

.nivel {
    border-bottom: 1px solid rgba(247, 242, 238, 0.12);
    padding-bottom: 18px;
}

.numero {
    color: rgba(98, 216, 255, 0.45);
    font-size: 42px;
}

.nombre {
    color: #f7f2ee;
}

.barra {
    background: rgba(247, 242, 238, 0.15);
}

.progreso {
    background: linear-gradient(90deg, #cf08a4, #62d8ff);
    box-shadow: 0 0 18px rgba(98, 216, 255, 0.65);
}

.aprobado {
    color: #62d8ff;
}

.encurso {
    color: #ff4fc3;
}

.datos {
    background:
        radial-gradient(circle at 20% 20%, rgba(207, 8, 164, 0.35), transparent 35%),
        rgba(255, 255, 255, 0.06);
}

footer {
    background: #05040c;
    border-top: 1px solid rgba(247, 242, 238, 0.15);
}

/* ===== RESPONSIVE DEL HISTORIAL ===== */

@media (max-width: 768px) {
    .nivel {
        grid-template-columns: 45px 1fr;
        gap: 10px;
    }

    .barra {
        grid-column: 1 / 3;
    }

    .estado {
        grid-column: 1 / 3;
    }
}
.lista-equipo a {
    color: #f7f2ee;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.lista-equipo a:hover {
    color: #62d8ff;
    padding-left: 12px;
}
.portada .texto-portada {
    margin: auto;
    text-align: center;
}

#proyectos h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 35px;
}
.proyecto a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.portfolio-grid {
    margin-top: 40px;
}

#proyectos h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 35px;
}

.portfolio-grid .proyecto {
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}
.proyecto a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.proyecto img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
    filter: saturate(1.1) contrast(1.05);
    transition: 0.35s;
}

.proyecto:hover img {
    transform: scale(1.04);
}

#proyectos h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 35px;
}

.portfolio-grid {
    margin-top: 40px;
}
