body { display: block; background: var(--bg-page); color: var(--text-dark); margin: 0; padding: 0; }
.rm-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.rm-hero { background: var(--white); padding: 48px 0; }
.rm-hero .rm-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.rm-hero .rm-wrap > * { min-width: 0; }
.rm-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.rm-brand img { width: 52px; height: 52px; }
.rm-hero h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 16px; color: var(--text-dark); text-align: left; }
.rm-hero p { font-size: 1.05rem; line-height: 1.55; margin: 0 0 24px; color: #475569; }
.rm-cta { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 14px 24px; border-radius: var(--radius-sm); text-decoration: none; }
.rm-cta:hover { background: var(--primary-hover); }
.rm-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.rm-cta-alt { background: var(--white); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
html { scroll-behavior: smooth; }
#garmin, #suunto, #wahoo, #amazfit { scroll-margin-top: 16px; }
.rm-cta-alt:hover { background: var(--blue-pale); }
.rm-badge { font-size: 0.7rem; font-weight: 700; color: #8a5300; background: #fff7e6; border-radius: 999px; padding: 3px 9px; }
.rm-shot { display: flex; justify-content: center; }
.rm-shot img { width: 100%; max-width: 340px; height: auto; border-radius: 50%; border: 10px solid #1e293b; box-shadow: var(--shadow-md); box-sizing: border-box; }
.rm-section { padding: 40px 0; }
.rm-section h2 { font-size: 1.5rem; margin: 0 0 20px; color: var(--text-dark); }
.rm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rm-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.rm-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--primary); }
.rm-card p { font-size: 0.92rem; line-height: 1.5; margin: 0; color: #475569; }
.rm-steps { counter-reset: paso; }
.rm-steps .rm-card h3::before { counter-increment: paso; content: counter(paso) ". "; }
.rm-note { font-size: 0.85rem; color: #64748b; margin: 16px 0 0; }
.rm-footer { padding: 24px 0 40px; font-size: 0.85rem; color: #64748b; }
.rm-footer a { color: var(--primary); }
.rm-note a { color: var(--primary); font-weight: 600; }
.rm-hero .rm-wrap.rm-hero-text { display: block; max-width: 760px; }
.rm-hero-shot { margin: 32px auto 0; max-width: 1100px; padding: 0 20px; }
.rm-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: var(--shadow-md); }
.rm-cap { font-size: 0.82rem; color: #64748b; margin: 10px 0 0; text-align: center; }
.rm-lead { font-size: 1rem; line-height: 1.55; color: #475569; margin: -8px 0 20px; max-width: 720px; }
.rm-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; }
.rm-split .rm-img { max-width: 280px; margin: 0 auto; }
.rm-list { margin: 0; padding-left: 20px; color: #475569; line-height: 1.7; }
.rm-list strong { color: var(--text-dark); }
.rm-garmin { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.rm-garmin img { width: 100%; max-width: 220px; height: auto; border-radius: 50%; border: 8px solid #1e293b; box-sizing: border-box; display: block; margin: 0 auto; }
.rm-garmin h3 { margin: 0 0 8px; color: var(--primary); font-size: 1.15rem; }
.rm-garmin p { margin: 0 0 10px; color: #475569; line-height: 1.55; font-size: 0.95rem; }
.rm-uses { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.rm-uses li { font-size: 0.85rem; font-weight: 600; color: var(--primary); background: var(--blue-pale); border-radius: 999px; padding: 5px 12px; }
.rm-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--primary); background: var(--blue-pale); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
/* Apps en camino (Suunto, Amazfit): tarjeta con el color de la marca arriba y la etiqueta «Próximamente» en ámbar */
.rm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rm-soon { border-top: 5px solid var(--brand); }
.rm-soon h3 { display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.rm-soon h3 svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); }
.rm-soon-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #8a5300; background: #fff1d6; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.rm-soon-suunto { --brand: #e2231a; }
.rm-soon-amazfit { --brand: #1f2329; }

@media (max-width: 720px) {
    .rm-split, .rm-garmin { grid-template-columns: minmax(0, 1fr); }
    .rm-hero { padding: 32px 0; }
    .rm-hero .rm-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .rm-hero h1 { font-size: 1.8rem; }
    .rm-grid, .rm-grid-2 { grid-template-columns: 1fr; }
    /* Botones del principio en móvil: uno por línea, mismo ancho (máximo 320 px) y centrados */
    .rm-ctas { flex-direction: column; align-items: center; }
    .rm-cta { width: 100%; max-width: 320px; box-sizing: border-box; padding: 14px 16px; text-align: center; white-space: nowrap; }
}
@media (max-width: 360px) { .rm-cta { font-size: 0.95rem; padding: 14px 10px; } }
/* Cambio de idioma (16/11): Español en / y English en /en/, páginas propias con hreflang */
.rm-lang { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; border: 1px solid var(--blue-pale); border-radius: 999px; padding: 4px 12px; }
.rm-lang:hover { background: var(--blue-pale); }

/* Botonera de la portada (20/11/2026): dos acciones claras y los dispositivos como tarjetas con su marca */
.rm-cta-main { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(0, 76, 151, 0.28); }
.rm-cta-go { font-size: 1.15em; line-height: 1; transition: transform 0.15s; }
.rm-cta-main:hover .rm-cta-go { transform: translateX(3px); }
.rm-devs { margin: 28px 0 0; }
.rm-devs-title { font-size: 0.78rem !important; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b !important; margin: 0 0 10px !important; }
.rm-devs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rm-dev { --brand: var(--primary); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 11px; background: var(--white); border: 1.5px solid #dbe3ef;
    border-top: 4px solid var(--brand); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-dark); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06); transition: transform 0.15s, box-shadow 0.15s; }
.rm-dev:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12); }
.rm-dev b { font-size: 1rem; }
.rm-dev small { font-size: 0.78rem; line-height: 1.3; color: #64748b; }
.rm-dev-ico { display: inline-flex; width: 26px; height: 26px; }
.rm-dev-ico svg { width: 100%; height: 100%; }
.rm-dev-garmin { --brand: #007cc3; } .rm-dev-garmin .rm-dev-ico { color: #007cc3; }
.rm-dev-wahoo { --brand: #2aa8e0; }
.rm-dev-suunto { --brand: #e2231a; } .rm-dev-suunto .rm-dev-ico { color: #e2231a; }
.rm-dev-amazfit { --brand: #1f2329; } .rm-dev-amazfit .rm-dev-ico { color: #1f2329; }
.rm-dev-soon { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 7px 12px; border: 1.5px dashed #cbd5e1; border-radius: 999px;
    color: #64748b; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.rm-dev-soon .rm-dev-ico { width: 18px; height: 18px; color: #94a3b8; }
.rm-dev-soon:hover { border-color: #94a3b8; color: #475569; }
.rm-soon-pill { font-size: 0.7rem; font-weight: 700; color: #8a5300; background: #fff7e6; border-radius: 999px; padding: 2px 8px; }
@media (max-width: 760px) {
    .rm-devs { max-width: 420px; margin-left: auto; margin-right: auto; }
    .rm-devs-title { text-align: center; }
    .rm-devs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rm-dev { align-items: center; text-align: center; padding: 12px 6px 11px; }
    .rm-dev-soon { display: flex; width: fit-content; margin: 12px auto 0; }
}

/* ==========================================================================
   v5.0 (29/11/2026) · diseño «Hoja de ruta», como la app: papel de mapa, tinta y naranja; plano, sin sombras ni rebordes
   de color; la silueta de un perfil cierra la cabecera
   ========================================================================== */
body.rm5 { --paper: #EDF1EC; --sheet: #FFFFFF; --ink: #0E1730; --ink2: #4D5C70; --line: #C7D5CC; --topo: #2E7A57; --topo-tint: #DCEADF; --sun: #E8691C; --sun-dark: #B84E0F;
    --primary: #0E1730; --primary-hover: #1B2748; --blue-pale: #DCEADF; --text-dark: #0E1730; --bg-page: #EDF1EC; --radius: 4px; --radius-sm: 4px; --shadow: none; --shadow-md: none;
    --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
    background-color: var(--paper); color: var(--ink);
    background-image: repeating-radial-gradient(circle at 88% -8%, transparent 0 26px, rgba(46, 122, 87, .07) 26px 27px),
        repeating-radial-gradient(circle at -10% 105%, transparent 0 30px, rgba(46, 122, 87, .055) 30px 31px);
    background-attachment: fixed; }
body.rm5 :focus-visible { outline: 3px solid #1560BD; outline-offset: 2px; }
body.rm5 .rm-hero { position: relative; background: var(--sheet); padding: 28px 0 0; }
body.rm5 .rm-hero::after { content: ""; display: block; height: 56px; margin-top: 28px; background: var(--paper);
    clip-path: polygon(0 100%, 0 62%, 7% 48%, 13% 55%, 21% 22%, 27% 34%, 34% 8%, 41% 30%, 48% 44%, 55% 26%, 62% 52%, 70% 40%, 78% 60%, 86% 46%, 93% 66%, 100% 58%, 100% 100%); }
body.rm5 .rm-brand { margin: 0 0 30px; }
body.rm5 .rm-brand img { width: auto; height: 60px; }
body.rm5 .rm-badge { border-radius: 2px; background: none; color: var(--ink); border: 1.5px solid var(--ink); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; }
body.rm5 .rm-lang { border-radius: 2px; border: 1.5px solid var(--line); color: var(--ink); }
body.rm5 .rm-hero h1 { font: 850 clamp(2rem, 5.4vw, 3.3rem)/0.98 var(--f-display); font-stretch: 122%; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
body.rm5 .rm-hero p, body.rm5 .rm-lead, body.rm5 .rm-card p, body.rm5 .rm-garmin p, body.rm5 .rm-list { color: var(--ink2); }
body.rm5 .rm-uses li { border-radius: 2px; background: var(--topo-tint); color: #1E5A3F; }
body.rm5 .rm-cta { border-radius: 4px; background: var(--ink); }
body.rm5 .rm-cta-main { background: var(--ink); box-shadow: none; min-height: 52px; box-sizing: border-box;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); border-radius: 4px 0 4px 4px; }
body.rm5 .rm-cta-main:hover { background: #1B2A4E; }
body.rm5 .rm-cta-alt { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
body.rm5 .rm-cta-alt:hover { background: var(--topo-tint); }
body.rm5 .rm-dev { border: 0; border-radius: 4px; background: var(--paper); box-shadow: none; }
body.rm5 .rm-dev:hover { transform: none; box-shadow: none; background: var(--topo-tint); }
body.rm5 .rm-dev small { color: var(--ink2); }
body.rm5 .rm-img { border-radius: 4px; border: 0; box-shadow: none; outline: 1.5px solid var(--line); }
body.rm5 .rm-section { padding: 34px 0; }
body.rm5 .rm-section h2 { font: 850 clamp(1.6rem, 3.6vw, 2.2rem)/1.02 var(--f-display); font-stretch: 118%; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); margin: 0 0 18px; }
body.rm5 .rm-card, body.rm5 .rm-garmin { border-radius: 4px; box-shadow: none; }
body.rm5 .rm-card h3, body.rm5 .rm-garmin h3 { font: 800 1.12rem/1.2 var(--f-display); font-stretch: 105%; color: var(--ink); }
/* los tres pasos, como puntos de un rutómetro: km en la columna, unidos por la línea del recorrido */
body.rm5 .rm-steps .rm-card { position: relative; padding-top: 46px; }
body.rm5 .rm-steps .rm-card h3::before { content: counter(paso); position: absolute; left: 20px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 13px/1 ui-monospace, Menlo, monospace; }
body.rm5 .rm-steps .rm-card::after { content: ""; position: absolute; left: 54px; right: -16px; top: 26px; border-top: 2px dashed var(--line); }
body.rm5 .rm-steps .rm-card:last-child::after { display: none; }
body.rm5 .rm-tag { border-radius: 2px; background: var(--topo-tint); color: #1E5A3F; }
body.rm5 .rm-garmin img { border-color: var(--ink); }
body.rm5 .rm-note, body.rm5 .rm-cap, body.rm5 .rm-footer { color: var(--ink2); }
body.rm5 .rm-footer { background: var(--ink); color: #C6CFDD; padding: 26px 0 34px; margin-top: 20px; }
body.rm5 .rm-footer a { color: #fff; }
@media (max-width: 720px) { body.rm5 .rm-steps .rm-card::after { display: none; } body.rm5 .rm-brand img { height: 50px; } }

/* Letra de títulos del diseño «Hoja de ruta», alojada aquí (la política de seguridad no deja fuentes externas) */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
