/* ============================================================
   @file        styles.css
   @project     Cuestionario Interactivo de Rebranding — WIQOL
   @description Hoja base de estilos: sistema de diseño (espaciado 8pt, escala tipográfica, radios homogéneos), normalización del documento y layout estructural (Single Viewport sin scroll, portada, interiores, pies). Herramienta legítima de recopilación de datos contextuales con fines de marketing; código limpio, sin ofuscación, sin evaluación dinámica y sin rastreo.
   @version     7.0
   @author      DEEPS (para PAUL)
   @last-change 2026-11-12
   @changes     v7.0 — Single Viewport (Blueprint 4.1): bloqueo de scroll en html/body, .app y .slide a 100% de altura con Flexbox, eliminación de la proporción 9:16 móvil y de alturas basadas en vh.
   @license     Uso interno del proyecto.
   ============================================================ */

/* ===== INICIO: VARIABLES Y TOKENS DE DISEÑO ===== */

/* Fuente única de verdad visual y de sistema. */
:root {
  /* Colores (Blueprint 5.1) */
  --color-fondo: #E1E1E1;
  --color-fondo-secundario: #AAAAAA;
  --color-tipografia: #3E0F1A;
  --color-acento: #B6A57A;
  --color-texto-claro: #E1E1E1;
  --color-texto-sobre-acento: #3E0F1A;

  /* Tipografías */
  --fuente-titulos: 'Rezilient-Titles', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --fuente-cuerpo: 'Rezilient-Body', 'Helvetica Neue', Arial, sans-serif;

  /* Sistema de Espaciado (Múltiplos de 8px) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */

  /* Radios Homogéneos */
  --radius-sm: 0.5rem;  /* 8px - Inputs y cajas pequeñas */
  --radius-md: 1rem;    /* 16px - Contenedores medianos */
  --radius-pill: 100px; /* Botones y pastillas */
}

/* ===== FIN: VARIABLES Y TOKENS DE DISEÑO ===== */

/* ===== INICIO: NORMALIZACIÓN ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Single Viewport: altura exacta del dispositivo y bloqueo de scroll (Blueprint 4.1). */
html,
body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body {
  background-color: var(--color-fondo);
  color: var(--color-tipografia);
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== FIN: NORMALIZACIÓN ===== */

/* ===== INICIO: JERARQUÍA TIPOGRÁFICA ===== */

/* Escala modular para títulos. Evita que compitan con el cuerpo. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-tipografia);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Títulos principales (Portada, Cierre, Encabezados) */
h1, .section-title, .closing__title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: var(--space-sm);
}

/* Títulos de preguntas */
h2, .question-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--space-xs);
}

/* ===== FIN: JERARQUÍA TIPOGRÁFICA ===== */

/* ===== INICIO: TEXTOS Y CONTROLES BASE ===== */

p, .question-help, .section-description {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-tipografia);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  opacity: 0.85; /* Ligero contraste para diferenciar del título */
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== FIN: TEXTOS Y CONTROLES BASE ===== */

/* ===== INICIO: LAYOUT PRINCIPAL (RESPIRACIÓN) ===== */

/* Contenedor principal: ocupa el 100% de la altura disponible del body. */
.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: var(--space-md);
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
}

/* Diapositiva: 100% de la altura del contenedor; contenido arriba/centro y pie abajo. */
.slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: var(--space-sm); /* Separación mínima entre contenido y pie; el resto lo reparte space-between */
}

/* Zona central: absorbe el espacio libre y puede encogerse sin desbordar. */
.slide__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  min-height: 0;
}

/* ===== FIN: LAYOUT PRINCIPAL (RESPIRACIÓN) ===== */

/* ===== INICIO: PORTADA Y CIERRE ===== */

/* Portada con distribución en esquinas (Ley de Gestalt) */
.cover {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  min-height: 0;
}

.cover__author {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  justify-self: start;
}

.cover__logo {
  max-width: 10rem;
  height: auto;
  display: block;
  margin-bottom: var(--space-xs);
}

.cover__author-text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cover__center {
  grid-row: 2;
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
}

.cover__recipient {
  grid-row: 3;
  grid-column: 2;
  align-self: end;
  justify-self: end;
  text-align: right;
}

.cover__recipient-brand {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

/* Pantalla de cierre */
.closing {
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.closing__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-xl);
}

/* ===== FIN: PORTADA Y CIERRE ===== */

/* ===== INICIO: ETIQUETAS Y ENCABEZADOS ===== */

.section-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-acento);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section-count, .question-note {
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 0.7;
  margin-top: var(--space-sm);
}

.question-note {
  font-style: italic;
  font-weight: 400;
}

/* ===== FIN: ETIQUETAS Y ENCABEZADOS ===== */

/* ===== INICIO: PIE DE NAVEGACIÓN ===== */

/* Layout en 3 columnas para forzar la etiqueta al centro exacto. */
.nav-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  padding-top: var(--space-md);
  margin-top: auto;
}

.nav-footer > :first-child {
  justify-self: start;
}

.nav-footer > :last-child {
  justify-self: end;
}

/* Etiqueta minimalista según la nueva regla. */
.progress {
  justify-self: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-tipografia);
  opacity: 0.8;
  text-transform: uppercase;
}

/* ===== FIN: PIE DE NAVEGACIÓN ===== */

/* ===== INICIO: RESPONSIVE ===== */

@media (min-width: 768px) {
  .app {
    padding: var(--space-2xl);
  }
}

/* ===== FIN: RESPONSIVE ===== */
