/*Estilo del menu e icono*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background-color: white;
}

header {
  background-color: black;
  padding: 15px 30px;
  display: flex;
  justify-content: flex-end; /* 💡 Alineación icono a la derecha*/
}

.login-icon {
  font-size: 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease; /* 💡 Transición suave */
  margin-right: 70px;
}

.login-icon:hover {
  color: #af20d3; /* Cambia el color al pasar el mouse */
  transform: scale(1.2); /* Se agranda ligeramente */
}

/*Sección Menú*/
.menu {
  padding: 30px 0;
  text-align: center;
  margin: 0px;
}

nav {
  padding: 5px 5px 0 0;
  margin-top: 20px;
}

nav > a {
  color: black;
  font-weight: 300;
  text-decoration: none;
  gap: 10px;
  transition: color 0.3s;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 40px;
}

nav > a:hover {
  color: purple;
  transform: scale(1.1);
}

.logo {
  height: 170px;
  width: auto;
  margin-left: 50px;
  margin-top: 10px;
}

.navegación {
  display: flex;
  justify-content: space-between; /* Logo a la izquierda y nav a la derecha */
  align-items: center; /* Alinea los elementos verticalmente */
  height: 40px;
}

/* Estilos del icono */
.user-menu {
  position: relative;
  display: inline-block;
}

/* 🔥 El menú está OCULTO al principio */
.dropdown-menu {
  display: none; /* <- ESTO OCULTA */
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  max-width: 90vw;
  justify-content: center;
  gap: 20px;
}

/* El menú se muestra SOLO al pasar el mouse */
.user-menu:hover .dropdown-menu {
  display: flex; /* <- AQUÍ aparece */
}

/* Estilos de los links */
.dropdown-menu a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu a:hover {
  color: #29064d;
}

.divisor {
  border: none;
  height: 2px;
  background-color: #000;
  width: 90%;
  margin: 10px auto 20px auto; /* Arriba 10px, abajo 20px, y centrado */
}

/*NUESTRO EQUIPO PORTADA*/
.equipo {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Esto está bien */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  padding: 2rem;
}

.card {
  background: transparent;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: none;
  width: 20rem;
}

.card:hover {
  transform: translateY(-10px);
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 6px solid #a259ff;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  color: #a259ff;
  font-weight: 600;
}

.card p {
  margin-top: 5px;
  font-size: 16px;
  color: #ccc;
  font-weight: 300;
}

.texto-link a {
  color: #a259ff;
  text-decoration: none;
  transition: color 0.3s;
}

.texto-link a:hover {
  color: hsl(282, 93%, 16%);
}

/*NUESTRO EQUIPO PORTFOLIO*/
#sec_principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2em 5%;
  background-color: white;
}

.info_personal {
  flex: 1;
  text-align: center;
  color: #520eab;
}

.info_personal h4 {
  margin-bottom: 60px;
}

.foto_perfil {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  margin-bottom: 1em;
  border: 10px solid #a259ff;
}

.perfil_profesional {
  flex: 1;
  text-align: left;
  margin-left: 3em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.perfil_profesional h2 {
  font-size: 2em;
  color: #8d39fb;
  text-align: center;
  margin-bottom: 83px;
}

.perfil_profesional p {
  font-size: 1.1em;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 40px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

.habilidades_responsabilidades {
  padding: 1px 0;
  background-color: #5918aeab;
  text-align: center;
}

.habilidades_responsabilidades h2 {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 2em;
}

.card-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 3em;
}

/* Estilos de las tarjetas */
.card_1,
.card_2 {
  border-radius: 25px;
  box-shadow: 0px 10px 20px rgba(226, 213, 213, 0.1);
  padding: 2em;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card_1 {
  background-color: #7348d7;
}

.card_1:hover {
  transform: translateY(-10px);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.15);
}

#info_personal {
  display: flex;
  justify-content: center; /* Centrar mejor */
  align-items: center;
  gap: 1em; /* Menos separación */
  padding: 1em 3%; /* Mucho menos padding */
  background-color: #ffffff;
  margin-top: 0%; /* Menor separación arriba */
  border-radius: 10px;
  position: relative;
}

.info_personal h4 {
  margin-bottom: 30px; /* ↓ Antes 60px */
}

.perfil_profesional h2 {
  font-size: 1.8em; /* Opcionalmente bajar tamaño */
  margin-bottom: 40px; /* ↓ Antes 83px */
  margin-top: none;
  justify-content: center;
}

.perfil_profesional p {
  font-size: 1em; /* ↓ Ligeramente más pequeño */
  margin-bottom: 5px; /* ↓ Menos espacio después del párrafo */
  margin-top: 0px;
}

/*FOOTER*/
footer {
  background: #000000;
  padding: 10px 0 10px 0;
  overflow: hidden;
  margin: auto;
}

.contenedor-footer {
  display: flex;
  background: #000000;
  width: 90%;
  justify-content: space-evenly;
  margin: auto;
  padding-bottom: 50px;
  border-bottom: 2px solid #dbd6d6; /* ejemplo de borde negro */
}

.contenedor-final {
  text-align: center;
}

.contenedor-final h4 {
  color: white;
  border-bottom: 3px solid #af20d3;
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.contenedor-final p {
  color: #ffffff;
}

.titulo-final {
  text-align: center;
  font-size: 15px;
  margin: 20px 0 0;
  color: #9e9797;
}

/*Estilo pagina de CONTACTO*/




/*Estilo de contacto*/
.seccioncontacto{
  max-width: 128rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgb(32, 0, 59) 0%, rgb(107, 15, 79));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.contenedor-contacto{
  display:grid;
  grid-template-columns: repeat(2,50%);
  padding: 2rem;
  gap: 1rem;
  width: auto;
}

.box-in{
  color: #ececec;
  display:flex;
  flex-direction: column;
  gap: 5rem;
  
}

.box-in h2{
  text-align: left;
  letter-spacing: 1.5rem;
  font: size 24px;

}

.data{
  display: flex;
  flex-direction: column;
  gap: 2.5rem; 
}

.data > p {
  font-size: 1.8rem;
}

.data > p > i{
  color: #af20d3;
  margin-right: 2rem;
  font-size: 2.5rem;
}

.links{
  display: flex;
  gap: 1.5rem;
}

.links > a {
  text-decoration: none;
  width: 4rem;
  height: 4rem;
  background:#af20d3;
  text-align: center;
  transition: .1s;
  border-radius: 50%;
}

.links > a > i {
  color: #ececec;
  line-height: 4rem;
  font-size: 2rem;
}

.formulario {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
}

.input-box{
  position: relative;
}

.input-box > input{
  width: 100%;
  height: 4rem;
  padding: 0 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border: .3rem solid transparent;
  letter-spacing: .1rem;
  transition: .3s;
  color:#ececec; 
  border-radius: 2rem;
}
.input-box > input:focus,
.input-box > textarea:focus {
  border-bottom: .3rem solid #af20d3;
  animation: shake .2s;
}

.input-box > input::placeholder,
.input-box > textarea::placeholder{
  color:#a3a3a3
}

.input-box > input:focus::placeholder,
.input-box > textarea:focus::placeholder{
  color:transparent;
}

.input-box > textarea{
  width: 100%;
  height: 13rem;
  background: rgba(255, 255, 255, 0.1);
  border: .3rem solid transparent;
  letter-spacing: .1rem;
  transition: .3s;
  color:#ececec;
  padding: 1rem;
  border-radius: 2rem;
}

.input-box > i{
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1.5rem;
  transition: .3s;
}

.input-box > input:focus ~ i {
  color: #af20d3;
}


.formulario > button {
  background: #af20d3;
  color: #ececec;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 1rem;
  transition: .2s;
  border-radius: 2rem;
}

.formulario > button:hover,
.links > a:hover{
  background-color: #33003f;
}

/*responsive contacto*/
@keyframes shake{
  0%, 100% {transform: translateX(0);}
  10%, 30%, 50%, 70%, 90% {transform: translateX(-1rem);}
  20%, 40%, 60%, 80%  {transform: translateX(1rem);}
}

@media screen and (max-width: 600px) {
 
  .contenedor-contacto{
      width: 95%;
      display: flex;
      flex-direction: column;
      gap: 2rem;
  }
  .box-in{
      gap: 1.5rem;
  }
 
  .box-in > h1{
      font-size: 1.5rem;
  }
}
  