/* =====================
   RESET Y BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* =====================
   FONDO PRINCIPAL
   ===================== */
.imageh {
  background-image: url("/paginasHtmlCss/CV/assets/images/jpg/background2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100%;
  width: 100%;
  display: block;
  overflow-x: hidden;
}

/* =====================
   TÍTULO PRINCIPAL
   ===================== */
.text {
  color: #ffcd00;
  text-shadow: 4px 4px 16px rgba(253, 255, 115, 0.411);
  font-size: clamp(2rem, 8vw, 5rem); /* fluido: mín 2rem → máx 5rem */
  text-align: center;
  padding: 20px 16px 0;
}

/* =====================
   RECUADRO DE CONTENIDO
   ===================== */
.recuadro {
  background-color: rgba(0, 0, 0, 0.356);
  color: white;
  font-size: clamp(15px, 2vw, 20px); /* fluido */
  width: calc(100% - 40px);
  max-width: 1400px;
  height: auto;
  margin: 40px auto;
  padding: clamp(16px, 4vw, 32px);
  border-radius: 6px;
}

/* =====================
   TÍTULOS DE SECCIÓN
   ===================== */
h2 {
  border-bottom: 3px solid #0066FF;
  text-align: center;
  font-size: clamp(20px, 4vw, 30px);
}

/* =====================
   IFRAMES RESPONSIVE
   ===================== */
.iframe-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
}

/* Fallback para navegadores sin soporte de aspect-ratio */
@supports not (aspect-ratio: 16/9) {
  .iframe-wrapper {
    padding-bottom: 56.25%;
    height: 0;
  }
  .iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Iframes directos (sin wrapper, retrocompatibilidad) */
iframe {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  border: 0;
}

/* =====================
   IMAGEN
   ===================== */
img {
  display: block;
  width: 90%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  border-radius: 5%;
}

/* =====================
   CONTENEDOR IMAGEN
   ===================== */
div.contenadorimg {
  padding: 20px 0 10px;
}

/* =====================
   ENLACE DE VUELTA AL CV
   ===================== */
div.return {
  display: flex;
  justify-content: center;
  padding: 40px 16px 60px;
  margin: 0;
}

a,
a:visited {
  color: #ffffff5d;
  font-size: clamp(24px, 5vw, 50px);
  text-decoration: none;
  text-align: center;
}

a:hover,
a:active {
  color: #e7ff0b;
}

/* =====================
   MEDIA QUERY: MÓVIL
   ===================== */
@media (max-width: 480px) {
  .recuadro {
    width: calc(100% - 24px);
    padding: 14px;
    margin: 24px auto;
  }

  img {
    width: 100%;
    max-width: 100%;
    border-radius: 3%;
  }
}