/* maskeline.com — hoja de estilo del sitio estático.
   Los valores de color, tamaño y tipografía salen de snapshot/design-tokens.json, que
   se leyó del sitio Wix con el navegador: no son estimaciones a ojo. */

:root {
  --negro: #000;
  --gris-oscuro: #1c1c1c;
  --gris-seccion: #2b2b2b;
  --blanco: #fff;
  --naranja: #ff5700;        /* acento: enlaces, titulares, menú de anclas */
  --naranja-boton: #fe602f;  /* fondo del botón de envío */

  --titular: "Fahkwang", Georgia, serif;
  --texto: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --condensada: "Archivo Narrow", "Inter", sans-serif;

  --ancho: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

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

img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--titular); font-weight: 400; margin: 0; }

.accent { color: var(--naranja); }

.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; inset-block-start: 0.5rem; inset-inline-start: 0.5rem;
  z-index: 100; background: var(--naranja); color: var(--negro);
  padding: 0.5rem 1rem; border-radius: 2px;
}

/* ---------- barra superior ---------- */
.topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-height: 60px;
  padding: 0 var(--gutter);
  background: var(--negro);
}
.topbar__home {
  font-family: var(--titular); font-size: 0.8125rem; text-decoration: none;
}
.topbar__lang {
  position: absolute; inset-inline-end: var(--gutter);
  display: flex; gap: 0.5rem; font-size: 0.8125rem;
}
.topbar__lang a { color: var(--naranja); text-decoration: none; opacity: 0.6; }
.topbar__lang a.is-active { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--negro); }
.hero__video {
  width: 100%; height: clamp(320px, 46vw, 660px); object-fit: cover; opacity: 0.85;
}
.hero__logo {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 16vw, 230px); height: auto;
}
.anchors {
  position: absolute; inset-block-start: 50%; inset-inline-end: var(--gutter);
  transform: translateY(-50%);
}
.anchors ul { list-style: none; margin: 0; padding: 0; text-align: end; }
.anchors a {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem;
  font-family: var(--condensada); font-size: 0.875rem; color: var(--naranja);
  text-decoration: none; padding: 0.28rem 0;
}
.anchors a span {
  width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%;
}
.anchors a:hover span { background: currentColor; }

/* ---------- intro ---------- */
.intro {
  position: relative;
  background: var(--gris-seccion) url("../img/seccion-maskeline.webp") right center / cover no-repeat;
  min-height: clamp(420px, 48vw, 690px);
  display: flex; align-items: center;
}
/* Sin este velo el texto cae sobre la foto y deja de leerse (se ve sobre todo en móvil,
   donde la imagen ocupa el ancho completo). */
.intro::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 45%, rgba(0, 0, 0, 0) 78%);
}
.intro__text {
  position: relative; padding: clamp(2rem, 5vw, 4.5rem) var(--gutter); max-width: 46rem;
}
.intro h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.4; margin-bottom: 1.2rem;
}
.intro__body p { margin: 0 0 0.2rem; font-size: 1.125rem; }
.intro__lead { margin-bottom: 0.6rem !important; }

/* ---------- tarjetas de trabajos ---------- */
.works__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  background: var(--negro);
}
.card { position: relative; display: block; text-decoration: none; overflow: hidden; }
.card img {
  width: 100%; height: clamp(160px, 20vw, 290px); object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease; opacity: 0.85;
}
.card:hover img { transform: scale(1.04); opacity: 1; }
.card__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--texto); font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 2rem); letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

/* ---------- inversión ---------- */
.investment {
  background: var(--gris-oscuro) url("../img/seccion-inversion.webp") right center / cover no-repeat;
  min-height: clamp(420px, 50vw, 722px);
  display: flex; align-items: center;
}
.investment__text { padding: var(--gutter); max-width: 34rem; }
.investment h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.35; margin-bottom: 0.8rem;
}
.link-more {
  font-family: var(--titular); color: var(--naranja); text-decoration: none;
  font-size: 1.05rem;
}
.link-more:hover { text-decoration: underline; }

/* ---------- clientes ---------- */
.clients {
  background: var(--negro) url("../img/seccion-clientes.webp") center / cover no-repeat;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  min-height: clamp(380px, 42vw, 610px);
  display: flex; flex-direction: column; justify-content: center;
}
.clients h2 { color: var(--naranja); font-size: 1.5rem; margin-bottom: 2.5rem; }
.clients__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 60rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; justify-items: center;
}
.clients__grid img {
  max-height: 46px; width: auto; object-fit: contain;
  /* El sitio actual muestra todos los logos en blanco, no en su color de marca.
     `brightness(0) invert(1)` lo consigue con cualquier logo, venga como venga. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ---------- contacto ---------- */
.contact { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.contact h2 { color: var(--naranja); font-size: 1.6rem; margin-bottom: 2rem; }
.contact__grid {
  display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: start;
}
.contact__data { font-style: normal; }
.contact__offices { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.contact__offices li { margin-bottom: 0.9rem; }
.contact__offices strong { display: block; color: var(--naranja); font-weight: 500; }
.contact__data a { text-decoration: none; }
.contact__data a:hover { color: var(--naranja); }
.contact__social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.contact__social img { width: 24px; height: 24px; }

.contact__form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { margin: 0; display: grid; gap: 0.35rem; }
.field label { font-size: 0.875rem; font-weight: 300; }
.field input, .field textarea {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--blanco); font: inherit; font-size: 0.95rem; padding: 0.6rem 0.7rem;
  border-radius: 2px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--naranja); outline-offset: 1px; border-color: transparent;
}
.field--textarea, .field--check, .legal, .field--submit, .form-status {
  grid-column: 1 / -1;
}
.field--check { display: flex; align-items: flex-start; gap: 0.6rem; }
.field--check label { font-size: 0.8125rem; }
.legal { font-size: 0.6875rem; line-height: 1.45; color: rgba(255, 255, 255, 0.75); }
.legal summary { cursor: pointer; letter-spacing: 0.04em; }
.legal p { margin: 0.5rem 0 0; }
.field--submit { justify-items: end; }
.contact__form button {
  background: var(--naranja-boton); color: var(--negro); border: 0;
  font: inherit; font-weight: 500; padding: 0.55rem 2.5rem; border-radius: 2px;
  cursor: pointer;
}
.contact__form button:hover { filter: brightness(1.08); }
.form-status { margin: 0; font-family: var(--titular); font-size: 0.875rem; min-height: 1.4em; }
.form-status.is-error { color: var(--naranja); }

/* ---------- páginas de sección ---------- */
.section-head { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem); text-align: center; }
.section-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.02em; }

.gallery { padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem); }
.gallery__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--ancho);
  display: grid; gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.video__play {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: #111; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.video__play::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border: 2px solid var(--blanco); border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(transparent, transparent);
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0);
}
.video__play::before {
  content: ""; position: absolute; z-index: 1; inset: 50% auto auto calc(50% + 3px);
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--blanco);
}
.video__play:hover img { opacity: 1; }
.video__time {
  position: absolute; inset-block-end: 0.5rem; inset-inline-end: 0.6rem; z-index: 2;
  font-size: 0.75rem; background: rgba(0, 0, 0, 0.6); padding: 0.1rem 0.35rem;
}
.video__title { font-family: var(--texto); font-size: 0.95rem; margin: 0.7rem 0 0.15rem; }
.video__kind { margin: 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

.section-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
  font-family: var(--titular); font-size: 1.05rem;
}
.section-nav a { color: var(--naranja); text-decoration: none; }
.section-nav a.is-active { color: var(--blanco); }
.section-nav a:hover { text-decoration: underline; }

/* ---------- páginas legales ---------- */
.legal-page {
  max-width: 48rem; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
}
.legal-page h1 { color: var(--naranja); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.5rem; }
.legal-page p { margin: 0 0 1rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }

.investment-body {
  display: grid; gap: 1rem; max-width: var(--ancho); margin: 0 auto;
  padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem);
}
.pending-note { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; }

/* ---------- pie ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem var(--gutter) 2.5rem; text-align: center;
}
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem;
  font-size: 0.875rem;
}
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { margin: 0.8rem 0 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- móvil ---------- */
@media (max-width: 860px) {
  .works__grid { grid-template-columns: 1fr; }
  .intro, .investment { background-position: center; }
  .intro::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.88) 35%);
  }
  .contact__grid, .contact__form { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .anchors { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card img { transition: none; }
  .hero__video { display: none; }
}
