/* ===== Fonts ===== */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/archivo-medium.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/archivo-black.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/archivo-black-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F;
}

/* ===== Reset & tokens ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #f1e9e2;
  --ink: #111111;
  --grey: #555555;
  --grey-light: #999999;
  --line: #d9cfc5;
  --footer-bg: #111111;
  --footer-ink: #f1e9e2;
  --max: 1360px;
  --pad: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: #111; color: #f1e9e2; }

.display {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: var(--pad);
  top: 12px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: rgba(241, 233, 226, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .28s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { right: 0; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--ink);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile nav panel ===== */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 0 var(--pad);
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel a {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(32px, 9vw, 48px);
  text-transform: uppercase;
}

/* ===== Focus visibility ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ===== Hero ===== */
.hero {
  padding: 48px var(--pad) var(--pad);
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-title {
  font-size: clamp(42px, 8vw, 104px);
}
.hero-tag {
  font-size: clamp(15px, 1.6vw, 22px);
  margin-top: 12px;
  white-space: nowrap;
  color: var(--ink);
}
.hero-images {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  height: clamp(220px, 44vw, 560px);
}
.hero-images .big { flex: 0 0 62%; }
.hero-images .small { flex: 1; }
.hero-images div {
  overflow: hidden;
  border-radius: 4px;
}
.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .6s var(--ease);
}
.hero-images div:hover img { transform: scale(1.08); }

/* ===== Que hacemos ===== */
.section {
  padding: clamp(80px, 12vw, 140px) var(--pad);
}
.section-inner { max-width: 1500px; }
.qh-lead {
  font-size: clamp(30px, 5.5vw, 82px);
  margin: 24px 0;
}
.qh-big {
  font-size: clamp(48px, 10vw, 130px);
  margin-top: clamp(48px, 8vw, 100px);
}

/* ===== Sectores ===== */
.sector-list { border-top: 1px solid var(--line); }
.sector-row {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(16px, 3vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.sector-row:hover,
.sector-row:focus-within {
  padding-left: 16px;
  color: var(--grey);
}
.sector-row:hover .sector-name,
.sector-row:focus-within .sector-name { color: var(--ink); }
.sector-num {
  font-size: 15px;
  color: var(--grey-light);
  width: 40px;
  flex: none;
}
.sector-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(24px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color .3s var(--ease);
}

/* ===== Contact / CTA ===== */
.contact {
  text-align: center;
}
.contact-inner { max-width: 1500px; margin: 0 auto; }
.contact-title {
  font-size: clamp(32px, 8vw, 110px);
  margin: 24px auto 0;
  max-width: 1200px;
}
.contact-form {
  max-width: 620px;
  margin: 56px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field .error {
  font-size: 13px;
  color: #a4392c;
  min-height: 16px;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  padding: 16px 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), transform .15s var(--ease);
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: progress; }

.form-status {
  font-size: 15px;
  min-height: 20px;
  margin-top: 4px;
}
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #a4392c; }

/* ===== Footer ===== */
footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(48px, 8vw, 88px);
}
.footer-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}
.footer-value {
  font-size: clamp(19px, 2.6vw, 30px);
  word-break: break-word;
}
.footer-value a:hover { color: #ccc; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid #333;
}
.footer-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
}
.socials { display: flex; gap: 24px; }
.socials a {
  width: 22px; height: 22px;
  display: block;
  color: var(--footer-ink);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { opacity: 0.6; transform: translateY(-2px); }
.copyright { font-size: 13px; color: #777; margin-top: 20px; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Toast (mailto fallback) ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear .35s;
  max-width: min(90vw, 480px);
  text-align: center;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links, .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .mobile-panel { display: flex; }
  .hero-images { flex-direction: column; height: auto; }
  .hero-images .big, .hero-images .small { flex: none; height: 42vw; min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding-top: 32px; }
  .sector-row:hover, .sector-row:focus-within { padding-left: 8px; }
}
