/* ===========================
   HOME
   Estilos propios de index.html: hero, foto de perfil y boton de CV.
   =========================== */

.hero {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.profile-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
    z-index: 2;
}

.profile-wrapper::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 212, 255, 0.2);
    animation: spin 30s linear infinite;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.btn-resume:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 10px 20px var(--accent-glow);
    transform: translateY(-2px);
}

#projects {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        margin-top: 40px;
        margin-bottom: 3rem;
    }
}

/* Fondo tenue mientras la imagen baja. */
.card-img-wrapper,
.profile-img {
    background-color: #14181f;
}
