/* Nicaroads — home redesign (homepage-v1).
   Paleta original: naranja #fc6b1d / #FBB03B, azul #2b3477 / #1c3664 / #255fff / #2850E0.
   Se usan px/clamp (la base de rem del tema es inconsistente). */

.nr-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 20px; box-sizing: border-box; }
@media (min-width: 768px) { .nr-container { padding-inline: 40px; } }
.nr-hero, .nr-hero *, .nr-section, .nr-section * { box-sizing: border-box; }
.nr-hero img, .nr-section img { max-width: 100%; display: block; }

/* ───────── Hero ───────── */
.nr-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(100vh, 860px); padding: 72px 0 56px; background-size: cover; background-position: center; background-color: #1c3664; color: #fff; }
.nr-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,45,.55) 0%, rgba(10,20,45,.5) 55%, rgba(10,20,45,.75) 100%); }
.nr-hero__inner { text-align: center; }
.nr-pill { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; padding: 10px 18px; border-radius: 999px; font-size: 15px; line-height: 1.3; color: #e5e7eb; text-decoration: none; box-shadow: inset 0 0 0 1.5px #fc6b1d; background: rgba(255,255,255,.06); transition: background .2s ease; }
.nr-pill span { font-weight: 700; color: #fff; }
.nr-pill:hover { background: rgba(255,255,255,.14); color: #fff; }
.nr-hero__title { margin: 22px 0 0; font-size: clamp(34px, 6.2vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: #fc6b1d !important; }
.nr-hero__lead { max-width: 720px; margin: 18px auto 0; font-size: clamp(16px, 2vw, 21px); line-height: 1.55; font-weight: 400; color: #fff; }

/* Buscador */
.nr-search { max-width: 1080px; margin: 36px auto 0; padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); text-align: left; color: #2b3477; }
@media (min-width: 768px) { .nr-search { padding: 22px 24px 24px; } }
.nr-toggle { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background-image: linear-gradient(160deg, #FBB03B, #fc6b1d); }
#buttons.nr-toggle label { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: center; color: #1c3664; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
#buttons.nr-toggle label:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }
#buttons.nr-toggle label.is-active { background: #fff !important; color: #2b3477; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
#buttons.nr-toggle .nr-radio { position: absolute; opacity: 0; pointer-events: none; }
#buttons.nr-toggle label:has(.nr-radio:focus-visible) { outline: 3px solid #2850E0; outline-offset: 2px; }

.nr-search__grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; align-items: end; }
@media (min-width: 640px) { .nr-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nr-search__grid { grid-template-columns: 1.5fr 1.5fr 1.1fr .8fr auto; gap: 12px; } }
.nr-search__col { min-width: 0; }
.nr-search__label { display: block; margin: 0 0 6px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.nr-field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: #f3f4f6; transition: box-shadow .2s ease, background-color .2s ease; }
.nr-field:hover { background: #eceff3; }
.nr-field:focus-within { background: #fff; box-shadow: 0 0 0 2px #fc6b1d; }
.nr-field i { flex: none; color: #6b7280; }
.nr-field input { flex: 1; min-width: 0; width: 100%; height: 50px; margin: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; font-size: 16px; color: #1c3664; }
.nr-field input::placeholder { color: #6b7280; }
.nr-field input[type="number"] { text-align: center; -moz-appearance: textfield; }
.nr-field input[type="number"]::-webkit-outer-spin-button, .nr-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nr-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 14px; background: #2850E0 !important; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.nr-go:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 10px 20px -6px rgba(40,80,224,.5); }
.nr-go:active { transform: translateY(0); }
@media (max-width: 1023px) { .nr-go { grid-column: 1 / -1; width: 100%; } }

.nr-secure { display: inline-flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 10px 18px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); color: #2b3477; font-weight: 700; font-size: 15px; text-align: left; }
.nr-secure img { height: auto; width: 96px; border-radius: 6px; }

/* ───────── Secciones ───────── */
.nr-section { padding: 72px 0; }
@media (min-width: 768px) { .nr-section { padding: 108px 0; } }
.nr-section--white { background: #fff; }
.nr-section--photo { position: relative; isolation: isolate; background-size: cover; background-position: center; background-color: #111827; }
.nr-section--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,20,45,.55); }
.nr-section--blue { background: #255fff; }
.nr-section--contact { background: #fc6b1d; padding: 56px 0; }
@media (min-width: 768px) { .nr-section--contact { padding: 88px 0; } }

.nr-head { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.nr-title { margin: 0; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; color: #2b3477; }
.nr-title::after { content: ""; display: block; width: 64px; height: 4px; margin: 18px auto 0; border-radius: 4px; background-image: linear-gradient(160deg, #FBB03B, #fc6b1d); }
.nr-lead { margin: 20px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: #2b3477; }
.nr-head--light .nr-title, .nr-head--light .nr-lead { color: #fff; }

/* Reveal al hacer scroll (solo si hay JS) */
.nr-reveal { opacity: 1; }
.js .nr-reveal, html.js-ready .nr-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.nr-reveal.is-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .nr-reveal { opacity: 1 !important; transform: none !important; } }

/* Features */
.nr-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .nr-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.nr-feature { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.nr-feature__icon { display: flex; align-items: center; justify-content: center; width: clamp(104px, 22vw, 150px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 16px 30px -14px rgba(252,107,29,.8); transition: transform .3s ease; }
.nr-feature:hover .nr-feature__icon { transform: translateY(-4px) scale(1.04); }
.nr-feature__svg { width: 52%; height: 52%; color: #2b3477; }
.nr-feature__name { margin: 0; font-size: clamp(14px, 1.8vw, 20px); font-weight: 700; letter-spacing: .04em; color: #2b3477; }

/* Servicios */
.nr-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .nr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .nr-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.nr-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transition: transform .3s ease, box-shadow .3s ease; }
.nr-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -18px rgba(0,0,0,.65); }
.nr-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.nr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nr-card:hover .nr-card__media img { transform: scale(1.06); }
.nr-card__badge { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; color: #1c3664; font-size: 20px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.45); }
.nr-card__body { padding: 22px 22px 26px; }
.nr-card__body h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; font-weight: 700; color: #2b3477; }
.nr-card__body p { margin: 0; font-size: 15px; line-height: 1.65; color: #4b5563; }

/* Destinos */
.nr-places { display: grid; grid-template-columns: 1fr; gap: 20px; }
.nr-places + .nr-places { margin-top: 20px; }
@media (min-width: 560px) { .nr-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nr-places { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nr-place { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: #1c3664; text-decoration: none; box-shadow: 0 18px 36px -20px rgba(10,20,45,.7); }
.nr-place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.nr-place:hover img { transform: scale(1.07); }
.nr-place__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,45,.85) 0%, rgba(10,20,45,.15) 55%, transparent 100%); }
.nr-place__name { position: absolute; left: 20px; right: 20px; bottom: 74px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.nr-place__cta { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #1c3664; transition: transform .25s ease, gap .25s ease; }
.nr-place:hover .nr-place__cta { gap: 14px; transform: translateY(-2px); }
.nr-place:focus-visible { outline: 3px solid #2850E0; outline-offset: 3px; }

/* Flota */
.nr-fleet { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) { .nr-fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nr-fleet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.nr-vehicle { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 26px 22px 22px; border-radius: 28px; box-shadow: 0 20px 36px -18px rgba(0,0,0,.55); transition: transform .3s ease, box-shadow .3s ease; }
.nr-vehicle:hover { transform: translateY(-5px); box-shadow: 0 28px 46px -18px rgba(0,0,0,.6); }
.nr-vehicle img { width: 100%; height: auto; max-height: 190px; object-fit: contain; }
.nr-vehicle figcaption { font-size: 24px; font-weight: 700; color: #2b3477; }

/* Contacto */
.nr-contact { position: relative; display: flex; align-items: center; min-height: 320px; border-radius: 28px; background-color: #000; background-size: cover; background-position: center; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.nr-contact__form { position: relative; z-index: 1; width: 100%; padding: 32px 22px; }
@media (min-width: 768px) { .nr-contact__form { padding: 48px; } }
@media (min-width: 1100px) { .nr-contact__form { width: 55%; padding: 56px 64px; } }
.nr-contact__img { display: none; margin: 0; }
@media (min-width: 1100px) { .nr-contact__img { display: block; position: absolute; right: 0; bottom: 0; top: 0; width: 45%; } .nr-contact__img img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; } }
