/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212; /* Gris oscuro */
    color: #e0e0e0;
    line-height: 1.6;
}

/* Enlaces */
a {
    text-decoration: none;
    color: inherit;
}

/* Contenedor general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== NAVBAR ========== */
header.nav {
    background-color: #1f1f1f;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

header.nav .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.nav .brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e90ff; /* Azul oscuro */
}

header.nav .menu {
    display: flex;
    gap: 1.5rem;
}

header.nav .burger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
}

/* Mostrar menú en móvil cuando tenga la clase 'show' */
header.nav .menu.show {
    display: flex;
}


/* ========== HERO ========== */


.cta {
    margin-top: 1.5rem; /* espacio antes de los botones */
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem; /* separación entre botones */
}

.hero {
    gap: 2rem;
    padding: 4rem 0;
    align-items: center;
}

.hero > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Hero título */
.hero h1 span {
    color: #1e90ff;
}

/* Card hero */
.card-hero {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
}

.card-hero .stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
}

.card-hero .stat b {
    font-size: 1.5rem;
    display: block;
    color: #1e90ff;
}

/* ========== SECTIONS ========== */
.section {
    padding: 1.2rem ;
}

.kicker {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #1e90ff;
    letter-spacing: 1px;
}

/* ========== ABOUT / CHIPS ========== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.chip {
    background-color: #1f1f1f;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #333;
    transition: all 0.3s;
}

.chip:hover {
    background-color: #1e90ff;
    color: #fff;
}


/* ========== PROYECTOS ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.4);
}

.project .thumb {
    background-color: #282828;
    padding: 1rem;
    text-align: center;
}

.project .content {
    padding: 1rem;
}

.project .meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.project .meta span {
    background-color: #333;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.project .actions {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem 1rem;
}

.project .actions a {
    background-color: #1e90ff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.project .actions a:hover {
    background-color: #0d4f8b;
}

/* ========== SKILLS ========== */
.skills .skill {
    margin-bottom: 2rem;
    position: relative;
}

.bars {
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.bar {
    height: 10px;
    background-color: #1e90ff;
    width: 0%;
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* Mostrar porcentaje encima de cada barra */
.bar::after {
    content: attr(data-level) "%";
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.75rem;
    color: #1e90ff;
    font-weight: bold;
}

/* ========== CONTACTO ========== */
.contact .panel {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
}

.contact a {
    color: #1e90ff;
}

/* ========== BOTONES ======== */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    transition: background 0.3s;
}

.btn.primary {
    background-color: #1e90ff;
    color: #fff;
}

.btn.primary:hover {
    background-color: #0d4f8b;
}

.btn:hover {
    opacity: 0.8;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    header.nav .menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background-color: #1f1f1f;
        position: absolute;
        right: 1rem;
        top: 60px;
        padding: 1rem;
        border-radius: 5px;
    }
    header.nav .burger {
        display: block;
    }
}
