/*
Theme Name: Twenty Twenty-Two
Theme URI: https://wordpress.org/themes/twentytwentytwo/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Twenty-Two ajustado para iframes fullscreen.
Version: 1.2
*/

/* ======================================================
   RESET GENERAL
   ====================================================== */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ======================================================
   CONTENEDORES RAÍZ DE WORDPRESS
   ====================================================== */

body > .is-root-container,
.wp-site-blocks {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ======================================================
   DESACTIVAR LAYOUT CONSTRAINED
   ====================================================== */

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ======================================================
   OCULTAR HEADER Y FOOTER (SI USAS IFRAMES FULLSCREEN)
   ====================================================== */

header,
footer,
.wp-block-template-part {
  display: none;
}

/* ======================================================
   IFRAMES FULLSCREEN
   ====================================================== */

/* Cualquier iframe ocupa todo el viewport */
iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  margin: 0;
  padding: 0;
}

/* Evitar que bloques padres limiten el iframe */
.wp-block-html,
.wp-block-group,
.wp-block-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ======================================================
   EVITAR SCROLL DUPLICADO
   ====================================================== */

body {
  overflow: hidden;
}

/* ======================================================
   NOTA
   - El iframe gestiona su propio scroll interno
   - El sitio actúa como contenedor
   ====================================================== */


/* ======================================================
   LANDING ROATECH GROUP (CENTRADA Y ESTABLE)
   ====================================================== */

.roatech-landing {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 20px;

  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Logo principal */
.roatech-logo-main {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

/* Línea horizontal full width real */
.roatech-divider-full {
  width: 100vw;
  height: 2px;
  background-color: #000;
  margin: 20px 0 40px;
}

/* Texto centrado con ancho controlado */
.roatech-text {
  max-width: 700px;
  width: 100%;
  text-align: justify;
  margin-bottom: 50px;
}

/* Logos inferiores */
.roatech-logos-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* Línea vertical entre logos */
.roatech-divider-vertical {
  width: 2px;
  background-color: #000;
  align-self: stretch;
}

/* Responsive */
@media (max-width: 768px) {
  .roatech-logos-bottom {
    flex-direction: column;
  }

  .roatech-divider-vertical {
    display: none;
  }
}



/* ======================================================
   CORRECCIÓN DE SCROLL Y ALTURA PARA ROATECH LANDING
   ====================================================== */

/* Asegurar que la página puede crecer y hacer scroll */
body {
  overflow-y: auto;
}

/* La landing NO debe estar limitada a 100vh */
.roatech-landing {
  min-height: auto;
  height: auto;
  padding-bottom: 80px;
}

/* Asegurar que el texto no empuja el layout */
.roatech-text {
  max-width: 950px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Evitar que la línea full width rompa el flujo vertical */
.roatech-divider-full {
  position: relative;
}

/* Asegurar que los logos siempre quedan visibles */
.roatech-logos-bottom {
  flex-wrap: wrap;
}

/* IMPORTANTE:
   En páginas que NO sean iframes, permitir scroll */
body:not(.iframe-page) {
  overflow-y: auto;
}


/* ================================
   TEXTO ROATECH – JUSTIFICADO
   ================================ */

.roatech-text {

  text-align: justify;
}

.roatech-paragraph {
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #222;
  margin-bottom: 14px;
}

/* Mejorar justificación en navegadores modernos */
.roatech-text {
  hyphens: auto;
  text-justify: inter-word;
}

/* Ajustes responsive */
@media (min-width: 1200px) {
  .roatech-paragraph {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .roatech-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
