@import "./variables.css";

.content-blog-padre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.header-blog-menu {
  width: 100%;
  height: 6rem;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}
.content-bread {
  width: 100%;
}
.bread-list {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #0a2533;

  margin: 0.5rem 3rem 1rem 3%;
}

.bread-link {
  color: #0a2533;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.bread-link:hover {
  color: #1a5a7a;
}

.bread-separator {
  color: #78909c;
}

.bread-current {
  color: #0a2533;
  font-weight: 400;
}
.bread {
  font-size: clamp(15px, 1.5vw, 24px);
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

.content-blog-individual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 3% 3rem;
  padding: 5%;
  border-radius: 1rem;
  background-color: var(--primary-color);
  box-shadow: 0 4px 15px var(--primary-color);
  color: var(--bg-color);
  max-width: 1314px;

  animation: cardFadeIn 0.6s ease-out forwards;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.titulo-blog,
.meta-descripcion,
.padre-descridpcion,
.descripcion-footer,
.credits-box,
.detalle {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.meta-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;

  color: var(--secundary-color2);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.meta-desc {
  font-size: clamp(10px, 1.2vw, 16px);
}

.titulo-blog {
  font-weight: 700;
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
  font-size: clamp(25px, 3vw, 117px);
}

.meta-descripcion {
  color: var(--secundary-color);
  border-left: 4px solid var(--secundary-color);
  padding-left: 18px;
  margin: 25px 0;
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.5rem);
  padding: 8px;
  box-shadow: inset 6px 9px 21px rgba(0, 0, 0, 0.3);
}

.meta-titulo {
  font-weight: 600;
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.5vw, 35px);
}

.detalle {
  border-bottom: 1px solid var(--bg-color);
  color: var(--bg-color);
  padding-bottom: 20px;
  margin-bottom: 25px;
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
}

.img-blog-individual {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  overflow: hidden;
}

.img-blog {
  width: 100%;
  margin-bottom: 24px;
}

/* CONTENEDOR */
.img-blog-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  isolation: isolate;
}

/* FONDO BORROSO */
.img-blog-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px);
  transform: scale(1.15);
  opacity: 0.65;
  z-index: 1;
}

/* IMAGEN PRINCIPAL */
.img-blog-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}


.padre-descripcion {
  color: var(--secundary-color2);
  justify-items: left;
  line-height: 1.7;
}

.padre-descripcion > * {
  color: inherit;
}

/* FONDO BORROSO */
.img-blog-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px);
  transform: scale(1.15);
  opacity: 0.65;
  z-index: 1;
}

/* IMAGEN PRINCIPAL */
.img-blog-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}


.padre-descripcion {
  color: var(--secundary-color2);
  justify-items: left;
  line-height: 1.7;
}

.padre-descripcion > * {
  color: inherit;
}

.descripcion{
  color: var(--secundary-color2);
}
.credits-box {
  color: #e0f0f5;
  font-family: "Poppins", "Inter", sans-serif;
}

.credits-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.credits-box ul {
  margin: 0;
  padding-left: 30px;
  list-style-type: disc;
}

.credits-box li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.descripcion-footer {
  margin-left: 20px;
}

.footer-blog {
  width: 100%;
}

.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 12px 0;
  border-top: 1px solid #7fa0aa;
  border-bottom: 1px solid #7fa0aa;
  width: 100%;
  margin: 30px auto;
}

.social-icon {
  color: #b8d4dd;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon i {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  color: var(--secundary-color);
  transform: translateY(-3px);
}

.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b8d4dd;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 15px 0;
}

.stats-bar i {
  font-size: 16px;
  color: #b8d4dd;
  margin-right: 6px;
}

.left-stats,
.right-stats {
  display: flex;
  align-items: center;
  gap: 6px;
}

.right-stats i {
  margin-right: 0;
}
.card-populares {
  font-weight: 600;
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0 3% 2rem;
}

/* MODAL FULLSCREEN */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* IMAGEN */
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s ease-out;
  cursor: default;
}

/* ANIMACIÓN */
@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .content-blog-individual {
    padding: 4%;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .header-blog-menu {
    background-color: var(--primary-color);
  }
  .img-blog-individual {
  }

  .img-blog {
  }

  /* CONTENEDOR 16:9 REAL */
  .img-blog-frame {
  }

  /* FONDO BORROSO */
  .img-blog-bg {
  }

  /* IMAGEN PRINCIPAL */
  .img-blog-front {
  }
}
@media (max-width: 768px) {

  /* El contenedor deja de ser 16:9 fijo */
  .img-blog-frame {
    aspect-ratio: auto;
    height: auto;
  }

  /* Quitamos el fondo borroso */
  .img-blog-bg {
    display: none;
  }

  /* La imagen manda */
  .img-blog-front {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}


