/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #00c3ff, #000, #001f3f);
    color: #fff;
}

header, footer {
    flex-shrink: 0;
} 

.main, .seccion {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
} 

/* TITULOS */
.titulo{
    text-shadow: 7px 4px 5px rgb(18, 15, 205);
}





a {
    text-decoration: none;
    color: inherit;
}


/* HEADER */
.header {
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo .stars {
    color: gold;
    font-size: 20px;
    margin-bottom: 5px;
    text-shadow: rgba(242, 255, 0, 0.442) 1px 3px 1px;
}

.logo h1 {
    color: #00c3ff;
    font-size: 24px;
    text-transform: uppercase;
    text-shadow: #7fe1ff 1px 1px 2px;
}


/* Typing cursor efecto visual */
.cursor {
    display: inline-block;
    color: #00c3ff;
    animation: blink 1s infinite;
    font-weight: bold;
    margin-left: 3px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* -------- NAVIGATION -------- */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffd700;
}

/* -------- BURGER MENU -------- */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* -------- HERO SECTION (Inicio) -------- */
.hero {
    margin: 50px;
    text-align: center;
}

.hero strong{
    color: #d4af37;
}

.hero-text {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.hero-text p{
    font-size: 1.5rem;
    max-width: 800px;
    margin: 1rem auto;
    text-align: center;
}

.hero-text p a{
    color: #008cff;
    text-decoration: underline;
}

.hero-text p a:hover{
    color: #69bcff;
    text-decoration: underline;
}

.hero h2 {
    font-size: 2.5rem;
}

.hero span {
    font-size: 2rem;
    text-transform: capitalize;
    font-weight: 600;
    color: #00c3ff;
}

.txt-ini{
    font-size: 1.2rem;
    width: 100%;
    margin: auto;
    color: #fffefe;
    justify-content: center;
    text-align: center;
    align-items: center;
    line-height: 2rem;
}

.btn-1 {
    background: linear-gradient(135deg, #00c3ff, #000, #001f3f);
    padding: 0.625rem 2.5rem;
    border: 2px solid #d4af37;
    color: #fff;
    transition: transform 0.5s ease;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    margin-top: 5rem;
}

.btn-1:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #001f3f, #000, #00c3ff);
}

/* -------- SECTIONS (Servicios, Habilidades, Trabajos, Contacto) -------- */
.section {
    padding: 2rem 10%;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    justify-content: center;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #00c3ff;
}

/* -------- SERVICIOS -------- */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

.service {
    background: #023660;
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.675);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
    margin: 7px;
}

.service:hover {
    transform: translateY(-10px);
}

.service h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 22px;
}

.service p {
    font-size: 16px;
}

.service .icono{
    margin-bottom: 3px;
    font-size: 45px;
}

.color1{
    color: #62a0cf;
}

.color2{
    color: #a6a0a0;
}

.color3{
    color: red;
}

.color4{
    color: #008cff;
}

.color5{
    color: rgb(233, 111, 54);
}

.color6{
    color: yellowgreen;
}



@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN DE HABILIDADES */
.habilidades-section {
    background: linear-gradient(135deg, #0f4174, #000, #072c51);
    background-repeat: no-repeat;
    background-size: contain;
    color: white;
    padding: 5% 10% 14% 10%;
    text-align: center;
}

.habilidades-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #00c3ff;
}

.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.habilidad-card {
    padding: 20px 10px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #f7f7f7;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
    background-color: #31c2eebb;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.1);
}

.habilidad-card:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

/* Estilos personalizados por tecnología */
.habilidad-card.html {
    background-color: #e44c2663;
    color: #ffffff;
}

.habilidad-card.html:hover {
    background-color: #e44d26;
}

.habilidad-card.css {
    background-color: rgba(0, 0, 255, 0.383);
    color: #ffffff;
}

.habilidad-card.css:hover {
    background-color: blue;
}


.habilidad-card.bootstrap {
    background-color: rgba(137, 43, 226, 0.39);
    color: #ffffff;
}

.habilidad-card.bootstrap:hover {
    background-color: blueviolet;
    color: #ffffff;
}

.habilidad-card.javascript {
    background-color: #f7de1e71;
    color: #000;
}

.habilidad-card.javascript:hover {
    background-color: #f7df1e;
    color: #000;
}

.habilidad-card.react {
    background-color: #61dafb6d;
    color: #000;
}

.habilidad-card.react:hover {
    background-color: #61dafb;
    color: #000;
}

.habilidad-card.typescript {
    background-color: #007acc68;
    color: #ffffff;
}

.habilidad-card.typescript:hover {
    background-color: #007acc;
    color: #ffffff;
}

.habilidad-card.angular {
    background-color: #dd1d166a;
    color: #ffffff;
}

.habilidad-card.angular:hover {
    background-color: #dd1b16;
    color: #ffffff;
}

.habilidad-card.python {
    background-color: #30699876;
    color: #ffffff;
}

.habilidad-card.python:hover {
    background-color: #306998;
    color: #ffffff;
}


.habilidad-card.java {
    background-color: rgba(143, 134, 7, 0.463);
    color: white;
}

.habilidad-card.java:hover {
    background-color: rgb(174, 143, 6);
    color: #ffffff;
}

.habilidad-card.git {
    background-color: #f14f2f61;
    color: #ffffff;
}

.habilidad-card.git:hover {
    background-color: #f1502f;
    color: #ffffff;
}

.habilidad-card.node {
    background-color: #3d873a6e;
    color: #ffffff;
}

.habilidad-card.node:hover {
    background-color: #3c873a;
    color: #ffffff;
}

/* Scroll animation */
.habilidad-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}


.fa-users-line{
    color: rgba(0, 255, 136, 0.687);
    font-size: 40px;
}


.fa-gears{
    color: rgb(176, 201, 13);
    font-size: 40px;
}

/* Responsive text */
@media (max-width: 500px) {
    .habilidades-section h2 {
        font-size: 2rem;
    }

    .habilidad-card {
        font-size: 0.9rem;
    }
}

/* ------- APTITUDES -------- */
.aptitudes {
    margin-top: 100px;
}

.aptitud {
    background-color: #034174;
    color: white;
}

.aptitud:hover {
    background-color: #8acbffe7;
    color: black;
}



/* -------- TRABAJOS (Proyectos) -------- */
/* SECCION DE TRABAJOS */
.trabajos {
    background: linear-gradient(135deg, #0f4174, #000, #072c51);
    padding: 5% 10%;
    text-align: center;
}

.trabajos h2 {
    font-size: 2rem;
    color: #00c3ff;
    margin-bottom: 55px;
}

.trabajos nav {
    margin-bottom: 2rem;
}

.trabajos nav a {
    text-decoration: none;
    margin: 0 1rem;
    color: #ffffff;
    font-weight: bold;
    border: 3px solid transparent;
}

.trabajos nav a:hover,
.trabajos nav a.borde {
    border-color: #ffd700;
    background-color: #007acc;
}

.trabajos .galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.5rem;
}

.trabajos .galeria .item {
    position: relative;
    overflow: hidden;
    border: 3px solid #ffd700;
    border-radius: 5px;
    height: 200px;
    background-size: cover;
    background-position: center;
    box-shadow: 5px 5px 5px rgba(17, 221, 204, 0.727);
}

.trabajos .galeria .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.trabajos .galeria .item:hover img {
    transform: scale(1.1);
}

.trabajos .galeria .item .hover-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.trabajos .galeria .item:hover .hover-bg {
    opacity: 1;
}

.trabajos .galeria .item .hover-bg h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
}

.trabajos .galeria .item .info {
    position: absolute;
    top: -100%;
    left: 0;
    bottom: 0;
    text-align: center;
    background-color: #bdecff;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
}

.trabajos .galeria .item .info h3 {
    color: #070707;
    margin-bottom: 20px;
}

.trabajos .galeria .item .info span {
    color: #0e0d0d;
    display: inline-block;
    border: 2px solid #8d8d8d;
    margin: 0 3px;
    padding: 0 5px;
}

.trabajos .galeria .item .info a {
    display: block;
    margin: 20px;
    text-decoration: none;
    color: #007be5;
    font-weight: bold;
}

.trabajos .galeria .item:hover .info {
    opacity: 1;
    top: 0;
}

/* -------- CONTACTO (Formulario) -------- */
.fondo-cont{
    background:
        linear-gradient(135deg, #366e7e49, #000, #021222b6),
        url(https://concepto.de/wp-content/uploads/2015/03/software-1-e1550080087611-800x400.jpg);
        background-size: cover;
        position: absolute;
        justify-content: center;
        background-repeat: no-repeat;
}

.contacto{
    text-align: center;
}   

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #004285;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 217, 255, 0.675);
    border-radius: 5px;
    color: white;
    font-size: 16px;
}

::placeholder{
    color: #ffffff;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form .btn-cont {
    padding: 15px;
    background: linear-gradient(135deg, #00c3ff, #000, #001f3f);
    border: 2px solid #d4af37;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 5%;
    margin-bottom: 10%;
}


.contact-form .btn-cont:hover {
    background: linear-gradient(135deg, #001f3f, #000, #00c3ff);
    color: white;
}


.home-social{
    font-size: 25px;
    display: flex;
    list-style: none;
    justify-content: space-evenly;
}

ul.home-social li a i {
    padding: 8px;
    background: #004285;
    color: #fff1f1;
    border-radius: 5px;
    transition: 0.3s;
}

ul.home-social li a:hover i {
    color: #000000;
    background: #9be6ffeb;
}

/* FOOTER */
footer{
    background-color: #000;
    color: #fff;
    padding: 7px 0;
    font-size: 14px;
    text-align: center;
}


/* -------- RESPONSIVE -------- */
@media (max-width: 480px) {
    .trabajos .galeria .item {
        height: 150px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #2a2a2a;
        position: absolute;
        right: 0;
        top: 80px;
        width: 100%;
        text-align: center;
        padding: 10%;
        font-size: 2rem;
        padding-bottom: 20%;
    }

    .nav-links li{
        padding: 30px;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .services-container,
    .skills-container,
    .projects-container {
        flex-direction: column;
        align-items: center;
    }
}


/* -------- SKILLS BADGES -------- */
.skills-group {
    margin-bottom: 50px;
    text-align: left;
}

.skills-group h3 {
    margin-bottom: 2px;
    color: #ffd700;
    font-size: 1.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 8px 5px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
}



/* Colores personalizados para cada skill */
.badge.html {
    background-color: #e44d26;
}

.badge.css {
    background-color: #264de4;
}

.badge.javascript {
    background-color: #f7df1e;
    color: #000;
}

.badge.typescript {
    background-color: #007acc;
}

.badge.python {
    background-color: #306998;
}

.badge.react {
    background-color: #61dbfb;
    color: #000;
}

.badge.angular {
    background-color: #dd1b16;
}

.badge.bootstrap {
    background-color: #563d7c;
}

.badge.githubpages {
    background-color: #24292e;
}

.badge.netlify {
    background-color: #00c7b7;
}

.badge.git {
    background-color: #f1502f;
}

.badge.github {
    background-color: #333;
}

.badge.google {
    background-color: #4285F4;
}

.badge.vscode {
    background-color: #0078d7;
}

.badge {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-in-out;
}

.badge.visible {
    opacity: 1;
    transform: scale(1);
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .skills-group {
        text-align: center;
    }
}