/*ESTILOS PARA MI PORTAFOLIO*/

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

/*Definir colores*/
:root {
    --bg-color: #0a0a0a;
    --card-bg: #171717;
    --accent-blue: #60a5fa;
    --text-main: #f0f0f0;
    --text-sec: #a8a8a8;
}

body {
    background-color: #0A0A0A;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-sec);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    color: var(--text-main);
}


/*Section quedaba tapada arreglar*/
html {
    scroll-padding-top: 80px;
}

/*Scroll suave*/
html {
    scroll-behavior: smooth;
}

header {
    position: fixed;
    width: 100%;
    height: 64px;
    border-bottom: 1px solid #101010;
    z-index: 1000;
    background: var(--bg-color);
}

.logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: 3px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    padding: 0 216px;
}

nav ul, a{
    display: flex;
    list-style: none;
    text-decoration: none;
    gap: 35px;
    color: #737373;
    font-size: 14px;
}

nav ul li a.active {
    color: #60a5fa;
    position: relative;
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #60a5fa;
}

.logo {
    color: var(--accent-blue);
    font-weight: 800;
}

/*Estilos para Incio*/
#inicio.hero {
    position: relative;
    background: var(--bg-color);
    height: 876px;
    width: 100%;
    top: 64px;

    /*cuadritos de hero*/
    background-image: 
    linear-gradient(to right, #101010 1px, transparent 1px),
    linear-gradient(to bottom, #101010 1px, transparent 1px);
  
  /* Ajuste preciso: 24 columnas (ancho total) y 14 filas (876px altura) */
    background-size: calc(100% / 24) calc(876px / 14);
    border-bottom: 1px solid rgb(40, 40, 40);
}

.hero-container {
    position: relative;
    top: 69px; 
    left: 216px;
}

.hero-content .badge {
    border: 1px solid #0d4891;
    border-radius: 20px;
    padding: 5px 10px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: 1px;
    background-color: #151D27;
}

.hero-content h1 {
    max-width: 400px;
    margin-top: 35px;
    font-size: 72px;
    line-height: 1;
}

.hero-content p {
    margin-top: 30px;
    max-width: 460px;
    font-size: 18px;
    color: #737373;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
}

.btn-primary {
    display: flex;
    width: 164px;
    height: 45px;
    background: var(--accent-blue);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary:hover,
.btn-secondary:hover {
    transition: transform 0.3s ease;
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.btn-secondary {
    width: 138px;
    height: 43px;
    background-color: transparent;
    border: 1px solid rgb(54, 54, 54);
    border-radius: 5px;
    color: var(--text-main);
    font-size: 14px;
    margin-left: 10px;
}

.hero-image img{
    position: relative;
    width: 305px;
    height: 315px;
    border-radius: 50%;
    border: 1px solid #082c57;
    outline: 1px solid #104280;
    outline-offset: 15px;
    left: 675px;
    bottom: 330px;
}

.tag-dev {
    padding: 7px 15px;
    position: relative;
    left: 590px;
    bottom: 330px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgb(58, 58, 58);
    font-size: 12px;
    color: #60a5fa;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    width: 500px;
    border-top: 1px solid rgb(32, 32, 32);
    padding-top: 50px;
    margin-top: -215px;
    margin-left: 216px;
    gap: 30px;
}

.stat h3 {
    font-size: 30px;
    color: var(--text-main);
}

.stat p {
    font-size: 12px;
    color: #737373;
}



/*Estilos Sobre mi*/
.about {
    border-bottom: 1px solid rgb(40, 40, 40);
    height: 520px;
}

.about-container {
    width: 100%;
    display: flex;
    margin: 180px 216px;
}


.section-label {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-text h2 {
    margin-top: 20px;
    font-size: 48px;
    width: 380px;
}

.about-text p {
    position: relative;
    font-size: 16px;
    width: 720px;
    padding: 10px;
    left: 390px;
    top: -220px;
    line-height: 1.6;
}

.about-cards {
    display: flex;
    position: relative;
    top: 300px;
    right: 320px;
    gap: 15px;
    margin-bottom: -50px;
}

.about-cards .card {
    width: 222px;
    height: 95px;
    border: 1px solid rgb(47, 47, 47);
    border-radius: 10px;
    padding: 20px;
    background: var(--card-bg);
}

.about-cards .card h3 {
    font-size: 12px;
    color: #737373;
}

.about-cards .card p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-main);
}



/*Estilos Stack*/

.tech-stack {
    border-bottom: 1px solid rgb(40, 40, 40);
}

.stack-container {
    margin: 120px 216px;
}

.stack-header {
    display: flex;
}

.stack-header h2 {
    position: relative;
    font-size: 48px;
    top: 30px;
    left: -90px;
}

.stack-header p {
    width: 320px;
    position: relative;
    font-size: 14px;
    top: 45px;
    left: 170px;
    text-align: right;
    color: #737373;
}

.stack-grid {
    display: grid;
    margin-top: 90px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    width: 169px;
    height: 100px;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid rgb(49, 49, 49);
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    align-items: center;
    gap: 10px;
}

.tool-card img {
    width: 38px;
}


/*Estilos proyectos*/

.projects {
    border-bottom: 1px solid rgb(40, 40, 40);
}

.projects-container {
    margin: 120px 216px;
}

.projects-header {
    display: flex;
    gap: 445px;
}

.projects-header h2 {
    margin-top: 10px;
    font-size: 48px;
}

.github-link {
    position: relative;
    height: 20px;
    display: flex;
    align-items: baseline;
    top: 60px;
}

.github-link img {
    margin-left: -30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-top: 50px;
    gap: 15px;
}

.project-card {
    width: 350px;
    height: 430px;
    background: var(--card-bg);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.project-card:hover .card-header img { 
    opacity: 1; visibility: visible; 
}

.card-header {
    height: 152px;
    background-color: rgba(4, 94, 28, 0.838);
    border-radius: 20px 20px 0 0;
    padding: 15px;

    background-image: 
    linear-gradient(to right, #1e1e1e 1px, transparent 1px),
    linear-gradient(to bottom, #1e1e1e 1px, transparent 1px);
  
  /* Ajuste preciso: 24 columnas (ancho total) y 14 filas (876px altura) */
    background-size: calc(100% / 17) calc(152px / 7);
}

.card-header img {
    width: 32px;
    background-color: #0b0b0b;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
}

.card-header .year{
    position: relative;
    font-size: 12px;
    background-color: #0B0B0B;
    padding: 3px 9px;
    border-radius: 5px;
    top: -30px;
    left: 280px;
    font-weight: 500;
}

.card-header .icono-letter {
    position: relative;
    display: flex;
    font-size: 60px;
    justify-content: center;
    font-weight: 1000;
    top: -25px;
}

.card-content {
    padding: 20px;
}

.project-type {
    font-size: 12px;
    color: #737373;
    padding-bottom: 10px;
}

.card-content h3 {
    font-size: 16px;
    padding-bottom: 10px;
}

.card-content p{
    font-size: 14px;
    color: #737373;
}

.description {
    height: 145px;
    line-height: 1.6;
    border-bottom: 1px solid rgb(40, 40, 40);
}

.card-tags {
    display: flex;
    gap: 5px;
    margin: -5px 20px;
}

.card-tags span{
    width: auto;
    height: 20px;
    background-color: #232323;
    border: 1px solid #282828;
    border-radius: 5px;
    font-size: 12px;
    padding: 2px 10px;
}


/*Estilos contacto*/

.contacts-container {
    margin: 120px 216px;
}

.contact-header h2{
    font-size: 60px;
    margin-top: 20px;
}

.contact-header p {
    width: 660px;
    font-size: 16px;
    color: #737373;
    margin-top: 30px;
    line-height: 1.6;
}

.contact-info {
    margin-top: 50px;
}

.contact-info .icon-email {
    width: 46px;
    height: 46px;
    background-color: #12181F;
    border: 1px solid rgb(21, 53, 98);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -20px;
}

.contact-info .label {
    font-size: 12px;
    color: #737373;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-main);
}

.info-card {
    margin-top: 30px;
    display: flex;
    transition: filter 0.3s ease; 
    cursor: pointer; 
}

.info-card:hover {
    filter: brightness(0.85);
}

.info-card .icon {
    width: 39px;
    height: 39px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgb(40, 40, 40);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 10px;
}

.social-links a {
    width: auto;
    height: 40px;
    border: 1px solid rgb(40, 40, 40);
    border-radius: 10px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px;
    color: var(--text-sec);
}

.social-links a:hover {
    color: var(--text-main);
    border: 1px solid rgb(63, 63, 63);
}

.social-links a img {
    width: 15px;
    margin-right: 10px;
}

.footer-container {
    display: flex;
    width: 100%;
    height: 80px;
    border-top: 1px solid rgb(40, 40, 40);
    justify-content: space-between;
    align-items: center;
    padding: 0 216px;
    font-size: 12px;
    color: #737373;
}

/*Esitilos boton whatsapp*/

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); 
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}