:root {
  --navy: #102945;
  --navy-deep: #071a2d;
  --navy-soft: #173a5f;
  --gold: #b69a61;
  --gold-light: #d8c7a0;
  --paper: #f4f2ee;
  --white: #ffffff;
  --ink: #142130;
  --muted: #68717d;
  --line: rgba(16, 41, 69, 0.14);
  --shadow: 0 24px 60px rgba(10, 26, 45, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(16,41,69,.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 35px rgba(7,26,45,.08); }
.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 24px;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand-logo { width: 205px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 28px; align-items: center; }
.main-nav a {
  position: relative;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-call {
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.header-call:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(7,26,45,.98), rgba(16,41,69,.96)),
    radial-gradient(circle at 80% 20%, rgba(182,154,97,.22), transparent 36%);
  color: #fff;
  padding: 88px 0 82px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, black, transparent 85%);
  z-index: -1;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .32; z-index: -1; }
.hero-glow-one { width: 420px; height: 420px; background: rgba(182,154,97,.18); right: -150px; top: -170px; }
.hero-glow-two { width: 240px; height: 240px; border: 1px solid rgba(216,199,160,.28); left: 48%; bottom: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 850;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--gold); }
.hero h1, .section-heading h2, .succession-copy h2, .profile-card h2, .contact-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.hero h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: .94; margin: 24px 0 16px; max-width: 780px; font-weight: 500; }
.hero-role { color: var(--gold-light); font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.hero-intro { color: rgba(255,255,255,.82); font-size: 1.1rem; margin: 0 0 30px; }
.hero-credentials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-credentials span {
  border: 1px solid rgba(216,199,160,.32);
  background: rgba(255,255,255,.04);
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  font-size: .86rem;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  font-size: .93rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 30px rgba(182,154,97,.18); }
.btn-outline { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }

.hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(244,242,238,.98));
  color: var(--navy);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 35px 80px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.32);
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(182,154,97,.28);
  border-radius: 50%;
}
.hero-panel-top { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.hero-logo { width: min(100%, 270px); margin-inline: auto; }
.experience-number { font-family: Georgia, serif; color: var(--gold); font-size: 7rem; line-height: .95; margin-top: 24px; }
.experience-label { margin: 0 0 22px; color: var(--navy); font-weight: 850; font-size: 1rem; }
.hero-facts { display: grid; gap: 14px; }
.hero-facts > div { display: grid; gap: 2px; }
.fact-label { color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 800; }
.hero-facts strong { font-size: .95rem; }

.areas-section { margin-top: -26px; position: relative; z-index: 5; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(16,41,69,.08);
}
.area-chip { min-height: 110px; padding: 24px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--line); }
.area-chip:last-child { border-right: 0; }
.area-chip span { color: var(--gold); font-family: Georgia, serif; font-size: 1.25rem; }
.area-chip strong { color: var(--navy); font-size: .98rem; }

.section { padding: 105px 0; }
.section-heading { max-width: 770px; margin-bottom: 44px; }
.section-heading h2, .profile-card h2 { font-size: clamp(2.35rem, 4vw, 4.35rem); line-height: 1.04; color: var(--navy); margin: 16px 0 18px; font-weight: 500; }
.section-heading p { color: var(--muted); max-width: 650px; margin: 0; }
.services-section { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  position: relative;
  min-height: 210px;
  background: #fff;
  border: 1px solid rgba(16,41,69,.08);
  border-radius: var(--radius-md);
  padding: 25px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(10,26,45,.09); border-color: rgba(182,154,97,.45); }
.service-card.featured { grid-column: span 2; background: var(--navy); color: #fff; }
.service-card.featured::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(216,199,160,.22);
  right: -60px; bottom: -90px;
}
.service-index { color: var(--gold); font-family: Georgia, serif; font-size: 1rem; letter-spacing: .1em; margin-bottom: 48px; }
.service-card h3 { margin: 0; font-family: Georgia, serif; color: var(--navy); font-size: 1.45rem; line-height: 1.2; font-weight: 500; max-width: 300px; }
.service-card.featured h3 { color: #fff; font-size: 2rem; }
.service-card p { color: rgba(255,255,255,.72); margin: 10px 0 0; }

.succession-section { background: var(--navy); color: #fff; padding: 96px 0; overflow: hidden; }
.succession-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: center; }
.succession-mark {
  aspect-ratio: 1;
  max-width: 380px;
  border-radius: 50%;
  border: 1px solid rgba(216,199,160,.3);
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
}
.succession-mark::before, .succession-mark::after { content: ""; position: absolute; border-radius: 50%; inset: 20px; border: 1px solid rgba(255,255,255,.06); }
.succession-mark::after { inset: 42px; border-color: rgba(182,154,97,.12); }
.roman { font-family: Georgia, serif; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; color: var(--gold-light); }
.mark-text { letter-spacing: .3em; font-size: .72rem; color: rgba(255,255,255,.62); margin-top: 10px; }
.succession-copy h2 { font-size: clamp(3rem, 6vw, 5.7rem); line-height: .96; font-weight: 500; margin: 16px 0; }
.succession-lead { color: var(--gold-light); font-size: 1.25rem; font-weight: 750; }
.gold-rule { width: 72px; height: 2px; background: var(--gold); margin: 28px 0; }
.succession-copy > p:last-child { color: rgba(255,255,255,.7); max-width: 660px; }

.profile-section { background: #fff; }
.profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: stretch; }
.profile-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; background: #fff; }
.credentials-list { display: grid; gap: 12px; margin-top: 30px; }
.credential-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.credential-item:last-child { border-bottom: 0; }
.credential-item p { margin: 0; font-weight: 750; color: var(--navy); }
.credential-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(182,154,97,.12); flex: 0 0 auto; }
.profile-highlight {
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  min-height: 420px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.profile-highlight::before { content: ""; position: absolute; width: 270px; height: 270px; border: 1px solid rgba(216,199,160,.16); border-radius: 50%; right: -90px; top: -90px; }
.profile-highlight-inner { margin: auto; text-align: center; position: relative; z-index: 1; }
.profile-big { font-family: Georgia, serif; font-size: clamp(7rem, 14vw, 12rem); line-height: .75; color: var(--gold-light); display: block; }
.profile-small { text-transform: uppercase; letter-spacing: .26em; font-weight: 800; font-size: .72rem; color: rgba(255,255,255,.65); display: block; margin-top: 24px; }
.profile-highlight p { margin: 10px 0 0; font-size: 1.1rem; font-weight: 750; }

.contact-section { background: var(--navy-deep); color: #fff; padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.contact-copy h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .98; font-weight: 500; margin: 16px 0 12px; }
.contact-name { color: rgba(255,255,255,.7); margin: 0 0 30px; }
.contact-list { border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 30px; }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
a.contact-row:hover strong { color: var(--gold-light); }
.contact-label { color: rgba(255,255,255,.48); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; }
.contact-row strong { font-size: .95rem; transition: color .2s ease; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.24); color: #fff; }
.contact-logo-card { background: #fff; border-radius: 28px; padding: 32px; color: var(--navy); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.contact-logo-card img { width: min(100%, 360px); margin: 0 auto 24px; }
.contact-logo-text { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 6px; }
.contact-logo-text strong { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.contact-logo-text span { color: var(--muted); font-size: .86rem; }

.site-footer { background: #051321; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .84rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--gold-light); font-weight: 750; }

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  min-height: 52px;
  padding: 0 17px;
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(7,26,45,.26);
  font-weight: 850;
}

/* El contenido permanece visible sin JavaScript. Las animaciones son solo una mejora progresiva. */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.services-etc { margin: 18px 4px 0; color: var(--muted); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal, .js-ready .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 210px 1fr auto; gap: 14px; }
  .main-nav { gap: 18px; }
  .header-call { display: none; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 42px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { grid-column: span 2; }
  .succession-grid { gap: 45px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .header-inner { min-height: 78px; grid-template-columns: 1fr auto; }
  .brand-logo { width: 170px; }
  .menu-toggle {
    display: grid;
    width: 44px; height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0; right: 0;
    min-height: calc(100dvh - 78px);
    background: rgba(255,255,255,.99);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 28px 24px;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 62px 0 64px; }
  .hero-grid, .succession-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 650px; }
  .hero-panel { max-width: 560px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .area-chip:nth-child(2) { border-right: 0; }
  .area-chip:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .succession-mark { max-width: 300px; }
  .profile-highlight { min-height: 330px; }
  .contact-logo-card { max-width: 570px; }
  .floating-call { display: flex; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-logo { width: 150px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(2.85rem, 15vw, 4.6rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .hero-panel { padding: 22px; border-radius: 24px; }
  .experience-number { font-size: 5.6rem; }
  .areas-section { margin-top: -14px; }
  .areas-grid { grid-template-columns: 1fr; border-radius: 18px; }
  .area-chip { min-height: 82px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .area-chip:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; }
  .service-card { min-height: 170px; }
  .service-index { margin-bottom: 32px; }
  .succession-section { padding: 78px 0; }
  .succession-grid { gap: 42px; }
  .succession-mark { width: min(82vw, 280px); margin-inline: auto; }
  .profile-card { padding: 30px 24px; }
  .contact-section { padding: 78px 0 92px; }
  .contact-row { grid-template-columns: 1fr; gap: 3px; }
  .contact-logo-card { padding: 24px; border-radius: 22px; }
  .footer-inner { padding: 22px 0 88px; flex-direction: column; align-items: flex-start; }
  .floating-call { right: 12px; bottom: 12px; }
}
