/* =========================================================================
   VALPROSA — Valuaciones Profesionales
   Sistema editorial: papel claro + tinta nocturna, tipografía Raleway en
   peso susurro (100) para titulares y peso pleno (800) para énfasis.
   ========================================================================= */

:root{
  /* ---- Paleta de marca (tomada de los documentos oficiales Valprosa) ---- */
  --alice:    #F4FAFF;
  --paper:    #FFFFFF;
  --shadow:   #1A1423;
  --shadow-2: #241C31;
  --stormy:   #08605F;
  --teal:     #177E89;
  --teal-2:   #1E97A3;
  --sage:     #B2B09B;

  --ink:      #1A1423;
  --ink-soft: #46424f;
  --ink-mute: #6d6a78;
  --line:     #e1e5ec;
  --line-soft:#eef1f6;
  --icon:     #8b8896;

  --on-dark:       #F4FAFF;
  --on-dark-soft:  #c7cbdb;
  --on-dark-mute:  #8d90a8;
  --line-on-dark:  rgba(244,250,255,.14);

  /* ---- Tipografía ---- */
  --font: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ---- Radios y ritmo ---- */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
  --container: 1200px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(.16,.8,.24,1);
}

/* ---------------------------- Reset base ---------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p,dl,dd,figure,blockquote{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection{ background: var(--teal); color: var(--alice); }

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--shadow); color: var(--alice); padding: 12px 20px;
  border-radius: var(--r-sm);
}
.skip-link:focus{ left: 20px; top: 20px; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

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

/* ------------------------------ Type ------------------------------- */
.eyebrow{
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .38em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 1.1rem;
}
.eyebrow::before{ content: ''; width: 34px; height: 1.5px; background: var(--teal); }
.eyebrow--light{ color: var(--sage); }
.eyebrow--light::before{ background: var(--sage); }

.h-display{
  font-weight: 100;
  font-size: clamp(2.25rem, 3.4vw + 1rem, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
}
.h-display strong, .h-display b{ font-weight: 800; }
.h-display em{
  font-style: normal; font-weight: 800; color: var(--teal);
}
.h-display--light{ color: var(--on-dark); }
.h-display--light em{ color: var(--sage); }

.lead{
  font-size: clamp(1.0625rem, .4vw + 1rem, 1.1875rem);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 56ch;
  margin-top: 1.4rem;
}
.lead--light{ color: var(--on-dark-soft); }

p + p{ margin-top: 1rem; }

.section-head{ max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-lead{ margin-top: .9rem; }

/* ------------------------------ Buttons ----------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  border-radius: 999px;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn--primary{
  background: var(--ink);
  color: var(--alice);
  border: 1px solid var(--ink);
}
.btn--primary:hover{ background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.btn--ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover{ border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn--on-dark{ color: var(--on-dark); border-color: var(--line-on-dark); }
.btn--on-dark:hover{ border-color: var(--sage); color: var(--sage); }
.btn--full{ width: 100%; margin-top: 1.6rem; }

/* ------------------------------- Nav -------------------------------- */
.nav{
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 26px 0;
  transition: padding .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled{
  padding: 14px 0;
  background: rgba(26,20,35,.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.nav-inner{ display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav-brand{ display: block; line-height: 0; }
.brand-mark{ height: 30px; width: auto; transition: opacity .3s; }
.brand-mark--dark{ display: none; }

.nav-links{ display: flex; align-items: center; gap: 2.1rem; }
.nav-links a{
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-dark-soft);
  position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-links a:hover{ color: var(--on-dark); }
.nav-links a::after{
  content:''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--sage); transition: right .35s var(--ease);
}
.nav-links a:hover::after{ right: 0; }
.nav-cta{
  color: var(--on-dark) !important;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: .6rem 1.3rem !important;
}
.nav-cta:hover{ border-color: var(--sage) !important; }
.nav-cta::after{ display: none; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
}
.nav-toggle span{ display: block; width: 22px; height: 1.5px; background: var(--on-dark); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  display: none; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.mobile-menu a{
  padding: 14px clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line-on-dark);
  font-size: .95rem; letter-spacing: .04em; color: var(--on-dark-soft);
}
.nav.is-open .mobile-menu{ max-height: 400px; }
.nav.is-open{ background: var(--shadow); }

/* light-mode nav swap when scrolled over a light section is not needed:
   nav stays permanently dark-styled since hero + footer are dark. */

/* ------------------------------- Hero -------------------------------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(2.5rem, 6vh, 4rem);
  color: var(--on-dark);
  background: var(--shadow);
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; z-index: 0; }
.hero-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) saturate(1.1) brightness(.62) contrast(1.08);
  transform: scale(1.08);
  will-change: transform;
}
.hero-scrim{
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 26% 30%, rgba(23,126,137,.28), transparent 68%),
    linear-gradient(180deg, rgba(26,20,35,.55) 0%, rgba(26,20,35,.78) 55%, rgba(26,20,35,.97) 100%);
}
.hero-content{ position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-title{ font-weight: 100; letter-spacing: -.02em; max-width: 18ch; }
.hero-title .w-thin{ display: block; font-size: clamp(2.1rem, 3.6vw + .8rem, 3.4rem); line-height: 1.14; color: var(--on-dark-soft); }
.hero-title .w-bold{ display: block; font-size: clamp(2.5rem, 4.4vw + .8rem, 4.4rem); line-height: 1.06; font-weight: 800; color: var(--on-dark); margin-top: .2rem; }
.hero-lead{ color: var(--on-dark-soft); max-width: 42ch; margin-top: 1.6rem; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-mark{
  display: none;
  position: absolute; z-index: 1;
  right: clamp(2rem, 6vw, 5rem); top: 50%; transform: translateY(-58%);
  width: clamp(150px, 13vw, 220px); height: auto;
  opacity: .9; pointer-events: none;
}
@media (min-width: 1100px){ .hero-mark{ display: block; } }

.hero-stats{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-on-dark);
}
.stat{ display: flex; flex-direction: column; gap: .35rem; }
.stat-n{
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: clamp(1.6rem, 2vw + .8rem, 2.4rem); font-weight: 400;
  color: var(--sage); letter-spacing: -.01em; line-height: 1;
}
.stat-n--static{ font-style: normal; font-family: var(--font); font-weight: 200; }
.stat-l{ font-size: .74rem; letter-spacing: .06em; color: var(--on-dark-mute); line-height: 1.4; }

/* ------------------------------ Sections ------------------------------ */
.section{ position: relative; padding: var(--section-pad) 0; }
.section--paper{ background: var(--paper); }
.section--alice{ background: var(--alice); }
.section--dark{ background: var(--shadow); color: var(--on-dark); overflow: hidden; }

.dark-media{ position: absolute; inset: 0; z-index: 0; }
.dark-media img{ width: 100%; height: 100%; object-fit: cover; }
.section--dark .container{ position: relative; z-index: 1; }

/* Duotone treatment applied to every photograph on the site, tying the
   full-colour source photography back into the ink / teal / sage palette. */
.duotone{ position: relative; overflow: hidden; }
.duotone img{ filter: grayscale(1) contrast(1.12) brightness(.9); }
.duotone::after{
  content: ''; position: absolute; inset: 0;
  mix-blend-mode: color;
  background: linear-gradient(140deg, var(--stormy) 0%, var(--teal) 45%, var(--sage) 100%);
  opacity: .85;
}
.duotone--method::after{ background: linear-gradient(160deg, var(--shadow) 0%, var(--stormy) 55%, var(--teal) 100%); opacity: .92; }
.duotone--method{ opacity: .85; }
.duotone--method img{ filter: grayscale(1) contrast(1.2) brightness(.5); }
.duotone--contact::after{ background: linear-gradient(180deg, var(--shadow) 0%, var(--stormy) 70%, var(--teal) 100%); opacity: .94; }
.duotone--contact img{ filter: grayscale(1) contrast(1.1) brightness(.35); }
.duotone--contact{ opacity: .5; }

/* ------------------------------ La firma ------------------------------ */
.firma-grid{
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.firma-text .eyebrow{ margin-bottom: .9rem; }

.sector-list{ margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.sector-label{
  display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; margin-bottom: 1rem;
}
.sector-chips{ display: flex; flex-wrap: wrap; gap: .55rem; }
.sector-chips li{
  font-size: .82rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem;
}

.firma-media{ display: flex; flex-direction: column; gap: 1.25rem; }
.media-frame{ border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(26,20,35,.35); }
.media-frame img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.media-frame--small{ width: 72%; margin-left: auto; }
.media-frame--small img{ aspect-ratio: 5/4; }
.media-signature{
  width: clamp(120px, 13vw, 168px); height: auto;
  margin: .5rem auto 0; display: block; opacity: .92;
}

/* ------------------------------ Servicios ------------------------------ */
.services-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card{
  background: var(--paper);
  padding: 2.2rem 1.8rem;
  transition: background-color .3s;
}
.service-card:hover{ background: var(--alice); }
.service-idx{
  display: block; font-size: 1.6rem; font-weight: 200; color: var(--sage);
  letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.service-card h3{ font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; letter-spacing: -.01em; }
.service-card p{ font-size: .9rem; color: var(--ink-mute); line-height: 1.65; }

/* ------------------------------ Metodología ------------------------------ */
.process{ display: flex; flex-direction: column; }
.process-step{
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 2rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line-on-dark);
}
.process-step:last-child{ border-bottom: 1px solid var(--line-on-dark); }
.process-n{
  font-size: 2.1rem; font-weight: 100; color: var(--sage); letter-spacing: -.02em; line-height: 1;
}
.process-step h3{ font-size: 1.25rem; font-weight: 700; margin-bottom: .55rem; color: var(--on-dark); }
.process-step p{ color: var(--on-dark-soft); font-size: .95rem; line-height: 1.7; max-width: 56ch; }

/* ------------------------------ Diferenciador ------------------------------ */
.feature-panel{
  background: var(--shadow); color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.4rem;
}
.feature-panel-text{
  font-size: clamp(1.05rem, 1vw + .8rem, 1.35rem);
  font-weight: 300; line-height: 1.7; color: var(--on-dark-soft);
  max-width: 62ch;
}
.feature-panel-text strong{ color: var(--on-dark); font-weight: 700; }
.feature-sign{ margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-on-dark); }
.feature-sign img{ width: clamp(110px, 11vw, 152px); height: auto; opacity: .95; }

.pullquote{
  background: var(--stormy); color: #eaf3f2;
  border-radius: var(--r-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  position: relative;
}
.pullquote-mark{
  font-family: Georgia, serif; font-size: 4.5rem; font-weight: 700; line-height: .5;
  color: rgba(255,255,255,.25); display: block; margin-bottom: 1rem;
}
.pullquote p{
  font-size: clamp(1.15rem, 1vw + .9rem, 1.5rem);
  font-weight: 300; font-style: italic; line-height: 1.55; color: #fff;
  max-width: 46ch;
}
.pullquote strong{ font-weight: 700; font-style: normal; color: var(--sage); }
.pullquote cite{
  display: block; margin-top: 1.6rem; font-style: normal;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(234,243,242,.65); font-weight: 700;
}

/* ------------------------------ Equipo ------------------------------ */
.team-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.team-card{
  border-radius: var(--r-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  color: var(--on-dark);
}
.team-card--ink{ background: var(--shadow); }
.team-card--teal{ background: var(--stormy); }

.team-kicker{
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sage); font-weight: 700; margin-bottom: 1rem;
}
.team-name{
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); font-weight: 200; line-height: 1.15;
  letter-spacing: -.01em; margin-bottom: 1.1rem;
}
.team-name strong{ font-weight: 800; }
.team-roles{ display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.team-roles span{
  font-size: .72rem; letter-spacing: .04em; font-weight: 600;
  border: 1px solid var(--line-on-dark); border-radius: 999px;
  padding: .4rem .9rem; color: var(--on-dark-soft);
}
.team-bio{ font-size: .92rem; line-height: 1.75; color: var(--on-dark-soft); margin-bottom: 1.75rem; }

.team-credentials{ display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-on-dark); }
.team-credentials div{ padding: 1rem 0; border-bottom: 1px solid var(--line-on-dark); }
.team-credentials dt{ font-size: .86rem; font-weight: 700; color: var(--on-dark); line-height: 1.4; }
.team-credentials dd{ font-size: .78rem; color: var(--on-dark-mute); margin-top: .3rem; }

.team-award{
  margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-on-dark);
  font-size: .82rem; font-style: italic; color: var(--on-dark-soft); line-height: 1.65;
}

/* ------------------------------ Contacto ------------------------------ */
.contact-grid{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact-text .lead{ margin-top: 1.3rem; }

.contact-card{
  background: rgba(244,250,255,.05);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.contact-mark{
  width: clamp(130px, 13vw, 176px); height: auto;
  margin-bottom: 1.75rem; opacity: .95;
}
.contact-email{
  display: block; font-size: clamp(1.3rem, 1.6vw + .8rem, 1.75rem);
  font-weight: 700; color: var(--on-dark); letter-spacing: -.01em;
  word-break: break-word;
}
.copy-btn{
  margin-top: .8rem; font-size: .78rem; letter-spacing: .05em; font-weight: 600;
  color: var(--sage); display: inline-flex; align-items: center; gap: .4rem;
  transition: color .25s;
}
.copy-btn:hover{ color: var(--on-dark); }

.contact-detail{
  display: flex; flex-direction: column; gap: .3rem;
  margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line-on-dark);
}
.contact-detail-k{ font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-mute); font-weight: 700; }
.contact-detail-v{ font-size: .92rem; color: var(--on-dark-soft); line-height: 1.6; }

/* ------------------------------- Footer -------------------------------- */
.footer{ background: #120e19; color: var(--on-dark-mute); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-inner{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-logo{ height: 30px; width: auto; opacity: .92; }
.footer-links{ display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a{ font-size: .82rem; letter-spacing: .03em; color: var(--on-dark-mute); transition: color .25s; }
.footer-links a:hover{ color: var(--on-dark); }
.footer-meta{ font-size: .82rem; line-height: 1.8; }
.footer-meta a{ color: var(--sage); }
.footer-bar{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  font-size: .74rem; letter-spacing: .04em; color: var(--on-dark-mute);
}

/* ------------------------------ Reveal-on-scroll ------------------------------ */
.reveal{
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ================================ Responsive ================================ */
@media (max-width: 980px){
  .firma-grid{ grid-template-columns: 1fr; }
  .firma-media{ flex-direction: row; }
  .media-frame{ flex: 1; }
  .media-frame--small{ width: 100%; margin-left: 0; align-self: flex-end; }

  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .team-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 760px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .mobile-menu{ display: flex; }

  .process-step{ grid-template-columns: 1fr; gap: .6rem; }
  .services-grid{ grid-template-columns: 1fr; }
  .hero-title .w-thin{ font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-title .w-bold{ font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 480px){
  .hero-stats{ grid-template-columns: 1fr 1fr; }
}
