:root {
  --bg: #f6f4f0;
  --bg-alt: #ece8e1;
  --dark: #1d1c1a;
  --ink: #1d1c1a;
  --muted: #5c574f;
  --on-dark: #f6f4f0;
  --on-dark-muted: #b8b1a6;
  --line: #dcd6cc;
  --line-dark: #3a3833;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.2; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}


/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: var(--on-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--on-dark-muted); transition: color 150ms ease-out; }
.nav a:hover { color: var(--on-dark); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--on-dark);
  padding: 240px 0 160px;
  min-height: clamp(560px, 88vh, 960px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("img/hero.jpg") center / cover no-repeat;
}
/* Oscurece el lado del texto para que el título se lea sobre la foto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(29, 28, 26, 0.92) 0%, rgba(29, 28, 26, 0.7) 45%, rgba(29, 28, 26, 0.35) 100%),
              linear-gradient(0deg, rgba(29, 28, 26, 0.6) 0%, rgba(29, 28, 26, 0) 40%);
}
.kicker {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 13ch;
  margin-bottom: 32px;
}
.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 56ch;
  margin: 0;
}

/* Content blocks */
.block { padding: 128px 0; }
.block-alt { background: var(--bg-alt); }
.block h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}
#nosotros h2 { margin-bottom: 24px; }
.block h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.block p { margin: 0; color: var(--muted); }
.prose { font-size: 20px; line-height: 1.6; max-width: 62ch; }

.services, .values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.services article {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

/* Photos */
.photo-band { margin: 0; }
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(320px, 56vw, 760px);
  object-fit: cover;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}
.photo-pair img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Contact */
.contact {
  background: var(--dark);
  color: var(--on-dark);
  padding: 128px 0;
}
.contact h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  font-size: 16px;
  color: var(--on-dark-muted);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding: 0 0 48px;
}
.footer-inner {
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-top .brand { color: var(--on-dark); font-size: 16px; }
.footer-top nav { display: flex; gap: 24px; font-size: 14px; }
.legal { margin: 0; font-size: 12px; line-height: 1.7; }

/* Empleos */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease-out;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--ink); }

.hero-empleos { min-height: clamp(520px, 72vh, 800px); padding-bottom: 128px; }
.hero-empleos::before { background-image: url("img/backstage.jpg"); }
.hero-empleos .lead { margin-bottom: 40px; }

.page-intro {
  background: var(--dark);
  color: var(--on-dark);
  padding: 96px 0 112px;
}
.page-intro h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.jobs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.jobs:empty { display: none; }
.job {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.job h3 { margin: 0; }
.block .job-meta { font-size: 14px; color: var(--muted); }
.job-reqs { margin: 0; padding-left: 20px; color: var(--muted); }
.job .btn { margin-top: 12px; }
.block .jobs-empty { font-size: 18px; max-width: 56ch; }

.apply {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field-row { display: flex; gap: 24px; }
.field label { font-size: 14px; font-weight: 500; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a8a196;
  padding: 12px 14px;
  width: 100%;
}
.field input[type="file"] { padding: 10px; font-size: 14px; color: var(--muted); }
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  background: var(--dark);
  border: 0;
  padding: 8px 16px;
  margin-right: 14px;
  cursor: pointer;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .check input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.apply .btn { align-self: flex-start; }
#postularme h2 { margin-bottom: 16px; }
.block .apply-intro { font-size: 18px; margin: 0 0 48px; max-width: 56ch; }
.block .field-error { color: #a12a1f; font-size: 14px; margin: 0; }
.apply-ok { max-width: 640px; }
.apply-ok h3 { margin-bottom: 8px; }

/* Legal pages */
.site-header.solid { position: static; background: var(--dark); }
.legal-page { padding: 96px 0 128px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-page .updated { color: var(--muted); margin: 0 0 48px; font-size: 14px; }
.legal-page h2 { font-size: 20px; font-weight: 600; margin: 48px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); }
.not-found { min-height: 60vh; }
.not-found h1 { margin-bottom: 16px; }
.not-found p { margin: 0 0 40px; font-size: 18px; }

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-zoom 2400ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .hero .kicker, .hero h1, .hero .lead,
  .page-intro h1, .page-intro .lead { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .kicker { animation-delay: 200ms; }
  .hero h1 { animation-delay: 350ms; }
  .hero .lead { animation-delay: 550ms; }
  .hero .btn { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 700ms both; }
  .page-intro .lead { animation-delay: 150ms; }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease-out, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .services, .values { grid-template-columns: 1fr; gap: 48px; }
  .photo-pair { grid-template-columns: 1fr; margin-top: 48px; }
  .jobs { grid-template-columns: 1fr; }
  .hero { padding: 144px 0 96px; }
  .block, .contact { padding: 96px 0; }
  .block h2 { margin-bottom: 48px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: auto; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; gap: 8px 16px; }
  .nav { gap: 16px; font-size: 13px; }
  .field-row { flex-direction: column; }
  .job { padding: 24px; }
  .lead, .prose { font-size: 18px; }
  .contact-list { flex-direction: column; }
}
