/*RECETAS DETALLE*/
.recetas-detalle-superior {
  background: white;
  padding: 130px 20px;
}

.recetas-detalle-contenedor {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  overflow: hidden;
}

.recetas-detalle-img {
  display: flex;
  justify-content: center;
  flex: 1 1 500px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.receta-img-marco {
  position: relative;
  width: 500px;
  height: 500px;
}

.receta-img-marco::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/img-fondo/marco-01.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.img-receta {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 1.2s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.recetas-detalle-texto {
  flex: 1 1 500px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.recetas-detalle-texto h2 {
  font-family: var(--font-principal-regular);
  font-size: 60px;
  color: var(--color-azul-navy);
  margin-bottom: 10px;
}

.recetas-detalle-texto .descripcion {
  font-family: var(--font-secundario-regular);
  color: var(--color-dorado);
  margin-bottom: 15px;
  font-size: 25px;
}

.detalle-tiempo {
  font-family: var(--font-secundario-regular);
  font-size: 25px;
  color: var(--color-gray);
  margin-bottom: 20px;
}

.compartir-titulo {
  font-family: var(--font-principal-regular);
  font-size: 25px;
  color: var(--color-azul-navy);
  margin-bottom: 10px;
}

.redes {
  display: flex;
  gap: 12px;
}

.icono-red {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
}

.icono-red:hover {
  animation: rebote 0.6s ease;
}

@keyframes rebote {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(5px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .recetas-detalle-contenedor {
    margin-top: 100px;
    flex-direction: column;
    text-align: center;
  }

  .receta-img-marco {
    width: 250px;
    height: 250px;
  }

  .img-receta {
    width: 85%;
    height: 85%;
  }

  .redes {
    justify-content: center;
  }
}

/*INGREDIENTES-PREPARACIÓN*/
.ingredientes-preparacion {
  padding: 40px 20px;
  background-color: #fff;
}

.ingredientes-preparacion-contenedor {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 40px;
  border: 2px solid var(--color-cyan);
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
}

.ingredientes-columna,
.preparacion-columna {
  font-family: var(--font-principal-regular);
  box-sizing: border-box;
  color: var(--gris);
  font-size: 18px;
  line-height: 1.6;
}

.ingredientes-columna h3,
.preparacion-columna h3 {
  font-family: var(--font-principal-regular);
  color: var(--color-azul-navy);
  font-weight: bold;
  font-size: 30px;
  margin-bottom: 20px;
}

.ingredientes-columna ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.preparacion-columna ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin: 0;
}

.ingredientes-columna li,
.preparacion-columna li {
  margin-bottom: 10px;
}

.ingredientes-preparacion span {
  color: var(--verde);
  font-family: var(--font-subtitle1);
}

@media (max-width: 768px) {
  .ingredientes-preparacion-contenedor {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .recetas-detalle-img {
    flex: none;
  }
  .recetas-detalle-texto h2 {
    font-size: 35px;
  }
  .recetas-detalle-texto .descripcion,
  .detalle-tiempo {
    font-size: 20px;
  }
  .recetas-detalle-texto {
    flex: auto;
  }
  .recetas-detalle-superior {
    padding: 0 20px;
  }
  .ingredientes-preparacion-contenedor h3 {
    font-size: var(--font-size-paragraph);
  }
  .ingredientes-preparacion-contenedor li {
    font-size: 15px;
  }
}

/*VER VIDEO*/
.ver-video-section {
  max-width: 1200px;
  padding: 1rem;
  margin: 0 auto;
  text-align: center;
}

.ver-video-section h2 {
  font-family: var(--font-principal-regular);
  font-size: 30px;
  color: var(--color-azul-navy);
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 931px;
  aspect-ratio: 931 / 596;
  margin: 0 auto;
}

.video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.video-thumbnail,
.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 97%;
  height: auto;
  /* | */
  transform: translate(-50%, calc(-50% + 2px));
  border-radius: 8px;
  aspect-ratio: 902 / 507;
  object-fit: cover;
  z-index: 0;
}

/* Botón Play */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 10%;
  /* Escala automáticamente */
  max-width: 80px;
  min-width: 35px;
  height: auto;
  z-index: 3;
  transition: transform 0.2s ease;
}

.play-button img {
  width: 100%;
  height: auto;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
  .video-thumbnail {
    /* transform: translate(-50%, calc(-50% + 10px)); */
    transform: translate(-50%, calc(-50% + 1px));
  }
}
