/* ===== Oratorio — minimalista / brutalista ==================== */
:root {
  --bg: #f4f3ee;          /* blanco roto */
  --ink: #111111;
  --paper: #fbfbf8;
  --muted: #55554f;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-hover: 3px 3px 0 var(--ink);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  line-height: 1.45;
  padding: clamp(1.25rem, 5vw, 3rem);
}

.container {
  width: 100%;
  max-width: 680px;
}

/* Accesibilidad: solo lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Cabecera ============================================== */
.hero {
  text-align: center;
  margin-bottom: clamp(1.75rem, 6vw, 2.75rem);
}

.logo {
  display: block;
  width: clamp(180px, 55vw, 300px);
  height: auto;
  margin: 0 auto clamp(1rem, 4vw, 1.5rem);
  border: var(--border);
  background: #fff;
}

/* ===== Botones =============================================== */
.actions {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 4vw, 1.5rem);
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  width: 100%;
  min-height: clamp(80px, 22vw, 96px);
  padding: clamp(1rem, 3.5vw, 1.375rem) clamp(1rem, 4vw, 1.5rem);
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-hover);
}

.button:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.button__index {
  font-size: clamp(0.75rem, 3vw, 0.875rem);
  color: var(--muted);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.button:hover .button__index {
  color: var(--bg);
}

.button__label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.button__title {
  font-size: clamp(1.125rem, 5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.button__hint {
  font-size: clamp(0.6875rem, 2.5vw, 0.8125rem);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

.button:hover .button__hint {
  color: var(--bg);
}

.button__arrow {
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  line-height: 1;
}

/* ===== Pantallas medianas y grandes ========================== */
@media (min-width: 560px) {
  .actions {
    flex-direction: row;
  }

  .button {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: clamp(170px, 32vw, 210px);
  }

  .button__index {
    position: absolute;
    top: clamp(1rem, 3vw, 1.25rem);
    right: clamp(1rem, 3vw, 1.25rem);
    border-bottom: none;
    border: 2px solid currentColor;
    padding: 0.15rem 0.4rem;
  }

  .button__label {
    flex: 0;
    padding-right: 3rem;
  }

  .button__arrow {
    margin-top: auto;
  }
}

/* ===== Preferencias del sistema ============================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
