/* V14.77 - Corrección localizada del bloque Rinoplastia y pie de página vertical.
   Solamente dispositivos en orientación vertical: sin cambios en escritorio o tablets horizontales. */
@media (orientation: portrait) and (max-width: 1024px) {
  /* No repetir la separación de la antigua rejilla entre cada elemento convertido a flex-item. */
  #enfoque.focus-section {
    gap: 0 !important;
    padding-top: clamp(26px, 4vw, 42px) !important;
    padding-bottom: clamp(34px, 5vw, 54px) !important;
  }
  #enfoque .focus-treatment-title {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 3px;
    margin: 0 auto 14px !important;
    padding: 0;
    line-height: 1.08;
    letter-spacing: -0.7px;
    overflow-wrap: normal;
  }
  #enfoque .focus-treatment-title span {
    display: block;
    max-width: 100%;
    font-size: clamp(36px, 5.2vw, 51px) !important;
    line-height: 1.08;
    white-space: normal;
    text-align: center;
  }
  #enfoque .focus-treatment-title em {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(21px, 3.25vw, 33px) !important;
    line-height: 1.16;
    letter-spacing: -.65px;
    white-space: normal !important;
    overflow-wrap: normal;
    text-align: center;
  }
  #enfoque .focus-treatment-subtitle {
    width: 100%;
    max-width: 35rem;
    margin: 0 auto 13px !important;
    text-align: center !important;
    line-height: 1.45;
  }
  #enfoque .focus-introduction {
    width: 100%;
    max-width: 37rem;
    margin: 0 auto 20px !important;
    text-align: center !important;
    line-height: 1.65;
  }
  #enfoque .focus-visual { margin-top: 0 !important; }
  /* Contacto y atribuciones centrados, manteniendo navegación en dos columnas. */
  .site-footer .footer-contact-block {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center !important;
    gap: 8px !important;
  }
  .site-footer .footer-contact-block > h3 {
    width: 100%;
    margin: 0 auto 5px !important;
    text-align: center !important;
  }
  .site-footer .footer-contact-block > h3::after {
    left: 50% !important;
    transform: translateX(-50%);
  }
  .site-footer .footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto !important;
    text-align: center;
    gap: 8px;
  }
  .site-footer .footer-contact-item > span {
    text-align: center;
    min-width: 0;
  }
  .site-footer .footer-contact-item svg { margin-top: 0; }
  .site-footer .footer-address { align-items: flex-start; }
  .site-footer .footer-address svg { margin-top: 3px; }
  .site-footer .footer-social { justify-content: center !important; margin: 10px auto 0 !important; }
  .site-footer .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 15px auto 0 !important;
    padding: 12px 12px 92px !important;
    text-align: center !important;
  }
  .site-footer .footer-bottom p,
  .site-footer .footer-credit,
  .site-footer .footer-copyright {
    width: 100%;
    max-width: 100%;
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 10px;
    line-height: 1.5;
  }
}
@media (orientation: portrait) and (max-width: 600px) {
  #enfoque.focus-section { padding-top: 25px !important; padding-bottom: 34px !important; }
  #enfoque .focus-treatment-title span { font-size: clamp(36px, 10vw, 43px) !important; }
  #enfoque .focus-treatment-title em { font-size: clamp(20px, 5.8vw, 25px) !important; }
  #enfoque .focus-treatment-subtitle { font-size: 14px; }
  #enfoque .focus-introduction { font-size: 13px; }
  .site-footer .footer-main { padding-top: 23px !important; gap: 14px 14px !important; }
  .site-footer .footer-bottom { padding-bottom: 88px !important; }
}

/* V14.78 pendiente — centrar exclusivamente el encabezado «Destacados»
   del carrusel de Rinoplastia en pantallas verticales. */
@media (orientation: portrait) and (max-width: 1024px) {
  .rhinoplasty-video-section.video-section {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rhinoplasty-video-section .video-intro {
    width: 100% !important;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-inline: auto !important;
  }
  .rhinoplasty-video-section .video-intro > div {
    width: 100%;
    text-align: center !important;
  }
  .rhinoplasty-video-section .video-intro h2 {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    margin-inline: auto !important;
  }
}
