/* ================================================================
   QUEULAT CONSULTORES — Institucional minimalista
   Paleta marca: #40a2b2 teal · negro · #9d9d9c gris
   Tipografía: Jost (equivalente Gotham). Sin cursivas.
   ================================================================ */

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

:root {
  --teal:      #40a2b2;
  --teal-dark: #2e8896;
  --teal-soft: #e8f2f4;
  --ink:       #111111;
  --ink-soft:  #2a2a2a;
  --ink-mute:  #6b6b6b;
  --grey:      #9d9d9c;
  --line:      rgba(17,17,17,0.12);
  --line-soft: rgba(17,17,17,0.06);
  --bg:        #ffffff;
  --bg-2:      #f6f5f2;
  --bg-dark:   #0e0e0e;

  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 176px;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* No italics anywhere */
i, em, cite, address, dfn, var { font-style: normal; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

::selection { background: var(--teal); color: #fff; }

/* --- Image protection (contextmenu blocked in JS) --------------- */
.protected {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.protected img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.wm {
  position: absolute;
  right: 10px; bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 3;
  font-weight: 300;
}
.wm-lg {
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vh, 1.5rem);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
}

/* Reveal ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* SPLASH ---------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  animation: splashSafety .01s 4.5s forwards;
  transition: opacity .8s var(--ease-out), visibility .8s var(--ease-out);
}
.splash-logo {
  width: 92px; height: auto;
  animation: splashPulse 1.6s ease-in-out infinite;
}
.splash.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes splashPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.97); }
}

/* NAV — franja blanca permanente ---------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand {
  display: flex; align-items: center;
}
.nav-brand img {
  height: 156px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; gap: 3.25rem;
  color: var(--ink);
}
.nav-links a {
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* HERO — FOTO DE FONDO ------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  margin-top: var(--nav-h);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  overflow: hidden;
  background: #0e0e0e;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 20s var(--ease-out) forwards;
  -webkit-user-drag: none;
  pointer-events: none;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 45%,
      rgba(0,0,0,0.65) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1080px;
  width: 100%;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 400;
  margin-bottom: 1.75rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
  opacity: 0.9;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: #fff;
}
.hero-brand {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.4rem, 6.6vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 20ch;
  color: #ffffff;
}
.hero-links {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.hero-links a {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.hl-num {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}
.hl-arrow {
  display: inline-block;
  transition: transform .35s var(--ease-out);
}
.hero-links a:hover {
  border-color: #fff;
}
.hero-links a:hover .hl-arrow {
  transform: translateX(6px);
}

.hero-foot {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(2rem, 5vh, 3.5rem);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.8);
}
.hero-scroll {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-line {
  width: 1px; height: 68px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: heroLine 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes heroLine {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1;   }
}

/* Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: 0.83rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid transparent;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
  will-change: transform;
}
.btn-cta {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  padding: 1.15rem 2.2rem;
  letter-spacing: 0.06em;
  text-transform: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.btn-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.btn-cta:hover {
  color: #fff;
}
.btn-cta:hover::before {
  transform: translateY(0);
}

/* SECTIONS -------------------------------------------------------- */
.section {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}
.section-head {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  font-size: clamp(1.3rem, 1.95vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

/* SOCIOS ---------------------------------------------------------- */
.socios {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.socio {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2rem;
}
.socio-photo {
  overflow: hidden;
  background-color: var(--bg-2);
  position: relative;
}
.socio-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.socio-photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.socio-role {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.socio-name {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.socio-bio {
  color: var(--ink-mute);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 46ch;
}
.socio-links {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.9rem;
}
.socio-links a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
  display: inline-block;
  width: fit-content;
  word-break: break-word;
}
.socio-links a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* INTERLUDIO ------------------------------------------------------ */
.interlude {
  position: relative;
  height: 68vh;
  min-height: 460px;
  overflow: hidden;
  display: grid; place-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.interlude::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.3), rgba(0,0,0,0.55));
}
.interlude-line {
  position: relative; z-index: 2;
  padding: 0 1.5rem;
  text-align: center;
}
.il-word {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.15;
  max-width: 22ch;
  display: inline-block;
  text-wrap: balance;
}

/* QUÉ HACEMOS — listado en 2 columnas --------------------------- */
.areas {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.area {
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease-out), padding-left .35s var(--ease-out);
}
.area:hover {
  color: var(--teal);
  padding-left: 0.75rem;
}
.area h4 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
@media (max-width: 700px) {
  .areas { grid-template-columns: 1fr; }
}

/* CONTACTO -------------------------------------------------------- */
.section-contacto {
  background: var(--bg-dark);
  color: #fff;
  max-width: none;
  padding: clamp(6rem, 14vh, 10rem) 1.5rem;
  text-align: center;
}
.contacto-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.contacto-link {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.contacto-link:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* FOOTER ---------------------------------------------------------- */
.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.7);
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem;
  font-size: 0.9rem;
}
.footer-top {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: flex-start; gap: 1rem;
  max-width: 360px;
}
.footer-brand img {
  width: 96px; height: auto;
  filter: brightness(0) invert(1) opacity(0.92);
}
.footer-brand p {
  font-size: 0.86rem; line-height: 1.55;
  color: rgba(255,255,255,0.6);
}
.footer-nav {
  display: flex; gap: 2rem; flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  transition: color .3s var(--ease-out);
}
.footer-nav a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* RESPONSIVE ------------------------------------------------------ */
@media (max-width: 1080px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 110px; }
  .nav-brand img { height: 88px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: #ffffff;
    backdrop-filter: blur(14px);
    color: var(--ink) !important;
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-110%);
    transition: transform .5s var(--ease-out);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; }

  .section-head {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .section-title {
    margin-left: 0;
    text-align: left;
  }

  .socios { grid-template-columns: 1fr; gap: 3rem; }
  .hero-links { flex-direction: column; gap: 0; }
  .hero-links a { width: 100%; }

  .hero-foot { display: none; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 560px) {
  .areas { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .hero-line { animation: none; }
  .splash-logo { animation: none; }
}
