/* General */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1A1A1A;
    color: #E5E5E5;
}

html {
    scroll-behavior: smooth !important;
}

/* Estilos de Secciones */
section {
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    /* Evita que el padding expanda la sección */
}


h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    color: #00A8E8;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 93%;
    background: transparent;
    padding: 15px 50px;
    box-shadow: none;
    /* Elimina la sombra si la tienes */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* Asegura que esté sobre el contenido */
}

/* Logo */
.logo img {
    width: 240px;
    height: auto;
}

/* Menú */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #6A11CB;
    /* Color morado llamativo */
}

/* Botón Descargar CV */
.btn-cv {
    background: #6A11CB;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.btn-cv:hover {
    background: #2575FC;
    transform: scale(1.05);
}

/* Sección Sobre Mí */
#sobre-mi {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* Ocupa toda la pantalla */
    background: linear-gradient(to right, #1A1A1A 31%, #2C2C2C 31%);
    color: white;
    padding: 0 50px;
}

.sobre-mi-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

/* Imagen con forma geométrica */
.imagen-container {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-foto {
    width: 250px;
    border-radius: 10px;
    z-index: 2;
    border: 4px solid #6A11CB;
    /* Resalta la imagen sin ser agresivo */
}

.forma-geometrica {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #6A11CB;
    clip-path: polygon(0% 0%, 100% 20%, 100% 80%, 0% 100%);
    opacity: 0.6;
    /* Suaviza el efecto */
    z-index: 1;
}

/* Texto */
.sobre-mi-texto {
    width: 50%;
    padding-left: 50px;
}

.sobre-mi-texto h2 {
    font-size: 2.5rem;
    color: #E5E5E5;
    /* Un tono suave sin ser blanco puro */
}

.resaltado {
    color: #6A11CB;
    /* Mantiene el morado como detalle */
}

.sobre-mi-texto p {
    font-size: 1.1rem;
    color: #B3B3B3;
    /* Un gris claro para que sea más legible */
}

/* Botones */
.botones {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6A11CB;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.btn:hover {
    background: #574B90;
    transform: scale(1.05);
}

.btn-secundario {
    background: transparent;
    color: #6A11CB;
    border: 2px solid #6A11CB;
}

.btn-secundario:hover {
    background: #6A11CB;
    color: white;
}

/* Redes Sociales */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    filter: brightness(0.8);
    /* Reduce el brillo para que combine con el fondo */
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.social-links img:hover {
    transform: scale(1.2);
    filter: brightness(1);
}

/* Servicios */
#servicios {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #1A1A1A;
    /* Fondo oscuro */
}

#servicios h2 {
    font-size: 2.5rem;
    color: #E5E5E5;
    margin-bottom: 80px;
}

#servicios h3 {
    font-size: 1.5rem;
    color: #E5E5E5;
}

/* Contenedor */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Tarjetas de servicio */
.service-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 15px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.15);
    border-color: #6A11CB;
}

/* Tarjeta destacada */
.destacado {
    background: #6A11CB;
    /* Morado llamativo */
    color: white;
    transform: scale(1.05);
}

.destacado:hover {
    background: #574B90;
}

/* Íconos */
.service-icon img {
    width: 90px;
    margin-bottom: 15px;
}

/* Botón dentro de cada servicio */
.btn-service {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: #6A11CB;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-service:hover {
    background: #574B90;
    transform: scale(1.05);
}

/* Portafolio */
#portafolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    /* Asegura un buen espaciado */
    background-color: #1A1A1A;
    height: auto;
    /* Elimina el 100vh */
}


#portafolio h2 {
    font-size: 2.5rem;
    color: #E5E5E5;
    margin-bottom: 80px;
}

/* Contenedor de cada proyecto */
.proyecto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 50px;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.reverse {
    flex-direction: row-reverse;
}

.proyecto:hover {
    transform: translateY(-5px);
}

/* Alternar orden (imagen izquierda, texto derecha y viceversa) */
.proyecto img {
    width: 45%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.proyecto img:hover {
    transform: scale(1);
}

.proyecto-info {
    width: 50%;
    text-align: left;
}

.proyecto-info h3 {
    font-size: 2rem;
    color: #E5E5E5;
    margin-bottom: 10px;
}

.proyecto-info p {
    font-size: 1.1rem;
    color: #B3B3B3;
    margin-bottom: 15px;
}

/* Tecnologías usadas (íconos) */
.tecnologias {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tecnologias img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    box-shadow: 0 0px 0px rgba(255, 255, 255, 0.2);
}

.tecnologias img:hover {
    transform: scale(1.2);
}

/* Botón del proyecto */
.btn-proyecto {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: #6A11CB;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-proyecto:hover {
    background: #574B90;
    transform: scale(1.05);
}

blockquote {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: left;
    font-style: italic;
    border-left: 5px solid #00A8E8;
}

/* Pie de Página */
footer {
    background-color: #1A1A1A;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
}

/* Responsivo */
/* Estilos Responsivos para Tablets y pantallas medianas */
@media (min-width: 769px) and (max-width: 1250px) {

    /* General */
    section {
        height: auto;
        padding: 50px 30px;
        overflow-x: hidden;
    }

    /* Navbar */
    .navbar {
        width: 90%;
        padding: 15px 30px;
    }

    .logo img {
        width: 200px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* Sobre Mí */
    #sobre-mi {
        padding: 80px 30px;
        height: auto;
    }

    .sobre-mi-container {
        flex-direction: column;
        max-width: 100%;
    }

    .imagen-container {
        width: 100%;
        margin-bottom: 30px;
    }

    .mi-foto {
        width: 220px;
    }

    .sobre-mi-texto {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .sobre-mi-texto h2 {
        font-size: 2.2rem;
    }

    .sobre-mi-texto p {
        font-size: 1rem;
        max-width: 600px;
        margin: 0 auto 20px;
    }

    .social-links {
        justify-content: center;
    }

    /* Servicios */
    #servicios {
        padding: 60px 30px;
        height: auto;
    }

    #servicios h2 {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .services-container {
        gap: 20px;
        max-width: 100%;
    }

    .service-item {
        width: 280px;
        padding: 25px;
    }

    .service-item h3 {
        font-size: 1.3rem;
    }

    .service-item p {
        font-size: 0.95rem;
    }

    /* Portafolio */
    #portafolio {
        padding: 60px 30px;
        height: auto;
    }

    #portafolio h2 {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .proyecto {
        flex-direction: column;
        width: 90%;
        gap: 30px;
    }

    .reverse {
        flex-direction: column;
    }

    .proyecto img {
        width: 100%;
        max-width: 500px;
    }

    .proyecto-info {
        width: 100%;
        text-align: center;
    }

    .proyecto-info h3 {
        font-size: 1.8rem;
    }

    .proyecto-info p {
        font-size: 1rem;
    }

    .tecnologias {
        justify-content: center;
    }
}

/* Estilos Responsivos para Celulares */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth !important;
    }

    /* General */
    section {
        height: auto;
        /* Evita el problema del scroll en móviles */
        padding: 50px 15px;
    }

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        background: transparent;
    }

    .logo img {
        width: 180px;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Sobre Mí */
    #sobre-mi {
        padding-top: 50px;
        flex-direction: column;
        text-align: center;
        background: #2C2C2C;
        height: auto;
        /* Para evitar problemas en móviles */
    }

    .social-links {
        margin-bottom: 20px;
        display: flex;
        gap: 15px;
    }

    .sobre-mi-container {
        flex-direction: column;
        width: 100%;
    }

    .imagen-container {
        width: 100%;
        margin-bottom: 20px;
    }

    .mi-foto {
        width: 180px;
    }

    .sobre-mi-texto {
        width: 100%;
        padding-left: 0px;
        text-align: center;
    }

    .botones {
        flex-direction: column;
        gap: 10px;
    }

    /* Servicios */
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 90%;
        padding: 20px;
    }

    /* Portafolio */
    #portafolio {
        padding: 40px 15px;
        height: auto;
        /* Corrige el problema de 100vh */
    }

    .proyecto {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .reverse {
        flex-direction: column;
    }

    .proyecto img {
        width: 90%;
        max-width: 300px;
    }

    .proyecto-info {
        width: 100%;
        text-align: center;
    }

    /* Tecnologías */
    .tecnologias {
        justify-content: center;
    }

    .tecnologias img {
        width: 35px;
        height: 35px;
    }

    /* Footer */
    footer {
        padding: 15px;
        font-size: 1rem;
    }
}