:root {
  --ink: #101820;
  --navy: #062f66;
  --navy-2: #0b427f;
  --steel: #64696e;
  --mist: #e8edf2;
  --paper: #f7f9fb;
  --white: #ffffff;
  --safety: #1768a8;
  --brand-light: #dce8f3;
  --brand-sky: #72b1df;
  --line: rgba(6, 47, 102, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header { height: 84px; padding: 0 max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 34px; background: rgba(247, 245, 239, 0.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; margin-right: auto; width: 245px; height: 64px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.desktop-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; }
.desktop-nav a { transition: color .2s; }
.desktop-nav a:hover { color: var(--safety); }
.header-cta { background: var(--navy); color: white; padding: 14px 18px; font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.mobile-menu { display: none; }

.hero { min-height: calc(100vh - 84px); background: var(--navy); color: white; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 55%; height: 100%; opacity: .48; background: linear-gradient(135deg, transparent 10%, rgba(72,139,194,.22) 10.3%, transparent 11%), linear-gradient(45deg, transparent 58%, rgba(255,255,255,.08) 58.2%, transparent 58.7%); }
.hero-grid { position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, transparent 35%, black); }
.hero-content { flex: 1; display: grid; grid-template-columns: 1.25fr .65fr; gap: 100px; align-items: center; padding-top: 74px; padding-bottom: 74px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 900; color: #33555f; display: flex; gap: 10px; align-items: center; }
.eyebrow span { display: inline-block; width: 28px; height: 3px; background: var(--safety); }
.eyebrow.light { color: rgba(255,255,255,.68); }
.eyebrow.light span { background: var(--brand-sky); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(54px, 6vw, 88px); line-height: .94; letter-spacing: -.055em; font-weight: 850; }
.hero h1 em { color: var(--brand-sky); font-style: normal; display: block; }
.hero-lead { color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; max-width: 650px; margin: 30px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; border: 1px solid transparent; cursor: pointer; }
.button span { font-size: 18px; }
.button-primary { background: var(--safety); color: white; }
.button-primary:hover { background: #2f7fbd; }
.button-ghost { border-color: rgba(255,255,255,.28); color: white; }
.button-ghost:hover { border-color: white; }
.button-dark { background: var(--navy); color: white; width: 100%; border: 0; }
.operation-card { border: 1px solid rgba(255,255,255,.22); background: rgba(5,27,35,.72); backdrop-filter: blur(8px); padding: 28px; align-self: end; margin-bottom: 8px; }
.operation-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.operation-head i { width: 9px; height: 9px; border-radius: 50%; background: #68a7d6; box-shadow: 0 0 0 5px rgba(104,167,214,.16); }
.operation-line { display: grid; grid-template-columns: 45px 1fr; border-top: 1px solid rgba(255,255,255,.16); padding: 18px 0; align-items: center; }
.operation-line strong { color: var(--brand-sky); font-size: 11px; }
.operation-line span { font-weight: 750; font-size: 14px; }
.operation-card > p { margin: 24px 0 0; color: rgba(255,255,255,.5); font-size: 11px; }
.hero-strip { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 34px; background: var(--safety); color: white; font-size: 11px; letter-spacing: .15em; font-weight: 900; position: relative; z-index: 2; }
.hero-strip i { width: 5px; height: 5px; background: white; transform: rotate(45deg); }

.section { padding: 120px 0; scroll-margin-top: 84px; }
.split-layout { display: grid; grid-template-columns: .8fr 1fr; gap: 110px; }
h2 { margin: 0; font-size: clamp(42px, 4.5vw, 66px); line-height: 1.02; letter-spacing: -.045em; max-width: 700px; }
.about { background: var(--paper); }
.about-copy { padding-top: 32px; }
.about-copy p { color: var(--steel); line-height: 1.75; }
.large-copy { font-size: 21px; line-height: 1.55 !important; color: var(--ink) !important; margin-top: 0; }

.services { background: var(--navy); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 64px; }
.section-heading > p { max-width: 360px; color: rgba(255,255,255,.56); line-height: 1.65; font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.17); }
.service-card { min-height: 430px; padding: 32px; border-right: 1px solid rgba(255,255,255,.17); position: relative; transition: background .25s, transform .25s; }
.service-card:first-child { border-left: 1px solid rgba(255,255,255,.17); }
.service-card:hover { background: var(--navy-2); transform: translateY(-6px); }
.service-number { color: var(--brand-sky); font-size: 11px; font-weight: 800; }
.service-icon { width: 68px; height: 66px; margin: 62px 0 28px; position: relative; border: 2px solid rgba(255,255,255,.5); display: flex; align-items: end; gap: 5px; padding: 9px; }
.service-icon::before { content: ""; position: absolute; top: -9px; left: 8px; right: 8px; height: 8px; border: 2px solid rgba(255,255,255,.5); border-bottom: 0; }
.service-icon i { display: block; flex: 1; background: var(--brand-sky); height: 30px; }
.service-icon i:nth-child(2) { height: 41px; }
.service-card h3 { font-size: 26px; margin: 0 0 16px; }
.service-card p { color: rgba(255,255,255,.56); line-height: 1.6; font-size: 14px; }
.service-card a { position: absolute; left: 32px; bottom: 32px; color: var(--brand-sky); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 900; }
.service-card a span { margin-left: 16px; }

.operations { background: var(--paper); }
.operations-heading { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: end; margin-bottom: 56px; }
.operations-heading > p { color: var(--steel); line-height: 1.7; margin: 0; }
.operations-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 16px; }
.gallery-item { grid-column: span 4; margin: 0; background: var(--navy); position: relative; overflow: hidden; min-height: 360px; }
.gallery-item.landscape { grid-column: span 8; }
.gallery-item.tall { grid-row: span 2; min-height: 620px; }
.gallery-item img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #071a21; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(3,18,24,.88)); pointer-events: none; }
.gallery-item figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 12px; color: white; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 900; }
.gallery-item figcaption span { color: var(--brand-sky); }

.clients { padding: 76px 0; background: #ffffff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-layout { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: center; }
.clients-copy .eyebrow { margin-bottom: 14px; }
.clients-copy h2 { font-size: 30px; letter-spacing: -.035em; }
.client-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.client-mark { min-height: 94px; padding: 14px 8px; border: 1px solid #dbe1e1; background: #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; filter: grayscale(1); transition: filter .2s, border-color .2s, transform .2s; }
.client-mark:hover { filter: grayscale(0); border-color: #9cadb0; transform: translateY(-2px); }
.client-mark strong { font-size: 12px; line-height: 1.1; letter-spacing: -.02em; }
.client-mark small { margin-top: 5px; font-size: 7px; letter-spacing: .18em; font-weight: 900; color: var(--steel); }
.client-mark::before { content: ""; width: 26px; height: 4px; margin-bottom: 10px; background: var(--navy); }
.client-mark.contecon::before { background: #6f7d89; }
.client-mark.cofimar::before { background: #4387ba; }
.client-mark.quimitransport::before, .client-mark.quimpac::before { background: #1768a8; }
.client-mark.ecuasal::before { background: #062f66; }
.client-mark.tutti::before { background: #6f7d89; }

.safety { background: #f0f3f6; }
.safety-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 100px; align-items: center; }
.safety-visual { height: 600px; background: #d9dfdc; position: relative; overflow: hidden; }
.safety-visual > img { width: 100%; height: 100%; object-fit: cover; }
.safety-badge { position: absolute; z-index: 2; bottom: 0; right: 0; background: var(--safety); color: white; padding: 26px; width: 230px; display: flex; gap: 18px; align-items: center; }
.safety-badge b { font-size: 34px; }
.safety-badge span { font-size: 11px; font-weight: 900; line-height: 1.45; text-transform: uppercase; letter-spacing: .06em; }
.safety-copy > p { color: var(--steel); line-height: 1.7; }
.safety-copy ul { padding: 0; margin: 34px 0; list-style: none; border-top: 1px solid var(--line); }
.safety-copy li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; display: flex; gap: 13px; }
.safety-copy li span { color: var(--safety); }
.disclaimer { font-size: 11px; background: #e1e7ec; padding: 14px 16px; }

.coverage { background: var(--navy); color: white; overflow: hidden; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.coverage p:not(.eyebrow) { color: rgba(255,255,255,.62); max-width: 560px; line-height: 1.7; margin: 28px 0 34px; }
.coverage-map { height: 430px; position: relative; display: grid; place-items: center; }
.map-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.ring-one { width: 270px; height: 270px; }
.ring-two { width: 410px; height: 410px; border-style: dashed; }
.map-dot { width: 76px; height: 76px; background: rgba(104,167,214,.14); border: 1px solid #68a7d6; border-radius: 50%; display: grid; place-items: center; }
.map-dot i { width: 16px; height: 16px; background: var(--safety); border-radius: 50%; box-shadow: 0 0 20px var(--safety); }
.coverage-map > span { position: absolute; bottom: 46px; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.46); }

.join-us { padding: 92px 0; background: var(--navy-2); color: white; scroll-margin-top: 84px; }
.join-us-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 100px; align-items: center; }
.join-us h2 { font-size: clamp(38px, 4vw, 58px); }
.join-us-action > p { margin: 0 0 28px; color: rgba(255,255,255,.68); line-height: 1.7; }
.join-us-action .button { width: fit-content; }
.join-us-action small { display: block; margin-top: 14px; color: rgba(255,255,255,.48); font-size: 10px; }

.contact { padding: 120px 0; background: var(--brand-light); scroll-margin-top: 84px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 110px; }
.contact-intro > p:not(.eyebrow) { line-height: 1.7; max-width: 500px; }
.contact-details { margin-top: 42px; border-top: 1px solid rgba(11,27,34,.25); }
.contact-details div { padding: 17px 0; border-bottom: 1px solid rgba(11,27,34,.25); display: flex; justify-content: space-between; gap: 18px; }
.contact-details small { text-transform: uppercase; font-size: 9px; letter-spacing: .15em; font-weight: 900; }
.contact-details strong { font-size: 11px; }
.contact-form { background: var(--paper); padding: 38px; box-shadow: 14px 14px 0 rgba(11,27,34,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; display: block; border: 0; border-bottom: 1px solid #aeb8b7; background: transparent; padding: 12px 0; color: var(--ink); outline: none; text-transform: none; letter-spacing: normal; font-size: 14px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--navy); }
.contact-form > p { color: var(--steel); font-size: 10px; line-height: 1.5; margin: 14px 0 0; text-align: center; }
.contact-form > p a { color: var(--safety); font-weight: 800; }

footer { background: #071a21; color: white; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 45px; }
.footer-brand { width: 235px; height: 76px; padding: 7px 10px; background: white; overflow: hidden; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; }
footer nav { display: flex; gap: 24px; color: rgba(255,255,255,.55); font-size: 11px; }
footer > .container > p { text-align: right; color: rgba(255,255,255,.36); font-size: 9px; line-height: 1.6; }
.whatsapp-placeholder { position: fixed; z-index: 40; right: 22px; bottom: 20px; background: var(--safety); color: white; min-height: 52px; padding: 8px 14px 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: grid; grid-template-columns: 36px auto; column-gap: 9px; align-items: center; }
.whatsapp-placeholder span { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 10px; font-weight: 900; }
.whatsapp-placeholder b { align-self: end; font-size: 11px; }
.whatsapp-placeholder small { align-self: start; font-size: 8px; opacity: .72; }

@media (max-width: 920px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 900; border: 1px solid var(--line); padding: 12px 14px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: 48px; width: 210px; background: var(--paper); box-shadow: 0 15px 30px rgba(0,0,0,.15); padding: 10px; display: grid; }
  .mobile-menu nav a { padding: 13px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .hero-content { grid-template-columns: 1fr; gap: 45px; }
  .operation-card { max-width: 480px; align-self: auto; }
  .split-layout, .safety-grid, .coverage-grid, .contact-grid, .join-us-layout { grid-template-columns: 1fr; gap: 60px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:first-child { border-left: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
  .section-heading { align-items: start; flex-direction: column; }
  .operations-heading { grid-template-columns: 1fr; gap: 24px; }
  .gallery-item, .gallery-item.landscape { grid-column: span 6; }
  .gallery-item.tall { min-height: 540px; }
  .clients-layout { grid-template-columns: 1fr; gap: 32px; }
  .client-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  footer > .container > p { text-align: left; }
  .hero-strip span:last-child, .hero-strip i:nth-last-child(2) { display: none; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1180px); }
  .site-header { height: 72px; padding: 0 16px; }
  .brand { width: 205px; height: 56px; }
  .hero { min-height: calc(100vh - 72px); }
  .hero-content { padding-top: 62px; padding-bottom: 52px; }
  .hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .operation-card { padding: 22px; }
  .hero-strip { justify-content: flex-start; padding: 0 18px; gap: 15px; overflow: hidden; white-space: nowrap; }
  .hero-strip span:nth-of-type(3), .hero-strip i:nth-of-type(2) { display: none; }
  .section, .contact { padding: 82px 0; scroll-margin-top: 72px; }
  .join-us { padding: 76px 0; scroll-margin-top: 72px; }
  .join-us-action .button { width: 100%; }
  h2 { font-size: 42px; }
  .safety-visual { height: 440px; }
  .operations-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 84vw); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .gallery-item, .gallery-item.landscape, .gallery-item.tall { grid-column: auto; grid-row: auto; min-height: 470px; scroll-snap-align: start; }
  .safety-badge { width: 210px; }
  .coverage-map { height: 330px; }
  .ring-one { width: 210px; height: 210px; }
  .ring-two { width: 320px; height: 320px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 22px; box-shadow: 8px 8px 0 rgba(11,27,34,.1); }
  .client-list { grid-template-columns: repeat(2, 1fr); }
  .contact-details div { display: grid; }
  footer nav { flex-wrap: wrap; }
  .whatsapp-placeholder { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
