/* Estilos base */
body::-webkit-scrollbar {
    width: 0;
    display: none;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1a73e8, #0f53b5);
    color: #fff;
    text-align: center;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}
.section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    box-sizing: border-box;
}
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}
h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 10px 20px;
    line-height: 1.6;
}
.command {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    color: #76ff03;
    font-size: 1.2rem;
}
.cursor {
    display: inline-block;
    width: 5px;
    height: 1rem;
    background-color: #76ff03;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.links {
    margin-top: 20px;
}
.links a {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 20px;
    margin: 5px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}
.links a:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Sección de proyectos */
.projects {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom, #0f53b5, #1a73e8);
    padding-top: 50px;
    box-sizing: border-box;
}
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 80vw;
    padding: 20px;
    justify-items: center;
}
.project-item {
    background: rgba(0, 0, 0, 0.85);
    color: #76ff03;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 200px; /* Altura mínima para consistencia */
}
.project-item img {
    max-width: 100%;
    height: auto;
}
.project-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.project-info strong {
    font-size: 1.2rem;
    color: #fff;
}
.project-info span {
    font-size: 1rem;
    color: #76ff03;
    line-height: 1.4;
}
.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(118, 255, 3, 0.5);
}

/* Estilos para el rocket y partículas */
.rocket {
    display: inline-block;
    cursor: pointer;
    font-size: 2rem;
    position: relative;
    margin-left: 10px;
    transform: rotate(-90deg);
}
.particles {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: orange;
    border-radius: 50%;
    opacity: 0.8;
}
@keyframes moveRocket {
    0% { transform: translate(0, 0) rotate(-90deg); }
    100% { transform: translate(0, -500px) rotate(-90deg); opacity: 0; }
}
@keyframes particlesAnimation {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.2) translate(0px, 30px); }
}

/* Estilos para las partículas de emojis */
.particle {
    position: fixed;
    font-size: 20px;
    opacity: 1;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
}

/* Swiper slider */
.swiper {
    width: 400px;
    max-width: 90vw;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.swiper-wrapper {
    transition-timing-function: ease;
}
.swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
    text-align: center;
    font-size: 1.3rem;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    color: #76ff03;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* Sección de contacto */
#contacto {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #0f53b5, #1a73e8);
    padding: 50px 20px;
    box-sizing: border-box;
}
#contacto h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
#contacto p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 10px 20px;
    line-height: 1.6;
}
.contact-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.contact-button {
    background: rgba(0, 0, 0, 0.85);
    color: #76ff03;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.contact-button img {
    max-width: 100%;
    height: auto;
}
.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(118, 255, 3, 0.5);
}

/* Sección de habilidades */
.skills {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom, #0f53b5, #1a73e8);
    padding-top: 50px;
    box-sizing: border-box;
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 80vw;
    padding: 20px;
    justify-items: center;
}
.skill-item {
    background: rgba(0, 0, 0, 0.85);
    color: #76ff03;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.skill-item img {
    max-width: 100%;
    height: auto;
}
.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(118, 255, 3, 0.5);
}

/* Botón de modo oscuro */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: #76ff03;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Modo oscuro */
body.dark {
    background: #1a1a1a;
    color: #fff;
}
body.dark .projects, body.dark .skills, body.dark #contacto {
    background: #333;
}
body.dark .project-item, body.dark .skill-item, body.dark .contact-button {
    background: rgba(255, 255, 255, 0.1);
    color: #76ff03;
}
body.dark .project-info strong {
    color: #fff;
}
body.dark .links a {
    background: rgba(255, 255, 255, 0.1);
}
body.dark .swiper-slide {
    background: rgba(255, 255, 255, 0.1);
}
body.dark #contacto h1,
body.dark #contacto p {
    color: #fff;
}