/* Nueva Era Logistics — estilos del sitio (CSS puro, mobile-first) */

:root {
    --navy: #0f3557;
    --navy-900: #0a2238;
    --blue: #1b6aa5;
    --blue-100: #e8f1f8;
    --orange: #f59c1a;
    --orange-600: #db8306;
    --ink: #1f2d3a;
    --muted: #5a6876;
    --line: #dde4ea;
    --bg: #ffffff;
    --bg-alt: #f4f7fa;
    --success: #1e7e4a;
    --error: #b42318;

    --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 10px;
    --shadow: 0 10px 30px rgba(15, 53, 87, .08);
    --container: 1180px;
    --gutter: 16px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.visually-hidden {
    position: absolute !important; 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: 16px; top: -60px; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .7em 1.5em; border: 2px solid transparent; border-radius: 999px;
    font: 600 .95rem/1.2 var(--font-head); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--orange); color: var(--navy-900); }
.btn--accent:hover { background: var(--orange-600); color: var(--navy-900); }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4em;
    font: 600 .95rem var(--font-head); text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Topbar y header ---------- */
.topbar { background: var(--navy-900); color: #cfdbe6; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar__link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar__link:hover { color: #fff; }
.topbar__email { display: none; }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@media (min-width: 640px) { .topbar__email { display: inline-flex; } }

.lang-switch {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
    color: #fff; font: 600 .78rem var(--font-head); letter-spacing: .05em; text-decoration: none;
}
.lang-switch:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.site-logo img { width: auto; height: 62px; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--navy); font-size: 1.3rem; cursor: pointer;
}
.nav-toggle__open { display: inline-flex; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px;
    display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a {
    display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
    color: var(--ink); font: 600 1rem var(--font-head); text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav__cta { width: 100%; }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static; display: flex !important; align-items: center; gap: 28px;
        padding: 0; border: 0; box-shadow: none; background: none;
    }
    .site-nav ul { display: flex; gap: 26px; margin: 0; }
    .site-nav li a { position: relative; padding: 8px 0; border: 0; font-size: .95rem; }
    .site-nav li a::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
        background: var(--orange); transform: scaleX(0); transition: transform .2s;
    }
    .site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
    .site-nav__cta { width: auto; }
}

/* ---------- Hero / slider ---------- */
.hero {
    position: relative; display: flex; align-items: center; overflow: hidden;
    min-height: clamp(460px, 72vh, 640px); color: #fff; background: var(--navy-900);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slides::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 34, 56, .88) 0%, rgba(10, 34, 56, .55) 55%, rgba(10, 34, 56, .2) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 72px; }
.hero__eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 4px 14px; border-radius: 999px;
    background: rgba(245, 156, 26, .18); color: var(--orange);
    font: 600 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase;
}
.hero__title { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .3em; }
.hero__text { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e3ebf2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__dots { position: absolute; z-index: 1; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dot {
    width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%;
    background: transparent; cursor: pointer; transition: background-color .2s, width .2s;
}
.hero__dot.is-active { width: 30px; border-radius: 999px; background: var(--orange); border-color: var(--orange); }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { text-align: center; margin-bottom: 1.4em; }
.section__title::after {
    content: ""; display: block; width: 56px; height: 4px; margin: .5em auto 0;
    border-radius: 2px; background: var(--orange);
}
.section__title--left { text-align: left; }
.section__title--left::after { margin-left: 0; }

.intro { display: grid; gap: 40px; align-items: center; }
.intro__text { font-size: 1.08rem; color: var(--muted); }
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modes__item {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 10px;
    border-radius: var(--radius); background: var(--blue-100); color: var(--navy);
    font: 700 1rem var(--font-head); text-align: center;
}
.modes__icon {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--navy); color: var(--orange); font-size: 1.8rem;
}
@media (min-width: 900px) { .intro { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
    display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--orange);
    transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); flex: 1; }
.card__icon {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
    border-radius: 14px; background: var(--blue-100); color: var(--blue); font-size: 1.6rem;
}

.clients {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.clients li { border-radius: var(--radius); overflow: hidden; background: #eee; }
.clients img { width: 100%; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .clients { grid-template-columns: repeat(7, 1fr); } }

.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #e3ebf2; padding: 56px 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta__title { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Páginas interiores ---------- */
.page-hero {
    position: relative; padding: clamp(56px, 9vw, 96px) 0;
    background: var(--navy) var(--hero-image) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 34, 56, .72); }
.page-hero .container { position: relative; }
.page-hero__title { color: #fff; margin: 0; }
.page-hero__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .45em; border-radius: 2px; background: var(--orange); }

.prose { color: var(--muted); font-size: 1.05rem; }
.prose h2 { margin-top: 0; }

.about { display: grid; gap: 40px; align-items: center; }
.about__image { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

.values { display: grid; gap: 20px; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 28px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.value__icon {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
    border-radius: 50%; background: var(--orange); color: var(--navy-900); font-size: 1.3rem;
}

.with-sidebar { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
    .with-sidebar { grid-template-columns: minmax(0, 1fr) 370px; gap: 56px; }
    .with-sidebar > .contact-card { position: sticky; top: calc(var(--header-h) + 24px); }
}

.services { display: grid; gap: 28px; }
.service {
    display: grid; grid-template-columns: auto 1fr; gap: 20px;
    padding: 28px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.service__number {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); color: #fff; font: 700 1.1rem var(--font-head);
}
.service__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.service__icon { display: inline-flex; color: var(--orange); font-size: 1.5rem; }
.service__body > p { color: var(--muted); }
.service__note {
    margin: 20px 0 0; padding: 16px 18px; border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-alt);
}
@media (max-width: 539px) {
    .service { grid-template-columns: 1fr; padding: 22px 18px; }
    .service__title { align-items: flex-start; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); column-gap: 24px; } }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: .3em; color: var(--success); }

.contact-card {
    padding: clamp(20px, 5vw, 28px); font-size: .94rem; border-radius: var(--radius); background: var(--navy); color: #d6e2ec;
}
.contact-card__title { color: #fff; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.contact-card .contact-list a { color: #fff; }
.contact-card .btn { margin-top: 8px; }

.contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin-top: .25em; color: var(--orange); font-size: 1.1rem; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .85rem; letter-spacing: .03em; color: #fff; }
.contact-list span { display: block; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Formulario ---------- */
.form-panel { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.form__field--full { grid-column: 1 / -1; }
.form label { display: block; margin-bottom: 6px; font: 600 .9rem var(--font-head); color: var(--navy); }
.form label span { color: var(--error); }
.form input, .form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #c4cfd9; border-radius: 8px;
    background: #fff; color: var(--ink); font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 106, 165, .2); }
.form__error { margin: 4px 0 0; min-height: 0; color: var(--error); font-size: .85rem; }
.form__error:empty { display: none; }
.has-error input, .has-error textarea { border-color: var(--error); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.alert .icon { margin-top: .2em; }
.alert--success { background: #e6f4ec; color: var(--success); }
.alert--error { background: #fdecea; color: var(--error); }

.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.9); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__code { margin: 0; font: 700 clamp(4rem, 14vw, 7rem)/1 var(--font-head); color: var(--orange); }
.notfound p:not(.notfound__code) { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c7d4; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1.4fr 1fr; } }
.site-footer__logo { width: 170px; padding: 10px 14px; border-radius: var(--radius); background: #fff; }
.site-footer__tagline { margin-top: 14px; font: italic 600 1rem var(--font-head); color: var(--orange); }
.site-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer .contact-list a, .site-footer__nav a { color: #dbe5ee; }
.site-footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--orange); }
.site-footer__credits { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; text-align: center; }
