:root {
  --navy: #071d33;
  --navy-2: #102c47;
  --gold: #c48e34;
  --gold-dark: #95651d;
  --ink: #243447;
  --muted: #5b6b79;
  --line: #dfe5e9;
  --soft: #f4f6f7;
  --cream: #faf7f1;
  --white: #fff;
  --shadow: 0 18px 48px rgba(7, 29, 51, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.68; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-2); font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.16; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 5.7vw, 5rem); letter-spacing: -.035em; }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 3.5vw, 3.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: relative; z-index: 10; border-bottom: 3px solid var(--gold); background: var(--navy); color: var(--white); }
.nav { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; line-height: 1.15; text-decoration: none; }
.brand span { display: block; margin-top: 6px; color: #ddb360; font-family: Arial, Helvetica, sans-serif; font-size: .63rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 25px; }
nav a { position: relative; color: rgba(255,255,255,.86); font-size: .86rem; text-decoration: none; }
nav > a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; background: var(--gold); content: ""; opacity: 0; transform: scaleX(.4); transition: .18s ease; }
nav > a:hover, nav > a.active { color: var(--white); }
nav > a:hover::after, nav > a.active::after { opacity: 1; transform: scaleX(1); }
.lang { display: inline-flex; margin-left: 5px; align-items: center; gap: 6px; white-space: nowrap; }
.lang a, .lang strong { color: var(--white); font-size: .76rem; text-decoration: none; }
.lang strong { color: #ddb360; }

.hero { position: relative; overflow: hidden; padding: 92px 0 96px; background: linear-gradient(120deg, var(--cream), #eef2f3); }
.hero::before { position: absolute; top: -220px; right: -130px; width: 520px; height: 520px; border: 1px solid rgba(196,142,52,.25); border-radius: 50%; content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: 80px; }
.hero-copy h1 { max-width: 770px; }
.hero-copy .lead { max-width: 690px; }
.eyebrow { margin-bottom: 19px; color: var(--gold-dark); font-size: .71rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lead { margin-bottom: 30px; color: var(--muted); font-size: 1.08rem; }
.buttons, .social-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 6px; font-size: .83rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--navy-2); color: var(--white); }
.btn.secondary { border-color: #bcc6cd; background: var(--white); color: var(--navy-2); }
.btn.whatsapp { background: #1f7a50; color: var(--white); }
.btn.linkedin { background: #0a66c2; color: var(--white); }
.btn.light { background: var(--white); color: var(--navy); }

.portrait-wrap { position: relative; overflow: hidden; border-radius: 12px; background: var(--navy); box-shadow: var(--shadow); }
.portrait-photo { min-height: 390px; background-color: #d9dee1; background-image: url("foto.png"); background-position: center 20%; background-size: cover; }
.portrait-caption { padding: 23px 25px; border-top: 3px solid var(--gold); color: var(--white); }
.portrait-caption strong, .portrait-caption span { display: block; }
.portrait-caption strong { margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; }
.portrait-caption span { color: rgba(255,255,255,.68); font-size: .74rem; }

.section { padding: 92px 0; }
.alt { background: var(--soft); }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.intro-grid { align-items: start; }
.text p { color: var(--muted); }
.text-link { display: inline-block; margin-top: 8px; color: var(--gold-dark); font-size: .86rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section-heading { display: flex; margin-bottom: 38px; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { min-height: 220px; padding: 27px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.card h3 { margin-bottom: 14px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 70px; }
.contact-grid > div:first-child > p:last-child { color: var(--muted); }
.contact-card { padding: 30px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--white); box-shadow: 0 12px 35px rgba(7,29,51,.08); }
.contact-row { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:first-child { padding-top: 0; }
.contact-row span { color: var(--gold-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-row a, .contact-row strong { overflow-wrap: anywhere; color: var(--navy-2); font-size: .93rem; font-weight: 700; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.social-buttons { margin-top: 25px; }

.page-hero { padding: 78px 0; background: linear-gradient(120deg, var(--cream), #eef2f3); }
.page-hero.compact { padding: 78px 0; }
.page-title { max-width: 900px; }
.page-title.narrow { margin-left: max(20px, calc((100% - 1120px) / 2)); }
.page-title h1 { margin-bottom: 18px; }
.page-title .lead { max-width: 760px; margin-bottom: 0; }

.about-layout { display: grid; grid-template-columns: 320px 1fr; align-items: start; gap: 80px; }
.profile-panel { position: sticky; top: 30px; overflow: hidden; border-radius: 10px; background: var(--navy); box-shadow: var(--shadow); }
.about-photo { min-height: 375px; }
.profile-copy { padding: 24px; color: var(--white); }
.profile-copy > strong, .profile-copy > span { display: block; }
.profile-copy > strong { margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.profile-copy > span { color: rgba(255,255,255,.67); font-size: .74rem; }
.profile-copy .text-link { margin-top: 20px; color: #e2b45f; }
.about-content { max-width: 720px; }
.about-content > h2:not(:first-child) { margin-top: 58px; }
.about-content > p { color: var(--muted); }
.aboutbox { margin: 44px 0; padding: 28px 30px; border-left: 4px solid var(--gold); background: var(--cream); }
.aboutbox h2 { margin-bottom: 12px; font-size: 1.7rem; }
.aboutbox p { margin-bottom: 0; color: var(--muted); }
.timeline { display: grid; margin: 16px 0 36px; gap: 0; border-top: 1px solid var(--line); }
.timeline > div { display: grid; grid-template-columns: 125px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline strong { color: var(--gold-dark); font-size: .82rem; }
.timeline span { color: var(--muted); }
.timeline small { opacity: .78; }

.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service-card { grid-column: span 2; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 8px 28px rgba(7,29,51,.05); }
.service-card:nth-child(7) { grid-column: 2 / span 2; }
.service-card:nth-child(8) { grid-column: 4 / span 2; }
.service-card > span { color: var(--gold-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.service-card h2 { margin: 42px 0 14px; font-size: 1.42rem; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.cta-strip { padding: 65px 0; background: var(--navy); color: var(--white); }
.cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.cta-inner .eyebrow { color: #deb15b; }
.cta-inner h2 { margin-bottom: 0; color: var(--white); }

footer { padding: 26px 0; background: #041525; color: rgba(255,255,255,.68); font-size: .76rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }

.error-page { display: grid; min-height: 100vh; place-items: center; background: linear-gradient(120deg, var(--cream), #eef2f3); }
.error-page main { width: min(620px, calc(100% - 40px)); }
.error-card { padding: 55px; border-top: 4px solid var(--gold); border-radius: 10px; background: var(--white); box-shadow: var(--shadow); }
.error-card h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.error-card p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 900px) {
  .nav { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 20px; }
  nav { width: 100%; justify-content: space-between; gap: 16px; }
  .hero-grid { grid-template-columns: 1fr 300px; gap: 42px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { gap: 45px; }
  .about-layout { grid-template-columns: 280px 1fr; gap: 45px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(7), .service-card:nth-child(8) { grid-column: auto; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 30px, 1120px); }
  .brand { font-size: 1.25rem; }
  nav { flex-wrap: wrap; justify-content: flex-start; }
  nav a { font-size: .78rem; }
  .lang { margin-left: auto; }
  .hero { padding: 62px 0 70px; }
  .hero-grid, .two-col, .contact-grid, .about-layout { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 390px; }
  .portrait-photo { min-height: 400px; }
  .section { padding: 68px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .cards, .services-grid { grid-template-columns: 1fr; }
  .card, .service-card { min-height: auto; }
  .service-card h2 { margin-top: 28px; }
  .contact-card { padding: 25px 21px; }
  .contact-row { grid-template-columns: 1fr; gap: 5px; }
  .page-hero, .page-hero.compact { padding: 62px 0; }
  .profile-panel { position: static; max-width: 390px; }
  .timeline > div { grid-template-columns: 1fr; gap: 5px; }
  .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .error-card { padding: 38px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
