/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta de Colores */
    --color-bg-start: #0f0c29;
    --color-bg-mid: #302b63;
    --color-bg-end: #24243e;
    --color-accent-pink: #ff00cc;
    --color-accent-blue: #3333ff;
    --color-accent-cyan: #4ecdc4;
    --color-text-main: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);

    /* Configuración del Cristal */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 16px;
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-mid), var(--color-bg-end));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-main);
    overflow-x: hidden;
}

/* =========================================
   BLOCK: BG-SHAPES (Fondo Animado)
   ========================================= */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.bg-shape--primary {
    width: 300px;
    height: 300px;
    background: var(--color-accent-pink);
    top: 5%;
    left: 10%;
}

.bg-shape--secondary {
    width: 400px;
    height: 400px;
    background: var(--color-accent-blue);
    bottom: 5%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   UTILITY: GLASS EFFECT
   ========================================= */
/* Clase utilitaria para aplicar el efecto cristal a cualquier bloque */
.u-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* =========================================
   BLOCK: CV-CONTAINER (Layout Principal)
   ========================================= */
.cv-container {
    width: 90%;
    max-width: 1000px;
    padding: 40px;
    margin: 50px 0;
}

.cv-container__layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes izq, 1 parte der */
    gap: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-container__layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   BLOCK: HEADER
   ========================================= */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.header__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Esto hace el círculo */
    
    /* CAMBIOS AQUÍ: */
    object-fit: cover; /* Esto asegura que la foto no se estire ni aplaste */
    object-position: top center; /* Enfoca la parte de arriba (tu cara) si la foto es muy alta */
    
    border: 3px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
    
    /* Ya no necesitamos la línea de 'background: url...' porque la imagen está en el HTML */
}

.header__title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.header__subtitle {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    color: var(--color-accent-cyan);
}

.header__bio {
    margin-top: 10px;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   BLOCK: SECTION (Títulos)
   ========================================= */
.section__title {
    border-left: 4px solid var(--color-accent-pink);
    padding-left: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 0;
}

/* =========================================
   BLOCK: CARD (Tarjeta Genérica)
   ========================================= */
.card {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255,255,255,0.4);
}

/* Elements inside Card */
.card__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 5px;
}

.card__title {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.card__subtitle {
    color: var(--color-accent-cyan);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.card__text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text-muted);
}

/* Modifier: Card transparente (para skills container) */
.card--transparent {
    background: transparent;
    border: none;
    padding: 0;
}
.card--transparent:hover {
    transform: none;
    background: transparent;
}

/* =========================================
   BLOCK: ACTION (Links/Botones)
   ========================================= */
.action-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-accent-pink);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.2s;
}

.action-link:hover {
    color: #fff;
}

/* =========================================
   BLOCK: TAG (Habilidades)
   ========================================= */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list__item {
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text-main);
    
    /* AGREGADO: Suavizado para la animación */
    transition: all 0.3s ease;
    cursor: default; /* Indica que es un elemento interactivo */
}

/* AGREGADO: El efecto al pasar el mouse */
.tag-list__item:hover {
    transform: translateY(-5px); /* Flota hacia arriba */
    background: rgba(255, 255, 255, 0.3); /* Se pone más brillante (cristal más puro) */
    border-color: #fff; /* El borde brilla */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Sombrita suave */
}
