/* ==========================================================================
   Angela's Vacations · Correcciones de las secciones de la portada
   Solo se encola en la portada. No toca la cabecera ni el hero.
   ========================================================================== */

/* Retrato de Ángela: estaba escalado 1.34 y desplazado -75px, se montaba
   sobre el texto y desbordaba 60px en móvil. Se ajusta a su columna. */
body.home #main-content .et_pb_section:has(img.wp-image-60) .et_pb_image_0 {
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  width: min(100%, 480px) !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 40px 0 0 auto !important;
  transform: none !important;
}

body.home #main-content .et_pb_section:has(img.wp-image-60) .et_pb_image_0 .et_pb_image_wrap,
body.home #main-content .et_pb_section:has(img.wp-image-60) .et_pb_image_0 img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

body.home #main-content .et_pb_section:has(img.wp-image-60) .et_pb_image_0 img {
  display: block;
  object-fit: cover;
}

/* Galería de Cruceros: el shortcode dsm_image_carousel ya no existe porque
   Supreme Modules está inactivo. El fallback imprime una rejilla 2×2. */
body.home .av-cruise-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.home .av-cruise-gallery .av-cruise-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

/* Síguenos: el shortcode de Instagram Feed ya no existe porque el plugin
   está inactivo. Se sustituye por un acceso directo al perfil. */
body.home #main-content .et_pb_section_5 .et_pb_text_16 .et_pb_text_inner,
body.home #main-content .et_pb_section_5 .et_pb_text_17 .et_pb_text_inner,
body.home #main-content .et_pb_section_5 .et_pb_code_0 .et_pb_code_inner {
  text-align: center;
}

body.home .av-instagram-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--av-navy, #122d3e);
  color: var(--av-cream, #fbf8f1);
  font-weight: 600;
  text-decoration: none;
}

body.home .av-instagram-cta:hover {
  background: var(--av-gold-action, #896320);
  color: #fff;
}

/* Últimas novedades: el slider de Divi Blog Extras no encuentra entradas y
   muestra un mensaje de error. Se oculta la sección hasta que haya posts. */
body.home #main-content .et_pb_section_6,
body.home #main-content .et_pb_section:has(#ultimas-novedades) {
  display: none !important;
}

@media (max-width: 980px) {
  body.home #main-content .et_pb_section:has(img.wp-image-60) .et_pb_image_0 {
    margin-top: 0 !important;
    margin-right: auto !important;
  }
}
