@font-face {
    font-family: "Trajanus";
    src: url("/src/fuente/trajanus/TrajanusBricks.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.f-trajanus-titulo {
    font-family: "Trajanus", serif;
    font-weight: normal;
    font-style: normal;
    font-synthesis: none;
    text-transform: lowercase;
    word-spacing: 12px;
    letter-spacing: -14px;
}
.f-trajanus-titulo .mayus {
  font-size: 1.2em;
}

.f-trajanus-parrafo {
    font-family: "Trajanus", serif;
    font-weight: normal;
    font-style: normal;
    font-synthesis: none;
    text-transform: lowercase;
    word-spacing: 12px;
    letter-spacing: -1px;
}
.f-trajanus-parrafo .mayus {
  font-size: 1.1em;
}

:root {
  --copper: #46160C;
  --copper-ink: #2a0e08;
  --clay: #c57949;
  --cream: #fff7ee;
  --paper: #f4dfc8;
  --line: rgba(255, 247, 238, 0.24);
  --shadow: rgba(18, 7, 3, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: var(--copper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background-color: #46160C;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 247, 238, 0.5);
  text-underline-offset: 0.26em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

.working-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 40px 0 24px;
  display: grid;
  grid-template-rows: minmax(500px, 1fr) auto;
  gap: 22px;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: grid;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--copper-ink);
  box-shadow: 0 24px 70px var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(70, 22, 12, 0.95) 0%, rgba(70, 22, 12, 0.74) 42%, rgba(70, 22, 12, 0.18) 100%),
    linear-gradient(0deg, rgba(70, 22, 12, 0.92) 0%, rgba(70, 22, 12, 0.08) 60%);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: 72px;
}

.status {
  width: fit-content;
  min-height: 36px;
  margin: 0 0 22px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 247, 238, 0.32);
  border-radius: 999px;
  background: rgba(255, 247, 238, 0.08);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status__pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #d99661;
  box-shadow: 0 0 0 0 rgba(217, 150, 97, 0.6);
  animation: pulse 1.7s ease-out infinite;
}

h1 {
  margin: 0;
  max-width: 10ch;
  color: #ffffff;
  font-size: 7.5rem;
  line-height: 0.88;
}

.subtitle {
  margin: 24px 0 0;
  color: var(--paper);
  font-size: 1.9rem;
  line-height: 1.2;
}

.intro {
  max-width: 480px;
  margin: 18px 0 0;
  color: rgba(255, 247, 238, 0.82);
  font-size: 1.15rem;
  line-height: 1.65;
}

.progress {
  width: min(340px, 100%);
  height: 4px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.progress span {
  border-radius: 999px;
  background: rgba(255, 247, 238, 0.2);
  overflow: hidden;
}

.progress span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--paper), var(--clay));
  transform: scaleX(0);
  transform-origin: left;
  animation: load 3.6s ease-in-out infinite;
}

.progress span:nth-child(2)::after {
  animation-delay: 0.32s;
}

.progress span:nth-child(3)::after {
  animation-delay: 0.64s;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  color: rgba(255, 247, 238, 0.88);
}

.contact__item,
.contact__links {
  min-width: 0;
  padding: 22px;
  background: rgba(42, 14, 8, 0.42);
}

.contact__item {
  display: grid;
  gap: 8px;
  line-height: 1.55;
}

.contact__label {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact__links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  align-items: center;
}

.contact__links a,
.contact__links span {
  overflow-wrap: anywhere;
}

.footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: rgba(255, 247, 238, 0.56);
  font-size: 0.92rem;
}

body.is-loaded .hero__content,
body.is-loaded .contact {
  animation: rise 700ms ease both;
}

body.is-loaded .contact {
  animation-delay: 110ms;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 150, 97, 0.6);
  }

  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(217, 150, 97, 0);
  }
}

@keyframes load {
  0% {
    transform: scaleX(0);
  }

  45%,
  70% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .working-page {
    width: min(100% - 40px, 900px);
    grid-template-rows: minmax(470px, auto) auto;
  }

  .hero__content {
    padding: 54px;
  }

  h1 {
    font-size: 6rem;
  }

  .subtitle {
    font-size: 1.6rem;
  }
}

@media (max-width: 820px) {
  .contact,
  .contact__links {
    grid-template-columns: 1fr;
  }

  .contact__links {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .working-page {
    width: min(100% - 28px, 560px);
    min-height: auto;
    padding: 22px 0 18px;
    grid-template-rows: auto auto;
    gap: 16px;
  }

  .hero {
    min-height: 540px;
    align-items: end;
    border-radius: 8px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(70, 22, 12, 0.96) 0%, rgba(70, 22, 12, 0.72) 52%, rgba(70, 22, 12, 0.2) 100%),
      linear-gradient(90deg, rgba(70, 22, 12, 0.86), rgba(70, 22, 12, 0.16));
  }

  .hero__media img {
    object-position: center top;
  }

  .hero__content {
    padding: 26px;
  }

  .status {
    min-height: 34px;
    margin-bottom: 18px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  h1 {
    max-width: 8ch;
    font-size: 4.25rem;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 1.25rem;
  }

  .intro {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .progress {
    margin-top: 28px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact__item,
  .contact__links {
    padding: 18px;
  }

  .contact__links {
    grid-column: auto;
    align-items: flex-start;
  }

  .footer {
    width: min(100% - 28px, 560px);
    padding-bottom: 20px;
  }
}

@media (max-width: 420px) {
  .working-page {
    width: min(100% - 20px, 380px);
    padding-top: 10px;
  }

  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding: 22px 18px;
  }

  h1 {
    font-size: 3.3rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .contact__item,
  .contact__links {
    padding: 16px;
  }

  .footer {
    width: min(100% - 20px, 380px);
  }
}

@media (max-height: 620px) and (min-width: 641px) {
  .working-page {
    min-height: auto;
  }

  .hero {
    min-height: 430px;
  }

  .hero__content {
    padding: 42px;
  }

  h1 {
    font-size: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
