/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exile&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');




:root {
    --primary-color: #9333ea;
    --background-color: #0a0a0a;
    --card-background: #121212;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --transition: all 0.3s ease;
}


span {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.hire-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
}

.hire-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.cv-btn {
    background-color: transparent;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #333;
    font-weight: 500;
}

.cv-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Sección Home */
.home-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.profession {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 132%;
    object-fit: contain;
}


.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 10px;
}

.stat {
    text-align: center;
    padding: 0 30px;
}

.stat-number {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-text {
    color: var(--text-secondary);
}

.divider {
    width: 1px;
    height: 50px;
    background-color: #333;
}

/* Sección Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-secondary);
}

/* Sección About */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.about-text button {
    margin-top: 20px;
}


.skill {
    text-align: center;
}

.skill-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #333;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2.8;
    stroke-linecap: round;
}

.percentage {
    fill: var(--text-color);
    font-size: 0.3rem;
    text-anchor: middle;
    font-weight: bold;
}

.skill-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-name {
    color: var(--text-secondary);
}

/* Sección Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    height: 430px;
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgb(191, 0, 255);
}

/* Sección Contact */
.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--card-background);
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    border-top: 1px solid #333;
    margin-top: 50px;
}

body { margin: 0; } 
div#slider { overflow: hidden; } /* las imágenes no van a salir del márgen de la pantalla*/
div#slider figure img { width: 20%;  height: 57svh; }

div#slider figure { 
  position: relative;
  width: 192%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 30s slidy infinite; /*el movimiento se va a mantener de forma indefinida -infinito-*/
}


/*esta parte del código define el movimiento de las imágenes a la izquierda*/
@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -15%; }
}

/* Carrusel */
.carousel {
    width: 100vw;
    height: 60px;
    overflow: hidden;
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: 1;
    top: 165vw;
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
}

.carousel-slide {
    min-width: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 8px #000a;
    letter-spacing: 6px;
    padding: 2px 30px;
    white-space: nowrap;
    user-select: none;
}

.carousel-slide span {
    display: block;
    position: relative;
    color: #00ff80;
    text-shadow:
        0 0 8px #00ff80,
        0 0 16px #00ff80,
        0 0 32px #00ff80,
        0 0 48px #00ff8099;
    font-weight: bold;
    /* Elimina animaciones y fondos en movimiento */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none;
    filter: none;
    margin: 0 24px; /* separación uniforme entre textos */
}

@keyframes green-glow-move {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        font-size: 1.2rem;
        min-width: 120px;
        padding: 0 16px;
    }
    .carousel {
        height: 40px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .home-content, .about-content {
        flex-direction: column;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px #008000;
}