/* ===== KLINT PRO (self-hosted, ../fonts/ relativo a assets/css/) ===== */
@font-face {
  font-family: 'Klint Pro';
  src: url('../fonts/KlintPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Klint Pro';
  src: url('../fonts/KlintPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Klint Pro';
  src: url('../fonts/KlintPro-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Klint Pro';
  src: url('../fonts/KlintPro-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Klint Pro';
  src: url('../fonts/KlintPro-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Klint Pro';
  src: url('../fonts/KlintPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --max-width: 1920px;
  --content-width: 1396px;
  --header-height: 587px;
  --header-img-width: 920px;
  --strip-height: 110px;
  --footer-height: 150px;
  --color-azul: #1a58a4;
  --color-verde: #87bc32;

  /* Tamaños fluidos calculados sobre el PSD a 1920px de ancho */
  --fs-h1: clamp(1.75rem, 2.5vw, 3rem);
  --fs-texto: clamp(1rem, 1.5625vw, 1.875rem);
  --fs-franja: clamp(1rem, 1.4583vw, 1.75rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Klint Pro', 'Segoe UI', Arial, sans-serif;
  color: #222;
  background-color: #ddeaf7;
}

/* ===== WRAPPER GENERAL (máximo 1920px) ===== */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

/* ===== CONTENEDOR DE CONTENIDO (1396px) ===== */
.content-container {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.emoji_foto {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== CABECERA ===== */
.header {
  position: relative;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #1a59a5;
}

.header__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  padding-right: 47.917%;
}

.header__logo {
  max-width: 640px;
  height: auto;
}

.header__texto h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  margin-top: 0.8rem;
}

.header__texto p {
  font-size: var(--fs-texto);
  line-height: 1.4;
  margin: 0;
}

.header__imagen-wrap {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 47.917%;
  max-width: var(--header-img-width);
}

.header__imagen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ExoReto .header__imagen-wrap {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: inherit;
}

.reto__header {
  background: linear-gradient(90deg, #20a0d2 0%, #1683c2 50%, #20569e 100%);
}

.reto__contenido {
  background: linear-gradient(90deg, #20a0d2 0%, #1683c2 50%, #20569e 100%);
}

.reto__contenido::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== HEADER MOBILE ===== */
.header-mobile {
  display: none;
}

/* ===== FRANJA DE TEXTO (110px alto) ===== */
.franja {
  height: var(--strip-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../images/bg_franja.png);
  text-align: center;
}

.franja p {
  margin: 0;
  font-size: var(--fs-franja);
  line-height: 1.2;
  color: #fff;
  padding: 0 15px;
}

/* ===== BLOQUE DE CONTENIDO PRINCIPAL ===== */
.bloque-contenido {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.bloque-contenido__imagen img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.bloque-contenido__texto h1 {
  margin-bottom: 1rem;
  text-align: center;
  color: #00a1e2;
  font-size: var(--fs-h1);
  font-weight: 100;
}

.bloque-contenido__texto .texto_degradado {
  display: inline-block;
  font-family: 'Klint Pro', Arial, sans-serif;
  font-weight: 900;
  font-size: var(--fs-h1);
  margin: 0;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #1a58a4 0%, #0aa398 55%, #6fbf2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bloque-contenido__texto p {
  font-size: var(--fs-texto);
  line-height: 1.5;
  color: #00599e;
  margin-bottom: 1.5rem;
}

.bloque-contenido__botones .btn {
  margin-right: 12px;
  margin-bottom: 12px;
  padding: 10px 28px;
  font-weight: 600;
  border-radius: 4px;
}

.btn-primario {
  background-color: var(--color-azul);
  border-color: var(--color-azul);
  color: #fff;
}

.btn-primario:hover {
  background-color: #164a8a;
  border-color: #164a8a;
  color: #fff;
}

.btn-secundario {
  background-color: var(--color-verde);
  border-color: var(--color-verde);
  color: #fff;
}

.btn-secundario:hover {
  background-color: #72a028;
  border-color: #72a028;
  color: #fff;
}

.mosaic-text-wrap {
  width: 100%;
  margin-bottom: 50px;
}

.mosaic-text-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.btn-subir-imagen {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 70px 6px 6px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6fbf2c 0%, #4fae2a 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 174, 42, 0.35);
  margin: 3.5rem auto;
}

.btn-subir-imagen__icono {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-right: 15px;
}

.btn-subir-imagen__icono::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}

.btn-subir-imagen__icono svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.text__logo {
  vertical-align: top;
  max-width: 130px;
}

/* ===== FOOTER (150px, degradado horizontal) ===== */
.footer {
  height: var(--footer-height);
  width: 100%;
  background: linear-gradient(90deg, var(--color-azul) 0%, var(--color-verde) 100%);
  display: flex;
  align-items: center;
}

.footer .content-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.footer__logo {
  max-height: 70px;
  width: auto;
}

/* ===== FOOTER: icono + texto (izquierda) ===== */
.footer__marca {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px; /* espacio entre el icono y el texto */
}

.footer__icono {
  max-height: 40px;
  width: auto;
}

.footer__texto {
  color: #fff;
  font-size: 1.7em;
  line-height: 1.25;
  font-weight: 500;
  padding-top: 5%;
}

/* ===== EXORETO ===== */
.reto {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: visible;
  background-image:
    linear-gradient(90deg, #20a0d2 0%, #1683c2 50%, #1a56a2 100%),
    linear-gradient(90deg, #168dcc 0%, #147bc0 50%, #154792 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: top left, 0 287px;
  background-size: 100% 287px, 100% 183px;
}

/* ===== CABECERA DEL RETO ===== */
.reto__header {
  height: 287px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
}

.reto__header .content-container {
  padding-top: 5px;
  text-align: center;
}

.reto__header img.emoji_pensante{
  position: absolute;
  left: 5%;
  top: 0%;
}

.reto__header h1 {
  margin: 0 0 20px;
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 1px;
}

.reto__header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1px;
}

/* ===== CONTENIDO ===== */
.reto__contenido {
  height: 210px;
  position: relative;
  background: transparent;
  color: #fff;
}

.reto__contenido .content-container {
  height: 100%;
  position: relative;
  text-align: center;
}

/* ===== TEXTO ===== */
.reto__texto {
    width: 55%;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    padding-top: 3%;
}

.reto__texto p, .reto__texto span {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
}

.reto__texto strong {
  font-weight: 700;
}

/* ===== PREMIOS ===== */
.reto__premios {
  position: absolute;
  right: 0;
  bottom: -25%;
  width: 350px;
  z-index: 3;
}

.reto__premios img {
  display: block;
  height: auto;
}

.reto__premio--experiencia {
  width: 175px;
  right: 15px;
  bottom: 8px;
  transform: rotate(-1deg);
}

.reto__premio--amazon {
  width: 135px;
  right: 130px;
  bottom: -5px;
  transform: rotate(-5deg);
  z-index: 2;
}

/* ===== SECCIÓN DE PASOS DEL RETO ===== */
.reto-pasos {
  padding: 60px 0;
}

.reto-paso {
  margin-bottom: 48px;
}

.reto-paso:last-child {
  margin-bottom: 0;
}

.reto-paso__header {
    background-image: url('../images/pregunta.png'), 
                       linear-gradient(90deg, var(--color-azul) 0%, var(--color-verde) 100%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain; /* o "cover", según necesites */
    padding: 20px 24px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 50px;
    position: relative;
}

.reto-paso__header h3 {
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}
.reto-paso__header-icon-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transform: translateY(-50%) scale(0.8);
   transform-origin: right center;
}

.reto-paso__numero {
  font-weight: 700;
}

.reto-paso__header h3 strong {
  font-weight: 700;
}

.reto-paso__desc {
  text-align: center;
  color: var(--color-azul);
  font-size: 1.1rem;
  line-height: 1.45;
  max-width: 760px;
  margin: 22px auto;
  padding: 0 15px;
}

.reto-paso__input {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: 62px;
  margin: 0 auto;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 28px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.reto-paso__input::placeholder {
  color: #9aa5b1;
}

.reto-paso__input:focus {
  outline: 2px solid var(--color-azul);
  outline-offset: 2px;
}

.reto-paso__input--file {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: #555;
  -webkit-tap-highlight-color: transparent;
}

.reto-paso__input--file .reto-paso__file-texto {
  font-size: 1rem;
  color: #9aa5b1;
}

.reto-paso__input--file.tiene-archivo .reto-paso__file-texto {
  color: #333;
  font-weight: 500;
}

.reto-paso__file-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6fbf2c 0%, #4fae2a 100%);
  flex-shrink: 0;
}

.reto-paso__file-icono svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.texto-exonet {
  font-size: var(--fs-texto);
  line-height: 1.5;
  color: #00599e;
  margin-bottom: 1.5rem;
  text-align: center;
}

.reto-pasos__enviar{
  text-align: center;
  margin: 50px auto;
}

.btn-enviar-reto{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 64px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-azul) 0%, var(--color-verde) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 88, 164, 0.35);
}

.btn-enviar-reto:disabled{
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}


.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
}

.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  width: 90%;
  max-width: 420px;
}

.alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.alert__caja {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.alert__cerrar {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9aa5b1;
  cursor: pointer;
}

.alert .txt {
  margin: 0;
  color: var(--color-azul, #1a58a4);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ===== MODAL "SUBE TU IMAGEN" (mosaico) ===== */
.subida-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
}

.subida-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  width: 90%;
  max-width: 480px;
}

.subida-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.subida-modal__caja {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.subida-modal__caja h3 {
  margin: 0 0 10px;
  color: var(--color-azul);
  font-size: 1.4rem;
  font-weight: 700;
}

.subida-modal__caja p {
  margin: 0 0 22px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.subida-modal__caja form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subida-modal__label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.subida-modal__cerrar {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9aa5b1;
  cursor: pointer;
}

/* Estado de error en los campos del formulario ExoReto */
.reto-paso.has-error .reto-paso__input,
.reto-paso__input.has-error {
  outline: 2px solid #e04b4b;
  outline-offset: 2px;
}


/* ===== ANIMACIÓN DE ENTRADA DE LA CABECERA ===== */

@keyframes exonet-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes exonet-fade-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header__logo {
  animation: exonet-fade-up 0.7s ease-out both;
  animation-delay: 0.1s;
}

.header__texto h1 {
  animation: exonet-fade-up 0.7s ease-out both;
  animation-delay: 0.3s;
}

.header__texto p {
  animation: exonet-fade-up 0.7s ease-out both;
  animation-delay: 0.5s;
}

.header__imagen-wrap {
  animation: exonet-fade-in-right 0.8s ease-out both;
  animation-delay: 0.2s;
}

/* Misma idea en la versión mobile de la cabecera */
.header-mobile__imagen {
  animation: exonet-fade-in-right 0.8s ease-out both;
}

.header-mobile__logo {
  animation: exonet-fade-up 0.7s ease-out both;
  animation-delay: 0.2s;
}

.header-mobile__texto h1 {
  animation: exonet-fade-up 0.7s ease-out both;
  animation-delay: 0.35s;
}

.header-mobile__texto p {
  animation: exonet-fade-up 0.7s ease-out both;
  animation-delay: 0.5s;
}



/* Brillo que recorre el botón de subir foto de vez en cuando,
   para llamar la atención sin ser invasivo */
.btn-subir-imagen {
  position: relative;
  overflow: hidden;
}

.btn-subir-imagen::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: exonet-shine 3.5s ease-in-out infinite;
}

@keyframes exonet-shine {
  0% {
    left: -75%;
  }
  18% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* Respeta a quien ha pedido menos movimiento en su sistema operativo */
@media (prefers-reduced-motion: reduce) {
  .header__logo,
  .header__texto h1,
  .header__texto p,
  .header__imagen-wrap,
  .header-mobile__imagen,
  .header-mobile__logo,
  .header-mobile__texto h1,
  .header-mobile__texto p,
  .btn-subir-imagen {
    animation: none;
  }
}

/* ===== ENTRADA DEL MOSAICO AL HACER SCROLL ===== */

.mosaic-text-wrap {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.mosaic-text-wrap.mosaico-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-text-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===== MOSAICO: pista de "click para ampliar" ===== */
.mosaic-text-wrap {
  cursor: zoom-in;
}

.mosaic-text-wrap__pista {
  text-align: center;
  font-size: 0.85rem;
  color: #6a89b3;
  margin: 8px 0 0;
}

/* ===== MODAL DE ZOOM DEL MOSAICO ===== */
.mosaico-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 24, 0.9);
  z-index: 1000;
}

.mosaico-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mosaico-zoom-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.mosaico-zoom-viewport {
  width: 92vw;
  height: 82vh;
  overflow: hidden;
  touch-action: none; /* el JS gestiona el pan/zoom, evita el scroll nativo */
  cursor: grab;
}

.mosaico-zoom-viewport:active {
  cursor: grabbing;
}

.mosaico-zoom-lienzo {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.mosaico-zoom-lienzo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mosaico-zoom-cerrar {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1002;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.mosaico-zoom-controles {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  display: flex;
  gap: 10px;
}

.mosaico-zoom-controles button {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.mosaico-zoom-controles button:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ===== LEGAL / CONSENTIMIENTO RGPD ===== */
.reto-legal {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 15px;
}

.reto-legal__texto {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #00599e;
  margin-bottom: 16px;
}

.reto-legal__texto a {
  color: #00599e;
  text-decoration: underline;
}

.reto-legal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #00599e;
}

.reto-legal__check input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-azul);
  cursor: pointer;
}

.reto-legal__check.has-error {
  color: #e04b4b;
}

.reto-legal__check.has-error input[type="checkbox"] {
  outline: 2px solid #e04b4b;
  outline-offset: 2px;
}



/* ===== RESPONSIVE ===== */

/* TABLET / PANTALLAS DE ~1024px */
@media (max-width: 1199px) and (min-width: 992px) {
  :root {
    --header-height: 400px;
    --header-img-width: 600px;
  }

  .header__content {
    padding-right: 42%;
  }

  .header__logo {
    max-width: 450px;
  }

  .header__texto h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .header__texto p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .header__imagen-wrap {
    width: 42%;
    max-width: 600px;
  }

  .text__logo {
    max-width: 85px;
  }
}

/* TABLET / 768px */
@media (max-width: 991px) and (min-width: 576px) {
  .header {
    min-height: auto;
  }

  .header__content {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .header__logo {
    max-width: 300px;
    margin-bottom: 0.5rem !important;
  }

  .header__texto h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
  }

  .header__texto p {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .header__imagen-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 220px;
  }

  .text__logo {
    max-width: 75px;
    height: auto;
    vertical-align: middle;
  }

  .footer {
    height: auto;
    padding: 25px 0;
  }

  .footer .content-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
  }

  .footer__logo {
    max-width: 40%;
    max-height: 45px;
    width: auto;
    height: auto;
  }

  .footer__icono {
    max-height: 32px;
  }

  .footer__texto {
    font-size: 0.75rem;
    max-width: 180px;
  }

  .reto__premios {
    width: 350px;
  }
}

/* MOBILE — HASTA 575px */
@media (max-width: 575px) {
  .header {
    display: none;
  }

  .header-mobile {
    display: block;
    width: 100%;
    background-color: #ddeaf7;
  }

  .header-mobile__imagen {
    width: 100%;
    height: 175px;
    overflow: hidden;
  }

  .header-mobile__imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-mobile__content {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px 20px 25px;
  }

  .header-mobile__logo {
    width: 36%;
    flex-shrink: 0;
  }

  .header-mobile__logo img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
  }

  .header-mobile__texto {
    width: 64%;
  }

  .header-mobile__texto h1 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
    color: #1a59a5;
  }

  .header-mobile__texto p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #1a59a5;
  }

  .text__logo {
    display: inline-block;
    width: auto;
    max-width: 65px;
    height: auto;
    vertical-align: text-top;
    margin: 0 2px;
  }

  .emoji_foto {
      display: none;
  }

  .reto__contenido {
    height: auto;
    min-height: 160px;
  }

  .reto__contenido .content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 15px;
  }

  .reto__texto {
    width: 100%;
    text-align: center;
  }

  .reto__texto p, .reto__texto span {
    font-size: 1.15rem;
    line-height: 1.45;
    text-align: center;
  }

  .reto__premios {
    position: relative;
    right: auto;
    bottom: auto;
    width: 280px;
    margin-top: 10px;
  }

  .footer {
    height: auto;
    padding: 18px 0;
  }

  .footer .content-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 20px;
  }

  .footer__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 42%;
    max-height: 35px;
  }

  .footer__marca {
    max-width: 55%;
  }

  .footer__icono {
    max-height: 26px;
  }

  .footer__texto {
    font-size: 0.68rem;
    max-width: 100%;
  }


  /* Ocultar imagen decorativa del step */
  .reto-paso__header-icon-right {
    display: none;
  }

  /* Quitar el icono de fondo, dejar solo el gradiente */
  .reto-paso__header {
    background-image: linear-gradient(90deg, var(--color-azul) 0%, var(--color-verde) 100%);
  }

  /* Reducir el tamaño de fuente del título del step */
  .reto-paso__header h3 {
    font-size: 1.3rem;
  }

  /* Ocultar emoji pensante del header del reto */
  .reto__header img.emoji_pensante {
    display: none;
  }

  /* Ocultar premios */
  .reto__premios {
    display: none;
  }
}

/* Ajustes generales para pantallas ≤ 991px */
@media (max-width: 991px) {
  .header {
    min-height: auto;
  }

  .header__content {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .header__imagen-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 320px;
  }

  .bloque-contenido__imagen {
    margin-bottom: 30px;
  }

  .footer {
    height: auto;
    padding: 20px 0;
  }
}