:root {
  --navy-900: #081a33;
  --navy-800: #0c2447;
  --navy-700: #14315c;
  --navy-600: #1c4177;
  --gold: #c9a227;
  --gold-light: #e0c569;
  --white: #ffffff;
  --off-white: #f6f7fa;
  --cream: #fbfaf7;
  --gray-600: #5b6472;
  --gray-800: #2a303c;
  --shadow: 0 20px 40px rgba(8, 26, 51, 0.12);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark {
  font-family: "Playfair Display", Georgia, serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(8, 26, 51, 0.06);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding: 20px 0;
}

.nav.scrolled {
  box-shadow: 0 10px 30px rgba(8, 26, 51, 0.1);
  padding: 13px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: var(--navy-900);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--navy-900);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--navy-600);
}

.nav-cta {
  border: 1px solid var(--navy-900);
  color: var(--navy-900) !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem !important;
  opacity: 1 !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--navy-900);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* ---------- Hero (white, quién soy) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  color: var(--gray-800);
  padding-top: 150px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 26, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 26, 51, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 80% 10%, black, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.hero-photo-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(8, 26, 51, 0.06);
}

.hero-photo-badge .badge-num {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-900);
  display: block;
}

.hero-photo-badge .badge-label {
  font-size: 0.72rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-700);
  border: 1px solid rgba(8, 26, 51, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.08;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(8, 26, 51, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-social a svg {
  width: 17px;
  height: 17px;
  stroke: var(--navy-900);
  transition: stroke 0.2s ease;
}

.hero-social a:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  transform: translateY(-2px);
}

.hero-social a:hover svg {
  stroke: var(--gold-light);
}

.hero-role {
  font-size: 1.05rem;
  color: var(--navy-700);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-role .brand {
  color: var(--gold);
  font-weight: 700;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--gray-600);
  margin: 22px 0 34px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-900);
  box-shadow: 0 12px 24px rgba(201, 162, 39, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(201, 162, 39, 0.38);
}

.btn-outline {
  border: 1px solid rgba(8, 26, 51, 0.25);
  color: var(--navy-900);
}

.btn-outline:hover {
  background: rgba(8, 26, 51, 0.06);
  border-color: rgba(8, 26, 51, 0.4);
}

/* ---------- Credentials (white, still "quién soy") ---------- */
.credentials {
  background: var(--cream);
  padding-top: 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.cred-col h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cred-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  color: var(--gray-600);
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
}

.cred-list li strong {
  color: var(--navy-900);
  font-weight: 600;
}

/* ---------- Wave divider ---------- */
.divider {
  display: block;
  line-height: 0;
  width: 100%;
}

.divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ---------- Section shared ---------- */
section {
  padding: 110px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--navy-900);
  margin-bottom: 18px;
  line-height: 1.2;
}

.section-head p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Services (navy) ---------- */
.services {
  background: var(--navy-900);
  color: var(--white);
}

.services .section-head h2 {
  color: var(--white);
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-top-color: var(--gold);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  stroke: var(--gold-light);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
}

.services-grid .service-card:nth-child(7) {
  grid-column: 2;
}

/* ---------- Capacitaciones ---------- */
.capacitaciones {
  background: var(--off-white);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

.cap-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(8, 26, 51, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(8, 26, 51, 0.16);
}

.cap-img {
  width: 100%;
  background: var(--off-white);
}

.cap-img img {
  width: 100%;
  height: auto;
  display: block;
}

.cap-card > .cap-org,
.cap-card > h3,
.cap-card > p {
  padding-left: 28px;
  padding-right: 28px;
}

.cap-card > .cap-org {
  margin-top: 22px;
}

.cap-card > p {
  margin-bottom: 26px;
}

.cap-card .cap-org {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.cap-card h3 {
  font-size: 1.05rem;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 10px;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.cap-tags-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 36px;
  border: 1px solid rgba(8, 26, 51, 0.06);
}

.cap-tags-wrap h4 {
  font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 18px;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cap-tags span {
  font-size: 0.84rem;
  color: var(--navy-800);
  background: var(--off-white);
  border: 1px solid rgba(8, 26, 51, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
}

.cap-more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--off-white);
}

.contact-panel {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: 24px;
  padding: 64px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
  max-width: 460px;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateX(4px);
}

.contact-link .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-light);
}

.contact-link .label {
  font-weight: 600;
  font-size: 0.98rem;
}

.contact-link .sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact-link.primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
}

.contact-link.primary .icon {
  background: rgba(8, 26, 51, 0.15);
}

.contact-link.primary .icon svg {
  stroke: var(--navy-900);
}

.contact-link.primary .label,
.contact-link.primary .sub {
  color: var(--navy-900);
}

.contact-link.primary .sub {
  color: rgba(8, 26, 51, 0.7);
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.55);
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-inner .foot-brand {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.footer-inner .foot-brand span {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-photo-wrap {
    max-width: 340px;
    margin: 0 auto;
  }
  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-name-row {
    justify-content: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card:nth-child(7) {
    grid-column: auto;
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 44px 30px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    color: var(--white);
  }
  .nav-toggle {
    display: flex;
  }
  .services-grid,
  .cap-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 80px 0;
  }
  .contact-panel {
    padding: 34px 22px;
  }
  .divider svg {
    height: 50px;
  }
}
