:root {
  --navy: #071827;
  --navy-2: #0d2538;
  --blue: #005470;
  --blue-2: #0e8bbb;
  --yellow: #ffff00;
  --yellow-soft: rgba(255,255,0,.16);
  --sky: #64c7e8;
  --steel: #53565a;
  --ink: #13202a;
  --muted: #5d6975;
  --line: #dfe8ee;
  --soft: #f3f8fb;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(7, 24, 39, 0.18);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), 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; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 999; background: var(--blue); color: white; padding: .8rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7,24,39,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 800; letter-spacing: .01em; }
.brand-mark { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; }
.brand-text { font-size: 1.18rem; color: var(--navy); position: relative; }
.brand-text::after { content: ""; display: block; width: 42px; height: 3px; margin-top: 3px; border-radius: 999px; background: var(--yellow); }
.main-nav { display: flex; align-items: center; gap: 22px; color: var(--steel); font-size: .94rem; font-weight: 600; }
.main-nav a:hover { color: var(--blue); }
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; border-radius: 999px; background: var(--yellow); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--navy); color: white !important; padding: .74rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,0,.45); box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; }

.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--white); }
.section-neutral { background: var(--soft); }
.section-accent { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: var(--white); }
.eyebrow { margin: 0 0 14px; color: var(--blue-2); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 3px; margin-right: 10px; vertical-align: middle; border-radius: 999px; background: var(--yellow); }
.section-dark .eyebrow { color: var(--sky); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.35rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.72; color: rgba(255,255,255,.82); max-width: 760px; }
.lead.small { font-size: 1.08rem; }
.section-subtitle { color: var(--muted); font-size: 1.05rem; line-height: 1.8; max-width: 760px; }
.section-dark .section-subtitle { color: rgba(255,255,255,.75); }
.center { text-align: center; margin-inline: auto; }
.center .section-subtitle { margin-inline: auto; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .88rem 1.25rem; border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 16px 30px rgba(0,84,112,.28); border-color: rgba(255,255,0,.45); }
.button-primary:hover { background: #063b4d; box-shadow: 0 18px 32px rgba(0,84,112,.34), 0 0 0 4px var(--yellow-soft); }
.button-secondary { color: white; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.button-secondary:hover { border-color: rgba(255,255,255,.55); }
.button-dark { background: var(--navy); color: white; }

.hero { position: relative; overflow: hidden; min-height: 760px; display: grid; align-items: center; }
.hero-media { position: absolute; inset: 0; opacity: .36; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,24,39,.98), rgba(7,24,39,.76), rgba(7,24,39,.5)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: end; padding-block: 110px; }
.hero-copy .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.metric { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.metric:first-child { padding-top: 0; }
.metric-number { display: block; font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em; }
.metric-label { color: rgba(255,255,255,.72); font-size: .95rem; }
.hero-card-note { margin-top: 20px; color: rgba(255,255,255,.82); }

.intro { padding: 90px 0; }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.intro-content { display: grid; gap: 20px; color: var(--muted); font-size: 1.1rem; }

.services, .process { padding: 96px 0; }
.tabs { margin-top: 48px; }
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.tab-button { border: 1px solid var(--line); background: white; color: var(--steel); padding: 17px 18px; border-radius: 18px; font-weight: 900; cursor: pointer; }
.tab-button.active, .tab-button:hover { background: var(--navy); color: white; border-color: var(--navy); box-shadow: inset 0 -4px 0 var(--yellow); }
.tab-panel { background: white; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.service-panel-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 520px; }
.service-image { background: var(--navy); min-height: 360px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.nautical-photo img { object-position: 42% 50%; }
.card-thumb { width: 100%; height: 150px; object-fit: cover; object-position: 42% 52%; margin-bottom: 24px; border-radius: 22px; border-bottom: 5px solid var(--yellow); box-shadow: 0 16px 34px rgba(0,84,112,.14); }

.image-contained { display: grid; place-items: center; padding: 52px; }
.image-contained img { width: 220px; height: 220px; object-fit: contain; }
.service-copy { padding: clamp(34px, 5vw, 62px); display: flex; flex-direction: column; justify-content: center; }
.service-kicker { color: var(--blue); font-weight: 900; margin-bottom: 14px; }
.service-copy h3 { font-size: clamp(1.8rem, 3vw, 2.85rem); margin-bottom: 20px; }
.service-copy p { color: var(--muted); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 650; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .52rem; width: 12px; height: 12px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0,84,112,.12); border: 1px solid var(--blue); }

.service-cards { padding: 80px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 12px 40px rgba(7,24,39,.08); }
.card-icon { width: 66px; height: 66px; object-fit: contain; margin-bottom: 26px; background: var(--navy); border-radius: 18px; padding: 8px; border-bottom: 4px solid var(--yellow); }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); }

.value { padding: 104px 0; }
.value-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 74px; }
.value-list { display: grid; gap: 16px; }
.value-item { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.value-item span { color: var(--sky); font-weight: 900; }
.value-item p { color: rgba(255,255,255,.72); margin-top: 8px; }

.process-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-step { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 240px; }
.process-step span { color: var(--blue); font-weight: 900; }
.process-step h3 { margin-top: 26px; margin-bottom: 14px; }
.process-step p { color: var(--muted); }

.geo { padding: 100px 0; }
.geo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.geo-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.8; margin-top: 22px; }
.geo-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.geo-tags span { background: var(--soft); border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: .7rem 1rem; font-weight: 850; }
.geo-card { border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.geo-card img { width: 100%; max-height: 420px; object-fit: contain; padding: 24px; background: #fbfdff; }
.geo-card-text { padding: 30px; border-top: 1px solid var(--line); }
.geo-card-text ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }

.profile { padding: 104px 0; }
.profile-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 68px; align-items: center; }
.profile-image { border-radius: 32px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
.profile-image img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; }
.profile-copy p:not(.eyebrow):not(.lead) { color: rgba(255,255,255,.74); margin-top: 18px; font-size: 1.05rem; }
.credential-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.credential-grid span { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: white; border-radius: 999px; padding: .68rem .95rem; font-weight: 800; }

.cta-band { padding: 54px 0; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-grid h2 { font-size: clamp(1.6rem, 3vw, 2.65rem); max-width: 780px; }

.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 68px; align-items: start; }
.contact-copy p:not(.eyebrow) { margin-top: 22px; color: var(--muted); font-size: 1.07rem; line-height: 1.8; }
.contact-methods { display: grid; gap: 12px; margin-top: 30px; }
.contact-methods a { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: white; }
.contact-methods strong { color: var(--blue); }
.contact-methods span { color: var(--ink); font-weight: 800; }
.contact-form { background: var(--soft); border: 1px solid var(--line); border-radius: 32px; padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 850; font-size: .92rem; }
input, select, textarea { width: 100%; border: 1px solid #ccd9e0; border-radius: 16px; padding: 13px 14px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,84,112,.13), 0 0 0 6px rgba(255,255,0,.08); }
.form-note { margin-top: 14px; color: var(--muted); font-size: .85rem; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-weight: 800; }
.form-status.visible { display: block; }
.form-status.success { color: #063b4d; background: rgba(0,84,112,.10); border: 1px solid rgba(0,84,112,.22); box-shadow: inset 0 0 0 2px rgba(255,255,0,.18); }
.form-status.error { color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; }
.contact-form.is-sending { opacity: .82; }
.contact-form.is-sending button[type="submit"] { pointer-events: none; opacity: .75; }

.site-footer { background: #06121d; color: rgba(255,255,255,.74); padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; padding-bottom: 38px; }
.footer-brand .brand-text { color: white; }
.site-footer h3 { color: white; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { display: block; margin-top: 8px; }
.site-footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: .9rem; }


/* Iluminación dinámica de títulos al hacer scroll */
.section-heading h2,
.geo-copy h2,
.profile-copy h2,
.contact-copy h2 {
  transition: color .45s ease, text-shadow .45s ease, transform .45s ease;
}

.section-heading .eyebrow,
.geo-copy .eyebrow,
.profile-copy .eyebrow,
.contact-copy .eyebrow {
  transition: color .45s ease, text-shadow .45s ease;
}

section.section-active .section-heading h2,
section.section-active .geo-copy h2,
section.section-active .contact-copy h2 {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(0,84,112,.16), 0 0 10px rgba(255,255,0,.20);
  transform: translateY(-2px);
}

section.section-active.section-dark .section-heading h2,
section.section-active.section-dark .profile-copy h2,
section.section-active.section-dark .contact-copy h2 {
  color: var(--white);
  text-shadow: 0 0 24px rgba(100,199,232,.35), 0 0 12px rgba(255,255,0,.24);
  transform: translateY(-2px);
}

section.section-active .section-heading .eyebrow,
section.section-active .geo-copy .eyebrow,
section.section-active .profile-copy .eyebrow,
section.section-active .contact-copy .eyebrow {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(255,255,0,.22);
}

section.section-active.section-dark .section-heading .eyebrow,
section.section-active.section-dark .profile-copy .eyebrow,
section.section-active.section-dark .contact-copy .eyebrow {
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(255,255,0,.32);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 92px; display: none; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .hero { min-height: auto; }
  .hero-grid, .intro-grid, .value-grid, .geo-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 86px; }
  .service-panel-grid { grid-template-columns: 1fr; }
  .cards-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 78px; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-text { font-size: 1.08rem; }
  .main-nav { top: 78px; }
  .hero-grid { padding-block: 66px; }
  .hero-card { padding: 20px; }
  .intro, .services, .service-cards, .value, .process, .geo, .profile, .contact { padding: 64px 0; }
  .tab-list { grid-template-columns: 1fr; }
  .tab-button { text-align: left; }
  .service-copy { padding: 28px; }
  .cards-grid, .process-grid { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; }
  .cta-grid, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
