:root {
  --black: #0e0e0e;
  --ink: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #cfcfcf;
  --gray-100: #f3f3f1;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.eyebrow--light { color: rgba(255,255,255,.75); }
.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -.01em;
  margin-bottom: 28px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .25s ease;
}
.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--gray-700); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 22px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 52px; width: auto; }
.nav__logo .logo--dark { display: none; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  font-size: 13px; font-weight: 400; letter-spacing: .08em; color: var(--white);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: currentColor; transition: width .25s ease;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__links .btn { background: var(--white); color: var(--black); }

.nav--solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(0,0,0,.08); padding: 12px 0; backdrop-filter: blur(8px); }
.nav--solid .logo--light { display: none; }
.nav--solid .logo--dark { display: block; }
.nav--solid .nav__links a:not(.btn) { color: var(--ink); }
.nav--solid .nav__links .btn { background: var(--black); color: var(--white); }
.nav--solid .nav__toggle span { background: var(--ink); }

.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--white); transition: transform .25s ease, top .25s ease; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(1); transform: scale(1.05); animation: slowzoom 18s ease-out forwards;
}
@keyframes slowzoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.35) 100%); }
.hero__content { position: relative; padding-top: 90px; padding-bottom: 60px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 7vw, 92px); line-height: 1.02; letter-spacing: -.015em;
  max-width: 900px; margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: rgba(255,255,255,.82); }
.hero__lead { max-width: 520px; font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.8); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 2px; height: 8px; margin-left: -1px; background: var(--white); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section__head { max-width: 700px; margin-bottom: 64px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; }

/* Nosotros */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split__media { position: relative; padding: 0 12% 18% 0; }
.split__media .img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
.split__media .img-float {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; object-fit: cover;
  filter: grayscale(1); border: 10px solid var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.split__text p { color: var(--gray-700); }
.split__text strong { color: var(--ink); font-weight: 500; }
.signature {
  font-family: var(--serif); font-style: italic; font-size: 24px;
  color: var(--ink) !important; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--gray-300);
}

/* Visión & Misión */
.vm { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-100); }
.vm__media { background-size: cover; background-position: center; filter: grayscale(1); min-height: 520px; }
.vm__content { padding: clamp(60px, 8vw, 110px) clamp(24px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; gap: 56px; }
.vm__item { position: relative; padding-left: 70px; }
.vm__num { position: absolute; left: 0; top: 2px; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gray-300); }
.vm__item h3 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin-bottom: 14px; }
.vm__item p { color: var(--gray-700); margin: 0; }

/* Qué ofrecemos */
.offer { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 24px; }
.offer__card {
  border: 1px solid var(--gray-300); padding: 44px 36px; transition: all .3s ease; background: var(--white);
}
.offer__card:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: translateY(-4px); }
.offer__card:hover p { color: rgba(255,255,255,.75); }
.offer__card:hover .offer__icon { border-color: rgba(255,255,255,.4); }
.offer__card:hover svg { stroke: var(--white); }
.offer__icon { width: 60px; height: 60px; border: 1px solid var(--gray-300); border-radius: 50%; display: grid; place-items: center; margin-bottom: 28px; transition: border-color .3s; }
.offer__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.offer__card h3 { font-size: 15px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px; }
.offer__card p { color: var(--gray-700); font-size: 15px; margin: 0; transition: color .3s; }
.offer__img { background-size: cover; background-position: center; filter: grayscale(1); min-height: 380px; }

/* Áreas */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.area {
  padding: 40px 30px 44px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background .3s ease;
}
.area:hover { background: rgba(255,255,255,.05); }
.area__n { display: block; font-family: var(--serif); font-size: 18px; color: rgba(255,255,255,.4); margin-bottom: 38px; }
.area h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 16px; min-height: 2.3em; }
.area p { font-size: 14px; color: rgba(255,255,255,.65); margin: 0; }

/* Equipo */
.team { display: grid; gap: 32px; }
.team--lead { grid-template-columns: repeat(3, 1fr); margin-bottom: 64px; }
.team--assist { grid-template-columns: repeat(4, 1fr); padding-top: 56px; border-top: 1px solid var(--gray-300); }
.member { margin: 0; text-align: center; }
.member__photo { overflow: hidden; aspect-ratio: 4/5; background: var(--gray-100); margin-bottom: 22px; }
.member--sm .member__photo { aspect-ratio: 1; border-radius: 50%; width: 170px; margin: 0 auto 20px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1); transition: filter .5s ease, transform .6s ease; }
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }
.member h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 6px; }
.member--sm h3 { font-size: 21px; }
.member p { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); margin: 0; }
.member--sm p { letter-spacing: .06em; text-transform: none; font-size: 13px; max-width: 220px; margin: 0 auto; line-height: 1.5; }

/* CTA */
.cta { position: relative; background-size: cover; background-position: center; color: var(--white); text-align: center; padding: clamp(90px, 12vw, 150px) 0; }
.cta::before { content: ''; position: absolute; inset: 0; background: inherit; filter: grayscale(1); }
.cta__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.cta__content { position: relative; max-width: 760px; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 18px; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 36px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__lead { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gray-700); margin-bottom: 40px; }
.contact__list { list-style: none; padding: 0; margin: 0; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--gray-300); }
.contact__list li:last-child { border-bottom: 1px solid var(--gray-300); }
.contact__list svg { flex: none; width: 20px; height: 20px; margin-top: 4px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__form { background: var(--gray-100); padding: clamp(28px, 4vw, 48px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; flex: 1; }
.field-row { display: flex; gap: 20px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-700); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--gray-300);
  background: transparent; color: var(--ink); border-radius: 0; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); }
.form__ok { margin: 16px 0 0; font-size: 14px; color: var(--gray-700); }

/* Footer */
.footer { background: var(--black); color: rgba(255,255,255,.55); padding: 40px 0; font-size: 13px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__logo { height: 54px; width: auto; }
.footer p { margin: 0; }

/* WhatsApp */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--black);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; fill: var(--white); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer__img { grid-column: 1 / -1; min-height: 280px; }
  .team--assist { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s;
  }
  .nav__links a:not(.btn) { color: var(--white) !important; font-size: 22px; font-family: var(--serif); letter-spacing: .02em; }
  .nav__links .btn { background: var(--white) !important; color: var(--black) !important; }
  .nav--open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav--open .nav__toggle span { background: var(--white) !important; }
  .nav--open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
  .nav--open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }
  .nav__toggle { z-index: 2; }
  .nav__logo { position: relative; z-index: 2; }
  .nav--open .logo--light { display: block !important; }
  .nav--open .logo--dark { display: none !important; }
  .nav__logo img { height: 42px; }

  .split, .vm, .contact { grid-template-columns: 1fr; }
  .vm__media { min-height: 300px; }
  .team--lead { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .offer, .areas { grid-template-columns: 1fr; }
  .area h3 { min-height: 0; }
  .area__n { margin-bottom: 18px; }
  .field-row { flex-direction: column; gap: 0; }
  .vm__item { padding-left: 54px; }
  .vm__num { font-size: 32px; }
  .member--sm .member__photo { width: 140px; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}
