@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
    position: relative;
}

/* Fondo partículas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
}

.profile-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 5px solid rgb(98, 0, 255);
    animation: glitch 1s infinite;
    object-fit: cover;
}

/* Título cinético */
.kinetic-title {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
}

.letter {
    display: inline-block;
    animation: kinetic 2s infinite alternate;
    animation-delay: calc(0.1s * var(--i));
    --i: 0;
}

/* Subtítulo */
.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #0ff;
    text-align: center;
    margin-top: 10px;
}

/* Secciones */
section {
    margin-bottom: 40px;
}

h2 {
    color: #0ff;
    border-bottom: 2px solid #0ff;
    padding-bottom: 10px;
    animation: glow 2s infinite alternate;
}

/* Carrusel de aptitudes */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 300px;
    margin: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
    flex: 1;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
}

.carousel-item:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 255, 0.15);
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.carousel-buttons button {
    background: #0ff;
    border: none;
    padding: 10px 15px;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-buttons button:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* WhatsApp Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 10px #25D366;
    animation: pulse 2s infinite;
    z-index: 2;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #0ff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
    transform: scale(1.2) rotate(360deg);
    animation: spin 1s linear;
}

.facebook:hover { color: #3b5998; }
.gmail:hover { color: #ea4335; }
.github:hover { color: #fff; }

/* Animaciones */
@keyframes kinetic {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes glitch-text {
    0% { text-shadow: 0.05em 0 0 #f00, -0.03em -0.04em 0 #0f0, 0.04em 0.03em 0 #00f; }
    15% { text-shadow: -0.05em -0.025em 0 #f00, 0.025em 0.035em 0 #0f0, -0.04em -0.04em 0 #00f; }
    100% { text-shadow: -0.05em 0 0 #f00, -0.025em -0.04em 0 #0f0, 0.04em 0.035em 0 #00f; }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px #0ff; }
    100% { text-shadow: 0 0 20px #0ff; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid secciones */
.grid-sections {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
}

.half-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

.half-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.half-section section {
    position: relative;
    z-index: 1;
}

.cualidades {
    background-image: url('carta2.png');
}

.experiencias {
    background-image: url('carta3.png');
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }

    .carousel-item {
        min-width: 250px;
    }

    .carousel-item img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    header {
        margin-bottom: 30px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    section {
        margin-bottom: 20px;
    }

    .carousel-item {
        min-width: 200px;
        padding: 15px;
    }

    .carousel-item img {
        width: 60px;
        height: 60px;
    }

    .carousel-buttons button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .grid-sections {
        flex-direction: column;
    }

    .half-section {
        min-width: 100%;
    }

    .whatsapp-bubble {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .kinetic-title {
        font-size: clamp(1.2rem, 8vw, 2rem);
    }

    .subtitle {
        font-size: 1rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .carousel {
        margin-top: 10px;
    }

    .carousel-item {
        min-width: 100%;
        margin: 5px;
        padding: 10px;
    }

    .carousel-item img {
        width: 50px;
        height: 50px;
        padding: 5px;
    }

    .carousel-buttons {
        gap: 5px;
    }

    .carousel-buttons button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .whatsapp-bubble {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }

    .social-links {
        gap: 10px;
    }

    .social-icon {
        font-size: 20px;
    }

    h2 {
        font-size: 1.1rem;
        padding-bottom: 5px;
    }

    section {
        margin-bottom: 15px;
    }

    footer {
        padding: 15px 0;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 8px;
    }

    .kinetic-title {
        font-size: clamp(1rem, 7vw, 1.8rem);
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .carousel-item {
        padding: 8px;
    }

    .carousel-item img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-bubble {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}