/*
Theme Name:   MindPlate Child
Theme URI:    https://mindplatecontrol.com
Description:  Tema hijo de Astra para MindPlate Control
Author:       JD & Dorian
Author URI:   https://mindplatecontrol.com
Template:     astra
Version:      1.0.0
Text Domain:  mindplate-child
*/

/* ============================================================
   Contenedor principal de la app React
   ============================================================ */
#modulo-mindplate-root,
.mindplate-wrapper {
  display: block;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* ============================================================
   CSS ISOLATION — Resetear estilos de Astra/WordPress
   que se filtran al interior de la app React.
   Todos los selectores van prefijados con el ID del contenedor.
   ============================================================ */

/* Reset tipografía base que Astra inyecta globalmente */
#modulo-mindplate-root,
#modulo-mindplate-root * {
  font-family: "Inter", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* Links — Astra los colorea y subraya globalmente */
#modulo-mindplate-root a,
#modulo-mindplate-root a:hover,
#modulo-mindplate-root a:focus,
#modulo-mindplate-root a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  box-shadow: none;
  outline: none;
}

/* Headings — Astra sobreescribe tamaños y márgenes */
#modulo-mindplate-root h1,
#modulo-mindplate-root h2,
#modulo-mindplate-root h3,
#modulo-mindplate-root h4,
#modulo-mindplate-root h5,
#modulo-mindplate-root h6 {
  font-family: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
}

/* Párrafos */
#modulo-mindplate-root p {
  margin: 0;
  padding: 0;
  line-height: inherit;
  color: inherit;
}

/* Botones — Astra inyecta estilos de botón globales */
#modulo-mindplate-root button,
#modulo-mindplate-root input[type="button"],
#modulo-mindplate-root input[type="submit"] {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: inherit;
}

/* Inputs y formularios */
#modulo-mindplate-root input,
#modulo-mindplate-root select,
#modulo-mindplate-root textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Listas */
#modulo-mindplate-root ul,
#modulo-mindplate-root ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Imágenes — Astra agrega border/padding a algunas */
#modulo-mindplate-root img {
  max-width: 100%;
  height: auto;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* Tables */
#modulo-mindplate-root table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Astra inyecta max-width en .entry-content > * */
#modulo-mindplate-root .entry-content > *,
#modulo-mindplate-root .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   Neutralizar elementos del tema Astra que interfieren
   con la app React cuando está en pantalla completa
   ============================================================ */
body.page-template-mindplate-full {
  overflow: auto;
}

body.page-template-mindplate-full #masthead,
body.page-template-mindplate-full .ast-above-header,
body.page-template-mindplate-full .ast-below-header,
body.page-template-mindplate-full #colophon {
  display: none !important;
}

body.page-template-mindplate-full #primary,
body.page-template-mindplate-full .ast-container,
body.page-template-mindplate-full .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}