@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-text: #000000;
  --color-bg: #ffffff;
}

/* Reset/base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Layout vertical base */
.page-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 0 auto;
  overflow-x: clip;
}

.main-footer {
  min-width: 0;
  flex-shrink: 0;
}

section,
article,
header,
footer,
nav {
  max-width: 100%;
}

/* Imágenes responsive por defecto */
img {
  max-width: 100%;
  height: auto;
}

/* Titulares */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

/* Cuerpo de texto */
p,
li,
td,
th,
blockquote {
  font-family: var(--font-body);
}

/* Botones y formularios */
button,
.btn,
input,
textarea,
select {
  font-family: var(--font-body);
}

/* Textos especiales con Space Grotesk */
.text-special,
.font-heading,
.section-title,
.footer-title,
.display-text {
  font-family: var(--font-heading);
}

/* Texto normal forzado a IBM Plex */
.font-body,
.body-text {
  font-family: var(--font-body);
}
