/* Apuntes CSS

* { Define los estilos de cada elemento
    box-sizing: content-box;
    margin:1px;
    padding:1px;
}

h1{ Selector por Etiqueta
    color: blue;
}

h2{
    color:green;
}

.parrafo { Selector por clase
    color:tomato;
}

#unico {
    background-color:rgb(134, 205, 223);
}

.contenedor{
    border:2px solid blue;
}

.contenedor h2{ Selector por descendencia
    color:white;
}

button:hover {
    background-color:black;
    color:white;
}

a:link {  Pseudoclase para las A no abiertas
    color:green;
}

a:visited {Pseudoclase para las A visitadas 
    color:purple;
}

input:focus {  Pseudoclase para cuando clickeas un input 
    outline:2px solid #3498db;
    background-color: #e8f4f8;
}

li:first-child{ Pseudoclase para el primer elemento de algo
    color:green;
    font-weight:bold;
}

li:last-child{ Pseudoclase para el ultimo elemento de algo
    color:red;
    font-weight:bold;
}

tr:nth-child(even) {
    background-color: gray;
}

.quote::after {
    content:'"';
    color:blue;
    font-size:18px;
}

.quote::before {
    content:'"';
    color:blue;
    font-size:18px;
}  */





/* Inicio de Código */



/* Fuentes */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');



/* Variables */

:root {
    --font_color_primary: #333333;
    --font_color_secundary: #3d3d3d;
    --font_color_tertiary: #1a1a1a;

    --font_color_white:white;
    --font_color_lightgreen: #3c7c5a;

    --main_color_primary:#691bd0; /* First Main Color Primary: #2563eb */
    --main_color_secundary:#1d4ed8;
    --main_color_tertiary:#eaeaea;

    --background_color_lightgray:linear-gradient(to bottom right,#7600fd, #3c7c5a);
    --background_color_lightgray-reverb:linear-gradient(to bottom right,#3c7c5a, #7600fd); 
    --background_color_lightgray-left-right:linear-gradient(to left,#7600fd, #3c7c5a); 
    
}



/* 1. Reset Básico */

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

body {
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--font_color_primary);
    background-color: var(--main_color_tertiary);

    overflow-x: hidden; /* Quitar Scroll Vertical*/
}


/* 2. Tipografía General */

h1,
h2,
h3,
h4 {
    font-family: "Work Sans", sans-serif;
    font-style: normal;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--font_color_primary);
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
    margin-top:48px;
}

h3 {
    font-size: 24px;
    margin-top:32px;
}

h4 {
    font-size:18px;
    margin-top:24px;
}

p {
    margin-bottom:16px;
}

strong {
    font-weight: bold;
    color: #000000
}


/* 3. Enlaces */

a {
    color: var(--main_color_primary);
    text-decoration: none;
}

a:hover{
    color: var(--main_color_secundary);
    text-decoration: underline;
}

a:active {
    color: var(--main_color_secundary);
}


/* 4. Listas */

ul {
    list-style: none;
}


/* 5. Header */

.header {
    background:var(--main_color_tertiary);
    padding:10px 0 10px 0;
}

.header__container {
    margin: 0 auto;
    padding: 0 20px;
}


/* 6. Navegación */

.nav {
    text-align: center;
}

.nav__list {
    display:inline-block;
}

.nav__item {
    display:inline-block;
    margin: 0 16px;
    
    border-radius:15px;

    transition:0.7s;
}

.nav__link {
    padding: 6px 12px;
    display: inline-block;

/* Este elemento esta en la misma línea que los demás (como si fuera un inline), pero
deja que yo pueda ajustar su tamaño, márgenes y paddings como si fuera un bloc */

    color: var(--font_color_tertiary);
    font-weight: 500;

    transition: 0.7s;
    border-radius:15px;
}

.nav__link:hover {
    color: var(--font_color_white);
    background: var(--font_color_tertiary);

    border-radius:15px;
    text-decoration:none;
    transform: scale(1.1);
}

.nav__link:active {
    color: var(--main_color_primary);
    font-weight: bold;
}


/* 7. Main Content */

.main {
    margin:0 auto;
    width:100%;
    padding: 0 0px;
}


/* 8. Hero Section */

.hero {
    padding: 64px 0;
    text-align: center;
    background: var(--background_color_lightgray);
    margin-bottom:48px;
    width: 100%;
    /* animation: transicion-background 5s ease infinite; */
}

/* @keyframes transicion-background {
    0% {
        background: var(--background_color_lightgray);
    }
    100% {
        background: var(--background_color_lightgray-reverb);
    }
} */

.hero__container {
    max-width: 800px;
    margin: 0 auto;
    padding:0px;
}

.hero__title {
    font-weight: 900;
    font-size: 48px;
    color: var(--font_color_tertiary);
    margin-bottom:16px;
    text-shadow: 1px 1px 1px var(--font_color_lightgreen);

    /* Animación SANTIAGOENCODIGO Título */

    animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
    /* text-shadow:2px 2px 2px var(--font_color_lightgreen); */
  }
}


/* --- */

.hero__subtitle {
    font-size:24px;
    color: var(--font_color_white);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero__description {
    font-size: 18px;
    color: var(--font_color_white);
    margin-bottom: 32px;
    max-width:600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    margin-bottom: 48px;
}

/* Animación BOUNCE Button Descarga CV  */

#button-cv {
    animation: bounce-button-cv 5s infinite;
    transition: all 0.6s ease;

    animation-play-state: running; /* Inicia la animación */
}

@keyframes bounce-button-cv {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background: #1f1f1f;
    }
    100% {
        transform: scale(1);
    }
}

#button-cv:hover {
    animation-play-state: paused; /* Pausa suavemente la animación */

    background: var(--font_color_white);
    color: var(--font_color_tertiary);
    transform: scale(1.1);
    animation: none;
}

/* Al salir del hover */
#button-cv:not(:hover) {
    animation-play-state: running; /* Reanuda la animación */
    transition-delay: 0.6s; /* Espera un poco antes de reanudar */
}

/* --- */

.hero__stats {
    text-align: center;
}

.stat {
    display: inline-block;
    margin: 0 32px;
    text-align: center;
}

.stat__number {
    display:block;
    font-size: 32px;
    font-weight: bold;
    color: var(--font_color_tertiary);
    margin-bottom: 8px;

    /* Animación Números */
    animation: pulse 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.stat:nth-child(1) .stat__number {
    --delay: 0s;
}

.stat:nth-child(2) .stat__number {
    --delay: 0.2s;
}

.stat:nth-child(3) .stat__number {
    --delay: 0.4s;
}

@keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.2);}
    100% {transform: scale(1);}
}

/* Fin de Animación Stat Number */




.stat__label {
    font-size: 14px;
    color: var(--font_color_white);
}


/* 9. Botones */

.button {
    display:inline-block;
    padding: 12px 24px;
    margin:8px;
    font-size: 16px;
    font-weight:600;
    text-align:center;
    border: 2px solid transparent;
    cursor:pointer;
    text-decoration:none;
}

.button--primary {
    background-color: var(--font_color_tertiary);
    color: #ffffff;

    border-radius:15px;
    /* border-color: var(--font_color_white); */

    width:10rem;

    transition:0.7s;
}

.button--primary:hover {
    background-color: var(--font_color_white);
    color: var(--font_color_tertiary);

    /* border-color: var(--font_color_tertiary); */
    text-decoration: none;
}

.button--large {
    padding: 16px 32px;
    font-size: 18px;
}


/* 10. About Section */

.about {
    padding: 48px 0;
}

.about__container {
    max-width:800px;
    margin: 0 auto;
}

.about__title {
    text-align: center;
    color: var(--font_color_tertiary);
    margin-bottom: 32px;
}

.about__intro {
    font-size:20px;
    text-align: center;
    color: var(--font_color_primary);
    margin-bottom: 24px;
}



/* 11. Quote */

.quote {
    background-color: var(--font_color_tertiary);
    padding:24px;
    margin:32px 0;
    border-radius:15px;
    border-left: 4px solid var(--main_color_primary);

    animation: quote-move 6s ease-in-out infinite;
}

@keyframes quote-move {
    0%,100% { transform: translateY(0); }
    50% {
        transform: translateY(30px);
        /* font-size:20px; */
        font-weight:bold;
        /* transform: scale(0.9); */
    }
}

.quote__text {
    font-size:18px;
    font-style:italic;
    color: var(--font_color_white);
    margin-bottom: 16px;
}

.quote__author {
    color: var(--font_color_white);
    font-size:14px;
    display:block;
    text-align:right;
}



/* 12. Values */

.values {
    margin-top: 88px;
}

.values__title {
    text-align: center;
    color: var(--font_color_tertiary);
    margin-bottom: 32px;
}

.values__list {
    padding: 0px;
}

.values__item {
    padding: 16px;
    margin-bottom: 16px;
    background: #f8f9fa;

    border: 2px solid var(--main_color_primary);
    border-radius:15px;

    transition:1s;
}

.values__item:hover {
    background: var(--font_color_tertiary);
    border-color: var(--main_color_primary);
    border: 2px solid var(--main_color_primary);


    /* BOX SHADOW: desplazamiento x - desplazamiento y - difuminado - expansión color */
    box-shadow:0px 4px 15px 0px var(--font_color_lightgreen);

    transform:scale(1.1)
}




/* Estilos del SPAN Values Icon y Animación Rotate Scale Down */

.values__icon {
    font-size:24px;
    margin-right: 12px;

    transition:1s;

    display: inline-block; /* Necesario para que la animación funcione correctamente */
}

/* Animación Iconos en Sección de Values */

.values__item:hover .values__icon {
	-webkit-animation: rotate-scale-down 0.65s linear both;
	        animation: rotate-scale-down 0.65s linear both;
}

/* animation: rotate-scale-down */
@-webkit-keyframes rotate-scale-down {
    0% {
        -webkit-transform: scale(1) rotateZ(0);
                transform: scale(1) rotateZ(0);
    }
    50% {
        -webkit-transform: scale(0.8) rotateZ(180deg);
                transform: scale(0.8) rotateZ(180deg);
    }
    100% {
        -webkit-transform: scale(1) rotateZ(360deg);
                transform: scale(1) rotateZ(360deg);
    }
}
@keyframes rotate-scale-down {
    0% {
        -webkit-transform: scale(1) rotateZ(0);
                transform: scale(1) rotateZ(0);
    }
    50% {
        -webkit-transform: scale(0.8) rotateZ(180deg);
                transform: scale(0.8) rotateZ(180deg);
    }
    100% {
        -webkit-transform: scale(1) rotateZ(360deg);
                transform: scale(1) rotateZ(360deg);
    }
}
/* Fin animación */





.values__item strong {
    margin-right: 8px;
    transition:1s;
}

.values__item:hover strong {
    color: var(--main_color_tertiary);
}


.values__item span {
    color: var(--font_color_tertiary);
    transition:1s;
}

.values__item:hover span {
    color: #e0e0e0;
}



/* 13. Projects Section */

.projects {
    padding: 64px 0;
    background-image:url("../../Assets/img/2-cuadricula-negra.jpg");
}

.projects__container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects__title {
    font-size:35px;
    text-align:center;
    font-weight:900;

    margin-bottom: 16px;
    color: var(--main_color_tertiary);
}

.projects__description {
    text-align: center;
    color: var(--main_color_tertiary);

    margin-bottom: 48px;
    max-width: 600px;

    margin-left: auto;
    margin-right: auto;

    font-size:17px;
}

.projects__grid {
    padding: 0 20px;
}



/* 14. Project Card */

.project {
    padding: 32px;
    margin-bottom: 32px;

    border: 3px solid var(--font_color_tertiary);
    border-radius:15px;

    background: var(--main_color_tertiary);

    transition:1s;
}

.project:hover {
    border-color: var(--main_color_primary);
    box-shadow: 2px 2px 15px var(--main_color_primary);
}

.project--featured {
    border: 3px solid var(--font_color_lightgreen);
    position:relative;
}

.project--featured:hover {
    box-shadow: 3px 3px 55px var(--font_color_lightgreen);
    border: 3px solid var(--font_color_lightgreen);

}

.project__badge {
    background-color: var(--main_color_primary);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.project__title {
    color: var(--font_color_tertiary);
    margin-bottom: 16px;
}

.project__description {
    color: var(--font_color_secundary);
    margin-bottom: 24px;
}

.project__subtitle {
    font-size: 16px;
    color: var(--font_color_primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.project__learnings {
    list-style: disc;
    padding-left:24px;
    margin-bottom: 24px;
}

.project__learnings li {
    color:  var(--font_color_secundary);
    margin-bottom: 8px;
}

.project__techonologies {
    margin-bottom: 24px;
}

.tag {
    display: inline-block;
    background-color:#e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
}

.project__links {
    text-align:left;
}

.project__link {
    display: inline-block;
    margin-right: 16px;
    font-weight: 600;
}



/* 15. Skills Section */

.skills {
    padding: 64px 0;
}

.skills__container {
    max-width: 800px;
    margin: 0 auto;
}

.skills__title {
    text-align: center;
    margin-bottom: 16px;
}

.skills__subtitle {
    text-align: center;
    color: var(--font_color_secundary);
    margin-bottom: 32px;
}

.skills__list {
    margin-bottom: 48px;
}

.skill {
    margin-bottom: 32px;
}

.skill__name {
    margin-bottom:8px;
    color: var(--font_color_tertiary);
}

.skill__bar {
    background-color: #e0e0e0;
    height: 24px;
    position: relative;
    margin-bottom: 8px;
}

.skill__progress {
    background: var(--background_color_lightgray-left-right);
    height: 100%;
    position:absolute;
    top: 0;
    left: 0;

    overflow: hidden;
}

/* Efecto de brillo en las barras */
.skill__progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
  animation-delay: 3s;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.skill__progress--html {
    width: 75%;
}

.skill__progress--css {
    width: 60%;
}

.skill__progress--js {
    width:20%;
}

.skill__porcentage {
    color: var(--font_color_secundary);
    font-size: 14px;
}


/* 16. Learnings */

.learning {
    background-color: var(--main_color_tertiary);
    padding: 24px;
}

.learning__title {
    margin-bottom: 16px;
    color: var(--font_color_tertiary);
}

.learning__list {
    list-style: disc;
    padding-left: 24px;
}

.learning__item {
    color: var(--font_color_secundary);
    margin-bottom: 8px;
}



/* 17. Contact Section */


.contact {
    padding: 64px 0;
}

.contact__container {
    max-width: 800px;
    margin: 0 auto;
    text-align:center;
}



/* Estilos Contact__Title y Animación tracking-in-contract */
.contact__title {
    color: var(--font_color_tertiary);
    text-shadow: 1px 1px 1px #888;

    /* font-weight:900; */
    font-size:28px;
    margin-bottom: 16px;
    
    /* Anims */
    -webkit-animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
        animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* Animación contact__title */
@-webkit-keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}
@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}
/* Fin de animación */





.contact__description {
    color: var(--font_color_tertiary);
    margin-bottom: 28px;
    max-width: 700px;

    font-size: 18px;

    margin-left: auto;
    margin-right: auto;
}

.contact__methods {
    margin:48px 0 48px 0;

    display:flex;
    flex-direction:row;

    flex-wrap:wrap;

    justify-content: center;
    align-items: center;
    text-align:center;
}

.contact__methods li {
    padding: 0px;
    margin:20px;

    width:150px;
    height:130px;

    border:2px solid var(--main_color_primary);
    border-radius:15px;

    transition:1s;

    overflow: hidden;
}

.contact__methods li:hover {
    background-color: var(--main_color_primary);

    border-color: var(--font_color_tertiary);
    box-shadow:2px 2px 15px var(--main_color_primary);

    transform: scale(1.1);
}

.contact__methods li a {
    display:flex;
    flex-direction: column;
    
    align-items: center;
    justify-content: center;

    text-decoration: none;

    background: var(--main_color_tertiary);

    width:100%;
    height:100%;

    transition:1s;
}

.contact__methods li a:hover {
    background: var(--main_color_tertiary);
    border-color:var(--main_color_primary);
    box-shadow:var(--font_color_secundary);

    transform: scale(1.1);
}

.contact__methods li img {
    width:50px;
    height:50px;
    position:relative;
    transition:1s;
}

.contact__methods li:hover img {
    transform:scale(1.08);
}

.contact__methods span {
    display:block;

    color: var(--font_color_tertiary);
    margin-bottom:10px;

    transition:1s;
}

.contact__methods li:hover span {
    font-weight: bold;
}


/* Footer */

.footer {
    background-color: var(--font_color_tertiary);
    color: #ffffff;
    padding: 48px 0;
    text-align:center;
}

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

.footer__nav {
    margin-bottom: 24px;
}

.footer__link {
    color: #ffffff;
    margin: 0 16px;
    display: inline-block;

    transition:0.5s;
}

.footer__link:hover {
    color: var(--main_color_primary);
    text-decoration: none;
}

.footer__copyright {
    color: #9ca3af;
    margin-bottom: 8px;
}

.footer__credits {
    color: #9ca3af;
    font-size: 14px;
}
