/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · redesign · genre: modern-minimal · macrostructure: Bento Grid · nav: N9 Edge-aligned minimal · footer: Ft2 Inline rule
 * theme: custom · vibe: "directo, táctil, creativo, sin humo" · paper: oklch(13% 0.018 285) · accent: oklch(67% 0.25 12)
 * display: Bricolage Grotesque · body: IBM Plex Sans · axes: dark / geometric-sans / warm
 * studied: no · context: user-reviewed iPhone viewport · enrichment: semantic icon system
 * contrast: pass (40–41) · slop: pass (42–45)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30)
 * mobile: pass (34, 49, 50–57)
 */
@import url("../../tokens.css");

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

html,
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background-color: var(--color-flash-paper);
  color: var(--color-flash-ink);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  font-family: var(--font-flash-body);
  font-size: var(--text-base);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.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;
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: var(--z-sticky);
  padding: var(--space-sm) var(--space-md);
  transform: translateY(calc(-100% - var(--space-lg)));
  background-color: var(--color-flash-ink);
  color: var(--color-flash-paper);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
  outline: 3px solid var(--color-flash-focus);
  outline-offset: 2px;
}

.flash-shell {
  width: min(100%, 32rem);
  min-height: 100svh;
  margin-inline: auto;
  padding-block: max(var(--space-md), env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-bottom));
  padding-inline: max(var(--space-md), env(safe-area-inset-left), env(safe-area-inset-right));
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: var(--space-lg);
}

.flash-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
}

.flash-brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-flash-ink);
  font-family: var(--font-flash-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.flash-brand picture,
.flash-brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.flash-brand img {
  object-fit: contain;
}

.flash-main {
  min-width: 0;
  align-self: center;
  display: grid;
  gap: var(--space-lg);
}

.flash-intro {
  min-width: 0;
  display: grid;
  gap: var(--space-sm);
}

.flash-intro h1 {
  min-width: 0;
  margin: 0;
  max-width: 11ch;
  overflow-wrap: anywhere;
  font-family: var(--font-flash-display);
  font-size: clamp(2.2rem, 10.5vw, 3.75rem);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.flash-intro h1 span,
.flash-intro h1 strong {
  display: block;
  font: inherit;
}

.flash-intro h1 strong {
  color: var(--color-flash-accent);
}

.flash-page--instagram .flash-intro h1,
.flash-page--tiktok .flash-intro h1,
.flash-page--linkedin .flash-intro h1,
.flash-page--redes .flash-intro h1 {
  max-width: 14ch;
}

.flash-intro__copy {
  margin: 0;
  max-width: 45ch;
  color: var(--color-flash-ink-soft);
  font-size: var(--text-base);
  line-height: 1.45;
}

.flash-actions {
  min-width: 0;
  display: grid;
  gap: var(--space-sm);
}

.flash-primary,
.flash-tile {
  min-width: 0;
  position: relative;
  overflow: clip;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms var(--ease-out), background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}

.flash-primary {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-flash-card);
  background-color: var(--color-flash-ink);
  color: var(--color-flash-paper);
  font-family: var(--font-flash-display);
  font-weight: 800;
}

.flash-primary__icon,
.flash-tile__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.flash-primary__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-flash-whatsapp);
  color: var(--color-flash-accent-ink);
}

.flash-primary__icon svg,
.flash-tile__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.flash-tile__icon img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

.flash-primary__label {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1rem, 4.6vw, 1.2rem);
  letter-spacing: -0.025em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-primary__meta {
  color: var(--color-flash-surface-raised);
  font-family: var(--font-flash-body);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.flash-arrow {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform var(--dur-micro) var(--ease-out);
}

.flash-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.flash-tile {
  min-height: 6.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid var(--color-flash-rule-strong);
  border-radius: var(--radius-flash-card);
  background-color: var(--color-flash-surface-raised);
  color: var(--color-flash-ink);
}

.flash-tile__top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.flash-tile__icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-control);
}

.flash-tile--web .flash-tile__icon {
  background-color: var(--color-flash-icon-web);
  color: var(--color-flash-ink);
}

.flash-tile--work .flash-tile__icon {
  background-color: var(--color-flash-icon-work);
  color: var(--color-flash-ink);
}

.flash-tile--agency .flash-tile__icon {
  background-color: var(--color-flash-icon-agency);
  color: var(--color-flash-ink);
}

.flash-tile--agency .flash-tile__icon img {
  filter: brightness(0) invert(1);
}

.flash-tile__copy {
  min-width: 0;
  display: grid;
  gap: var(--space-2xs);
}

.flash-tile__label,
.flash-tile__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-tile__label {
  font-family: var(--font-flash-display);
  font-size: clamp(var(--text-sm), 4.3vw, var(--text-base));
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1;
}

.flash-tile__meta {
  color: var(--color-flash-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
}

.flash-tile__status {
  width: fit-content;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding-inline: var(--space-xs);
  border: 1px solid var(--color-flash-rule);
  border-radius: var(--radius-pill);
  background-color: var(--color-flash-surface);
  color: var(--color-flash-ink-soft);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.flash-tile--club {
  grid-column: 1 / -1;
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: var(--color-flash-rule);
  border-style: dashed;
  background-color: transparent;
  color: var(--color-flash-muted);
  cursor: default;
}

.flash-tile--club .flash-tile__meta {
  color: var(--color-flash-muted);
}

.flash-tile--club .flash-tile__copy {
  grid-column: 1;
  grid-row: 1;
}

.flash-tile--club .flash-tile__status {
  grid-column: 2;
  grid-row: 1;
}

.flash-tile--agency {
  grid-column: 1 / -1;
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.flash-tile--agency .flash-tile__top {
  display: contents;
}

.flash-tile--agency .flash-tile__icon {
  grid-column: 1;
  grid-row: 1;
}

.flash-tile--agency .flash-tile__copy {
  grid-column: 2;
  grid-row: 1;
}

.flash-tile--agency .flash-arrow {
  grid-column: 3;
  grid-row: 1;
}

.flash-tile:not(.flash-tile--club) .flash-arrow {
  width: 2rem;
  height: 2rem;
  padding: var(--space-2xs);
  border: 1px solid var(--color-flash-rule-strong);
  border-radius: var(--radius-pill);
}

.flash-primary:focus-visible,
.flash-tile:focus-visible,
.flash-brand:focus-visible,
.flash-footer a:focus-visible {
  outline: 3px solid var(--color-flash-focus);
  outline-offset: 3px;
}

.flash-primary:active,
a.flash-tile:active,
.flash-brand:active,
.flash-footer a:active {
  transform: scale(0.975);
}

.flash-primary[aria-disabled="true"],
.flash-tile[aria-disabled="true"],
.flash-brand[aria-disabled="true"],
.flash-footer a[aria-disabled="true"] {
  color: var(--color-flash-disabled);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.flash-primary[data-state="loading"],
.flash-tile[data-state="loading"] {
  cursor: progress;
  opacity: 0.72;
}

.flash-primary[data-state="loading"] .flash-arrow,
.flash-tile[data-state="loading"] .flash-arrow {
  transform: rotate(90deg);
}

.flash-primary[data-state="error"],
.flash-tile[data-state="error"] {
  outline: 2px solid var(--color-flash-error);
  outline-offset: 1px;
}

.flash-primary[data-state="success"],
.flash-tile[data-state="success"] {
  outline: 2px solid var(--color-flash-success);
  outline-offset: 1px;
}

.flash-footer {
  display: grid;
  gap: var(--space-sm);
  padding-block-start: var(--space-md);
  border-block-start: 1px solid var(--color-flash-rule);
  color: var(--color-flash-muted);
}

.flash-socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.flash-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-flash-ink-soft);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  text-decoration-color: var(--color-flash-rule-strong);
  text-underline-offset: 0.25em;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-micro) var(--ease-out), transform 100ms var(--ease-out);
}

.flash-socials a {
  width: 2.75rem;
  height: 2.75rem;
  justify-content: center;
  color: var(--color-flash-muted);
  text-decoration: none;
}

.flash-socials svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.flash-footer__meta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  color: var(--color-flash-muted);
  font-size: var(--text-xs);
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .flash-brand:hover,
  .flash-footer__meta a:hover {
    color: var(--color-flash-accent);
  }

  .flash-socials a:hover {
    color: var(--color-flash-ink);
  }

  .flash-primary:hover {
    background-color: var(--color-flash-ink-soft);
  }

  a.flash-tile:hover {
    background-color: var(--color-flash-rule);
  }

  .flash-primary:hover .flash-arrow,
  a.flash-tile:hover .flash-arrow {
    transform: translateX(var(--space-2xs));
  }
}

@media (max-width: 22rem) {
  .flash-primary__meta {
    display: none;
  }
}

@media (max-width: 39.99rem) and (max-height: 40rem) {
  .flash-shell {
    gap: var(--space-sm);
    padding-block: max(var(--space-sm), env(safe-area-inset-top)) max(var(--space-sm), env(safe-area-inset-bottom));
  }

  .flash-main {
    align-self: start;
    gap: var(--space-md);
  }

  .flash-intro {
    gap: var(--space-xs);
  }

  .flash-intro h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .flash-primary {
    min-height: 4.25rem;
  }

  .flash-tile {
    min-height: 6.25rem;
  }
}

@media (min-width: 40rem) {
  .flash-shell {
    width: min(100%, 42rem);
    padding-inline: var(--space-xl);
  }

  .flash-intro h1 {
    max-width: 12ch;
  }

}

@media (min-width: 40rem) and (max-height: 35rem) and (orientation: landscape) {
  .flash-shell {
    width: min(100%, 58rem);
    min-height: 100svh;
    gap: var(--space-sm);
    padding-block: var(--space-sm);
  }

  .flash-main {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .flash-intro h1 {
    font-size: clamp(2rem, 6vw, 3.25rem);
  }

  .flash-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-block-start: var(--space-xs);
  }

  .flash-footer__meta {
    gap: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .flash-primary:active,
  a.flash-tile:active,
  .flash-brand:active,
  .flash-footer a:active,
  .flash-primary:hover .flash-arrow,
  .flash-tile:hover .flash-arrow,
  .flash-primary[data-state="loading"] .flash-arrow,
  .flash-tile[data-state="loading"] .flash-arrow {
    transform: none;
  }

}

@media (prefers-contrast: more) {
  .flash-primary,
  .flash-tile,
  .flash-footer {
    border-color: var(--color-flash-ink-soft);
  }
}
