:root {
  --navy: #1d2c51;
  --navy-deep: #131d38;
  --blue: #2a6aa8;
  --gold: #d6c28c;
  --ink: #1d1d1d;
  --mute: #55607a;
  --line: #dde3ea;
  --paper: #f2f5f7;
  --white: #fff;
  --font: "Poppins", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.15; margin: 0; color: var(--navy); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 16px 32px; border: 1.5px solid var(--gold); background: var(--gold); color: var(--navy-deep); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }
.btn--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--dark:hover { background: transparent; color: var(--navy); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); padding: 11px 22px; font-size: 12px; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); padding: 11px 22px; font-size: 12px; }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* Header: transparent, turns white + compact on scroll */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.topbar { color: #e4e9f5; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.18); transition: opacity .25s, height .3s; height: 38px; overflow: hidden; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 28px; height: 38px; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height .3s; }
.logo { position: relative; display: block; }
.logo img { height: 54px; width: auto; transition: height .3s; }
.logo .logo-c { display: none; }
.nav { display: flex; gap: 38px; align-items: center; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: #fff; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .m-only { display: none; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; height: 2px; width: 24px; background: #fff; position: absolute; left: 10px; transition: background .2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.overlay { position: fixed; inset: 0; background: rgba(10,15,30,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

.site-header.scrolled { background: #fff; box-shadow: 0 2px 18px rgba(19,29,56,.09); }
.site-header.scrolled .topbar { height: 0; border: 0; opacity: 0; }
.site-header.scrolled .bar { height: 66px; }
.site-header.scrolled .logo img { height: 40px; }
.site-header.scrolled .logo .logo-w { display: none; }
.site-header.scrolled .logo .logo-c { display: block; }
.site-header.scrolled .nav a { color: var(--navy); }
.site-header.scrolled .menu-btn span, .site-header.scrolled .menu-btn span::before, .site-header.scrolled .menu-btn span::after { background: var(--navy); }

/* Hero + parallax */
.parallax { position: absolute; inset: -18% 0; z-index: -2; background: var(--navy-deep) center / cover no-repeat; will-change: transform; }
.hero { position: relative; overflow: hidden; color: #fff; min-height: min(92vh, 780px); display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19,29,56,.94) 0%, rgba(19,29,56,.72) 48%, rgba(19,29,56,.2) 100%); }
.hero .wrap { padding-top: 190px; padding-bottom: 100px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 68px); font-weight: 600; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 48ch; margin: 28px 0 40px; font-size: 18px; font-weight: 300; color: #dbe1ee; }
.hero--page { min-height: 440px; }
.hero--page .wrap { padding-top: 170px; padding-bottom: 70px; }
.hero--page h1 { font-size: clamp(34px, 5vw, 58px); max-width: 18ch; }
.hero--page .sub { margin: 18px 0 0; font-size: 20px; color: var(--gold); font-weight: 500; }
.hero--page .lead { margin: 18px 0 0; }
.hero-in > * { opacity: 0; transform: translateY(26px); animation: up .9s var(--ease) forwards; }
.hero-in > *:nth-child(2) { animation-delay: .15s; }
.hero-in > *:nth-child(3) { animation-delay: .3s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* Sections */
section { padding: clamp(64px, 9vw, 124px) 0; }
.tint { background: var(--paper); }
h2.title { font-size: clamp(26px, 3.4vw, 42px); max-width: 22ch; }
.copy { max-width: 62ch; color: var(--mute); }

.statement { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.statement .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.statement .tag { font-size: 22px; font-weight: 500; color: var(--gold); padding-top: 8px; border-top: 2px solid var(--gold); display: inline-block; align-self: start; }
.statement h2 { color: #fff; font-size: clamp(22px, 2.8vw, 34px); font-weight: 400; line-height: 1.4; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .copy { margin-top: 24px; }

/* Image entrance */
.img-in { overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.img-in img { transform: scale(1.3); transition: transform 1.6s var(--ease); width: 100%; height: 100%; object-fit: cover; }
.img-in.in { clip-path: inset(0 0 0 0); }
.img-in.in img { transform: scale(1); }
.frame { position: relative; }
.frame .img-in { aspect-ratio: 4 / 3; }

/* Boxes with image background */
.bx { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-deep); }
.bx::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; transition: transform 1s var(--ease); }
.bx::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,29,56,.25) 0%, rgba(19,29,56,.9) 100%); transition: background .4s; }
.bx:hover::before { transform: scale(1.08); }
.bx h3, .bx h4 { color: #fff; }

.lines-head { max-width: 760px; margin-bottom: 52px; }
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.line { min-height: 400px; padding: 32px 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.line h3 { font-size: 20px; margin-bottom: 12px; position: relative; padding-top: 16px; }
.line h3::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--gold); transition: width .4s var(--ease); }
.line:hover h3::before { width: 90px; }
.line p { font-size: 14.5px; font-weight: 300; color: #dbe1ee; line-height: 1.6; }
.trust { margin-top: 56px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--navy); max-width: 28ch; padding-left: 20px; border-left: 3px solid var(--gold); }

/* Investment */
.invest { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 0; }
.invest::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19,29,56,.96) 0%, rgba(29,44,81,.88) 55%, rgba(29,44,81,.7) 100%); }
.invest .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.invest .text { padding-bottom: clamp(64px, 9vw, 120px); }
.invest h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 26px; }
.invest p { color: #d3daea; max-width: 60ch; font-weight: 300; }
.invest img { max-height: 560px; width: auto; margin: 0 auto; }
.pop { opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.pop.in { opacity: 1; transform: none; }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 8vw, 100px) 0; color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(29,44,81,.82); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); color: #fff; max-width: 20ch; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-img { margin-top: 64px; }
.about-img .img-in { aspect-ratio: 5 / 2; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { position: relative; isolation: isolate; overflow: hidden; padding: 56px 40px; color: #fff; background: var(--navy); display: flex; align-items: baseline; gap: 22px; }
.stat + .stat { background: var(--blue); }
.stat .parallax { inset: -30% 0; background-size: 70% auto; background-position: 100% 0; opacity: .5; background-color: transparent; }
.stat .num { font-size: clamp(56px, 7vw, 92px); font-weight: 600; line-height: 1; color: var(--gold); white-space: nowrap; }
.stat p { font-size: 17px; line-height: 1.4; max-width: 14ch; }
.philo-head { margin-bottom: 52px; }
.philo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.philo .bx { min-height: 430px; padding: 36px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.philo h3 { font-size: 21px; margin-bottom: 14px; padding-top: 16px; position: relative; }
.philo h3::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--gold); }
.philo p { font-size: 14.5px; font-weight: 300; color: #dbe1ee; line-height: 1.65; }

/* Servicios */
.value { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 88px); }
.value h3 { font-size: 22px; margin-bottom: 16px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .img-in { min-height: 340px; }
.svc .img-in img { position: absolute; inset: 0; }
.svc .img-in { position: relative; }
.svc .body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.svc:nth-child(even) .img-in { order: 2; clip-path: inset(0 0 0 100%); }
.svc:nth-child(even) .img-in.in { clip-path: inset(0); }
.svc .n, .more .n { font-size: 14px; color: var(--blue); font-weight: 600; }
.svc h3 { font-size: clamp(24px, 2.8vw, 32px); }
.svc p { color: var(--mute); max-width: 44ch; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px var(--gutter) 0; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; }
.more .item { min-height: 300px; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.more .n { color: var(--gold); display: block; margin-bottom: 10px; }
.more h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.more p { font-weight: 300; color: #dbe1ee; max-width: 44ch; }
.svc-end { height: 64px; }
.standard { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.standard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19,29,56,.45) 0%, rgba(19,29,56,.85) 50%, rgba(19,29,56,.95) 100%); }
.standard .in { margin-left: auto; max-width: 560px; }
.standard h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 18px; }
.standard h3 { color: var(--gold); font-size: 19px; margin-bottom: 14px; font-weight: 500; }
.standard p { color: #d3daea; font-weight: 300; }

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -70px; position: relative; z-index: 2; }
.card { min-height: 250px; padding: 34px 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
.card h4 { font-size: 14px; color: var(--gold); font-weight: 500; }
.card .val { font-size: 20px; font-weight: 500; color: #fff; margin-bottom: 18px; word-break: break-word; }
.contact-sec { padding-top: clamp(56px, 7vw, 96px); }
.form-wrap { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; border: 1px solid var(--line); overflow: hidden; }
.form-side { padding: clamp(28px, 5vw, 64px); }
.form-side h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 32px; }
.form-img { position: relative; isolation: isolate; overflow: hidden; min-height: 320px; }
.form-img .parallax { inset: -12% 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 500; color: var(--navy); display: flex; justify-content: space-between; }
label .req { color: var(--blue); }
input, textarea, select { font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #c3ccd8; background: #fff; border-radius: 0; color: var(--ink); width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); border-color: var(--navy); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2c51' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa 2.4s ease-out infinite; }
@keyframes wa { from { transform: scale(1); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }
.count { font-size: 12.5px; color: var(--mute); font-weight: 400; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aeb8d0; padding: 56px 0 28px; font-size: 14.5px; }
.site-footer .row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer img { height: 52px; width: auto; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer .legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.lines .line:nth-child(2), .philo .bx:nth-child(2), .card:nth-child(2) { transition-delay: .12s; }
.lines .line:nth-child(3), .philo .bx:nth-child(3), .card:nth-child(3) { transition-delay: .24s; }
.lines .line:nth-child(4) { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .pop { opacity: 1; transform: none; transition: none; }
  .img-in { clip-path: none !important; } .img-in img { transform: none; transition: none; }
  .hero-in > * { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .lines { grid-template-columns: 1fr 1fr; }
  .split, .about-grid, .value, .invest .grid, .form-wrap, .statement .wrap { grid-template-columns: 1fr; }
  .invest img { max-height: 420px; }
  .philo, .contact-cards, .stats, .more { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .img-in { order: 0; }
  .svc .img-in { min-height: 240px; }
  .standard .in { margin-left: 0; }
  .about-img { margin-top: 40px; }
  .philo .bx, .more .item { min-height: 300px; }
}
@media (max-width: 820px) {
  .topbar { display: none; }
  .bar { height: 72px; }
  .logo img { height: 46px; }
  .menu-btn { display: block; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 88px 28px 32px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; z-index: 70; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
  .nav a, .site-header.scrolled .nav a { color: #fff; font-size: 17px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(255,255,255,.14); }
  .nav .m-only { display: block; }
  .nav .side-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  .nav .side-actions a { text-align: center; padding: 15px 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; border: 1.5px solid var(--gold); color: var(--navy-deep); background: var(--gold); }
  .nav .side-actions a + a { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
  .nav-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: block; }
  .nav-close::before, .nav-close::after { content: ""; position: absolute; top: 21px; left: 10px; width: 24px; height: 2px; background: #fff; transform: rotate(45deg); }
  .nav-close::after { transform: rotate(-45deg); }
  body.menu-open .nav { transform: none; }
  body.menu-open .overlay { opacity: 1; visibility: visible; z-index: 60; }
  .site-header.scrolled .bar { height: 60px; }
  .hero { min-height: 82vh; }
  .hero .wrap { padding-top: 130px; padding-bottom: 70px; }
  .hero--page .wrap { padding-top: 120px; padding-bottom: 56px; }
  .hero--page { min-height: 340px; }
  .hero::before { background: linear-gradient(180deg, rgba(19,29,56,.88), rgba(19,29,56,.7)); }
}
@media (min-width: 821px) { .nav-close { display: none; } }
@media (max-width: 560px) {
  .lines { grid-template-columns: 1fr; }
  .line { min-height: 320px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat { padding: 40px 24px; }
  .contact-cards { margin-top: -40px; }
}
