body {
  max-width: 1200px;
  margin: auto;
}

/* Títulos */
h1 {
  color: blue;
  text-align: center;
  font-family: "Momo Trust Sans", sans-serif;
}

h2 {
  color: blue;
  font-family: "Oswald", sans-serif;
}

/* Fondos de cada sección */
body.cv {
  background-color: mediumblue;
}

body.portfoli {
  font-family: "Oswald", sans-serif;
  align-items: center;
}

body.portfoli h1 {
  color: blue;
}

/* Imagen general */
img {
  width: 200px;
}

/* ⭐ Imagen .star con degradado azul encima */
.star {
  width: 200px;
  height: 200px;
  margin: auto;
  display: block;
  border-radius: 10px;

  /* Degradado azul + imagen */
  background-image:
    linear-gradient(to top, rgba(0, 102, 204, 0.5), rgba(173, 216, 230, 0.4)),
    url("star.jpg");
  background-size: cover;
  background-position: center;

  transform: rotate(4deg);
  transition: transform 0.5s ease;

  animation-name: bounce;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

/* Efecto hover */
.star:hover {
  filter: grayscale(50%);
}

/* Animación bounce */
@keyframes bounce {
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(0px, -10px); }
  100% { transform: translate(0px, 0px); }
}

/* Diseño responsivo */
@media screen and (min-width: 768px) {
  div.intro {
    background-color: coral;
    flex-direction: row;
  }

  div.portfoli {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  div.item {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 2px 2px 2px 2px grey;
  }

  div.portfoli img {
    width: 100%;
    transform: rotate(4deg);
  }

  div.cv {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
}

@media screen and (min-width: 1024px) {
  div.portfoli {
    grid-template-columns: 1fr 1fr 1fr;
  }

  div.portfoli img:hover {
    cursor: pointer;
    transform: rotate(4deg) translate(10px, 10px);
    filter: hue-rotate(90deg);
  }
}

.underline-blue {
  text-decoration: underline;           /* activa el subrayado */
  text-decoration-color: blue;          /* color azul */
  text-decoration-thickness: 2px;       /* grosor de la línea */
  text-underline-offset: 4px;           /* separación respecto al texto */
}

/* Fondo beige para toda la página */
body.cv {
  background-color: #f5f5dc; /* beige */
  font-family: "Oswald", sans-serif;
  margin: 0;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Títulos */
h1, h2, h3, h4 {
  color: #333;
  margin-bottom: 10px;
}

/* Enlace al portafolio */
a {
  color: #007BFF;
  text-decoration: none;
  margin-bottom: 20px;
  display: inline-block;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Títulos en azul */
h1, h2, h3, h4 {
  color: blue;
  margin-bottom: 10px;
}

.small-fixed-bottom-video {
  position: fixed;             /* Fijo en la pantalla */
  bottom: 10px;                /* Pegado abajo con un pequeño margen */
  left: 50%;                   /* Centrado horizontal */
  width: 80px;                  /* Muy pequeño */
  height: 40px;                 /* Apaisado */
  object-fit: cover;           /* Mantiene proporción sin deformar */
  transform: translateX(-50%); /* Centrado exacto horizontal */
  z-index: 10;                 /* Por encima del contenido */
  border-radius: 5px;          /* Bordes opcionales */
  box-shadow: 0 0 8px rgba(0,0,0,0.2); /* Sombra sutil */
}

/* Responsive: aún más pequeño en pantallas medianas */
@media screen and (max-width: 768px) {
  .small-fixed-bottom-video {
    width: 120px;
    height: 30px;
  }
}

/* Responsive: aún más pequeño en pantallas pequeñas */
@media screen and (max-width: 480px) {
  .small-fixed-bottom-video {
    width: 40px;
    height: 20px;
  }
}
