@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

}
body{
    width: 100%;
    min-height: 100vh;
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(rgba(77, 163, 239, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: -19px -19px;
    position: relative;
    --gap: 5em;
    --line: 1px;
    --color: rgba(255, 255, 255, 0.2);

    background-image: linear-gradient(
        -90deg,
        transparent calc(var(--gap) - var(--line)),
        var(--color) calc(var(--gap) - var(--line) + 1px),
        var(--color) var(--gap)
    ),
    linear-gradient(
        0deg,
        transparent calc(var(--gap) - var(--line)),
        var(--color) calc(var(--gap) - var(--line) + 1px),
        var(--color) var(--gap)
    );
    background-size: var(--gap) var(--gap);
    
    
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(77, 163, 239, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(77, 163, 239, 0.1) 0%, transparent 20%);
    pointer-events: none;
    z-index: 0;
}

nav {
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    padding: 0.8rem 1.5rem;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}
.experiencia-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid rgb(77, 163, 239);
    margin-bottom: 1.5rem;
}

.experiencia-item .fecha {
    display: inline-block;
    color: rgb(77, 163, 239);
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(77, 163, 239, 0.1);
    border-radius: 15px;
}

.experiencia-lista {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1rem;
}

.experiencia-lista li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.experiencia-lista li::before {
    content: '•';
    color: rgb(77, 163, 239);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

nav.scrolled {
    top: 0.8rem;
    background: rgba(20, 20, 20, 0.95);
    padding: 0.6rem 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

nav a {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

nav a:hover {
    color: rgb(77, 163, 239);
}

nav a.active {
    color: rgb(77, 163, 239);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgb(77, 163, 239);
    border-radius: 50%;
}

nav button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

nav button:hover {
    color: rgb(77, 163, 239);
    transform: rotate(15deg);
}

.section-1 {
    min-height: 100vh;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.section-1::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    top: -300px;
    right: -300px;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
    opacity: 0.5;
}

.section-1::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    z-index: 1;
    animation: float 10s ease-in-out infinite reverse;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.intro-content {
    max-width: 800px;
    text-align: left;
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saludo {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.saludo-text {
    font-size: 1.2rem;
    color: #4da3ef;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.nombre {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.apellido {
    display: inline-block;
    position: relative;
    color: #4da3ef;
}

.apellido::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(77, 163, 239, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.highlight-name {
    color: rgb(77, 163, 239);
    position: relative;
    display: inline-block;
}

.highlight-name::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(77, 163, 239, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.typing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    min-height: 2.5rem;
}

.rol {
    margin: 1.5rem 0;
    height: 2.5rem;
    overflow: hidden;
}

.rol-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4da3ef;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: rgb(77, 163, 239);
    margin-left: 2px;
    animation: blink 1s infinite;
    height: 2rem;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 2.5rem 0;
    max-width: 650px;
    position: relative;
    padding-right: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    border-left: 3px solid #4da3ef;
    padding-left: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0 2.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    border: 2px solid transparent;
}

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, #4da3ef 0%, #2e7bc4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(77, 163, 239, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 163, 239, 0.4);
    background: linear-gradient(135deg, #5ab0f5 0%, #3d8fd9 100%);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(77, 163, 239, 0.1);
    border-color: rgba(77, 163, 239, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 163, 239, 0.2) 0%, rgba(77, 163, 239, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(77, 163, 239, 0.15);
    border-color: rgba(77, 163, 239, 0.4);
    box-shadow: 0 5px 15px rgba(77, 163, 239, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.section-1 .content {
    max-width: 600px;
}

.section-1 h1 {
    font-size: 3.5rem;
    color: rgb(77, 163, 239);
    font-family: "Poppins", sans-serif;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.section-1 p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Poppins", sans-serif;
    margin-bottom: 2rem;
    max-width: 500px;
}

.highlight {
    color: rgb(77, 163, 239);
    font-weight: 600;
}

/* Removed .foto styles as the image is no longer needed */

@keyframes rotar {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes flotar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    /* Nav */
    nav {
        gap: 1.2rem;
        padding: 0.6rem 1rem;
    }

    nav a {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Section 1 */
    .section-1 {
        padding: 0 2rem;
        gap: 3rem;
    }
    
    .section-1 h1 {
        font-size: 2.8rem;
    }
    
    .foto {
        width: 300px;
        height: 300px;
    }

    /* Tecnologías */
    .contenedor-tecnologias {
        padding-top: 3rem;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .contenedor-tecnologias img {
        width: 6rem;
    }

    /* Proyectos */
    .proyectos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        gap: 0.8rem;
        padding: 0.5rem 0.8rem;
        width: 90%;
    }

    nav a {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Section 1 */
    .section-1 {
        flex-direction: column-reverse;
        text-align: center;
        padding: 6rem 1rem 2rem 1rem;
        gap: 2rem;
    }
    
    .section-1 h1 {
        font-size: 2.2rem;
    }

    .section-1 p {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
    }
    
    .foto {
        width: 250px;
        height: 250px;
    }

    .icons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Tecnologías */
    .Tecnologias {
        padding-top: 4rem;
    }

    .Tecnologias h2 {
        font-size: 2rem;
    }

    .contenedor-tecnologias {
        padding-top: 2rem;
        gap: 1.5rem;
    }

    .contenedor-tecnologias img {
        width: 4rem;
    }

    .contenedor-tecnologias div {
        padding: 1rem;
    }

    /* Proyectos */
    .section-3 {
        padding: 4rem 1rem;
    }

    .section-3 h2 {
        font-size: 2rem;
    }

    .proyectos-container {
        grid-template-columns: 1fr;
    }

    .proyecto-card {
        margin: 0 auto;
        max-width: 350px;
    }

    /* Sobre mí */
    .section-4 {
        padding: 4rem 1rem;
    }

    .section-4 h2 {
        font-size: 2rem;
    }

    .sobre-mi-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        width: 95%;
        gap: 0.5rem;
    }

    nav a {
        font-size: 10px;
        padding: 4px 6px;
    }

    .section-1 h1 {
        font-size: 2rem;
    }

    .foto {
        width: 200px;
        height: 200px;
    }

    .redes-btn {
        flex-direction: column;
        width: 100%;
    }

    .redes-btn a, .cv a {
        width: 100%;
        justify-content: center;
    }

    .contenedor-tecnologias {
        gap: 1rem;
    }

    .contenedor-tecnologias img {
        width: 3.5rem;
    }

    .proyecto-card {
        max-width: 100%;
    }
}

@media (max-width: 350px) {
    nav {
        padding: 0.4rem 0.6rem;
    }

    nav a {
        font-size: 9px;
        padding: 3px 5px;
    }

    .section-1 h1 {
        font-size: 1.8rem;
    }
}

.icons{
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.redes-btn{
    display: flex;
    gap: 0.8rem;
}
.redes-btn a, .cv a {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.redes-btn a::before, .cv a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(77, 163, 239, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.redes-btn a:hover::before, .cv a:hover::before {
    width: 300%;
    height: 300%;
}

.redes-btn a:hover, .cv a:hover {
    transform: translateY(-2px);
    background: rgba(77, 163, 239, 0.1);
    border-color: rgba(77, 163, 239, 0.5);
    color: rgb(77, 163, 239);
    box-shadow: 0 5px 15px rgba(77, 163, 239, 0.1);
}

.redes-btn a i, .cv a i {
    font-size: 15px;
}

.cv a {
    background: rgb(77, 163, 239);
    color: white;
    border: none;
}

.cv a:hover {
    background: rgb(61, 130, 191);
    color: white;
    box-shadow: 0 5px 15px rgba(77, 163, 239, 0.2);
}

.tecnologias-seccion {
    padding: 5rem 0;
   
}

.tecnologias-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(77, 163, 239, 0.3), 
        rgba(168, 85, 247, 0.3), 
        transparent
    );
}

.tecnologias-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.seccion-titulo {
    font-size: 2.5rem;
    text-align: center;
    color: rgb(77, 163, 239);

    margin-bottom: 3rem;
    font-family: "Poppins", sans-serif;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.seccion-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgb(168, 85, 247),
        rgb(168, 85, 247),
        transparent
    );
}

/* Ajustes específicos para secciones */
.section-3 {
    padding: 5rem 0;
}

.section-3 .seccion-titulo {
    margin-bottom: 4rem;
}

.section-4 {
    padding: 5rem 0;
}

.section-4 .seccion-titulo {
    margin-bottom: 4rem;
}

/* Responsive para títulos */
@media (max-width: 768px) {
    .seccion-titulo {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .seccion-titulo {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

.tecnologias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#backend {
    grid-column: 1 / -1;
    width: 50%;
    margin: 0 auto;
}

.tecnologia-grupo {
    background: rgba(25, 25, 25, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.tecnologia-grupo:hover {
    transform: translateY(-5px);
}

.grupo-titulo {
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: "Poppins", sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.grupo-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgb(168, 85, 247);
}

.tecnologias-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
#backend  {
    padding-left: 50px;
}

.tecnologia-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tecnologia-item:hover {
    background: rgba(40, 40, 40, 0.8);
    transform: translateY(-3px);
}

.tecnologia-item:hover img {
    filter: drop-shadow(0 0 8px rgba(77, 163, 239, 0.6));
}

.tecnologia-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tecnologia-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Poppins", sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
    .tecnologias-grid {
        gap: 1.5rem;
    }
    
    #backend {
        width: 75%;
    }
}

@media (max-width: 768px) {
    .tecnologias-grid {
        grid-template-columns: 1fr;
    }
    
    #backend {
        width: 100%;
    }
    
    .tecnologias-lista {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tecnologias-lista {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tecnologias-titulo {
        font-size: 2rem;
    }
    
    .grupo-titulo {
        font-size: 1.1rem;
    }
    
    #backend {
        width: 100%;
    }
}

.section-2 {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.section-2 h2 {
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    color: rgb(77, 163, 239);
    margin-bottom: 1rem;
}

.tecnologias-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.tecnologia-categoria {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tecnologia-categoria:hover {
    transform: translateY(-5px);
    border-color: rgba(77, 163, 239, 0.5);
    box-shadow: 0 10px 20px rgba(77, 163, 239, 0.1);
}

.tecnologia-categoria h3 {
    color: rgb(77, 163, 239);
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.tecnologia-categoria h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgb(77, 163, 239);
    border-radius: 2px;
}

.tecnologias-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.tecnologias-items div {
    text-align: center;
    transition: all 0.3s ease;
}

.tecnologias-items img {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.tecnologias-items div:hover img {
    transform: scale(1.1) rotate(5deg);
}

.tecnologias-items p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

@media (max-width: 968px) {
    .tecnologias-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .tecnologia-categoria {
        padding: 1.5rem;
    }

    .tecnologias-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .tecnologias-items img {
        width: 3rem;
        height: 3rem;
    }
}

.section-3 img{
    width: 8rem;
}
.contenedor-tecnologias{
    padding-top: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4rem;
    transition: transform 0.9s ease ease-in-out; 
}

.contenedor-tecnologias p{
    margin-top: 10px;
    color: white;
    font-family: "Poppins", sans-serif;
    text-align: center;
}
.contenedor-tecnologias div {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.contenedor-tecnologias div.visible {
    opacity: 1;
    transform: translateY(0);
}

.contenedor-tecnologias div:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(77, 163, 239, 0.2);
    border-color: rgb(77, 163, 239);
}
.section-3 h1{
    padding-top: 5rem;
    font-family: "Poppins", sans-serif;
    font-size: 3rem;
    color: white;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flotar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.section-3 {
    padding: 6rem 2rem 2rem;
}

.section-3 h2 {
    font-family: "Poppins", sans-serif;
    font-size: 3rem;
    color: ;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-3 h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    border-radius: 2px;
}

.proyectos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.proyecto-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.proyecto-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proyecto-card:hover::before {
    opacity: 0.3;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    border-color: rgb(77, 163, 239);
}

.proyecto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.proyecto-info {
    padding: 1.5rem;
}

.proyecto-info h3 {
    font-family: "Poppins", sans-serif;
    color: white;
    margin-bottom: 1rem;
}

.proyecto-info p {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.proyecto-links {
    display: flex;
    gap: 1rem;
}

.proyecto-links a {
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-demo {
    background-color: rgb(77, 163, 239);
    color: white;
}

.btn-codigo {
    border: 1px solid rgb(77, 163, 239);
    color: white;
}

.btn-demo:hover, .btn-codigo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Estilos de la sección de experiencia */
.experiencia {
    margin-top: 3rem;
    width: 100%;
}

/* Estilos para la sección de certificados */
.certificados {
    margin-top: 2rem;
    text-align: center;
}

.ver-certificados-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: rgba(77, 163, 239, 0.9);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.ver-certificados-btn:hover {
    background: #5ab0f5;
    box-shadow: 0 5px 15px rgba(77, 163, 239, 0.4);
    transform: translateY(-2px);
}

.ver-certificados-btn i {
    font-size: 1.1em;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.modal.mostrar {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-contenido {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.cerrar-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cerrar-modal:hover {
    color: #4da3ef;
    background: rgba(0, 0, 0, 0.7);
}

.certificados-lista {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.certificado-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 100%;
}

.certificado-item h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.modal-imagen {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .modal-contenido {
        padding: 4rem 0.5rem 2rem;
    }
    
    .cerrar-modal {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .certificados-lista {
        gap: 2rem;
    }
    
    .certificado-item {
        padding: 1rem;
    }
}

/* Estilos para la sección Sobre mí */
.section-4 {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-4 h2 {
    font-family: "Poppins", sans-serif;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-4 h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    border-radius: 2px;
}

.sobre-mi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sobre-mi-texto {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Poppins", sans-serif;
}

.sobre-mi-texto p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sobre-mi-texto ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.sobre-mi-texto li {
    margin-bottom: 0.5rem;
}

.experiencia h3 {
    color: white;
    font-family: "Poppins", sans-serif;
    margin-bottom: 1.5rem;
}

.experiencia-item {
    padding: 1rem;
    border-left: 2px solid rgb(77, 163, 239);
    margin-bottom: 1.5rem;
}

.experiencia-item h4 {
    color: white;
    font-family: "Poppins", sans-serif;
    margin-bottom: 0.5rem;
}

.experiencia-item .fecha {
    color: rgb(77, 163, 239);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.experiencia-item p {
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .sobre-mi-container {
        grid-template-columns: 1fr;
    }
    
    .section-4 {
        padding: 4rem 1rem;
    }
    .proyectos-container {
        grid-template-columns: 1fr;
    }
}

.tecnologias-usadas {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tecnologias-usadas img {
    width: 2rem;
    height: 2rem;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.tecnologias-usadas img:hover {
    transform: translateY(-3px);
    background: rgba(77, 163, 239, 0.2);
}

.tecnologias-usadas img[alt="TMDB API"] {
    background: rgba(255, 255, 255, 0.1);

    padding: 0.2rem;
    width: 4rem;
    height: auto;
    object-fit: contain;
}

.tmdb-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 200px; 
}

.tecnologias-usadas img[alt="Rick and Morty API"] {
    padding: 0.2rem;
    width: 3.5rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(77, 163, 239, 0.2);
    transition: all 0.3s ease;
}

.tecnologias-usadas img[alt="Rick and Morty API"]:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(77, 163, 239, 0.4);
    background: rgba(77, 163, 239, 0.15);
    filter: brightness(1.2);
}

.contenedor-tecnologias img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contenedor-tecnologias img:hover {
    transform: scale(1.2) rotate(10deg);
}

.section-3 h2, .section-4 h2 {
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-3 h2::after, .section-4 h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #4da3ef, #2a6ba8);
    border-radius: 2px;
}


.foto:hover img {
    transform: scale(1.05) rotate(3deg);
}

html {
    scroll-behavior: smooth;
}
.proceso{
    color: rgb(77, 163, 239);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    background: rgba(77, 163, 239, 0.1);
    border: 1px solid rgb(77, 163, 239);
    border-radius: 20px;
    display: inline-block;
    margin: 0.5rem 0 1rem;
    position: relative;
    animation: pulseProcess 2s infinite;
}

.proceso::before {
    content: '';
    width: 8px;
    height: 8px;
    background: rgb(77, 163, 239);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes pulseProcess {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 163, 239, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(77, 163, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(77, 163, 239, 0);
    }
}

@keyframes blink {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.proceso {
    color: rgb(77, 163, 239);
    font-family: "Poppins", sans-serif;
    animation: fadeIn 1s ease;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.contenedor-tecnologias div {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contenedor-tecnologias div.visible {
    opacity: 1;
    transform: translateY(0);
}

.proyecto-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.proyecto-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sobre-mi-container > div {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.sobre-mi-container > div.visible {
    opacity: 1;
    transform: translateY(0);
}

.contenedor-tecnologias div:nth-child(2) { transition-delay: 0.2s; }
.contenedor-tecnologias div:nth-child(3) { transition-delay: 0.4s; }
.contenedor-tecnologias div:nth-child(4) { transition-delay: 0.6s; }
.contenedor-tecnologias div:nth-child(5) { transition-delay: 0.8s; }

.proyecto-card:nth-child(2) { transition-delay: 0.2s; }
.proyecto-card:nth-child(3) { transition-delay: 0.4s; }
.proyecto-card:nth-child(4) { transition-delay: 0.6s; }

.sobre-mi-container > div:nth-child(2) { transition-delay: 0.2s; }

/* Nuevos estilos CSS */
.tech-category {
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(77, 163, 239, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tech-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(77, 163, 239, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.tech-category:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}