
:root{
--color-fondo: #161616;
--color-borde-fondo: #0f0f0f;
--fondo-header: #242424;
--color-texto-header: #cccccc;
--color-texto: #CFCFCF;
--color-boton:#303030;
--color-acento: #4b9bff;        
--color-naranja1:rgb(255, 148, 34);

  --font-global: "Urbanist", system-ui, sans-serif;
  --font-size-global: 22px;
  --font-size-celu: 15px ;
}

html{
scroll-behavior: smooth;

}
p {
  line-height: 1.6;
}

body {
  font-family: var(--font-global);
    font-size: var(--font-size-global);
  /* background: radial-gradient(
  circle at center,
  var(--color-fondo) 0%,
  var(--color-fondo) 60%,
  var(--color-borde-fondo) 100%
); */
  margin: 0 auto;
  padding:0;
  color:var(--color-texto);
  background-image: linear-gradient(360deg, 
  rgba(0, 0, 0,0.30),
   rgba(0, 0, 0,0.10),
   rgba(0, 0, 0, 0.30)),

   linear-gradient(90deg, 
  rgba(0, 0, 0,0.25),
   rgba(0, 0, 0, 0),
   rgba(0, 0, 0, 0.25))
   ,url(/images/fondo-true-2.png);

    min-height: 100vh;
  

   background-attachment: fixed; 
  background-repeat: no-repeat;

}

.top-header{
  margin: 0 auto;
  padding: 0.75rem; 
  box-sizing: border-box;
  width: fit-content;
  background-color: var(--fondo-header);
  text-align: center;
  position: sticky;
  top: 0;
  border-radius: 20px;
nav {
  display: flex;
  gap: 1.2rem;
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 1rem;
  align-items: center;
  
}

  a {
  text-decoration: none; 
  color: var(--color-texto-header);
  font-size:1.25rem;
  font-weight: 600;
  }
}


#primera-introduccion{
  margin:1.5rem;
  padding: 2rem 0.5rem;
  text-align: center;

}



.btn-anchor{
  text-decoration: none; 
  color: #f1f1f1;
  border-style:groove;
  background-color:var(--color-boton);
  font-family: inherit;
  border-radius: 10px;
  border-color: #242424;
  padding: 0.1rem 0.3rem;
  font-size: 1rem;
}
 .btn-anchor:hover {
  cursor: pointer;
  background-color: #232323;
  border-color: #4b4b4b;
}






.lang {
  border-radius: 10px;
  background-color: rgb(166, 198, 237);
  border: none;
  padding: 0.2rem 0.6rem;
  font-size:1rem;
}

.lang:hover {
  cursor: pointer;
}

/* Contenedor para posicionar el menú */
.lang-wrapper {
  position: relative;
  display: inline-block;
}

/* Menú oculto por defecto */
.lang-menu {
  position: absolute;
  top: 100%;         /* <-- más pegado al botón */
  right: 0;
  background-color: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.3rem;
  display: none;
  z-index: 10;
}

/* Mostrar el menú mientras haya hover en el wrapper */
.lang-wrapper:hover .lang-menu {
  display: block;
}

/* Botones dentro del menú */
.lang-menu button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.3rem 0.6rem;
  text-align: left;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 6px;
}

/* Hover gris más claro */
.lang-menu button:hover {
  background-color: #333;
}

/* Idioma seleccionado: naranja */
.lang-menu button.active {
  color: var(--color-naranja1);                 /* negro para que contraste bien */
  font-weight: 600;
}

/* Mostrar el menú cuando se hace hover sobre el wrapper */
.lang-wrapper:hover .lang-menu {
  display: block;
}











.trabajo {
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  width: 60vw;

  display:grid;
  grid-template-columns: 0.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
}

.trabajo img {
align-self: center;    
justify-self: center;  
border-radius: 4px;

}


.trabajo-registro {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.trabajo-rt {
  grid-column: 2 /3;
   grid-row: 2 / 3;
}







.lista-skills{
margin: 0 auto;
margin-top: 2rem;
/* border: 2px solid rgb(83, 78, 78); */
border-radius: 10px;
padding: 1rem 0.1rem 1rem 2rem;
justify-content: center;
width: min(50vw,60rem);

    display: grid;
    grid-template-columns: repeat(auto-fill, 10rem);    
    grid-auto-rows:auto;
    row-gap: 1rem;
    column-gap: 3rem;

}
.lista-skills li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lista-skills li img {
  width: 2rem;
  height: 2rem;
  display: block;
}

.projectos{
margin: 6rem 0rem;
justify-content: center;
color: var(--color-acento);   
display:grid;
grid-template-columns: repeat(auto-fit, minmax(10rem, 10vw));
grid-auto-rows: 15rem;
gap: 8vw;
align-items: center;
row-gap: 13rem;
}


.projectos div {
  color: var(--color-texto);
  background-color:var(--color-boton);
border: 3px solid gray;
border-radius: 10px;
text-align: center;
padding: 1rem;
min-height: 10rem;
}

.projectos img {
border-radius: 10px;
}

.projectos a {
  padding: 0.1px 3px;

  text-decoration: none;
  color: var(--color-naranja1);

  /* border: 0.15rem solid rgb(192, 192, 167);
  border-radius: 5px; */
}

.sobreyo {
  width: 60vw;
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  grid-template-rows: 1fr 1fr;

}


.foto-tomi {
justify-self: center;
align-self: center;

margin-bottom: 10rem;
margin-left: 2rem;

  border-radius: 100%;
  grid-column: 2/3;
  grid-row: 1/3;
}


.hablamexfa{
  margin: 0 auto;
  width: 60vw;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap:1rem
}

.hablamexfa h2:nth-child(1) {

  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.hablamexfa h2:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}


.anchor-contacto{
  margin-top: 0 auto;
  text-decoration: none;
line-height: 3rem;
}

.anchor-contacto {
display: flex;
height: fit-content;
margin-top: 0px;
padding: 0;
}

.mailico {
  margin-right: 5px;
  margin-left: 5px;
}

.form-contacto{
  display: flex;
  flex-wrap: wrap;
}
.input1{
  color: var(--color-texto);
  height: 1.2rem;
  margin: 1rem 0rem;
  border-radius: 7px;
  background-color: var(--color-boton);
  border-color: #4b4b4b;

}
.btn-enviar{
 color: var(--color-texto);
  background-color:var(--color-boton);
  border-radius: 7px;
}

.caja-area{
  border-radius: 5px;
}

.futer {
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.25);
}




#habilidades, #Experiencia, #Proyectos, #Sobremi{
    padding-top: 6rem;
    margin-left: 2rem;
    margin-right: 2rem;
}
#Contactame {
    padding-top: 5rem;
}
.father-skills, .aboutme, .contacto, .experiencia1, .projectos-org, .intro-text {
margin-left: 20vw;
margin-right: 20vw;
}



h1 {
  color:  #ffffff;
   font-size: 3.2rem;
}

h2 {
  color: #ffffff;
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem; 
  color: rgb(250, 140, 20)
}

strong{
  font-weight: 700;
  color: rgb(255, 148, 34);
}



@media (width < 1200px){
  body{
  font-size: 15px;
}

.father-skills, .contacto, .experiencia1, .projectos-org, .intro-text {
margin-left: 15vw;
margin-right: 15vw;
}


  .trabajo {
margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4,auto);
  row-gap: 1rem; 
}

.trabajo-registro {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.trabajo-rt {
  grid-column: 1 / 2;
    grid-row: 4 / 5;
} 

h2{
  text-align: center;
}

.sobreyo {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
justify-content: center;
}

.foto-tomi {
border-radius: 100%;
grid-column: 1 / 2;
grid-row: 3 / 4;
margin-top: 3rem;
margin-left: 0;
margin-bottom: 2rem;

}

.hablamexfa {
  grid-template-columns: 1fr;
justify-content: center;
justify-items: center;
margin: 0 auto;
padding-left:0;
padding-right: 0;
}
.hablamexfa h2:nth-of-type(1){
  grid-column: 1/2;
}
.hablamexfa h2:nth-of-type(2){
  grid-column: 1/2;
  grid-row: 3 /4 ;
}

@media (min-width: 1921px) {

  body{

  background-size: cover;
  background-position: center;
  }
}

}