/* --- Variables --- */
:root {
    --verde-oscuro: #5A6C44;
    --verde-claro: #7A9C50;
    --beige: #EAE5DA;
    --blanco: #ffffff;
}

/* --- Base --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--beige);
    color: #333;
    scroll-behavior: smooth;
}

h1, h2 {
    color: var(--verde-oscuro);
}

/* --- Navbar ----------------------------------------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--verde-oscuro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    z-index: 1000;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--beige);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: var(--beige);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--verde-claro);
}


/* === HERO SECTION ===----------------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: rgba(25, 37, 31, 0.9); /* tono verde oscuro translúcido */
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f5f5f5;
  font-family: 'Poppins', sans-serif;
  padding: 0 5%;
}

/* Fondo del hero */
#img-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

/* Contenedor general */
.hero .container {
  position: relative;
  z-index: 2;
  
}

/* Distribución de columnas */
.hero .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Texto principal */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 1rem;
  line-height: 1.8;
  color: #d1d1d1;
  margin-bottom: 2rem;
  max-width: 550px;
}

/* Botones de enlaces */
.hero a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #8fd19e;
  color: #8fd19e;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.hero a:hover {
  background-color: #8fd19e;
  color: #1a1a1a;
}

/* Imagen lateral */
.hero .foto-yo {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
  object-fit: cover;
  filter: brightness(1.05);
  transition: transform 0.3s ease;
  margin-top: 50px;
  margin-left: 100px;
  
  
}

.hero .col-md-5 img:hover {
  transform: scale(1.03);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 20, 0.6);
  z-index: 1;
}

/* === ABOUT SECTION ===----------------------------------------------------------------------------------------------- */
/* === ABOUT SECTION === */
#about {
  width: 100%;
  padding: 100px 5%;
  background-color: #b7c4b0; /* verde grisáceo claro del fondo */
  color: #1a1a1a;
}

#about .container {
  max-width: 1200px;
  margin: 0 auto;
}

#about .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* evita que el texto se vaya abajo */
  gap: 3rem;
}

#about .col-md-5,
#about .col-md-7 {
  flex: 1; /* ambas columnas ocuparán espacio proporcional */
}

#about .col-md-5 {
  max-width: 40%;
}

#about .col-md-7 {
  max-width: 55%;
}


/* Imagen del perfil */
#about .foto-about {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  border: 3px solid #dfe6db; /* borde sutil claro */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  padding: 4px;
  background-color: #f2f4f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .foto-about:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Texto */
#about h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3b4c3a; /* tono verde oscuro */
  margin-bottom: 10px;
}

#about p {
  font-size: 1rem;
  line-height: 1.8;
  color: #2e2e2e;
  max-width: 600px;
}






/* === HABILIDADES SECTION ===-------------------------------------------------------------------------------------- */
.container-fluid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  
  flex-wrap: wrap; /* hace que sea responsive en pantallas pequeñas */
  margin: 40px auto;
  max-width: 1200px;
}
#habilidades .titulo-habilidades {
    text-align: center;
    margin-top: 80px;
}

.habilidades-blandas {
  padding: 100px 20px;
  padding-left: 200px;
  background-color: #e8e6dc; /* Fondo suave tipo tarjeta */
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(90, 110, 80, 0.4); /* sombra verde oscuro suave */
  margin: 40px;
}

.habilidades-blandas h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.habilidades-blandas ul {
  list-style: none;
  padding: 0;
}

.habilidades-blandas li {
  font-size: 18px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 2rem;
  text-align: left;
}

.habilidades-blandas li::before {
  content: "•";
  color: #000000;
  position: absolute;
  left: 0;
  font-size: 24px;
}

.habilidades-tecnicas {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e8e6dc; /* Fondo igual que el de habilidades blandas */
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(90, 110, 80, 0.4); /* sombra verde oscuro suave */
  margin: 40px;
}

.habilidades-tecnicas h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 100px;
  text-align: center;
  margin-left: 0; /* Alineación con el otro título */
  margin-top: 20px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.habilidades-tecnicas .iconos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  margin-left: 130px;
  margin-top: -50px;
}

.habilidades-tecnicas img {
  width: 80px;
  height: auto;
  animation: spin 3s linear infinite;
  transform-style: preserve-3d;
  display: inline-block;
}

/* Animación de giro 3D */
@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.iconos img:nth-child(1) { animation-duration: 4s; }
.iconos img:nth-child(2) { animation-duration: 4s; }
.iconos img:nth-child(3) { animation-duration: 4s; }
.iconos img:nth-child(4) { animation-duration: 4s; }
.iconos img:nth-child(5) { animation-duration: 4s; }




/* --- Estudios ---------------------------------------------------------------------------------------------------- */
.studies {
    background: var(--verde-oscuro);
    color: var(--beige);
    border-radius: 15px;
    padding: 4rem 10%;
}

.studies li {
    margin: 0.5rem 0;
}

/* --- Proyectos -------------------------------------------------------------------------------------------------- */
.projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projects .card {
    background: var(--blanco);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.projects .card:hover {
    transform: translateY(-5px);
}

/* --- Contacto ---------------------------------------------------------------------------------------------------- */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
}

.contact input, .contact textarea {
    padding: 0.8rem;
    border: 2px solid var(--verde-oscuro);
    border-radius: 8px;
    outline: none;
}

.contact button {
    background: var(--verde-claro);
    color: var(--blanco);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact button:hover {
    background: var(--verde-oscuro);
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    background: var(--verde-oscuro);
    color: var(--beige);
    padding: 1rem;
    font-size: 0.9rem;
}






/* --- Animaciones --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
}
/* --- Experiencia --- */
.experience {
    background-color: var(--verde-oscuro);
    color: var(--beige);
    text-align: center;
    padding: 5rem 10%;
    border-radius: 15px;
}

.experience p {
    max-width: 700px;
    margin: 1rem auto 3rem;
    line-height: 1.6;
}

.exp-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.exp-card {
    background: var(--verde-claro);
    border-radius: 10px;
    padding: 2rem;
    width: 220px;
    color: var(--beige);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.exp-card img {
    width: 60px;
    margin-bottom: 1rem;
}

.exp-card:hover {
    transform: translateY(-5px);
}

/* --- Hobbies --- */
.hobbies {
    background-color: var(--beige);
    text-align: center;
    padding: 6rem 10%;
}

.hobbies h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.hobbies h2 span {
    color: var(--verde-oscuro);
}

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

.hobby {
    background: #fff;
    border: 3px solid var(--verde-oscuro);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 180px;
}

.hobby img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.hobby:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive para experiencia y hobbies */
@media (max-width: 768px) {
    .exp-grid {
        flex-direction: column;
        align-items: center;
    }
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
