:root {
  --navy: #071a2a;
  --ink: #101b23;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --orange: #f26822;
  --steel: #60717c;
  --line: #d7d7d0;
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; text-transform: uppercase; letter-spacing: -.025em; line-height: .96; }
h1 { max-width: 850px; margin-bottom: 26px; font-size: clamp(4.1rem, 8.4vw, 7.5rem); }
h2 { margin-bottom: 18px; font-size: clamp(3rem, 5.5vw, 5.3rem); }
h3 { margin-bottom: 10px; font-size: 1.55rem; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--orange); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 2px; background: currentColor; content: ""; }
.lead { max-width: 670px; color: #c9d2d7; font-size: clamp(1.03rem, 1.55vw, 1.22rem); }

.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .service-option:focus-visible, .menu:focus-visible, a:focus-visible { outline: 3px solid #ffad80; outline-offset: 3px; }
.button.primary { background: var(--orange); color: #fff; box-shadow: 0 10px 30px #f2682230; }
.button.primary:hover { background: #ff7837; }
.button.ghost { border-color: #ffffff3b; color: #fff; }
.button.ghost:hover { border-color: #fff; background: #ffffff0d; }
.button.dark { background: var(--navy); color: #fff; }
.button svg { width: 19px; height: 19px; fill: currentColor; }

header { position: fixed; z-index: 30; inset: 0 0 auto; color: #fff; transition: background .25s ease, box-shadow .25s ease; }
header.scrolled, header.open { background: #071a2af2; box-shadow: 0 8px 30px #0003; backdrop-filter: blur(14px); }
nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 50px; height: 50px; padding: 4px; border-radius: 12px; background: #fff; object-fit: contain; }
.brand-name { font-family: "Arial Narrow", Impact, sans-serif; font-size: 1.32rem; font-weight: 900; letter-spacing: .055em; line-height: .9; }
.brand-name small { display: block; margin-top: 7px; color: #a9b6be; font: 700 .58rem/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .89rem; font-weight: 700; }
.nav-links > a:not(.button)::after { display: block; width: 0; height: 2px; margin-top: 4px; background: var(--orange); content: ""; transition: width .2s ease; }
.nav-links > a:hover::after { width: 100%; }
.nav-links .button { min-height: 44px; padding-inline: 18px; }
.menu { display: none; width: 46px; height: 46px; border: 1px solid #ffffff30; border-radius: 50%; background: transparent; }
.menu span, .menu::before, .menu::after { display: block; width: 19px; height: 2px; margin: 4px auto; background: #fff; content: ""; }

.hero { min-height: 790px; position: relative; display: grid; align-items: end; padding: 150px 0 70px; color: #fff; background: var(--navy); overflow: hidden; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, #061724 0%, #071a2af5 39%, #071a2a66 70%, #071a2a18 100%), url("assets/banco-common-rail-portada-cerca.jpeg") 60% 52% / cover no-repeat; content: ""; }
.hero::after { position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, #071a2a); content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .62fr); gap: clamp(38px, 5vw, 70px); align-items: end; }
.hero-copy h1 span { display: block; margin-top: .08em; color: var(--orange); font-size: .72em; line-height: 1.02; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: grid; gap: 16px; align-self: end; padding: 26px 0 3px; border-top: 1px solid #ffffff32; }
.proof-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.proof-item strong { color: var(--orange); font: 900 1.65rem/1 "Arial Narrow", Impact, sans-serif; white-space: nowrap; }
.proof-item span { color: #cad3d8; font-size: .83rem; line-height: 1.35; }
.hero-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border: 1px solid #ffffff28; border-radius: 16px; background: #071a2acc; backdrop-filter: blur(10px); }
.hero-strip div { padding: 17px 20px; border-right: 1px solid #ffffff24; color: #d1d9dd; font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.hero-strip div:last-child { border-right: 0; }

.services { padding: 120px 0; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 470px); gap: 70px; align-items: end; margin-bottom: 55px; }
.section-heading p { margin-bottom: 4px; color: var(--steel); font-size: 1.05rem; }
.services-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 22px; align-items: start; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-option { min-height: 154px; position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.service-option:hover { transform: translateY(-3px); border-color: #83909a; }
.service-option[aria-pressed="true"] { border-color: var(--orange); background: #fff8f3; box-shadow: inset 4px 0 0 var(--orange); }
.service-option .number { display: block; margin-bottom: 26px; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.service-option h3 { margin: 0; font-size: 1.62rem; }
.service-option p { margin: 9px 28px 0 0; color: var(--steel); font-size: .86rem; }
.service-option .arrow { position: absolute; right: 20px; bottom: 20px; font-size: 1.35rem; }
.service-panel { position: sticky; top: 104px; min-height: 486px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-radius: var(--radius); background: var(--navy); color: #fff; overflow: hidden; }
.service-panel::after { position: absolute; width: 260px; height: 260px; right: -95px; bottom: -105px; border: 54px solid #f268221a; border-radius: 50%; content: ""; }
.panel-label { display: block; margin-bottom: 26px; color: #9aacb7; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.service-panel h3 { margin-bottom: 18px; color: var(--orange); font-size: clamp(2.25rem, 4vw, 3.8rem); }
.service-panel p { max-width: 430px; color: #c4d0d6; }
.panel-hint { display: flex; gap: 10px; margin: 28px 0; padding: 16px; border: 1px solid #ffffff1f; border-radius: 12px; color: #dce3e7; font-size: .86rem; }
.panel-hint span { color: var(--orange); font-weight: 900; }
.service-panel .button { position: relative; z-index: 1; width: 100%; }
.privacy-note { position: relative; z-index: 1; margin: 12px 0 0; color: #8297a3 !important; font-size: .73rem; text-align: center; }

.company { padding: 115px 0 0; background: var(--navy); color: #fff; }
.company-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: center; }
.company-copy p { max-width: 560px; color: #bac7ce; font-size: 1.02rem; }
.company-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.company-points div { padding: 17px; border: 1px solid #ffffff1a; border-radius: 14px; background: #ffffff08; }
.company-points strong { display: block; margin-bottom: 5px; color: var(--orange); font: 900 1.1rem "Arial Narrow", Impact, sans-serif; text-transform: uppercase; }
.company-points span { color: #adbbc3; font-size: .78rem; }
.gallery { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 235px 235px; gap: 12px; }
.gallery figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #102b40; }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; inset: auto 12px 12px; padding: 9px 11px; border-radius: 8px; background: #061724d9; color: #d9e1e5; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 70px; align-items: center; margin-top: 95px; padding: 58px; border-radius: 28px 28px 0 0; background: var(--orange); color: var(--navy); }
.contact-card .eyebrow { color: var(--navy); }
.contact-card h2 { max-width: 720px; margin-bottom: 20px; }
.contact-card p { max-width: 650px; margin-bottom: 28px; color: #42200e; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .button.outline { border-color: #071a2a55; color: var(--navy); }
.contact-actions .button.outline:hover { border-color: var(--navy); background: #ffffff24; }
.contact-details { display: grid; gap: 18px; padding-left: 36px; border-left: 1px solid #071a2a38; }
.contact-details small { display: block; margin-bottom: 3px; color: #58301c; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a, .contact-details strong { font-size: .95rem; font-weight: 800; }
.contact-details a:hover { text-decoration: underline; }
footer { padding: 34px 0; background: #04121d; color: #91a1aa; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: .78rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: #fff; }

.whatsapp-float { position: fixed; z-index: 25; right: 22px; bottom: 22px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 34px #0005; transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 29px; height: 29px; fill: currentColor; }

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

@media (max-width: 930px) {
  .menu { display: block; }
  .nav-links { position: absolute; inset: 82px 0 auto; display: none; padding: 22px; background: #071a2afa; border-top: 1px solid #ffffff16; border-bottom: 1px solid #ffffff20; flex-direction: column; align-items: stretch; gap: 5px; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 6px; }
  .nav-links > a:not(.button)::after { display: none; }
  .hero { min-height: 820px; }
  .hero::before { background: linear-gradient(90deg, #061724 0%, #071a2ae8 62%, #071a2a55 100%), url("assets/banco-common-rail-portada-cerca.jpeg") 62% 52% / cover no-repeat; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .proof-item { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip div:nth-child(2) { border-right: 0; }
  .hero-strip div:nth-child(-n+2) { border-bottom: 1px solid #ffffff24; }
  .section-heading, .services-layout, .company-intro, .contact-card { grid-template-columns: 1fr; }
  .section-heading { gap: 18px; }
  .service-panel { position: relative; top: 0; min-height: 410px; }
  .company-intro { gap: 45px; }
  .contact-card { gap: 42px; }
  .contact-details { padding: 34px 0 0; border-top: 1px solid #071a2a38; border-left: 0; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  nav { height: 72px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 1.08rem; }
  .brand-name small { font-size: .52rem; }
  .nav-links { inset-block-start: 72px; }
  .hero { min-height: auto; padding: 122px 0 38px; }
  .hero::before { background: linear-gradient(180deg, #061724f7 0%, #071a2ae3 58%, #071a2a 100%), url("assets/banco-common-rail-portada-cerca.jpeg") 62% center / cover no-repeat; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.6rem); }
  .hero-copy h1 span { font-size: .78em; }
  h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .hero-actions, .contact-actions { display: grid; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .hero-proof { grid-template-columns: 1fr; gap: 11px; padding-top: 20px; }
  .proof-item { grid-template-columns: 64px 1fr; }
  .proof-item strong { font-size: 1.4rem; }
  .hero-strip { margin-top: 42px; }
  .hero-strip div { padding: 14px 10px; font-size: .66rem; }
  .services { padding: 82px 0; }
  .section-heading { margin-bottom: 36px; }
  .service-list { grid-template-columns: 1fr; }
  .service-option { min-height: 140px; }
  .service-panel { min-height: 430px; padding: 28px; }
  .company { padding-top: 80px; }
  .company-points { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 310px 170px; }
  .gallery figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .contact-card { margin-top: 70px; padding: 38px 22px; border-radius: 22px 22px 0 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 15px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

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