/* ======== Generales ======== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-body);
  color: var(--color-blanco);
  margin: 0;
  padding: 0;
  line-height: var(--line-height-base);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  box-sizing: border-box;
}

a {
  color: var(--color-blanco);
}

/* ======== Footer ======== */

footer {
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 5px;
}

.footer-redes {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-redes img {
  max-height: 80px;
  padding: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-links a {
  padding: 10px;
  display: block;
}

/* ======== Nuevos Textos ======== */

.nuevos-textos {
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center; /* CAMBIAMOS */
}

.nuevos-textos .contenedor-texto {
  width: 100%;
  text-align: center;
  align-items: flex-start;
}

.nuevos-textos h2 {
  font-size: var(--font-size-lg);
}

.nuevos-textos h3 {
  font-size: var(--font-size-lg);
}

.nuevos-textos p {
  font-size: var(--font-size-base); /* CAMBIADO para usar .text-base */
  line-height: 1.5;
}

.nuevos-textos.no-padding-top {
  padding-top: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Premios */
.premios {
  width: 100%;
}

.premios-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.premios-contenedor img {
  width: clamp(80px, 18vw, 120px); /* Achicamos tamaño */
  max-height: 80px; /* Limita la altura máxima */
  object-fit: contain;
  margin: 0 auto; /* Opcional si querés que estén bien centradas en su flex */
}

/* ======== Visibilidad Desktop y Mobile ======== */

.only-desktop {
  display: block;
}

.only-mobile {
  display: none;
}

/* Por defecto (desktop): alineado a la izquierda */
.responsive-align {
  text-align: left;
  align-items: flex-start;
}

/* === RECONOCIMIENTOS AJUSTADOS === */
.reconocimientos {
  padding: 3rem 1rem;
}

.premios-ajustado {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4rem;
}

.grid-premios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  padding: 1rem 2rem;
}

.grid-premios img {
  max-width: 90px;
  height: auto;
  transition: transform 0.3s ease;
}

.grid-premios img:hover {
  transform: scale(1.05);
}

/* === BLOQUE FINAL FLEXFLIX === */
.bloque-final {
  padding: 4rem 1rem 2rem;
}

.bloque-final .contenedor-texto {
  max-width: 960px;
  margin: 0 auto 3rem;
  text-align: left;
}

.grid-premios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.grid-premios img {
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.grid-premios img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .bloque-final .contenedor-texto {
    text-align: center;
  }

  .grid-premios {
    gap: 1.5rem;
  }
  .grid-premios img {
    height: 60px;
  }
}

@media (max-width: 600px) {
  .grid-premios {
    gap: 1.5rem;
  }
  .grid-premios img {
    max-width: 70px;
  }
}

/* En mobile: alineado centrado */
/* En mobile */
@media (max-width: 768px) {
  .nuevos-textos .contenedor-texto {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .responsive-align {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: block;
  }
}

/* BLOQUE FINAL CONSISTENTE */
.responsive-align {
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

.premios-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.premios-contenedor img {
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.premios-contenedor img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .responsive-align {
    text-align: center;
    padding: 0 1rem;
  }

  .premios-contenedor img {
    height: 60px;
  }

  .img-candado,
  .img-flexflix {
    max-width: 200px;
  }
}

/* COMPLEMENTO PARA BLOQUE MAIN */
.responsive-align {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 768px) {
  .responsive-align {
    text-align: center;
    padding: 0 1rem;
  }
}

/* IMAGENES DE BLOQUE CONTENIDO */
.img-bloque {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2); /* opcional: sombra suave */
}

/* Ajuste de espaciado entre imagen y texto */
.img-bloque + p,
.img-bloque + h3 {
  margin-top: 0.25rem; /* o incluso 0.25rem si querés muy pegado */
}

.contenedor-texto.mb-5 {
  margin-top: 0.25rem; /* menos separación entre bloques */
}

.img-bloque + p,
.img-bloque + h3 {
  margin-top: 0;
  padding-top: 0.2rem; /* opcional, para que no se pegue demasiado */
}

.contenedor-texto p,
.contenedor-texto h3 {
  margin-top: 10px;
  margin-bottom: 0.5rem;
}
.premio-item {
  background: linear-gradient(180deg, #0000002a 0%, transparent 100%);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.premio-item img {
  height: 80px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .premio-item img {
    height: 60px;
  }
}

/* ======== MINIATURAS FLIPBOOK ======== */
.eframes {
  background-color: transparent;
}

.eframes-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.min-flipbook {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.min-flipbook:hover {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}
@media (max-width: 768px) {
  .eframes-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .min-flipbook {
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }
}

.banner-desktop {
  background-image: url("../assets/img/doc-banner-desktop.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  min-height: 400px; /* ajustá según altura real del banner */
  position: relative;
}

.banner-mobile {
  background-image: url("../assets/img/doc-banner-mobile.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  min-height: 400px; /* ajustá según altura real del banner mobile */
  position: relative;
}

main.container {
  background-color: transparent !important;
  margin-top: 600px; /* hace que las miniaturas “suban” sobre el banner */
  padding-top: 0;
  position: relative;
  z-index: 2;
}

.eframes {
  margin-top: -3rem; /* Ajustá este valor para que calcen justo */
  background-color: transparent;
}

/* === INTEGRACIÓN PERFECTA DEL BANNER === */
body {
  background-color: #290358;
  margin: 0;
  padding: 0;
}

main.container,
section,
div,
.eframes,
.nuevos-textos,
.premios {
  background-color: transparent !important;
}

/* Elimina separación visual entre banner y miniaturas */
main.container {
  margin-top: -6rem; /* Ajustá según cómo termina el degradado de la imagen */
  padding-top: 0;
  z-index: 2;
  position: relative;
}

/* Las miniaturas deben flotar justo encima del fondo */
.eframes {
  margin-top: 0;
  padding-top: 0;
  z-index: 3;
  position: relative;
}

/* El banner debe estar detrás pero ocupar toda la parte superior */
.banner-desktop {
  background-image: url("../assets/img/doc-banner-desktop.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 1438px; /* altura exacta de la imagen */
  position: relative;
}

.banner-mobile {
  background-image: url("../assets/img/doc-banner-mobile.png");
  background-size: 100% auto; /* Se escala al 100% del ancho */
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  height: 1646px; /* Altura exacta de la imagen */
  position: relative;
}

body {
  background-color: var(--color-body);
  background-image: url("../assets/img/doc-banner-desktop.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;

  padding-top: min(560px, 65vw); /* ✅ NUEVO: se adapta mejor en tablets */
}
/* Versión mobile */
@media (max-width: 768px) {
  body {
    background-image: url("../assets/img/doc-banner-mobile.png");
    padding-top: min(1500px, 120vw); /* más generoso para móviles */
  }
}

/* Ajuste fluido del padding-top solo para resoluciones tipo tablet landscape */
@media (min-width: 769px) {
  body {
    padding-top: min(
      480px,
      42vw
    ); /* 🔧 Ajustá los valores si querés que suba más */
  }
}

/* ======= Desktop: evitar que las miniaturas suban demasiado ======= */
@media (min-width: 1025px) {
  body {
    padding-top: 600px; /* 🧠 Ajustalo según el espacio exacto antes de los íconos */
  }
}

/* ======= Tablet horizontal (entre mobile y desktop) ======= */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    padding-top: min(1200px, 36vw); /* se adapta mejor en rangos medios */
  }
}

/* ======= Mobile: tapa los íconos si no tiene más espacio arriba ======= */
@media (max-width: 768px) {
  body {
    padding-top: 100vw; /* 💡 Este valor ya lo tenías ajustado y funcionaba bien */
  }
}
