:root {
    --teal: #14253d;
    --aqua: #ff9624;
    --mint: #ff9624;
    --cream: #f5f7f9;
    --ink: #14253d;
    --line: #dfe4e8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
}

.mr-container {
    width: min(1160px, calc(100% - 44px));
    margin: auto;
}


/* =========================
   PORTADA PRINCIPAL
========================= */

.mr-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(20, 37, 61, 0.91) 0%,
            rgba(20, 37, 61, 0.72) 48%,
            rgba(20, 37, 61, 0.18) 100%
        ),
        url("https://images.unsplash.com/photo-1526392060635-9d6019884377?auto=format&fit=crop&w=2000&q=85")
        center 48% / cover no-repeat;
}

.mr-hero-content {
    position: relative;
    width: min(1160px, calc(100% - 44px));
    margin: auto;
    padding: 88px 0 100px;
}

.mr-eyebrow,
.mr-kicker {
    font-size: 10px;
    letter-spacing: 2.3px;
    font-weight: 800;
    margin: 0 0 17px;
}

.mr-eyebrow {
    color: var(--mint);
}

.mr-hero h1 {
    max-width: 760px;
    font-family: Georgia, serif;
    font-size: clamp(40px, 5.5vw, 70px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -1.6px;
    margin: 0 0 22px;
}

.mr-hero-lead {
    font-size: 17px;
    max-width: 630px;
    color: #f4f5f1;
    line-height: 1.8;
    margin: 0;
}

.mr-hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.mr-button {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    padding: 15px 20px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.mr-button:hover {
    transform: translateY(-2px);
}

.mr-button-light {
    background: #f02f36;
    color: #ffffff;
}

.mr-button-light:hover {
    background: #d91f2b;
    color: #ffffff;
}

.mr-text-link {
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mr-hero-note {
    margin-top: 38px;
    font-size: 11px;
    color: #e0e9e4;
}

.mr-hero-label {
    position: absolute;
    right: 26px;
    bottom: 24px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #fffa;
    writing-mode: vertical-rl;
}

/* =========================
   INTRODUCCIÓN
========================= */

.mr-intro {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 48px;
    padding-top: 95px;
    padding-bottom: 90px;
}

.mr-intro-number {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--aqua);
    padding-top: 9px;
}

.mr-kicker {
    color: var(--aqua);
    margin-bottom: 12px;
}

.mr-intro h2,
.mr-section-heading h2,
.mr-altitude-layout h2,
.mr-facts-inner h2,
.mr-final-cta h2 {
    font-family: Georgia, serif;
    font-weight: 500;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.7px;
    margin: 0 0 20px;
    color: var(--ink);
}

.mr-intro p:not(.mr-kicker) {
    max-width: 800px;
    color: #263140;
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

/* =========================
   TARJETAS DE RUTAS
========================= */

.mr-routes-section {
    padding: 88px 0;
    background: #f5f7f9;
}

.mr-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 36px;
}

.mr-section-heading h2 {
    margin-bottom: 0;
}

.mr-section-desc {
    max-width: 370px;
    color: #6d7785;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 3px;
}

.mr-route-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mr-route-card {
    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 28px rgba(20, 37, 61, 0.06);
    min-width: 0;
}

.mr-route-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mr-route-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: #14253d;
    background: #fff3e5;
    padding: 8px 10px;
    border-radius: 3px;
}

.mr-tag-sand {
    background: #fff3e5;
    color: #b96512;
}

.mr-route-icon {
    color: var(--aqua);
    font-size: 24px;
}

.mr-route-card h3 {
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
    margin: 17px 0 8px;
    color: #14253d;
}

.mr-route-summary {
    font-size: 13px;
    line-height: 1.75;
    color: #6d7785;
    min-height: 46px;
    margin: 0 0 17px;
}

.mr-map-art {
    border: 1px solid #dfe4e8;
    border-radius: 7px;
    overflow: hidden;
    background: #f5f7f9;
}

.mr-map-art svg {
    width: 100%;
    height: auto;
    display: block;
}

.mr-contour {
    fill: none;
    stroke: #ffb86b;
    stroke-width: 1.1;
    opacity: 0.48;
}

.mr-pin circle {
    fill: var(--cream);
    stroke: var(--teal);
    stroke-width: 3;
}

.mr-map-label {
    font-size: 11px;
    fill: var(--ink);
    font-weight: 700;
}

.mr-north {
    font-size: 11px;
    fill: var(--teal);
    font-weight: 800;
}

.mr-route-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.mr-route-stats span,
.mr-stage-alt span {
    display: block;
    font-size: 10px;
    color: #6d7785;
    margin-bottom: 5px;
}

.mr-route-stats strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
}

.mr-card-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 17px;
    text-decoration: none;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
}

.mr-card-link:hover {
    color: var(--aqua);
}

.mr-card-link span {
    font-size: 17px;
}

.mr-small-note {
    font-size: 11px;
    color: #6d7785;
    margin: 18px 0 0;
}

/* =========================
   ITINERARIO Y CRONOLOGÍA
========================= */

.mr-itinerary {
    padding-top: 100px;
    padding-bottom: 100px;
}

.mr-timeline {
    position: relative;
    margin-top: 46px;
}

.mr-timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 16px;
    bottom: 20px;
    width: 1px;
    background: #ffbd78;
}

.mr-stage {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 160px;
    gap: 24px;
    padding: 0 0 43px;
}

.mr-stage:last-child {
    padding-bottom: 0;
}

.mr-stage-marker {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-family: Georgia, serif;
    font-size: 17px;
    border: 5px solid #fff3e5;
}

.mr-stage-day {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--aqua);
    margin: 3px 0 9px;
}

.mr-stage-body h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    margin: 0 0 9px;
    color: #14253d;
}

.mr-stage-body > p:not(.mr-stage-day) {
    font-size: 13px;
    color: #6d7785;
    line-height: 1.85;
    margin: 0;
    max-width: 720px;
}

.mr-stage-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.mr-stage-tags span {
    font-size: 10px;
    color: var(--teal);
    background: #fff3e5;
    border-radius: 3px;
    padding: 6px 9px;
}

.mr-stage-alt {
    align-self: start;
    padding: 14px;
    background: #f5f7f9;
    border-radius: 6px;
    margin-top: 4px;
}

.mr-stage-alt strong {
    font-size: 14px;
    color: var(--teal);
}

/* =========================
   ALTITUDES Y GRÁFICO
========================= */

.mr-altitude-section {
    background: var(--cream);
    padding: 90px 0;
}

.mr-altitude-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 58px;
    align-items: center;
}

.mr-altitude-layout > div:first-child > p:not(.mr-kicker) {
    font-size: 14px;
    line-height: 1.85;
    color: #263140;
}

.mr-altitude-callout {
    display: flex;
    gap: 13px;
    margin-top: 26px;
    padding: 18px;
    background: #fff3e5;
    border-left: 3px solid var(--aqua);
}

.mr-callout-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: #ff9624;
    color: #14253d;
}

.mr-altitude-callout p {
    font-size: 12px;
    line-height: 1.75;
    color: #263140;
    margin: 0;
}

.mr-altitude-callout strong {
    color: var(--ink);
}

.mr-elevation-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 32px rgba(20, 37, 61, 0.08);
}

.mr-elevation-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.mr-elevation-header span {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--aqua);
    font-weight: 800;
}

.mr-elevation-header strong {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.mr-elevation-unit {
    white-space: nowrap;
}

.mr-elevation-chart {
    position: relative;
    padding: 20px 0 0 48px;
    margin-top: 14px;
}

.mr-elevation-grid {
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 9px;
    color: #6d7785;
}

.mr-elevation-chart svg {
    width: 100%;
    height: 210px;
    display: block;
    border-bottom: 1px solid #dfe4e8;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 51px,
        #e5e9ed 52px
    );
}

.mr-elevation-labels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 12px;
}

.mr-elevation-labels div {
    text-align: center;
    min-width: 0;
}

.mr-elevation-labels strong {
    display: block;
    font-size: 10px;
    color: var(--teal);
}

.mr-elevation-labels span {
    display: block;
    font-size: 9px;
    line-height: 1.35;
    color: #6d7785;
    margin-top: 4px;
}

.mr-chart-note {
    font-size: 10px;
    line-height: 1.6;
    color: #6d7785;
    margin: 17px 0 0;
}

/* =========================
   SITIOS ARQUEOLÓGICOS
========================= */

.mr-sites {
    padding-top: 100px;
    padding-bottom: 100px;
}

.mr-site-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mr-site-card {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 7px;
    min-height: 190px;
    transition: transform 0.2s, border-color 0.2s;
}

.mr-site-card:hover {
    transform: translateY(-3px);
    border-color: var(--mint);
}

.mr-site-number {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--aqua);
}

.mr-site-card h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    margin: 14px 0 8px;
    color: #14253d;
}

.mr-site-card p {
    font-size: 12px;
    line-height: 1.8;
    color: #6d7785;
    margin: 0;
}

/* =========================
   DATOS IMPORTANTES
========================= */

.mr-quick-facts {
    background: #f5f7f9;
    padding: 70px 0;
}

.mr-facts-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 65px;
}

.mr-facts-inner h2 {
    font-size: 37px;
}

.mr-facts-inner ul {
    padding-left: 19px;
    margin: 0;
    color: #263140;
    font-size: 13px;
    line-height: 1.9;
}

.mr-facts-inner li {
    padding-left: 6px;
    margin-bottom: 8px;
}

.mr-facts-inner li::marker {
    color: #ff9624;
}

/* =========================
   LLAMADA A LA ACCIÓN
========================= */

.mr-final-cta {
    padding: 80px 22px;
    background: var(--teal);
    color: white;
    text-align: center;
}

.mr-final-cta-inner {
    max-width: 720px;
    margin: auto;
}

.mr-final-cta .mr-kicker {
    color: var(--mint);
}

.mr-final-cta h2 {
    color: white;
    margin-bottom: 13px;
}

.mr-final-cta p:not(.mr-kicker) {
    max-width: 560px;
    margin: auto;
    color: #e0e9f0;
    font-size: 14px;
    line-height: 1.8;
}

.mr-button-dark {
    background: #f02f36;
    color: #ffffff;
    margin-top: 25px;
}

.mr-button-dark:hover {
    background: #d91f2b;
    color: #ffffff;
}

/* =========================
   PIE DE PÁGINA
========================= */

.mr-footer {
    padding: 40px 22px 25px;
    text-align: center;
    background: #14253d;
    color: #dfe4e8;
}

.mr-footer-brand {
    justify-content: center;
    color: white;
}

.mr-footer-brand .mr-brand-mark {
    border-color: var(--mint);
}

.mr-footer p {
    font-size: 12px;
    color: #c2ccd6;
    margin: 16px 0;
}

.mr-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 18px 0 25px;
}

.mr-footer-links a {
    font-size: 11px;
    color: #dfe4e8;
    text-decoration: none;
}

.mr-footer-links a:hover {
    color: #ff9624;
}

.mr-footer > small {
    font-size: 10px;
    color: #aab7c5;
}

/* =========================
   BOTÓN FLOTANTE WHATSAPP
========================= */

.mr-whatsapp {
    position: fixed;
    z-index: 900;
    right: 20px;
    bottom: 20px;
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    background: #20b866;
    color: white;
    border-radius: 50%;
    font-size: 27px;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(16, 43, 37, 0.2);
}

/* =========================
   DISEÑO RESPONSIVE
   TABLETS Y PANTALLAS MEDIANAS
========================= */

@media (max-width: 1050px) {
    .mr-nav {
        gap: 11px;
    }

    .mr-nav > a,
    .mr-dropdown-toggle {
        font-size: 11px;
    }

    .mr-header {
        padding-inline: 18px;
    }

    .mr-altitude-layout {
        gap: 30px;
    }
}

/* =========================
   MENÚ MÓVIL Y TABLETS
========================= */

@media (max-width: 860px) {
    .mr-menu-toggle {
        display: block;
    }

    .mr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 14px 22px 22px;
        box-shadow: 0 14px 22px rgba(20, 37, 61, 0.1);
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow: auto;
    }

    .mr-nav.is-open {
        display: flex;
        flex-direction: column;
    }

    .mr-nav > a,
    .mr-dropdown-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 13px 4px;
        font-size: 13px;
    }

    .mr-nav .mr-nav-cta {
        padding: 13px 15px;
        margin-top: 7px;
        background: #f02f36;
        color: #ffffff;
    }

    .mr-dropdown {
        position: static;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--mint);
        border-radius: 0;
        margin: 0 0 7px 8px;
        padding: 4px 0 4px 8px;
        min-width: 0;
    }

    .mr-nav-group:hover .mr-dropdown {
        display: none;
    }

    .mr-nav-group.is-open .mr-dropdown,
    .mr-nav-group:focus-within .mr-dropdown {
        display: grid;
    }

    .mr-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

    .mr-section-desc {
        max-width: 620px;
    }

    .mr-altitude-layout,
    .mr-facts-inner {
        grid-template-columns: 1fr;
    }

    .mr-facts-inner {
        gap: 20px;
    }
}

/* =========================
   TELÉFONOS
========================= */

@media (max-width: 620px) {
    .mr-container {
        width: calc(100% - 34px);
    }

    .mr-hero {
        min-height: 590px;
        background-position: 58% center;
    }

    .mr-hero-content {
        width: calc(100% - 34px);
        padding: 75px 0 80px;
    }

    .mr-hero h1 {
        font-size: 42px;
        letter-spacing: -0.8px;
    }

    .mr-hero-lead {
        font-size: 15px;
    }

    .mr-hero-label {
        display: none;
    }

    .mr-intro {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 62px 0;
    }

    .mr-intro h2,
    .mr-section-heading h2,
    .mr-altitude-layout h2,
    .mr-final-cta h2 {
        font-size: 34px;
    }

    .mr-routes-section {
        padding: 62px 0;
    }

    .mr-route-grid {
        grid-template-columns: 1fr;
    }

    .mr-route-card {
        padding: 18px;
    }

    .mr-route-card h3 {
        font-size: 26px;
    }

    .mr-itinerary,
    .mr-sites {
        padding: 65px 0;
    }

    .mr-stage {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
        padding-bottom: 35px;
    }

    .mr-timeline::before {
        left: 21px;
    }

    .mr-stage-marker {
        width: 44px;
        height: 44px;
        border-width: 4px;
        font-size: 14px;
    }

    .mr-stage-body h3 {
        font-size: 22px;
    }

    .mr-stage-alt {
        grid-column: 2;
        margin-top: 0;
        display: inline-block;
        justify-self: start;
        padding: 10px 13px;
    }

    .mr-altitude-section {
        padding: 62px 0;
    }

    .mr-elevation-card {
        padding: 15px 12px;
    }

    .mr-elevation-chart {
        padding-left: 37px;
    }

    .mr-elevation-chart svg {
        height: 160px;
    }

    .mr-elevation-labels strong,
    .mr-elevation-labels span {
        font-size: 8px;
        overflow-wrap: anywhere;
    }

    .mr-site-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mr-site-card {
        padding: 18px 15px;
        min-height: 0;
    }

    .mr-site-card h3 {
        font-size: 19px;
    }

    .mr-quick-facts {
        padding: 55px 0;
    }

    .mr-facts-inner h2 {
        font-size: 32px;
    }

    .mr-final-cta {
        padding: 60px 18px;
    }

    .mr-whatsapp {
        right: 14px;
        bottom: 14px;
        width: 49px;
        height: 49px;
    }
}

/* =========================
   TELÉFONOS PEQUEÑOS
========================= */

@media (max-width: 390px) {
    .mr-site-grid {
        grid-template-columns: 1fr;
    }

    .mr-hero h1 {
        font-size: 36px;
    }

    .mr-route-stats {
        grid-template-columns: 1fr;
    }

    .mr-elevation-labels {
        gap: 2px;
    }

    .mr-elevation-labels strong {
        font-size: 7px;
    }
}