:root {
  --navy: #17375f;
  --navy-deep: #102a49;
  --blue: #346aa0;
  --cream: #f7f4ed;
  --warm-white: #fffdf8;
  --sand: #e4d9c4;
  --ink: #1c2c3d;
  --muted: #607084;
  --line: rgba(23, 55, 95, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--warm-white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; transform: translateY(-200%); background: var(--navy); color: #fff; padding: 10px 18px; z-index: 30; }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 92px; padding: 0 clamp(24px, 6vw, 92px); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--navy); color: var(--warm-white); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 260px; }
.brand-logo { width: 47px; height: 47px; object-fit: contain; }
.brand strong, .footer-brand strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: .23em; line-height: 1.2; }
.brand small, .footer-brand span { display: block; margin-top: 3px; color: #dfe7ec; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: clamp(18px, 2.5vw, 37px); font-size: 13px; }
nav a { opacity: .85; transition: opacity .2s; }
nav a:hover { opacity: 1; }

.button { min-height: 50px; padding: 14px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 2px; font-weight: 600; font-size: 13px; letter-spacing: .015em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--blue); }
.button-small { min-height: 39px; padding: 9px 18px; background: transparent; color: #fff; border-color: rgba(255,255,255,.55); font-size: 12px; }
.button-small:hover { background: #fff; color: var(--navy); }
.button svg { width: 18px; fill: currentColor; }

.hero { min-height: 662px; padding: 87px clamp(24px, 10vw, 155px) 76px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 80px; align-items: center; background: var(--navy); color: var(--warm-white); }
.hero::after { content: ""; position: absolute; width: 670px; height: 670px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); left: -320px; bottom: -485px; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.eyebrow { margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: #dce6ec; }
.eyebrow span { width: 27px; height: 1px; margin: 0 10px 4px 0; display: inline-block; background: #dec9a1; }
.eyebrow-dark { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
h1 { max-width: 690px; margin-bottom: 25px; font-size: clamp(48px, 5.35vw, 78px); }
h1 em { color: #ddc99d; font-style: italic; }
.hero-text { max-width: 540px; margin-bottom: 32px; font-size: 17px; line-height: 1.65; color: #e0e7eb; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero .button { background: #f9f5e9; border-color: #f9f5e9; color: var(--navy); }
.hero .button:hover { background: #ddc99d; }
.text-link { font-size: 13px; font-weight: 600; color: #fff; }
.text-link span { padding-left: 5px; color: #dec99d; font-size: 19px; }
.hero-proof { display: flex; gap: 28px; margin-top: 62px; }
.hero-proof div { padding-right: 28px; border-right: 1px solid rgba(255,255,255,.25); }
.hero-proof div:last-child { padding-right: 0; border: 0; }
.hero-proof strong { display: block; color: #f7eedb; font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.hero-proof span { display: block; margin-top: 4px; font-size: 11px; color: #cad6df; }
.portrait-area { position: relative; min-height: 478px; z-index: 1; }
.arch { position: absolute; width: 440px; height: 500px; border-radius: 225px 225px 0 0; }
.arch-one { left: 5%; bottom: 1px; background: #285787; }
.arch-two { left: 13%; bottom: -1px; border: 1px solid rgba(255,255,255,.35); transform: translate(29px, -26px); }
.portrait-frame { position: absolute; z-index: 1; width: 378px; height: 458px; bottom: 0; left: 11%; overflow: hidden; border-radius: 190px 190px 0 0; background: #d6dfdf; }
.portrait-frame img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-frame img[src$="carlos-otero.jpg"] { color: transparent; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(148deg, #dce5e3, #849eab); color: rgba(23,55,95,.8); font-family: var(--serif); font-size: 90px; }
.portrait-caption { position: absolute; z-index: 3; display: flex; align-items: center; left: -10%; bottom: 57px; color: #fff; }
.caption-line { width: 39px; height: 1px; margin-right: 12px; background: #dfcca5; }
.portrait-caption p { margin: 0; font-size: 11px; line-height: 1.55; }
.portrait-caption strong { font-size: 12px; }

.section { padding-right: clamp(24px, 10vw, 155px); padding-left: clamp(24px, 10vw, 155px); }
.intro { min-height: 320px; padding-top: 93px; padding-bottom: 74px; display: grid; grid-template-columns: .25fr 1.05fr .8fr; gap: 60px; align-items: start; }
.section-number { font-size: 12px; color: var(--blue); letter-spacing: .15em; padding-top: 7px; }
h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(34px, 3.55vw, 53px); }
.intro h2 { max-width: 590px; }
.intro-text { max-width: 390px; padding-top: 41px; color: var(--muted); font-size: 15px; }

.services { padding-top: 83px; padding-bottom: 111px; background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 46px; }
.section-heading h2 { max-width: 645px; }
.section-heading > p { max-width: 300px; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 495px; padding: 27px 27px 25px; display: flex; flex-direction: column; color: #fff; }
.service-sell { background: var(--navy); }
.service-buy { background: #346a9d; }
.service-invest { background: #798fa0; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.72); font-size: 12px; }
.service-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; font-size: 17px; }
.service-kicker { margin: 54px 0 10px; color: #e8d6ae; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.service-card h3 { min-height: 98px; margin-bottom: 15px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.13; letter-spacing: -.025em; }
.service-card > p:not(.service-kicker) { min-height: 65px; margin-bottom: 17px; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.5; }
.service-card ul { padding: 0; margin: 0 0 20px; list-style: none; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.55; }
.service-card li { margin: 5px 0; padding-left: 13px; position: relative; }
.service-card li::before { content: "·"; position: absolute; left: 0; color: #e9d5aa; font-size: 17px; line-height: 12px; }
.service-card a { padding-top: 15px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.27); font-size: 12px; font-weight: 700; }
.service-card a span { float: right; color: #e8d6ae; font-size: 17px; line-height: 14px; }

.process { padding-top: 116px; padding-bottom: 116px; display: grid; grid-template-columns: .9fr 1fr; gap: clamp(60px, 10vw, 180px); background: var(--warm-white); }
.process-intro h2 { margin-bottom: 22px; }
.process-intro > p:not(.eyebrow) { max-width: 403px; margin-bottom: 30px; color: var(--muted); font-size: 15px; }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { color: #fff; background: var(--navy); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { padding: 25px 0 29px; display: grid; grid-template-columns: 45px 1fr; gap: 15px; border-bottom: 1px solid var(--line); }
.process-list span { color: var(--blue); font-size: 13px; font-weight: 700; }
.process-list h3 { margin-bottom: 6px; color: var(--navy); font-size: 17px; font-weight: 700; }
.process-list p { margin: 0; color: var(--muted); font-size: 13px; }

.investment { min-height: 440px; padding: 83px clamp(24px, 10vw, 155px); position: relative; overflow: hidden; background: linear-gradient(115deg, #102d4f, #1d4e7d); color: #fff; }
.investment::after { content: ""; position: absolute; right: -170px; top: -125px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 80px rgba(255,255,255,.03); }
.investment-content { position: relative; z-index: 1; max-width: 730px; }
.investment h2 { max-width: 690px; color: #fff; font-size: clamp(37px, 4vw, 57px); }
.investment-content > p:not(.eyebrow) { max-width: 595px; margin: 21px 0 30px; color: #d7e1e9; font-size: 15px; }
.button-light { color: var(--navy); background: #f9f5e9; border-color: #f9f5e9; }
.investment-stamp { position: absolute; z-index: 1; right: clamp(34px, 9vw, 150px); top: 94px; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); text-align: center; font-size: 10px; line-height: 1.2; letter-spacing: .12em; }
.investment-stamp i { position: absolute; right: -14px; bottom: -18px; color: #dfcb9d; font-family: var(--serif); font-style: normal; font-size: 51px; }

.credentials { min-height: 180px; padding-top: 41px; padding-bottom: 41px; display: grid; grid-template-columns: 1.1fr 1.3fr .65fr; align-items: center; gap: 50px; border-bottom: 1px solid var(--line); }
.api-logo-box { width: 205px; position: relative; }
.api-logo-box img { position: relative; z-index: 2; width: 100%; height: auto; }
.api-logo-box span { position: absolute; inset: 0; display: grid; place-items: center; color: #1476bb; text-align: center; font-weight: 700; line-height: 1.1; letter-spacing: .05em; }
.credentials p { margin: 0; color: var(--muted); font-size: 13px; }
.credentials p strong { color: var(--navy); font-size: 17px; line-height: 1.35; }
.credential-meta { display: block; margin: 7px 0; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.credentials > a { justify-self: end; color: var(--navy); font-size: 13px; font-weight: 700; }
.credentials > a span { padding-left: 6px; color: var(--blue); }

.contact { padding-top: 105px; padding-bottom: 101px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 100px; background: var(--cream); }
.contact h2 { max-width: 665px; }
.contact-action { padding-top: 34px; }
.contact-action p { max-width: 285px; margin-bottom: 21px; color: var(--muted); font-size: 14px; }
.contact-action .button { width: 100%; }
.phone { display: block; margin-top: 17px; color: var(--navy); text-align: center; font-size: 13px; font-weight: 600; }
.email { display: block; margin-top: 7px; color: var(--blue); text-align: center; font-size: 13px; font-weight: 600; }
footer { min-height: 121px; padding: 31px clamp(24px, 10vw, 155px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--navy-deep); color: #fff; }
.footer-brand strong { font-size: 15px; }
.footer-brand span { font-size: 8px; }
footer p, footer a { margin: 0; color: #c4d1dc; font-size: 11px; }
.whatsapp-float { width: 51px; height: 51px; position: fixed; z-index: 10; bottom: 23px; right: 23px; display: grid; place-items: center; background: #2a9167; border-radius: 50%; box-shadow: 0 5px 19px rgba(0,0,0,.22); color: #fff; font-size: 30px; line-height: 1; transform: rotate(-21deg); }

/* Escritorio: una escala tipográfica más legible sin alterar la composición móvil. */
@media (min-width: 931px) {
  body { font-size: 18px; }
  .site-header { height: 118px; }
  .brand { gap: 15px; min-width: 335px; }
  .brand-logo { width: 68px; height: 68px; }
  .brand strong { font-size: 27px; letter-spacing: .21em; }
  .brand small { margin-top: 6px; font-size: 12px; }
  nav { font-size: 17px; }
  .button { min-height: 61px; padding: 17px 28px; font-size: 17px; }
  .button-small { min-height: 51px; padding: 13px 24px; font-size: 15px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: clamp(62px, 6vw, 94px); }
  h2 { font-size: clamp(45px, 4.25vw, 64px); }
  .hero { min-height: 755px; }
  .hero-text { max-width: 620px; font-size: 22px; line-height: 1.65; }
  .text-link { font-size: 17px; }
  .text-link span { font-size: 23px; }
  .hero-proof { gap: 36px; margin-top: 67px; }
  .hero-proof div { padding-right: 36px; }
  .hero-proof strong { font-size: 31px; }
  .hero-proof span { font-size: 14px; }
  .intro-text { font-size: 19px; line-height: 1.72; }
  .section-heading > p { font-size: 18px; line-height: 1.65; }
  .service-card { min-height: 560px; padding: 32px; }
  .service-kicker { margin-top: 64px; font-size: 13px; }
  .service-card h3 { min-height: 120px; font-size: 35px; }
  .service-card > p:not(.service-kicker) { min-height: 88px; font-size: 16px; line-height: 1.67; }
  .service-card ul { font-size: 14px; line-height: 1.68; }
  .service-card a { font-size: 15px; }
  .process-intro > p:not(.eyebrow) { font-size: 18px; line-height: 1.67; }
  .process-list li { grid-template-columns: 52px 1fr; padding: 30px 0 34px; }
  .process-list h3 { font-size: 22px; }
  .process-list p { font-size: 16px; line-height: 1.65; }
  .investment-content > p:not(.eyebrow) { font-size: 18px; line-height: 1.67; }
  .credentials p { font-size: 16px; }
  .credentials p strong { font-size: 22px; }
  .contact-action p { font-size: 18px; line-height: 1.65; }
  .phone, .email { font-size: 16px; }
  footer p, footer a { font-size: 13px; }
}

@media (max-width: 930px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 70px; }
  .portrait-area { width: 430px; max-width: 100%; min-height: 405px; margin: 0 auto; }
  .portrait-frame { width: 335px; height: 405px; left: 11%; }
  .arch { width: 395px; height: 430px; }
  .intro { grid-template-columns: 55px 1fr; gap: 26px; }
  .intro-text { grid-column: 2; padding-top: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; }
  .service-card h3, .service-card > p:not(.service-kicker) { min-height: auto; }
  .process { grid-template-columns: 1fr; gap: 55px; }
  .credentials { grid-template-columns: .8fr 1.3fr; }
  .credentials > a { justify-self: start; grid-column: 2; }
  .contact { gap: 40px; }
  .investment-stamp { display: none; }
}
@media (max-width: 620px) {
  .site-header { height: 75px; padding: 0 20px; }
  .brand { min-width: 0; }
  .brand-logo { width: 40px; height: 40px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 7px; }
  .button-small { padding: 8px 11px; font-size: 11px; }
  .hero { min-height: auto; padding: 55px 24px 62px; gap: 34px; }
  h1 { font-size: 43px; line-height: 1.08; }
  .hero-text { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-proof { gap: 14px; margin-top: 39px; }
  .hero-proof div { padding-right: 14px; }
  .hero-proof strong { font-size: 20px; }
  .hero-proof span { font-size: 9px; }
  /* Ventana áurea: 258 × 418 px (proporción 1 : 1,62). */
  .portrait-area { width: 258px; min-height: 418px; margin: 3px auto 0; }
  .portrait-area::before {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 1px solid rgba(222, 201, 157, .55);
    pointer-events: none;
  }
  .arch { display: none; }
  .portrait-frame {
    width: 258px;
    height: 418px;
    left: 0;
    bottom: 0;
    padding: 9px 9px 0;
    overflow: hidden;
    border: 1px solid #e2ce9f;
    border-radius: 129px 129px 0 0;
    background: #f5efe3;
    box-shadow: 12px 15px 0 rgba(9, 28, 49, .18);
  }
  .portrait-frame img { height: calc(100% - 0px); border-radius: 120px 120px 0 0; object-position: center top; }
  .portrait-fallback { inset: 9px 9px 0; border-radius: 120px 120px 0 0; }
  .portrait-caption {
    left: -28px;
    bottom: 29px;
    padding: 10px 14px 10px 0;
    background: var(--navy);
  }
  .caption-line { width: 22px; margin-right: 9px; }
  .section { padding-left: 24px; padding-right: 24px; }
  .intro { padding-top: 62px; padding-bottom: 58px; grid-template-columns: 33px 1fr; gap: 13px; }
  h2 { font-size: 36px; }
  .services { padding-top: 62px; padding-bottom: 68px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 17px; }
  .service-card { min-height: 397px; padding: 23px; }
  .service-kicker { margin-top: 38px; }
  .process { padding-top: 68px; padding-bottom: 68px; }
  .investment { min-height: auto; padding: 65px 24px; }
  .credentials { padding-top: 36px; padding-bottom: 36px; grid-template-columns: 1fr; gap: 26px; }
  .credentials > a { grid-column: auto; }
  .contact { padding-top: 68px; padding-bottom: 70px; grid-template-columns: 1fr; gap: 0; }
  .contact-action { padding-top: 20px; }
  footer { padding: 28px 24px; display: block; }
  footer p { margin: 16px 0 5px; }
  footer a { font-size: 11px; }
}
