/*  Fondo general  */
body {
  background-image: url("fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Poppins';
  background-attachment: fixed;
}
h1{
  margin-bottom: 5px;
  font-size: 120px;
  line-height: 1;
}

/*  Encabezado  */
div.header {
  text-align: center;
  position: relative;
}

/* Nombre y subtítulo arriba */


div.text-area p {
  margin-top: auto;
  font-size: 20px;
  line-height: 1;
}

/* Imagen centrada */
div.img-area {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid black;
  margin: 30px auto 0 auto; /* centrada */
  z-index: 2;
  position: relative;
}

div.img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

div.intro-text {
  width: 80%;
  margin: -100px auto 20px auto;
  border: 2px solid black;
  border-radius: 15px;
  padding: 100px 40px 30px 40px; 
  background-color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
  position: relative;
}

div.intro-text h2 {
  margin-bottom: 10px;
  font-size: 19px;
  color: white;
  text-align: center;
  etter-spacing: 1px;
}
div.intro-text a {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 2px solid black;
  color: black;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.25s ease;
}

/*  Cuerpo principal  */
div.main {
  display: flex;
  justify-content: space-between; 
  align-items: flex-start;        
  width: 90%;
  margin: 50px auto 0 auto;       
}

/*  Columna izquierda  */
div.left {
  flex: 1;
  padding: 0 30px 30px 30px;  
}

div.left p {
  line-height: 1;
}

div.left ul li {
  line-height: 1.5;
}

/*  Encabezados */
h2 {
  background: black;
  padding: 5px;
  color: #fff;
  margin: 0 0 15px 0;             
  font-size: 20px;
  text-align: left;
}


/*  Columna derecha  */
div.right {
  flex: 2;
  padding: 0 30px 30px 30px;      
}

div.right h3 {
  margin-bottom: 15px;
}

div.right p {
  line-height: 1;
}

div.right ul li {
  line-height: 2;
}
div.img-area:hover {
  animation: zoomIn 0.5s ease forwards; /* ejecuta la animación */
}

/* Animación foto*/
@keyframes ferGran {
  0% {
    transform: scale(1.5);
  }
  25% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
/* Cuando paso el ratón */
div.img-area:hover {
  animation-name: ferGran;      
  animation-duration: 1.5s;     
}

/*  Responsive  */


@media screen and (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  div.right {
    flex: none;
    width: 85%;
  }

  div.container {
    width: 95%;
    height: auto;
  }

  h2 {
    font-size: 15px;
  }
  h1 {
    font-size: 80px;
  }
}

/* Portfolio */

    /* header */
    header {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 50px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: black;
      padding: 5px;
   
    }

    nav {
      margin-top: 10px;
    }

    /* navegación  */

    .elementos-nav {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      gap: 18px;
    }

    .elementos-nav a {
      color: white;
      font-weight: bold;
      text-transform: uppercase;
      padding: 6px 10px;
      font-size: 12px;
      border-radius: 6px;
    }

    div.elementos-nav a:hover {
      background: wh;
    }

  

    /* banner principal */
  div.texto-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 230px 20px;
}

    div.banner-unico h2 {
      font-family: "Poppins";
      font-size: 48px;
    }

    div.banner-unico a {
      text-decoration: none;
      background: transparent;
      border: 2px solid black;
      color: black;
      padding: 10px 20px;
      margin-top: 12px;
      border-radius: 30px;
      transition: all .25s ease;
    }

    div.banner-unico a:hover {
      background: white;  
    }

   /* Dos columnas */
div.dos-columnas {
  display: flex;
  gap: 20px;
  margin: 40px 40px; 
  align-items: center; 
}

div.columna-izquierda, .columna-derecha {
  flex: 1; 
}

div.columna-izquierda {
  display: flex;
  flex-direction: column;
  justify-content: left; 
  padding: 20px;
}

div.columna-derecha img {
  width: 90%; 
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
  div.dos-columnas {
    flex-direction: column;
    align-items: flex;
  }

  div.columna-derecha img {
    width: 100%;
    margin-top: 30px;
  }
}
