* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Boldonse', sans-serif;
}

p {
  font-weight: 300;
}

button {
  font-weight: 600;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

header {
  min-height: 200px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../IMG/banner_tortuga.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/*Rem es una unidad de medida relativa del tamaño de la fuente origen html, x defecto 16px*/
.titulo_banner {
  color: white;
  font-size: 5rem;
  text-align: center;
  text-shadow: 2px 2px 5px black;
}

.nav {
  background-color: orange;
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  text-shadow: 2px 2px 5px black;
}

/*efecto cuando se pasa el mouse por encima*/
.nav a:hover {
  text-decoration: underline;
}

section {
  margin-top: 30px;
  margin-bottom: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

#sobre-mi {
  text-align: justify;
  max-width: 800px;
  padding: 20px;
}

#sobre-mi p {
  margin-top: 0;
  line-height: 1.5;
  text-align: center;
}

#sobre-mi img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
}

#tarjetas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  max-width: 1000px;
  text-align: center;
}


#tarjetas .tarjeta h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  text-align: center;
}

#tarjetas .tarjeta-img {
  width: 100%;
  max-width: 100%;
  height: 150px;
  overflow: hidden;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 10px;
}

/*Los contenedores se podrian agrupar, se verá luego */
#tarjeta-contenedor {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 0;
}

#tarjeta-contenedor .tarjeta {
  flex: 1;
  max-width: 300px;
  min-width: 250px;
  background-color: #ffba6a;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  cursor: pointer;
}

#tarjeta-contenedor .tarjeta:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


.habilidades-hobbie-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 10px;
}

#habilidades-contenedor {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px auto;
}

.tarjeta-grande-hp {
  background-color: #ffba6a;
  flex: 1;
  max-width: 450px;
  min-width: 280px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  cursor: pointer;
}

.tarjeta-grande-hp h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

/* Efecto al pasar el mouse */
.tarjeta-grande-hp:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


#hobbies-contenedor {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

#hobbies-contenedor img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.sub-tarjeta {
  background-color: #fff3e0;
  flex: 1;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  cursor: pointer;
}

.sub-tarjeta h4 {
  margin-top: 0;
  margin-bottom: 15px;
}

.sub-tarjeta.deseo {
  background-color: #d0ebff;
}

.sub-tarjeta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-tarjeta li {
  margin: 5px 0;
  font-weight: 400;
}


#pelicula-contenedor {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tarjeta-pelicula {
  background-color: #ffba6a;
  flex: 1;
  max-width: 300px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  cursor: pointer;
}

#peliculas .tarjeta-pelicula h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.tarjeta-pelicula:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /*proporcion para q el video se vea correctamente*/
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.medalla-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.medalla-titulo h3 {
  margin: 0;
  display: flex;
  line-height: 1
}

/* toma a contacto, xq se edita la seccion, no solo el form*/
#contacto {
  background-color: #ffba6a;
  width: 100%;
  padding: 40px 0;
  max-width: none;
}

.contacto-contenido {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: none;
  margin: 0 auto;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

label {
  display: block;
  margin-bottom: 5px;
  margin-top: 10px;
}

button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: black;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
}

button:hover {
  background-color: #f0f0f0;
}

footer {
  padding: 15px 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../IMG/banner_tortuga.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  /* 👈 importante */
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: white;
  text-shadow: 2px 2px 5px black;
  text-align: center;
}

footer p {
  margin-top: 10px;
  font-weight: 700;
}

.redes {
  display: flex;
  gap: 15px;
}

.redes img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s;
}

.redes img:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {

  .titulo_banner {
    font-size: 2.5rem;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav a {
    margin: 5px 0;
  }

  #tarjeta-contenedor {
    flex-direction: column;
    align-items: center;
  }

  #pelicula-contenedor {
    flex-direction: column;
    align-items: center;
  }

  .habilidades-hobbie-contenedor {
    flex-direction: column;
    align-items: center;
  }

  #habilidades-contenedor {
    flex-direction: column;
  }

  #hobbies-contenedor {
    flex-direction: column;
  }

  #hobbies-contenedor img {
    max-width: 100%;
    height: auto;
  }

  .tarjeta,
  .tarjeta-pelicula {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    flex: none;

  }

  .tarjeta-grande-hp {
    width: 100%;
    max-width: 400px;
    min-width: unset;
  }
}