/* ============================================
VARIABLES — cambia aquí para personalizar todo
   ============================================ */
:root {
/* Colores */
    --color-bg: #0d0d0d;
    --color-text: #ffffff;
    --color-text-muted: #b8b8b8;
    --color-accent: #e0654f;      /* rojo/naranja del nombre y el rol */
    --color-accent-soft: #f2a58f; /* tono más claro del acento */
    --color-glow-start: #ff5a36;  /* centro del halo */
    --color-glow-end: #0d0d0d;    /* borde del halo, se funde con el fondo */

/* Tipografía */
    --font-principal: 'Poppins', system-ui, sans-serif;
    --size-greeting: 2.25rem;
    --size-role: 3rem;
    --size-description: 1.05rem;
    --weight-heading: 700;

/* Layout */
    --max-width: 1400px;
    --gap-container: 200px;
    --photo-size: 520px;
    --photo-radius: 48px;

/* Palabras del efecto typewriter — añade o quita --role-word-N según necesites */
    --role-word-1: "estudiante";
    --role-word-2: " jugador de baloncesto";
    --role-word-3: "¿programador?";

/* Velocidades del efecto */
    --typing-speed: 120ms;
    --deleting-speed: 60ms;
    --pause-time: 2000ms;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ============================================
BASE
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-principal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* ============================================
CONTENEDOR PRINCIPAL
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-container);
    flex-wrap: wrap;
}

/* ============================================
FOTO
   ============================================ */
.photo-wrap {
    position: relative;
    width: var(--photo-size);
    height: var(--photo-size);
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    filter:blur(80px);
    background: radial-gradient(ellipse, var(--color-glow-start) 0%, var(--color-glow-end) 70%);
    z-index: 0;
}

.photo-wrap img {
    position: relative;
    z-index: 1;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: var(--photo-radius);
}

/* ============================================
TEXTO / CONTENIDO
   ============================================ */
.content {
    flex: 1;
    min-width: 550px;
    max-width: var(--photo-size);
}

.greeting {
    font-size: var(--size-greeting);
    font-weight: var(--weight-heading);
    line-height: 1.15;
    margin-bottom: 6px;
    font-family: Bebas Neue;
    letter-spacing:7px;
}

.greeting span {
    color: var(--color-accent);
    display: inline-block;
    position:relative;
}

.greeting span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 7px;
    bottom: 0px;
    height: 3px;
    background: var(--color-accent);
}

.role {
    font-size: var(--size-role);
    font-weight: var(--weight-heading);
    line-height: 1.15;
    margin-top: 5px;
    margin-bottom: 25px;
    font-family: coolvetica;
    }

.role span {
    color: var(--color-accent-soft);
}

.role .cursor {
    display: inline-block;
    width: 2px;
    background: var(--color-accent-soft);
    margin-left: 3px;
    animation: parpadeo 1s steps(1) infinite;
}

@keyframes parpadeo {
    50% { opacity: 0; }
}

.description {
    color: var(--color-text-muted);
    font-size: var(--size-description);
    line-height: 1.7;
}

/* ============================================
RESPONSIVE
   ============================================ */

/* Tablet / móvil grande */
@media (max-width: 700px) {
    body {
        padding: 40px 20px;
    }

    .container {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    :root {
        --photo-size: min(60vw, 320px);
        --size-greeting: 1.75rem;
        --size-role: 1.9rem;
        --size-description: 1rem;
        --photo-radius: 32px;
    }

    .content {
        min-width: 0;
        width: 100%;
        max-width: 480px;
    }

    .greeting {
        letter-spacing: 4px;
    }

    .role {
        margin-bottom: 18px;
    }
}

/* Móvil pequeño */
@media (max-width: 400px) {
    :root {
        --photo-size: 70vw;
        --size-greeting: 1.5rem;
        --size-role: 1.6rem;
        --size-description: 0.9rem;
    }

    .greeting {
        letter-spacing: 2px;
    }
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .role .cursor {
        animation: none;
        opacity: 1;
    }
}