:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: #1e293b;
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Navbar */

.custom-navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    color: var(--text);
    font-weight: 800;
    font-size: 1.4rem;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-brand:hover {
    color: var(--text);
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.navbar-toggler {
    border-color: var(--border);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 24px;
    background: rgba(56, 189, 248, 0.08);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 650px;
    line-height: 1.7;
}

.btn-main {
    background: var(--primary);
    color: #020617;
    border: none;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 12px;
}

.btn-main:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary-custom {
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 22px;
    border-radius: 12px;
}

.btn-secondary-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Tarjeta perfil */

.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 2px solid var(--primary);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-card h2 {
    font-weight: 800;
    margin-bottom: 12px;
}

.profile-card p {
    color: var(--muted);
    line-height: 1.7;
}

.profile-info {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.profile-info div {
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}

.profile-info i {
    color: var(--primary);
    margin-right: 8px;
}

/* Secciones */

.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-text {
    color: var(--muted);
    max-width: 700px;
    line-height: 1.7;
}

.simple-card,
.project-card,
.contact-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
}

.simple-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.simple-card h3,
.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.simple-card p,
.project-card p,
.contact-box p {
    color: var(--muted);
    line-height: 1.7;
}

/* Proyectos */

.project-card a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.project-card a:hover {
    color: white;
}

/* Contacto */

.contact-section {
    padding-bottom: 100px;
}

.contact-box {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-links a {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
}

.contact-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
}

footer p {
    margin: 0;
}

/* Responsive */

@media (max-width: 991px) {
    .hero {
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero .d-flex {
        justify-content: center;
    }

    .avatar {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {

    .profile-card,
    .simple-card,
    .project-card,
    .contact-box {
        padding: 22px;
    }

    .section {
        padding: 60px 0;
    }
}
