:root {
  --navy: #223F61;
  --blue: #467591;
  --cyan: #69ABC1;
  --ice: #AACEDB;
  --mist: #EBF1F4;
  --white: #ffffff;
  --ink: #183047;
  --muted: #607385;
  --line: rgba(34, 63, 97, .12);
  --shadow-sm: 0 12px 32px rgba(34, 63, 97, .08);
  --shadow-md: 0 24px 70px rgba(34, 63, 97, .16);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --container: 1200px;
  --header-h: 82px;
  --font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--cyan); color: var(--navy); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-pad { padding-top: calc(var(--header-h) + 80px); padding-bottom: 100px; }
.section-soft { background: linear-gradient(180deg, #f8fbfc 0%, var(--mist) 100%); }

.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; transform: translateY(-160%); transition: .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: rgba(255,255,255,.86); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.95); border-color: var(--line); box-shadow: 0 8px 28px rgba(34,63,97,.07); }
.nav-wrap { min-height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; width: 190px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 14px; font-weight: 700; color: #35516c; position: relative; padding: 29px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 21px; height: 2px; border-radius: 2px; background: var(--cyan); transition: right .25s; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-cta { margin-left: 2px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; font-size: 14px; transition: transform .22s, box-shadow .22s, background .22s, color .22s, border-color .22s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--navy); box-shadow: 0 12px 26px rgba(34,63,97,.18); }
.btn-primary:hover { background: #19344f; box-shadow: 0 16px 32px rgba(34,63,97,.23); }
.btn-whatsapp { color: #fff; background: #1fa463; }
.btn-whatsapp svg { width: 18px; fill: currentColor; }
.btn-whatsapp:hover { background: #17834e; }
.btn-ghost { background: rgba(255,255,255,.72); color: var(--navy); border-color: var(--line); }
.btn-outline { color: var(--navy); background: #fff; border-color: rgba(34,63,97,.23); }
.btn-outline:hover { border-color: var(--navy); }

.hero { position: relative; overflow: hidden; min-height: 760px; background: radial-gradient(circle at 78% 18%, rgba(105,171,193,.18), transparent 30%), linear-gradient(180deg,#fff 0%,#f6fafb 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(48px,6vw,90px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content:""; width: 28px; height: 2px; background: var(--cyan); border-radius: 3px; }
.hero h1, .section-heading h2, .split-grid h2, .contact-copy h2 { margin: 15px 0 22px; color: var(--navy); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(44px,5vw,72px); max-width: 780px; }
.hero-lead { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-highlights { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 45px; }
.hero-highlights div { padding-top: 16px; border-top: 1px solid var(--line); }
.hero-highlights strong, .hero-highlights span { display: block; }
.hero-highlights strong { color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.hero-highlights span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.hero-visual { position: relative; }
.hero-image-frame { position: relative; width: min(100%, 535px); margin-left: auto; min-height: 585px; border-radius: 38px 38px 115px 38px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--navy); }
.hero-image-frame::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 58%, rgba(34,63,97,.22)); pointer-events:none; }
.hero-image-frame > img { width:100%; height:100%; min-height:585px; object-fit: cover; object-position: center; }
.floating-card { position:absolute; z-index:2; display:flex; align-items:center; gap:12px; padding:13px 15px; border:1px solid rgba(255,255,255,.75); border-radius:16px; background:rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.floating-card small, .floating-card strong { display:block; }
.floating-card small { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.floating-card strong { color:var(--navy); font-size:13px; }
.floating-card-a { left:-38px; bottom:82px; }
.floating-card-b { right:-28px; top:84px; }
.floating-card-b svg { width:26px; fill:var(--cyan); }
.dot { width:12px; height:12px; border-radius:50%; background:var(--cyan); box-shadow:0 0 0 5px rgba(105,171,193,.15); }
.hero-pattern { position:absolute; width:520px; height:520px; right:-165px; bottom:-165px; opacity:.08; background:url('../assets/images/brand/icon-vertex.png') center/contain no-repeat; transform:rotate(-8deg); }

.split-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(50px,7vw,100px); align-items:center; }
.split-grid h2, .section-heading h2, .contact-copy h2 { font-size:clamp(34px,4vw,52px); }
.split-grid p, .section-heading p, .contact-copy p { color:var(--muted); font-size:16px; }
.about-visual { position:relative; padding:28px 0 28px 28px; }
.about-visual::before { content:""; position:absolute; inset:0 24% 0 0; border:1px solid rgba(70,117,145,.3); border-radius:32px; }
.about-image { position:relative; z-index:1; overflow:hidden; border-radius:24px 90px 24px 24px; box-shadow:var(--shadow-md); max-width:430px; background:#d9dde0; }
.about-image img { width:100%; height:560px; object-fit:cover; object-position:center 20%; }
.about-badge { position:absolute; z-index:2; right:-10px; bottom:62px; width:210px; padding:16px; display:flex; gap:10px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-sm); color:var(--navy); font-size:13px; font-weight:800; }
.about-badge img { width:38px; height:38px; object-fit:contain; }
.values-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:32px; }
.values-grid article { padding:22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.65); }
.values-grid span { display:block; color:var(--cyan); font-size:12px; font-weight:900; letter-spacing:.1em; }
.values-grid h3 { margin:6px 0 6px; color:var(--navy); font-size:17px; }
.values-grid p { margin:0; font-size:13px; line-height:1.6; }

.section-heading { display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:end; margin-bottom:46px; }
.section-heading h2 { margin-bottom:0; }
.section-heading > p { margin:0 0 7px; max-width:560px; }
.solutions-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.solution-card { position:relative; min-height:275px; padding:30px; border-radius:22px; border:1px solid var(--line); background:#fff; box-shadow:0 8px 30px rgba(34,63,97,.05); overflow:hidden; transition:transform .25s, box-shadow .25s, border-color .25s; }
.solution-card::after { content:""; position:absolute; width:120px; height:120px; right:-60px; bottom:-60px; border-radius:50%; background:var(--mist); transition:transform .25s; }
.solution-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-sm); border-color:rgba(105,171,193,.45); }
.solution-card:hover::after { transform:scale(1.18); }
.solution-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:var(--mist); color:var(--navy); font-size:23px; font-weight:900; }
.solution-card h3 { color:var(--navy); font-size:20px; line-height:1.25; margin:20px 0 10px; max-width:270px; }
.solution-card p { color:var(--muted); font-size:14px; margin:0 0 20px; }
.solution-card > span { color:var(--blue); font-size:11px; text-transform:uppercase; letter-spacing:.09em; font-weight:900; }

.projects-strip { position:relative; background:linear-gradient(135deg,#1a3653,#294d70); overflow:hidden; }
.projects-strip::after { content:""; position:absolute; width:500px; height:500px; right:-150px; top:-150px; background:url('../assets/images/brand/icon-vertex.png') center/contain no-repeat; opacity:.06; filter:brightness(0) invert(1); }
.section-heading.light { position:relative; z-index:1; }
.section-heading.light h2, .section-heading.light p, .section-heading.light .eyebrow { color:#fff; }
.project-grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.project-card { min-height:300px; display:flex; flex-direction:column; padding:30px; border:1px solid rgba(255,255,255,.14); border-radius:22px; background:rgba(255,255,255,.07); backdrop-filter:blur(8px); transition:.25s; }
.project-card:hover { transform:translateY(-5px); background:rgba(255,255,255,.11); }
.project-card > span { color:var(--ice); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.project-card h3 { color:#fff; font-size:21px; line-height:1.3; margin:18px 0 12px; }
.project-card p { color:rgba(255,255,255,.68); font-size:14px; margin:0 0 24px; }
.project-card a { margin-top:auto; color:#fff; font-weight:800; font-size:13px; }
.project-card a b { color:var(--cyan); margin-left:6px; }

.testimonials-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.testimonial-card { position:relative; padding:34px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow-sm); }
.testimonial-card::before { content:'“'; position:absolute; right:28px; top:18px; color:var(--ice); font-size:78px; line-height:1; font-family:Georgia,serif; }
.testimonial-card p { position:relative; z-index:1; color:#4f6477; font-size:16px; line-height:1.8; margin:0 0 24px; }
.testimonial-author { display:flex; align-items:center; gap:13px; }
.author-avatar { width:46px; height:46px; border-radius:50%; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,var(--navy),var(--cyan)); font-weight:900; }
.testimonial-author strong, .testimonial-author span { display:block; }
.testimonial-author strong { color:var(--navy); font-size:14px; }
.testimonial-author span { color:var(--muted); font-size:12px; }
.empty-state { grid-column:1/-1; border:1px dashed rgba(34,63,97,.25); padding:30px; text-align:center; border-radius:20px; color:var(--muted); }

.filters { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 26px; }
.filter-btn { border:1px solid var(--line); background:#fff; color:#52697d; border-radius:999px; padding:10px 16px; font-weight:800; font-size:12px; transition:.2s; }
.filter-btn:hover, .filter-btn.active { background:var(--navy); color:#fff; border-color:var(--navy); }
.posts-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.post-card { position:relative; overflow:hidden; min-height:390px; border-radius:24px; background:var(--navy); box-shadow:var(--shadow-sm); cursor:pointer; isolation:isolate; }
.post-card button { position:absolute; inset:0; z-index:5; width:100%; border:0; background:transparent; padding:0; text-align:left; color:inherit; }
.post-card img { width:100%; height:100%; min-height:390px; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.post-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 42%,rgba(13,35,54,.92) 100%); z-index:1; }
.post-card:hover img { transform:scale(1.055); }
.post-card-content { position:absolute; z-index:2; left:0; right:0; bottom:0; padding:24px; color:#fff; pointer-events:none; }
.post-card-meta { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:9px; color:rgba(255,255,255,.72); font-size:10px; text-transform:uppercase; letter-spacing:.08em; font-weight:900; }
.post-card h3 { margin:0; color:#fff; font-size:20px; line-height:1.3; }
.post-card .open-hint { margin-top:14px; display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:900; color:var(--ice); }
.posts-actions { display:flex; justify-content:center; margin-top:34px; }
.posts-actions[hidden] { display:none; }

.contact-section { background:linear-gradient(180deg,#fff 0%,#f5f9fb 100%); }
.contact-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; align-items:start; }
.contact-links { margin-top:30px; display:grid; gap:10px; }
.contact-links a { padding:15px 18px; border:1px solid var(--line); border-radius:15px; background:#fff; transition:.2s; }
.contact-links a:hover { border-color:var(--cyan); transform:translateX(4px); }
.contact-links span, .contact-links strong { display:block; }
.contact-links span { color:var(--muted); font-size:10px; text-transform:uppercase; font-weight:900; letter-spacing:.1em; }
.contact-links strong { color:var(--navy); font-size:14px; margin-top:2px; }
.social-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.social-row a { padding:9px 13px; border-radius:999px; background:var(--navy); color:#fff; font-size:11px; font-weight:800; }
.contact-form { padding:32px; border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:var(--shadow-sm); }
.form-head { margin-bottom:24px; }
.form-head span, .form-head strong { display:block; }
.form-head span { color:var(--cyan); font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.12em; }
.form-head strong { color:var(--navy); font-size:25px; }
.contact-form label { display:block; color:#435b71; font-size:12px; font-weight:800; margin-bottom:15px; }
.contact-form input, .contact-form textarea { width:100%; margin-top:7px; border:1px solid #dbe5ea; border-radius:12px; padding:13px 14px; color:var(--ink); background:#fbfdfe; outline:none; transition:.2s; resize:vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--cyan); box-shadow:0 0 0 4px rgba(105,171,193,.12); background:#fff; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.form-note { margin:12px 0 0; font-size:11px; color:#7b8d9c; }

.site-footer { padding:72px 0 24px; background:#172f49; color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:50px; }
.footer-brand img { width:200px; filter:none; }
.footer-brand p { color:rgba(255,255,255,.63); max-width:300px; font-size:13px; }
.footer-grid h3 { margin:0 0 14px; font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--ice); }
.footer-grid > div:not(.footer-brand) a { display:block; color:rgba(255,255,255,.7); font-size:13px; margin:8px 0; }
.footer-grid a:hover { color:#fff !important; }
.footer-bottom { margin-top:55px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.45); font-size:11px; }

.floating-whatsapp { position:fixed; z-index:850; right:22px; bottom:22px; width:54px; height:54px; display:grid; place-items:center; border-radius:50%; background:#1fa463; box-shadow:0 14px 32px rgba(13,104,63,.28); transition:.2s; }
.floating-whatsapp:hover { transform:translateY(-4px) scale(1.03); }
.floating-whatsapp svg { width:27px; fill:#fff; }

.modal { position:fixed; inset:0; z-index:1500; display:none; align-items:center; justify-content:center; padding:25px; }
.modal.open { display:flex; }
.modal-backdrop { position:absolute; inset:0; background:rgba(10,28,44,.76); backdrop-filter:blur(10px); }
.modal-panel { position:relative; z-index:1; width:min(1050px,100%); max-height:min(90vh,900px); display:grid; grid-template-columns:1fr 1fr; overflow:hidden; background:#fff; border-radius:28px; box-shadow:0 40px 100px rgba(0,0,0,.28); animation:modalIn .28s ease-out; }
@keyframes modalIn { from{ opacity:0; transform:translateY(16px) scale(.98);} to{opacity:1;transform:none;} }
.modal-close { position:absolute; z-index:6; right:15px; top:15px; width:42px; height:42px; border:0; border-radius:50%; background:rgba(16,42,63,.82); color:#fff; font-size:27px; line-height:1; }
.modal-gallery { position:relative; min-height:560px; background:#102d47; overflow:hidden; }
.modal-gallery img { width:100%; height:100%; min-height:560px; object-fit:cover; }
.gallery-nav { position:absolute; z-index:4; top:50%; transform:translateY(-50%); width:42px; height:42px; border:0; border-radius:50%; color:#fff; background:rgba(13,35,54,.68); font-size:27px; }
.gallery-prev { left:14px; }.gallery-next { right:14px; }
.gallery-count { position:absolute; left:18px; bottom:16px; z-index:4; padding:7px 10px; border-radius:999px; color:#fff; background:rgba(13,35,54,.72); font-size:10px; font-weight:900; }
.modal-content { overflow:auto; padding:48px 42px 40px; }
.modal-meta { display:flex; flex-wrap:wrap; gap:8px 16px; color:var(--blue); font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.modal-content h2 { color:var(--navy); font-size:34px; line-height:1.15; margin:14px 0 22px; letter-spacing:-.025em; }
.modal-content #modal-body p { color:#566d80; font-size:14px; line-height:1.8; margin:0 0 15px; }
.modal-content .btn { margin-top:12px; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .main-nav { gap:18px; }
  .nav-cta span { display:none; }
  .nav-cta { width:46px; padding:0; }
  .hero-grid { grid-template-columns:1fr 1fr; gap:38px; }
  .hero-highlights { grid-template-columns:1fr; }
  .hero-image-frame { min-height:520px; }
  .hero-image-frame > img { min-height:520px; }
  .solutions-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 860px) {
  .container { width:min(calc(100% - 28px),var(--container)); }
  .section { padding:78px 0; }
  .section-pad { padding-top:calc(var(--header-h) + 54px); }
  .menu-toggle { display:block; margin-left:auto; }
  .nav-cta { margin-left:0; }
  .main-nav { position:absolute; top:calc(100% + 8px); left:14px; right:14px; padding:14px; display:none; flex-direction:column; align-items:stretch; gap:0; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-md); }
  .main-nav.open { display:flex; }
  .main-nav a { padding:12px 14px; border-radius:10px; }
  .main-nav a:hover { background:var(--mist); }
  .main-nav a::after { display:none; }
  .brand { width:168px; }
  .hero-grid, .split-grid, .contact-grid { grid-template-columns:1fr; }
  .hero-copy { order:1; }.hero-visual { order:2; }
  .hero-image-frame { margin:0 auto; width:min(100%,620px); }
  .floating-card-a { left:14px; }.floating-card-b { right:14px; }
  .split-grid { gap:46px; }
  .about-visual { max-width:560px; margin:auto; }
  .section-heading { grid-template-columns:1fr; gap:12px; margin-bottom:32px; }
  .project-grid, .posts-grid { grid-template-columns:repeat(2,1fr); }
  .testimonials-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column:2 / 4; }
  .modal-panel { grid-template-columns:1fr; max-height:92vh; overflow:auto; }
  .modal-gallery { min-height:420px; }
  .modal-gallery img { min-height:420px; max-height:55vh; }
  .modal-content { overflow:visible; }
}

@media (max-width: 620px) {
  .nav-cta { display:none; }
  .hero h1 { font-size:clamp(38px,12vw,54px); }
  .hero-lead { font-size:16px; }
  .hero-highlights { margin-top:34px; }
  .hero-image-frame, .hero-image-frame > img { min-height:440px; }
  .hero-image-frame { border-radius:28px 28px 74px 28px; }
  .floating-card { max-width:190px; }
  .values-grid, .solutions-grid, .project-grid, .posts-grid { grid-template-columns:1fr; }
  .about-visual { padding-left:0; }
  .about-image { max-width:100%; }
  .about-image img { height:480px; }
  .about-badge { right:10px; }
  .post-card, .post-card img { min-height:360px; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .contact-form { padding:24px 18px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:34px 26px; }
  .footer-brand { grid-column:1/-1; }
  .footer-grid > div:last-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .modal { padding:10px; }
  .modal-panel { border-radius:20px; }
  .modal-gallery, .modal-gallery img { min-height:330px; }
  .modal-content { padding:30px 22px; }
  .modal-content h2 { font-size:28px; }
}

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