body{
    background-color: #ffffff;
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(171, 171, 171, 0.35) 1px,
        transparent 0
    );
    background-size: 20px 20px;
}

/* Animacion de serpiente python */
/* Contenedor principal */
#snake-world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    pointer-events: none;
    z-index: 50;
}

/* Segmentos del cuerpo con textura */
#snake-world .snake-segment {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    will-change: transform;
    background-image: url('https://img.freepik.com/free-vector/abstract-light-green-background-simple-style_1308-160468.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Variaciones de tono con blend-mode */
#snake-world .snake-segment.color-blue {
    background-color: rgba(55, 118, 171, 0.75);
    background-blend-mode: multiply;
}

#snake-world .snake-segment.color-yellow {
    background-color: rgba(255, 212, 59, 0.75);
    background-blend-mode: multiply;
}

/* Cabeza con imagen fija */
#snake-world .snake-segment.snake-head {
    background-image: url('../images/icons/snake-face-clipart-lg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    background-blend-mode: normal;
    border: none;
    box-shadow: none;
    width: 84px;
    height: 84px;
    z-index: 100;
    overflow: visible;
    margin-top: -1.5rem;
}

/* Contenido de la página */
.page-content .content-section {
    height: 100vh;
    padding-left: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #1a1a1a;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* UI Overlay */
.ui-overlay .instructions {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #666;
    background: rgba(255,255,255,0.03);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
}
/* fin animacion serpiente python */





/* Sección de Habilidades - Versión Estática */
.skills-section {
    padding: 4rem 0;
    text-align: center;
    position: relative;
}
.skills-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .skills-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
        align-items: start;
    }
}

/* ============ Título principal ============ */
.skills-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1a1a2e, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 769px) {
    .skills-title {
        grid-column: 1 / -1;
    }
}
.skills-title::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    bottom: -10px;
    left: 10%;
    border-radius: 4px;
    animation: titleLinePulse 2s ease-in-out infinite;
}

@keyframes titleLinePulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

/* ============ Categorías (cards) ============ */
.skill-category {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #3498db, #2ecc71, #3498db);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.15);
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .skill-category {
        margin-bottom: 2rem;
    }
}

/* ============ Título de categoría ============ */
.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.2rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.6rem;
}

.category-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

/* ============ Sub-títulos ============ */
.skill-subtitle {
    font-size: 0.6rem;
    font-weight: 700;
    color: #6c757d;
    text-align: left;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.skill-subtitle:not(:first-of-type) {
    margin-top: 1rem;
}

/* ============ Grid de skills ============ */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem 0.4rem;
    padding: 0;
}

/* ============ Cada skill item ============ */
.skill-item {
    width: 100%;
    max-width: 90px;
    text-align: center;
    transition: transform 0.25s ease;
    cursor: default;
}

.skill-item:hover {
    transform: translateY(-4px);
}

/* ============ Logo / Icono ============ */
.skill-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.8rem;
    padding: 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.25s ease;
}

.skill-item:hover .skill-logo {
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
}

.skill-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============ Nombre del skill ============ */
.skill-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .skills-grid {
        gap: 0.4rem;
    }
    
    .skill-logo {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .skill-item {
        max-width: 80px;
    }
}

