:root {
    --bg-color: #070712;
    --text-main: #ffffff;
    --text-muted: #8084a3;
    --accent-blue: #00d2ff;
    --btn-purple: #5b21b6;
    --btn-purple-hover: #4c1d95;
    --badge-bg: rgba(91, 33, 182, 0.15);
    --badge-border: rgba(91, 33, 182, 0.4);
    --badge-text: #9f7aea;
    --nav-bg: rgba(20, 20, 30, 0.6);
    --card-bg: #0f101d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Grilla sutil de fondo */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
}

.logo {
    background-color: var(--btn-purple);
    color: white;
    font-weight: 800;
    font-size: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--badge-text);
}

/* Sección Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8%;
    min-height: calc(100vh - 100px);
}

.hero-content {
    flex: 1;
    max-width: 45%;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.badges span {
    font-size: 10px;
    font-weight: 600;
    color: var(--badge-text);
    background-color: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.greeting {
    color: var(--badge-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 25px;
}

.title .highlight {
    color: var(--accent-blue);
}

.description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 45px;
    max-width: 90%;
}

/* Botones */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
}

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--btn-purple);
    color: white;
}

.btn-primary:hover {
    background-color: var(--btn-purple-hover);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Redes Sociales */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: 15px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contenedor de la Imagen */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    /* Un color de fondo por si la imagen tarda en cargar */
    background: linear-gradient(135deg, #1e1b4b, #070712);
    min-height: 500px; 
}

/* Tarjetas flotantes sobre la imagen */
.floating-card {
    position: absolute;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.projects-card {
    top: 50px;
    right: -30px;
    text-align: center;
}

.projects-card h2 {
    color: var(--accent-blue);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 2px;
}

.projects-card p {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.availability-card {
    bottom: 30px;
    left: 20px;
    width: calc(100% - 40px);
}

.availability-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Verde */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.availability-card p {
    color: var(--text-muted);
    font-size: 11px;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .hero {
        flex-direction: column;
        padding-top: 40px;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .description {
        margin-left: auto;
        margin-right: auto;
    }
    .badges {
        justify-content: center;
    }
    .hero-image-container {
        justify-content: center;
        width: 100%;
    }
    .projects-card {
        right: 0;
    }
}