:root {
    --navy: #07111f;
    --navy-2: #0c1b31;
    --navy-3: #132844;
    --electric: #1b7dff;
    --electric-2: #4aa3ff;
    --cyan: #22d3ee;
    --accent: #ffb020;
    --white: #ffffff;
    --off: #f4f7fb;
    --muted: #6b778c;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 50px rgba(7, 17, 31, 0.14);
    --radius: 18px;
    --font: "Manrope", system-ui, sans-serif;
    --display: "Outfit", "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--navy);
    background: var(--white);
    scroll-behavior: smooth;
    background-color: #e4ede9;
}

h1, h2, h3, .display {
    font-family: var(--display);
    letter-spacing: -0.03em;
}

a { color: inherit; }

.site-main {
    min-height: 60vh;
    
}

.container-site {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

/* NAV */
.navbar-tp {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.navbar-tp__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 800;
    flex: 0 0 auto;
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.15rem;
}

.brand__name {
    font-size: 0.92rem;
    line-height: 1.2;
    max-width: 120px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    transition: 0.2s ease;
    /* Never let flex squeeze the labels together at mid-width viewports. */
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-links a.active,
.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta { display: none; flex: 0 0 auto; white-space: nowrap; }

/* Was completely unstyled, so this read as a dark, barely visible link jammed
   against the CTA. Given a bordered pill so it is legible against the navy
   bar and distinguishable from the plain nav links. */
.nav-intranet {
    display: none;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: 0.2s ease;
}

.nav-intranet:hover {
    color: var(--navy);
    background: var(--white);
    border-color: var(--white);
}

.nav-intranet:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    color: white;
    border-radius: 12px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0 0 1.25rem;
    gap: 0.25rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

/* The full row (brand + 7 links + CTA + intranet) needs roughly 1180px before
   the links start to touch. Showing it at 992px was what made the menu look
   cramped, so the desktop row now starts at 1200px and the hamburger covers
   everything narrower. */
@media (min-width: 1200px) {
    .nav-links, .nav-cta, .nav-intranet { display: flex; }
    .nav-toggle, .nav-mobile { display: none !important; }
}

/* Reclaim the brand text width on the narrowest desktop screens so the links
   keep their breathing room. */
@media (min-width: 1200px) and (max-width: 1399px) {
    .brand__name { display: none; }
}

/* BUTTONS */
.btn-tp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    padding: 0.95rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-tp:hover { transform: translateY(-2px); }

.btn-primary-tp {
    background: linear-gradient(135deg, var(--electric), #0b5ed7);
    color: white;
    box-shadow: 0 10px 24px rgba(27, 125, 255, 0.35);
}

.btn-ghost-tp {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-dark-tp {
    background: var(--navy);
    color: white;
}

.btn-outline-tp {
    background: transparent;
    color: var(--navy);
    border: 1px solid #d7deea;
}

/* HERO */
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: white;
}

.hero--compact {
    min-height: 58vh;
    align-items: center;
}

.hero__media,
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.2) 0%, rgba(7, 17, 31, 0.55) 40%, rgba(7, 17, 31, 0.92) 100%),
        linear-gradient(90deg, rgba(7, 17, 31, 0.55), transparent 55%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 5.5rem 0 3.2rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    line-height: 1.05;
    max-width: 16ch;
    margin: 0 0 1rem;
}

.hero .lead {
    max-width: 42ch;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

/* SECTIONS */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--navy);
    color: white;
}

.section-soft { background: var(--off); }

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.6rem;
}

.section-copy {
    color: var(--muted);
    max-width: 52ch;
    font-size: 1.05rem;
}

.section-dark .section-copy { color: rgba(255, 255, 255, 0.72); }

/* CARDS */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8eef6;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: block;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(7, 17, 31, 0.16);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #edf4ff;
    color: var(--electric);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.service-card p {
    color: var(--muted);
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    backdrop-filter: blur(8px);
}

.stat strong {
    display: block;
    font-size: 1.35rem;
    font-family: var(--display);
}

.stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.capacity {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.capacity__visual {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
}

.capacity__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.tonnage {
    font-size: clamp(3.2rem, 10vw, 7rem);
    line-height: 0.9;
    margin: 0.4rem 0 0.8rem;
    background: linear-gradient(90deg, var(--electric), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.steps {
    display: grid;
    gap: 1rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: white;
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e8eef6;
}

.step__num {
    font-family: var(--display);
    font-weight: 800;
    color: var(--electric);
    font-size: 1.3rem;
}

.coverage-panel {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.peru-map {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.peru-map svg { width: 100%; height: auto; }

.tree {
    font-family: var(--display);
    background: var(--navy-2);
    color: white;
    border-radius: 24px;
    padding: 1.5rem;
}

.tree ul { list-style: none; padding-left: 1.2rem; margin: 0.4rem 0; }
.tree > ul { padding-left: 0; }
.tree li { position: relative; padding: 0.45rem 0; }
.tree .node {
    display: inline-block;
    background: rgba(27, 125, 255, 0.18);
    border: 1px solid rgba(74, 163, 255, 0.35);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.92rem;
}

.future-zones {
    display: grid;
    gap: 0.8rem;
}

.zone-chip {
    border: 1px dashed #c9d4e4;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: var(--muted);
    background: white;
}

.quote-card, .form-shell {
    background: white;
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    border: 1px solid #e8eef6;
}

.form-label { font-weight: 700; font-size: 0.86rem; }
.form-control, .form-select {
    border-radius: 12px !important;
    padding: 0.8rem 0.9rem !important;
    border-color: #d7deea !important;
}

.validation-message { font-size: 0.82rem; margin-top: 0.25rem; display: block; }

.alert-ok {
    background: #e8f8ee;
    color: #146c36;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.values {
    display: grid;
    gap: 1rem;
}

.value {
    background: white;
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid #e8eef6;
}

.photo-split {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.photo-split img {
    width: 100%;
    border-radius: 24px;
    min-height: 280px;
    object-fit: cover;
}

.testimonial {
    background: white;
    border-radius: 18px;
    padding: 1.3rem;
    border: 1px solid #e8eef6;
}

.testimonial p { margin: 0 0 0.8rem; }
.testimonial span { color: var(--muted); font-size: 0.88rem; }

.cta {
    background:
        radial-gradient(circle at 20% 20%, rgba(27, 125, 255, 0.28), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.18), transparent 40%),
        var(--navy);
    color: white;
    border-radius: 28px;
    padding: 2.4rem 1.4rem;
    text-align: center;
}

.cta h2 { max-width: 18ch; margin: 0 auto 1.2rem; }

.footer-tp {
    background: #050b14;
    color: rgba(255, 255, 255, 0.78);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-tp a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-tp a:hover { color: white; }
.footer-tp h4 { color: white; font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-tp ul { list-style: none; padding: 0; margin: 0; }
.footer-tp li { margin-bottom: 0.45rem; }
.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    font-size: 0.85rem;
}

.wa-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    animation: pulse 2.4s ease-in-out infinite;
}

.wa-btn:hover { color: white; transform: scale(1.06); }

.wa-tip {
    position: absolute;
    right: 74px;
    background: var(--navy);
    color: white;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: 0.2s ease;
    pointer-events: none;
}

.wa-wrap:hover .wa-tip { opacity: 1; transform: none; }

.route-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    background: #0c1b31;
}

.route-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    position: absolute;
    inset: 0;
}

.route-dots {
    position: relative;
    z-index: 1;
    padding: 2rem 1.2rem;
    color: white;
}

.contact-cards {
    display: grid;
    gap: 0.9rem;
}

.contact-card {
    background: var(--navy-2);
    color: white;
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
}

.contact-card small { color: rgba(255, 255, 255, 0.6); display: block; }

.js-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

@media (min-width: 768px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .coverage-panel, .photo-split, .capacity { grid-template-columns: 1.1fr 0.9fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .form-shell, .quote-card { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .js-reveal { opacity: 1; transform: none; }
}

h1:focus { outline: none; }
.invalid { outline: 1px solid #e50000; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }

#blazor-error-ui {
    background: #fff8dc;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

