:root {
  --dark: #0d2818;
  --dark2: #123420;
  --green: #3f8f2f;
  --green-hover: #347526;
  --text: #1c1c1c;
  --muted: #5a6b5f;
  --bg-alt: #f4f7f4;
  --border: #e1e6e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; gap: .4em; padding: .8em 1.4em; border-radius: 4px; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(63,143,47,.35); }
.btn-outline { border: 2px solid var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }

/* Animación al aparecer en pantalla */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.topbar { background: var(--dark); color: #cfe5d3; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; padding: .5em 0; flex-wrap: wrap; gap: .3em; }

.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; transition: box-shadow .25s ease; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8em 0; gap: 1.5em; transition: padding .25s ease; }
.header.scrolled .header-inner { padding: .45em 0; }
.brand-logo { height: 76px; transition: height .25s ease; }
.header.scrolled .brand-logo { height: 56px; }
.nav { display: flex; gap: 1.4em; flex-wrap: wrap; font-size: .85rem; font-weight: 600; color: var(--dark); }
.nav a { position: relative; padding-bottom: .2em; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--green); transition: width .2s ease; }
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 24px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; background: linear-gradient(120deg, var(--dark) 40%, var(--dark2) 100%); color: #fff; padding: 5em 0; overflow: hidden; }
.hero-photo-bleed { position: absolute; inset: 0; left: 38%; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
.hero-photo-bleed .hero-photo { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-photo-bleed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,40,24,.35), rgba(13,40,24,.6)); }
.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 620px; }
.eyebrow { color: #7fd66a; font-weight: 700; letter-spacing: .05em; font-size: .85rem; }
.eyebrow-light { color: #a8e69a; }
.hero h1 { font-size: 2.6rem; }
.hero .lead { color: #cfe5d3; font-size: 1.05rem; }
.hero-icons { list-style: none; padding: 0; display: flex; gap: 1.5em; flex-wrap: wrap; font-size: .9rem; margin: 1.5em 0; }
.hero-icons li { display: flex; align-items: center; gap: .5em; }
.hero-icons .icon { color: #7fd66a; width: 1.3em; height: 1.3em; }
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: #fff; color: #fff; }

.strip { background: var(--dark2); color: #fff; padding: 2em 0; }
.strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5em; }
.strip-item { display: flex; gap: 1em; align-items: flex-start; }
.strip-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(63,143,47,.18); color: #7fd66a; }
.strip-icon .icon { width: 1.4em; height: 1.4em; }
.strip-item p { font-size: .85rem; color: #b9d3bd; margin: 0; }

.section { padding: 4em 0; }
.section-alt { background: var(--bg-alt); }

.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3em; align-items: center; }
.about-photo-col { padding-bottom: 2.5em; }
.about-photo-frame { position: relative; }
.about-photo { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; }
.about-stats {
  position: absolute; left: 0; right: 0; bottom: -2.5em;
  display: flex; background: #fff; border-radius: 10px;
  box-shadow: 0 16px 32px rgba(13,40,24,.18); overflow: hidden;
}
.stat { position: relative; flex: 1; text-align: center; padding: 1.1em .6em; }
.stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  height: 60%; width: 1px; background: var(--border);
}
.stat-icon { margin: 0 auto; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(63,143,47,.14); color: var(--green); }
.stat-icon .icon { width: 1.1em; height: 1.1em; }
.stat strong { display: block; font-size: 1.4rem; color: var(--dark); margin: .45em 0 .15em; }
.stat small { color: var(--muted); font-size: .72rem; line-height: 1.25; display: block; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; flex-wrap: wrap; margin-bottom: 2em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5em; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.6em; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(13,40,24,.12); border-color: var(--green); }
.card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: rgba(63,143,47,.14); color: var(--green); margin-bottom: .8em; transition: transform .25s ease; }
.card-icon .icon { width: 1.5em; height: 1.5em; }
.card:hover .card-icon { transform: scale(1.1); }
.card a { color: var(--green); font-weight: 600; font-size: .9rem; }

.coverage { background: var(--dark2); color: #fff; padding: 4em 0; }
.coverage-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }
.routes { list-style: none; padding: 0; margin: 0; font-size: 1rem; display: grid; gap: .7em; }
.routes li { display: flex; align-items: center; gap: .6em; }
.routes .icon { color: #7fd66a; }

.quote { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5em 0; }
.quote-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5em 2em; }
.quote-head { display: flex; gap: 1.2em; align-items: center; flex: 1 1 280px; }
.quote-head strong { font-size: 1.3rem; color: var(--dark); }
.quote-head p { margin: 0; font-size: .9rem; }
.quote-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; }
.quote-icon .icon { width: 1.8em; height: 1.8em; }
.quote-fields { display: flex; gap: 1.2em; flex-wrap: wrap; flex: 2 1 480px; }
.quote-fields .field { flex: 1 1 130px; display: flex; flex-direction: column; gap: .3em; font-size: .78rem; color: var(--muted); font-weight: 600; }
.quote-fields select {
  font: inherit; font-size: .85rem; color: var(--text); padding: .65em 2.2em .65em .8em;
  border: 1px solid var(--border); border-radius: 8px; background-color: var(--bg-alt);
  appearance: none; -webkit-appearance: none; cursor: pointer; accent-color: var(--green);
  transition: border-color .2s ease, box-shadow .2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f8f2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7em center; background-size: 1.1em;
}
.quote-fields select:hover, .quote-fields select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(63,143,47,.15); }
.quote-fields select option { padding: .5em; }
.quote-fields select option:hover, .quote-fields select option:checked, .quote-fields select option:focus { background: var(--green); color: #fff; }

.ports { background: var(--dark); color: #fff; padding: 4em 0; }
.ports-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3em; align-items: stretch; }
.ports-text p { color: #cfe5d3; }
.ports-photo-wrap { position: relative; border-radius: 10px; overflow: hidden; min-height: 320px; }
.ports-photo { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.ports-photo-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--dark) 0%, rgba(13,40,24,.6) 20%, transparent 50%);
}
.partner-logos { display: flex; align-items: flex-start; gap: 1em; flex-wrap: wrap; margin-top: 1.8em; }
.partner { display: flex; flex-direction: column; align-items: center; gap: .5em; }
.partner img { height: 84px; width: auto; max-width: 190px; object-fit: contain; background: #fff; padding: 1em 1.5em; border-radius: 8px; transition: transform .25s ease, box-shadow .25s ease; }
.partner img:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.partner span { font-size: .75rem; color: #b9d3bd; }

.footer { background: var(--dark); color: #cfe5d3; padding: 3em 0 1em; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2em; margin-bottom: 2em; }
.footer-inner > div { position: relative; padding-right: 2em; }
.footer-inner > div:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 10%; height: 80%; width: 1px; background: rgba(255,255,255,.12);
}
.footer-logo { width: 100%; height: auto; max-width: 220px; filter: invert(1); mix-blend-mode: screen; margin-bottom: .8em; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .05em; margin-bottom: .8em; }
.footer-inner p { font-size: .85rem; display: flex; align-items: center; gap: .5em; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1em; }
.footer .icon { color: #7fd66a; flex: none; }
.footer a:hover { color: #fff; }
.copyright { text-align: center; font-size: .8rem; border-top: 1px solid #1f4a2c; padding-top: 1em; margin: 0; }

@media (max-width: 900px) {
  .about-inner, .coverage-inner, .ports-inner { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; }
  .stat:nth-child(2)::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-bleed { position: static; height: 260px; margin-top: 2em; -webkit-mask-image: none; mask-image: none; border-radius: 10px; overflow: hidden; }
  .hero h1 { font-size: 2rem; }

  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; border-bottom: 1px solid var(--border); }
  .nav.open { max-height: 400px; }
  .nav a { padding: 1em 24px; border-top: 1px solid var(--border); }
  .header-cta { display: none; }
}
