/* ==========================================================================
   Mis Viajes · «Atlas»: papel de mapa, tinta azul noche y mar turquesa.
   Capa de producto sobre Bootstrap 5.3 (claro por defecto, oscuro opcional).
   ========================================================================== */
@property --look-x { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --look-y { syntax: "<number>"; inherits: true; initial-value: 0; }

:root,
[data-bs-theme="light"] {
    /* «Noto Color Emoji» al final: solo se usa para emojis y banderas (Windows no dibuja banderas). */
    --app-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, "Noto Color Emoji";
    --app-display: "Roboto Flex", "Plus Jakarta Sans", system-ui, sans-serif, "Noto Color Emoji";
    --app-canvas: #f4efe6;
    --app-wash-1: rgba(127, 216, 207, .32);
    --app-wash-2: rgba(242, 160, 61, .16);
    --app-wash-3: rgba(47, 111, 219, .10);
    --app-surface: #fffdf9;
    --app-surface-2: #f8f4ec;
    --app-surface-3: #eee7da;
    --app-glass: rgba(255, 253, 249, .74);
    --app-glass-strong: rgba(255, 253, 249, .92);
    --app-glass-border: rgba(255, 255, 255, .85);
    --app-ink: #10212e;
    --app-ink-2: #34475a;
    --app-muted: #66727c;
    --app-line: rgba(16, 33, 46, .09);
    --app-line-strong: rgba(16, 33, 46, .17);
    --app-primary: #10212e;
    --app-on-primary: #ffffff;
    --app-tone: #0b7a75;
    --app-tone-container: #cdeee9;
    --app-on-tone-container: #08504c;
    --app-tone-soft: rgba(11, 122, 117, .12);
    --app-sun: #f2a03d;
    --app-sun-soft: rgba(242, 160, 61, .16);
    --app-danger: #d64545;
    --app-focus: rgba(11, 122, 117, .32);
    --app-shadow-sm: 0 1px 2px rgba(16, 33, 46, .06);
    --app-shadow: 0 1px 1px rgba(16, 33, 46, .03), 0 18px 40px -22px rgba(16, 33, 46, .28);
    --app-shadow-lg: 0 40px 90px -30px rgba(16, 33, 46, .42);
    --app-radius: 1.5rem;
    --app-dock-height: 4.4rem;
    --app-ease: cubic-bezier(.2, .8, .2, 1);
    --app-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%2310212e' stroke-opacity='.055' stroke-width='1.2'%3E%3Cpath d='M62 140c40-58 132-74 190-36s60 118 8 156-150 30-190-14-48-60-8-106z'/%3E%3Cpath d='M92 146c30-40 100-52 142-24s44 86 6 114-108 22-138-10-36-46-10-80z'/%3E%3Cpath d='M124 152c20-24 62-30 88-12s26 52 2 70-66 12-84-8-22-30-6-50z'/%3E%3Cpath d='M300 330c50-40 150-30 180 26s-10 120-80 130-150-20-150-80 10-46 50-76z'/%3E%3Cpath d='M330 350c34-26 102-18 120 20s-8 80-54 86-100-14-100-54 8-30 34-52z'/%3E%3Cpath d='M360 372c18-12 52-8 62 10s-4 40-28 42-50-6-50-26 4-14 16-26z'/%3E%3Cpath d='M-20 420c60-30 120-10 160 30s40 90-20 100'/%3E%3Cpath d='M380 -10c-10 50 30 90 90 96s70-30 60-70'/%3E%3Cpath d='M20 300c40 10 70 40 76 80'/%3E%3C/g%3E%3C/svg%3E");

    --bs-body-font-family: var(--app-font);
    --bs-body-bg: var(--app-canvas);
    --bs-body-color: var(--app-ink);
    --bs-emphasis-color: var(--app-ink);
    --bs-secondary-color: var(--app-muted);
    --bs-tertiary-bg: var(--app-surface-2);
    --bs-border-color: var(--app-line-strong);
    --bs-border-radius: .9rem;
    --bs-border-radius-sm: .65rem;
    --bs-border-radius-lg: 1.2rem;
    --bs-border-radius-xl: 1.5rem;
    --bs-link-color: var(--app-tone);
    --bs-link-color-rgb: 11, 122, 117;
    --bs-link-hover-color: #075a56;
    --bs-focus-ring-color: var(--app-focus);
    --bs-primary: var(--app-primary);
    --bs-primary-rgb: 16, 33, 46;
}

[data-bs-theme="dark"] {
    --app-canvas: #07121a;
    --app-wash-1: rgba(127, 216, 207, .12);
    --app-wash-2: rgba(242, 160, 61, .08);
    --app-wash-3: rgba(80, 130, 255, .12);
    --app-surface: #0f1e29;
    --app-surface-2: #142633;
    --app-surface-3: #1c3242;
    --app-glass: rgba(15, 30, 41, .68);
    --app-glass-strong: rgba(13, 26, 36, .92);
    --app-glass-border: rgba(255, 255, 255, .07);
    --app-ink: #e7eff1;
    --app-ink-2: #bfd0d6;
    --app-muted: #8ea3ad;
    --app-line: rgba(231, 239, 241, .09);
    --app-line-strong: rgba(231, 239, 241, .17);
    --app-primary: #7fd8cf;
    --app-on-primary: #04312e;
    --app-tone: #7fd8cf;
    --app-tone-container: #0d4a46;
    --app-on-tone-container: #c9f3ee;
    --app-tone-soft: rgba(127, 216, 207, .14);
    --app-sun: #f5b45c;
    --app-sun-soft: rgba(245, 180, 92, .14);
    --app-focus: rgba(127, 216, 207, .38);
    --app-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --app-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 22px 44px -24px rgba(0, 0, 0, .85);
    --app-shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .9);
    --app-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%237fd8cf' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M62 140c40-58 132-74 190-36s60 118 8 156-150 30-190-14-48-60-8-106z'/%3E%3Cpath d='M92 146c30-40 100-52 142-24s44 86 6 114-108 22-138-10-36-46-10-80z'/%3E%3Cpath d='M124 152c20-24 62-30 88-12s26 52 2 70-66 12-84-8-22-30-6-50z'/%3E%3Cpath d='M300 330c50-40 150-30 180 26s-10 120-80 130-150-20-150-80 10-46 50-76z'/%3E%3Cpath d='M330 350c34-26 102-18 120 20s-8 80-54 86-100-14-100-54 8-30 34-52z'/%3E%3Cpath d='M360 372c18-12 52-8 62 10s-4 40-28 42-50-6-50-26 4-14 16-26z'/%3E%3Cpath d='M-20 420c60-30 120-10 160 30s40 90-20 100'/%3E%3Cpath d='M380 -10c-10 50 30 90 90 96s70-30 60-70'/%3E%3Cpath d='M20 300c40 10 70 40 76 80'/%3E%3C/g%3E%3C/svg%3E");
    --bs-body-bg: var(--app-canvas);
    --bs-body-color: var(--app-ink);
    --bs-emphasis-color: var(--app-ink);
    --bs-secondary-color: var(--app-muted);
    --bs-tertiary-bg: var(--app-surface-2);
    --bs-border-color: var(--app-line-strong);
    --bs-link-color: var(--app-tone);
    --bs-link-color-rgb: 127, 216, 207;
    --bs-link-hover-color: #c9f3ee;
    --bs-primary-rgb: 127, 216, 207;
    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Lienzo: papel con curvas de nivel y luz de mar
   -------------------------------------------------------------------------- */
html { background: var(--app-canvas); }
body {
    min-height: 100dvh;
    background: transparent;
    color: var(--app-ink);
    font-family: var(--app-font);
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: "";
    position: fixed;
    inset: -20vmax;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(36vmax 30vmax at 84% 6%, var(--app-wash-1), transparent 70%),
        radial-gradient(32vmax 28vmax at 4% 30%, var(--app-wash-2), transparent 70%),
        radial-gradient(34vmax 26vmax at 70% 92%, var(--app-wash-3), transparent 70%);
    filter: blur(6px);
    animation: wash-drift 30s var(--app-ease) infinite alternate;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--app-topo);
    background-size: 520px 520px;
}
@keyframes wash-drift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(-2vmax, 1.5vmax, 0) rotate(-3deg); }
}
::selection { background: var(--app-tone-container); color: var(--app-on-tone-container); }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--app-ink); letter-spacing: -.02em; font-weight: 750; }
/* Títulos como en Mi Dieta: Roboto Flex ancha (wdth) y compacta; los números, algo menos anchos. */
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .display-font { font-family: var(--app-display); font-variation-settings: "wdth" 112, "opsz" 48; }
.app-page-header h1, .auth-intro h1, .trip-header h1, .home-hero__copy h2, .memory-player__caption strong, .trip-card__title, .trip-row__copy h2 { font-variation-settings: "wdth" 125, "opsz" 96; }
.countdown strong, .stat-tile strong, .home-count strong, .fc .day-head__num, .cal-title { font-variation-settings: "wdth" 115, "opsz" 48; }
h1 em, h2 em, .accent-em { font-style: normal; color: var(--app-tone); }
.text-secondary, .text-muted { color: var(--app-muted) !important; }
a { text-underline-offset: .18em; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 3000; padding: .6rem 1rem; border-radius: 999px; background: var(--app-primary); color: var(--app-on-primary); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
kbd { padding: .1rem .4rem; border-radius: .4rem; color: var(--app-muted); background: var(--app-surface-3); font-family: var(--app-font); font-size: .75rem; }

/* --------------------------------------------------------------------------
   Bootstrap a medida
   -------------------------------------------------------------------------- */
.btn { --bs-btn-font-weight: 650; --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.05rem; --bs-btn-padding-y: .55rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: transform .15s var(--app-ease), background-color .15s ease, border-color .15s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .35rem; --bs-btn-font-size: .82rem; }
.btn-lg { --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem; }
.btn-primary {
    --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary); --bs-btn-color: var(--app-on-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--app-primary) 86%, #fff); --bs-btn-hover-border-color: var(--bs-btn-hover-bg); --bs-btn-hover-color: var(--app-on-primary);
    --bs-btn-active-bg: var(--app-primary); --bs-btn-active-border-color: var(--app-primary); --bs-btn-active-color: var(--app-on-primary);
    --bs-btn-disabled-bg: var(--app-primary); --bs-btn-disabled-border-color: var(--app-primary); --bs-btn-disabled-color: var(--app-on-primary);
    box-shadow: 0 10px 22px -14px rgba(16, 33, 46, .8);
}
.btn-tone { --bs-btn-bg: var(--app-tone); --bs-btn-border-color: var(--app-tone); --bs-btn-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--app-tone) 85%, #000); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: var(--app-tone); --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn-tone { --bs-btn-color: #04312e; --bs-btn-hover-color: #04312e; --bs-btn-active-color: #04312e; }
.btn-light {
    --bs-btn-bg: var(--app-glass-strong); --bs-btn-border-color: var(--app-line-strong); --bs-btn-color: var(--app-ink);
    --bs-btn-hover-bg: var(--app-surface); --bs-btn-hover-border-color: var(--app-ink); --bs-btn-hover-color: var(--app-ink);
    --bs-btn-active-bg: var(--app-surface-3); --bs-btn-active-border-color: var(--app-ink); --bs-btn-active-color: var(--app-ink);
    --bs-btn-disabled-bg: var(--app-surface-2); --bs-btn-disabled-color: var(--app-muted); --bs-btn-disabled-border-color: var(--app-line);
}
.btn-outline-primary { --bs-btn-color: var(--app-ink); --bs-btn-border-color: var(--app-line-strong); --bs-btn-hover-bg: var(--app-primary); --bs-btn-hover-border-color: var(--app-primary); --bs-btn-hover-color: var(--app-on-primary); --bs-btn-active-bg: var(--app-primary); --bs-btn-active-color: var(--app-on-primary); }
.btn-outline-secondary { --bs-btn-color: var(--app-ink-2); --bs-btn-border-color: var(--app-line-strong); --bs-btn-hover-bg: var(--app-surface-3); --bs-btn-hover-color: var(--app-ink); --bs-btn-hover-border-color: var(--app-line-strong); --bs-btn-active-bg: var(--app-primary); --bs-btn-active-color: var(--app-on-primary); --bs-btn-active-border-color: var(--app-primary); }
.btn-outline-danger { --bs-btn-color: var(--app-danger); --bs-btn-border-color: color-mix(in srgb, var(--app-danger) 40%, transparent); --bs-btn-hover-bg: var(--app-danger); --bs-btn-hover-border-color: var(--app-danger); }
.btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .45); }
.btn-icon { width: 2.6rem; height: 2.6rem; padding: 0; flex: 0 0 auto; }
.btn-check:checked + .btn-outline-secondary { background: var(--app-primary); border-color: var(--app-primary); color: var(--app-on-primary); }
.btn-link { color: var(--app-tone); font-weight: 600; text-decoration: none; }
.form-control, .form-select { border-color: var(--app-line-strong); background-color: var(--app-surface); color: var(--app-ink); }
.form-control:focus, .form-select:focus { border-color: var(--app-tone); box-shadow: 0 0 0 .22rem var(--app-focus); background-color: var(--app-surface); color: var(--app-ink); }
.form-control::placeholder { color: var(--app-muted); opacity: .8; }
.form-floating > label { color: var(--app-muted); }
.form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background: transparent; }
.form-check-input:checked { background-color: var(--app-tone); border-color: var(--app-tone); }
.form-check-input:focus { box-shadow: 0 0 0 .22rem var(--app-focus); border-color: var(--app-tone); }
.input-group-text { background: var(--app-surface-2); border-color: var(--app-line-strong); color: var(--app-muted); }
.card {
    --bs-card-bg: var(--app-glass);
    --bs-card-border-color: var(--app-glass-border);
    --bs-card-color: var(--app-ink);
    background: var(--app-glass);
    border: 1px solid var(--app-glass-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.modal-content { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 1.6rem; color: var(--app-ink); box-shadow: var(--app-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--app-line); }
/* Si un <form> envuelve cabecera, cuerpo y pie, hace scroll el cuerpo y el pie (Guardar) se ve siempre, también en el móvil. */
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.modal-backdrop { --bs-backdrop-opacity: .45; }
.offcanvas { --bs-offcanvas-bg: var(--app-surface); --bs-offcanvas-color: var(--app-ink); }
.dropdown-menu { --bs-dropdown-bg: var(--app-surface); --bs-dropdown-link-color: var(--app-ink); --bs-dropdown-link-hover-bg: var(--app-surface-3); --bs-dropdown-border-color: var(--app-line); border-radius: 1rem; box-shadow: var(--app-shadow); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--app-surface); --bs-nav-pills-link-active-color: var(--app-ink); --bs-nav-link-color: var(--app-muted); --bs-nav-link-hover-color: var(--app-ink); background: var(--app-surface-3); border-radius: 999px; padding: .25rem; }
.nav-pills .nav-link { border-radius: 999px; font-weight: 650; }
.nav-pills .nav-link.active { box-shadow: var(--app-shadow-sm); }
.alert { border-radius: 1rem; }
.badge { font-weight: 650; }
.password-toggle-wrap { position: relative; }
.password-toggle { position: absolute; top: 50%; right: .55rem; z-index: 5; width: 2.2rem; height: 2.2rem; transform: translateY(-50%); display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--app-muted); background: transparent; }
.password-toggle:hover { color: var(--app-ink); background: var(--app-surface-3); }
.password-toggle-input { padding-right: 3rem !important; }

/* --------------------------------------------------------------------------
   Estructura: raíl lateral flotante (escritorio) y dock inferior (móvil)
   -------------------------------------------------------------------------- */
.app-shell { min-height: 100dvh; }
.app-main { min-width: 0; overflow-x: clip; }
.app-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--app-ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; }
.app-brand .brand-word { font-family: var(--app-display); font-variation-settings: "wdth" 115, "opsz" 48; font-weight: 800; font-size: 1.2rem; letter-spacing: -.04em; }
.app-brand .brand-word em { font-style: normal; color: var(--app-tone); }
.brand-mark {
    width: 2.6rem; height: 2.6rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: .95rem;
    color: #8fe3da; font-size: 1.25rem;
    background: radial-gradient(120% 120% at 25% 15%, #1f4a5c 0%, #10212e 62%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px -10px rgba(16, 33, 46, .6);
}
.app-sidebar {
    position: fixed;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem .9rem 1rem;
    background: var(--app-glass);
    border: 1px solid var(--app-glass-border);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
}
.app-sidebar .app-brand { padding: 0 .3rem; }
.sidebar-assistant {
    display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .7rem; border: 1px solid var(--app-line); border-radius: 1.2rem;
    color: var(--app-ink); background: var(--app-glass-strong); text-align: left; transition: box-shadow .2s ease, transform .2s var(--app-ease);
}
.sidebar-assistant:hover { box-shadow: 0 0 0 4px var(--app-tone-soft); transform: translateY(-1px); }
.sidebar-assistant strong, .sidebar-assistant small { display: block; line-height: 1.2; }
.sidebar-assistant strong { font-size: .95rem; }
.sidebar-assistant small { color: var(--app-muted); font-size: .76rem; }
.sidebar-assistant kbd { margin-left: auto; }
.app-sidebar .nav-link { display: flex; align-items: center; gap: .75rem; padding: .62rem .85rem; border-radius: 999px; color: var(--app-ink-2); font-weight: 650; font-size: .95rem; transition: background-color .2s ease, color .2s ease; }
.app-sidebar .nav-link i { font-size: 1.08rem; color: var(--app-muted); }
.app-sidebar .nav-link:hover { color: var(--app-ink); background: var(--app-surface-3); }
.app-sidebar .nav-link.active { color: var(--app-on-primary); background: var(--app-primary); box-shadow: 0 10px 24px -14px rgba(16, 33, 46, .7); }
.app-sidebar .nav-link.active i { color: #8fe3da; }
[data-bs-theme="dark"] .app-sidebar .nav-link.active i { color: var(--app-on-primary); }
.sidebar-section-label { margin: .5rem .85rem -.1rem; color: var(--app-muted); font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: .55rem; padding: .55rem .5rem .55rem .65rem; border: 1px solid var(--app-line); border-radius: 1.2rem; background: var(--app-glass-strong); }
.sidebar-avatar { width: 2.3rem; height: 2.3rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #08504c; background: conic-gradient(from 200deg, #8fe3da, #f6cf8f, #a9c4ff, #8fe3da); font-weight: 800; font-size: .88rem; }
.sidebar-user-copy { min-width: 0; flex: 1 1 auto; color: var(--app-ink); text-decoration: none; }
.sidebar-user-copy strong, .sidebar-user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { font-size: .88rem; }
.sidebar-user-copy small { color: var(--app-muted); font-size: .72rem; }
.sidebar-user-actions { display: flex; }
.sidebar-user-actions .btn { width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; color: var(--app-muted); background: transparent; }
.sidebar-user-actions .btn:hover { color: var(--app-ink); background: var(--app-surface-3); }
.theme-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .25rem; border-radius: 1.1rem; background: var(--app-surface-3); }
.app-version { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: 1rem; background: var(--app-surface-2); }
.app-version > span { flex: 1; min-width: 0; display: grid; }
.app-version small { color: var(--app-muted); font-size: .78rem; }
.app-version .btn { flex: 0 0 auto; }
.theme-choice button { display: grid; justify-items: center; gap: .2rem; padding: .6rem .4rem; border: 0; border-radius: .9rem; color: var(--app-muted); background: transparent; font-weight: 700; font-size: .84rem; }
.theme-choice button i { font-size: 1.2rem; }
html[data-theme-mode="light"] .theme-choice [data-theme-set="light"],
html[data-theme-mode="dark"] .theme-choice [data-theme-set="dark"],
html[data-theme-mode="auto"] .theme-choice [data-theme-set="auto"] { color: var(--app-ink); background: var(--app-surface); box-shadow: var(--app-shadow-sm); }
.mobile-profile { display: none; }
@media (max-width: 991.98px) {
    .mobile-profile { position: absolute; top: calc(.85rem + env(safe-area-inset-top, 0px)); right: .9rem; z-index: 1025; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 2px solid var(--app-glass-border); border-radius: 50%; color: #08504c; background: conic-gradient(from 200deg, #8fe3da, #f6cf8f, #a9c4ff, #8fe3da); font-weight: 800; box-shadow: var(--app-shadow); }
    .app-main[data-page="viaje"] ~ .mobile-profile, body:has(.trip-header) .mobile-profile { top: calc(1.5rem + env(safe-area-inset-top, 0px)); right: 1.6rem; }
    .app-page-header .header-title-row { padding-right: 3.2rem; }
}
.theme-toggle .bi-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .bi-sun { display: inline-block; }
[data-bs-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

@media (min-width: 992px) {
    .app-sidebar { inset: .9rem auto .9rem .9rem; width: 250px; border-radius: 1.9rem; overflow-y: auto; }
    .app-main { margin-left: calc(250px + .9rem); }
    .app-dock { display: none !important; }
}
.app-dock { display: none; }

/* Cargador de pantalla: la maleta del icono rodando por una carretera (index.php #pageLoader, js/app.js).
   Tapa solo el contenido: el menú lateral y el dock siguen a la vista. */
.page-loader { position: fixed; inset: 0; z-index: 1025; display: grid; place-items: center; padding: 1rem 1rem calc(var(--app-dock-height, 4.4rem) + 2rem); background: color-mix(in srgb, var(--app-canvas) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.page-loader.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }
.page-loader.is-instant { transition: none; }
.page-loader__panel { display: grid; justify-items: center; gap: .35rem; text-align: center; }
.page-loader__bag { width: 7.5rem; height: auto; overflow: visible; margin-bottom: .4rem; }
.page-loader__suitcase { transform-box: fill-box; transform-origin: 50% 100%; animation: loader-bump .5s ease-in-out infinite; }
.page-loader__wheel { transform-box: fill-box; transform-origin: center; animation: loader-wheel .5s linear infinite; }
.page-loader__road { stroke: var(--app-line-strong); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 12 9; animation: loader-road .5s linear infinite; }
.page-loader__speed path { stroke: var(--app-tone); stroke-width: 2.6; stroke-linecap: round; opacity: .55; }
.page-loader__speed { animation: loader-speed .5s ease-in-out infinite; }
.page-loader__panel strong { font-family: var(--app-display); font-size: 1.2rem; font-weight: 740; color: var(--app-ink); background: linear-gradient(100deg, var(--app-ink) 0%, var(--app-ink) 38%, #ff6b4a 46%, #f2a03d 50%, var(--app-tone) 54%, var(--app-ink) 62%, var(--app-ink) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: loader-shimmer 2.6s ease-in-out infinite; }
.page-loader__panel span { min-height: 1.3em; color: var(--app-muted); font-size: .9rem; font-weight: 600; transition: opacity .3s ease; }
.page-loader__panel span.is-changing { opacity: 0; }
@keyframes loader-bump { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-2.5px) rotate(1deg); } }
@keyframes loader-wheel { to { transform: rotate(1turn); } }
@keyframes loader-road { to { stroke-dashoffset: 21; } }
@keyframes loader-speed { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-4px); opacity: .5; } }
@keyframes loader-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (min-width: 992px) { .page-loader { left: calc(228px + .9rem); padding-bottom: 1rem; } }
@media (prefers-reduced-motion: reduce) { .page-loader__suitcase, .page-loader__wheel, .page-loader__road, .page-loader__speed, .page-loader__panel strong { animation: none; } }
/* Paso entre pantallas con fundido, en los navegadores que lo permiten. */
@view-transition { navigation: auto; }

@media (max-width: 991.98px) {
    .app-sidebar { display: none !important; }
    .app-main { padding-bottom: calc(var(--app-dock-height) + env(safe-area-inset-bottom, 0px) + 2rem); }
    .app-dock {
        position: fixed; left: 50%; bottom: calc(.7rem + env(safe-area-inset-bottom, 0px)); z-index: 1030;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
        width: min(28rem, calc(100vw - 1.4rem)); height: var(--app-dock-height); padding: .35rem;
        transform: translateX(-50%); border: 1px solid var(--app-glass-border); border-radius: 1.6rem;
        background: var(--app-glass-strong); box-shadow: var(--app-shadow-lg);
        backdrop-filter: blur(26px) saturate(1.7); -webkit-backdrop-filter: blur(26px) saturate(1.7);
    }
    .app-dock__item { position: relative; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; border-radius: 1.2rem; color: var(--app-muted); font-size: .64rem; font-weight: 700; text-decoration: none; }
    .app-dock__item i { font-size: 1.22rem; line-height: 1; }
    .app-dock__item.active { color: var(--app-ink); background: var(--app-surface-3); }
    .app-dock__item.active::after { content: ""; position: absolute; top: .35rem; right: calc(50% - 1rem); width: .36rem; height: .36rem; border-radius: 50%; background: var(--app-sun); box-shadow: 0 0 0 2px var(--app-glass-strong); }
}
.app-dock__orb { justify-self: center; width: 4.6rem; height: 3.7rem; padding: 0; border: 0; background: transparent; overflow: visible; }
.app-dock__orb .rumbo { font-size: 1.55rem; margin-top: -1.8rem; }
.app-dock__orb:active .rumbo { transform: scale(.94); }

/* --------------------------------------------------------------------------
   Cabeceras y contenido
   -------------------------------------------------------------------------- */
.app-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 2.4rem 2.25rem .9rem; }
.app-page-header h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.header-title-row { min-width: 0; flex: 1 1 26rem; }
.header-title-row > p:not(.eyebrow) { max-width: 44rem; margin: .55rem 0 0; color: var(--app-muted); font-size: 1rem; }
.eyebrow, .hero-kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .55rem; color: var(--app-ink-2); font-size: .68rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--app-sun); box-shadow: 0 0 0 3px var(--app-sun-soft); }
.app-header-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-content { max-width: 1340px; padding: 1.1rem 2.25rem 2.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.8rem 0 .8rem; }
.section-head h2 { margin: 0; font-size: 1.35rem; font-family: var(--app-display); font-weight: 740; letter-spacing: -.02em; }
.section-head a { font-size: .88rem; font-weight: 650; text-decoration: none; }
@media (max-width: 991.98px) {
    .app-page-header { padding: calc(1.4rem + env(safe-area-inset-top, 0px)) 1.1rem .5rem; flex-direction: column; align-items: stretch; }
    /* En columna, el «flex-basis» del título sería una altura: así no deja un hueco enorme. */
    .header-title-row { flex: 0 0 auto; }
    .app-header-actions .btn { flex: 1 1 auto; }
    .app-content { padding: .8rem 1.1rem 1.5rem; }
}

/* Esqueletos y vacíos */
.skeleton { border-radius: var(--app-radius); background: linear-gradient(100deg, var(--app-surface-2) 30%, var(--app-surface-3) 50%, var(--app-surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton--hero { height: 16rem; }
.skeleton--card { height: 15rem; }
.skeleton--wide { height: 8.5rem; margin-bottom: .8rem; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.empty-state { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1.5rem; text-align: center; border: 1.5px dashed var(--app-line-strong); border-radius: var(--app-radius); background: var(--app-glass); }
.empty-state .rumbo { font-size: 1.6rem; }
.empty-state h2 { margin: .3rem 0 0; font-family: var(--app-display); font-weight: 740; font-size: 1.5rem; }
.empty-state p { max-width: 30rem; margin: 0; color: var(--app-muted); }
.empty-state .btn { margin-top: .4rem; }

/* --------------------------------------------------------------------------
   Tarjetas de viaje (deseos, recuerdos) y filas (en preparación)
   -------------------------------------------------------------------------- */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.trip-card { position: relative; display: flex; flex-direction: column; min-height: 15rem; overflow: hidden; border-radius: var(--app-radius); color: #fff; background: var(--trip-color, #0b7a75); box-shadow: var(--app-shadow); text-decoration: none; isolation: isolate; transition: transform .25s var(--app-ease), box-shadow .25s ease; }
.trip-card:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--app-shadow-lg); }
.trip-card__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .6s var(--app-ease); }
.trip-card:hover .trip-card__media { transform: scale(1.04); }
.trip-card__media--empty { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--trip-color) 60%, #fff) 0%, transparent 60%), radial-gradient(70% 70% at 10% 100%, color-mix(in srgb, var(--trip-color) 50%, #000) 0%, transparent 70%), var(--trip-color); }
.trip-card__media--empty::after { content: attr(data-emoji); position: absolute; right: 1.1rem; top: 3.2rem; font-size: 4.2rem; opacity: .9; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.trip-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 18, 0) 30%, rgba(5, 12, 18, .78) 100%); }
.trip-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem .9rem 0; }
.trip-card__badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(5, 12, 18, .42); backdrop-filter: blur(10px); font-size: .74rem; font-weight: 700; }
.trip-card__menu { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(5, 12, 18, .4); backdrop-filter: blur(10px); }
.trip-card__body { margin-top: auto; padding: 1rem 1.1rem 1.1rem; }
.trip-card__title { margin: 0; color: #fff; font-family: var(--app-display); font-weight: 740; font-size: 1.55rem; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.trip-card__meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .45rem; color: rgba(255, 255, 255, .85); font-size: .82rem; font-weight: 600; }
.trip-card__meta i { margin-right: .2rem; }
.trip-card__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.trip-card__actions .btn { --bs-btn-padding-y: .35rem; --bs-btn-font-size: .8rem; }
/* El título es el enlace y cubre toda la tarjeta; insignia, «⋯» y botones quedan por encima. */
.trip-card__link { color: inherit; text-decoration: none; }
.trip-card__link:hover { color: inherit; }
.trip-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.trip-card__link:focus-visible { outline: none; }
.trip-card:has(.trip-card__link:focus-visible) { box-shadow: 0 0 0 3px var(--app-focus), var(--app-shadow-lg); }
.trip-card__top, .trip-card__actions { position: relative; z-index: 2; pointer-events: none; }
.trip-card__top > *, .trip-card__actions > * { pointer-events: auto; }
.trip-card__progress { height: .3rem; margin-top: .65rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.trip-card__progress span { display: block; height: 100%; border-radius: inherit; background: #fff; }
.trip-card__note { display: block; margin-top: .3rem; color: rgba(255, 255, 255, .82); font-size: .76rem; font-weight: 600; }
.trip-card.is-live .trip-card__badge { color: #10212e; background: var(--app-sun); }
/* Las de un viaje en preparación llevan más cosas (progreso): emoji algo menor para que no tape los datos. */
.trip-card:has(.trip-card__progress) .trip-card__media--empty::after { font-size: 3.2rem; }
@media (max-width: 991.98px) { .trip-card:has(.trip-card__progress) { min-height: 17rem; } }
.btn-glass { --bs-btn-bg: rgba(255, 255, 255, .16); --bs-btn-border-color: rgba(255, 255, 255, .3); --bs-btn-color: #fff; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #10212e; --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: #fff; --bs-btn-active-color: #10212e; backdrop-filter: blur(10px); }
.btn-white { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: #10212e; --bs-btn-hover-bg: #eef7f6; --bs-btn-hover-color: #10212e; --bs-btn-hover-border-color: #eef7f6; --bs-btn-active-bg: #fff; --bs-btn-active-color: #10212e; }
.priority { display: inline-flex; gap: .05rem; color: var(--app-sun); }
.trip-card .priority { color: #ffd38e; }

.date-mode { display: flex; gap: .4rem; flex-wrap: wrap; }
.date-mode .btn { flex: 1 1 auto; }
.trip-meta__action { margin-left: .4rem; padding: .1rem .6rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 700; }
.trip-meta__action:hover { color: #10212e; background: #fff; }
.wish-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Inicio: panel de recuerdos (cifras, mapa de todos los viajes, el próximo, fotos)
   -------------------------------------------------------------------------- */
.stat-tile { padding: 1rem 1.1rem; border-radius: 1.3rem; background: var(--app-glass); border: 1px solid var(--app-glass-border); box-shadow: var(--app-shadow-sm); }
.stat-tile strong { display: block; font-family: var(--app-display); font-size: 2rem; font-weight: 740; line-height: 1; }
.stat-tile span { color: var(--app-muted); font-size: .82rem; font-weight: 650; }
.home-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.home-welcome { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border: 1.5px dashed var(--app-line-strong); border-radius: var(--app-radius); background: var(--app-glass); }
.home-welcome .rumbo { flex: 0 0 auto; font-size: 1.2rem; }
.home-welcome h2 { margin: 0; font-size: 1.15rem; }
.home-welcome p { margin: .2rem 0 0; color: var(--app-muted); font-size: .9rem; }
.home-welcome .btn { flex: 0 0 auto; margin-left: auto; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); gap: 1rem; align-items: start; }
.home-map-panel { padding: .8rem; border: 1px solid var(--app-glass-border); border-radius: var(--app-radius); background: var(--app-glass); box-shadow: var(--app-shadow-sm); }
.home-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin: 0 .2rem .6rem; }
.home-panel-head h2 { margin: 0; font-size: 1.2rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--app-muted); font-size: .8rem; font-weight: 650; }
.map-legend i { margin-right: .3rem; color: var(--app-tone); }
.home-map { position: relative; z-index: 0; isolation: isolate; height: 22rem; overflow: hidden; border-radius: 1rem; background: var(--app-surface-2); }
.home-map-empty { margin: 0; padding: 2.5rem 1rem; color: var(--app-muted); text-align: center; }
.home-side { display: grid; gap: .6rem; }
.home-side .section-head { margin: 0; }
.home-side__empty { padding: 1.6rem 1rem; }
.home-agenda { display: grid; gap: .35rem; padding: .7rem; border: 1px solid var(--app-glass-border); border-radius: 1.1rem; background: var(--app-glass); }
.home-agenda h3 { margin: 0 0 .1rem; color: var(--app-muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-agenda p { margin: 0; color: var(--app-muted); font-size: .88rem; }
.home-agenda a { display: grid; grid-template-columns: 3.4rem auto minmax(0, 1fr); align-items: center; gap: .5rem; padding: .4rem .55rem; border-radius: .8rem; color: var(--app-ink); background: var(--app-surface-2); text-decoration: none; font-size: .88rem; }
.home-agenda time { color: var(--app-muted); font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.home-agenda i { color: var(--cat); }
.home-agenda span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Chinchetas del mapa de Inicio: hechos (emoji), en marcha (avión) y deseos (estrella, en hueco). */
.map-pin.map-pin--past span { font-size: .95rem; }
.map-pin.map-pin--planning, .map-pin.map-pin--wish { width: 1.75rem; height: 1.75rem; }
.map-pin.map-pin--planning i, .map-pin.map-pin--wish i { font-size: .72rem; }
.map-pin.map-pin--wish { border-color: var(--pin); background: #fff; }
.map-pin.map-pin--wish i { color: var(--pin); }
.skeleton--map { height: 24rem; }
@media (max-width: 991.98px) {
    .home-grid { grid-template-columns: 1fr; }
    .home-side { order: -1; }
    .home-map { height: 16rem; }
    .home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-stats .stat-tile { padding: .7rem .8rem; }
    .home-stats .stat-tile strong { font-size: 1.5rem; }
    .skeleton--map { height: 16rem; }
}
@media (max-width: 575.98px) {
    .home-welcome { flex-wrap: wrap; }
    .home-welcome .btn { margin-left: 0; width: 100%; }
}
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 10rem; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; }
.photo-strip a { position: relative; display: block; height: 12rem; border-radius: 1.1rem; overflow: hidden; background: var(--app-surface-3) center / cover; color: #fff; text-decoration: none; }
.photo-strip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 12, 18, .75)); }
.photo-strip span { position: absolute; left: .6rem; right: .6rem; bottom: .5rem; z-index: 1; font-size: .74rem; font-weight: 700; line-height: 1.2; }

/* Recuerdos */
.memory-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
@media (max-width: 767.98px) { .memory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.on-this-day { margin-bottom: 1.6rem; }
.year-heading { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 .8rem; font-family: var(--app-display); font-size: 1.8rem; font-weight: 740; }
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--app-line-strong); }

/* --------------------------------------------------------------------------
   Viaje: cabecera con portada, pestañas y vistas
   -------------------------------------------------------------------------- */
.trip-header { position: relative; margin: .9rem 1.2rem 0; border-radius: 2rem; overflow: hidden; color: #f3f7f8; background: var(--trip-color, #10212e); box-shadow: var(--app-shadow-lg); isolation: isolate; }
.trip-header__cover { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); }
.trip-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 17, 24, .35), rgba(8, 17, 24, .86)); }
.trip-header__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back back" "main actions"; gap: .6rem 1rem; padding: 1.1rem 1.4rem 1rem; }
.trip-back { grid-area: back; justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem .3rem .55rem; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); text-decoration: none; font-size: .82rem; font-weight: 700; }
.trip-back:hover { color: #10212e; background: #fff; }
.trip-header__main { grid-area: main; display: flex; align-items: flex-end; gap: 1rem; min-width: 0; }
.trip-emoji { width: 4.2rem; height: 4.2rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 1.4rem; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); font-size: 2.3rem; }
.trip-header__copy { min-width: 0; }
.trip-header .eyebrow { color: rgba(243, 247, 248, .82); margin-bottom: .3rem; }
.trip-header h1 { margin: 0; color: #fff; font-family: var(--app-display); font-weight: 740; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.trip-meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .4rem 0 0; color: rgba(243, 247, 248, .85); font-size: .9rem; font-weight: 600; }
.trip-meta i { margin-right: .3rem; opacity: .8; }
.trip-header__actions { grid-area: actions; display: flex; align-items: center; gap: .5rem; align-self: end; }
.trip-header__actions .btn-light { --bs-btn-bg: rgba(255, 255, 255, .16); --bs-btn-border-color: rgba(255, 255, 255, .25); --bs-btn-color: #fff; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #10212e; backdrop-filter: blur(10px); }
.trip-header__actions .btn-primary { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: #10212e; --bs-btn-hover-bg: #e9f6f4; --bs-btn-hover-border-color: #e9f6f4; --bs-btn-hover-color: #10212e; --bs-btn-active-bg: #fff; --bs-btn-active-color: #10212e; }
.trip-people { display: flex; align-items: center; padding: 0 .2rem; border: 0; background: transparent; }
.trip-people span { width: 2.3rem; height: 2.3rem; margin-left: -.55rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(8, 17, 24, .6); color: #08504c; background: #cdeee9; font-size: .8rem; font-weight: 800; }
.trip-people span:first-child { margin-left: 0; }
.trip-people .is-add { color: #fff; background: rgba(255, 255, 255, .16); border-style: dashed; border-color: rgba(255, 255, 255, .5); }
.trip-tabs { display: flex; gap: .2rem; padding: 0 1rem .7rem; overflow-x: auto; scrollbar-width: none; }
.trip-tabs::-webkit-scrollbar { display: none; }
.trip-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 0; border-radius: 999px; color: rgba(243, 247, 248, .8); background: transparent; font-weight: 700; font-size: .88rem; }
.trip-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.trip-tabs button.active { color: #10212e; background: #fff; }
.trip-tab-count { min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .7rem; line-height: 1.3rem; text-align: center; }
.trip-tabs button.active .trip-tab-count { background: var(--app-tone-container); color: #08504c; }
.trip-tab-count:empty { display: none; }
.trip-body { padding: 1.1rem 1.2rem 2rem; }
@media (max-width: 991.98px) {
    .trip-header { margin: calc(.6rem + env(safe-area-inset-top, 0px)) .6rem 0; border-radius: 1.6rem; }
    .trip-header__body { grid-template-columns: 1fr; grid-template-areas: "back" "main" "actions"; padding: .9rem 1rem .8rem; }
    .trip-emoji { width: 3.2rem; height: 3.2rem; font-size: 1.8rem; border-radius: 1.1rem; }
    .trip-header__actions { justify-content: flex-start; }
    .trip-header__actions .btn-primary { flex: 1 1 auto; }
    .trip-body { padding: .9rem .7rem 1.5rem; }
    .trip-tabs { padding: 0 .6rem .6rem; }
    .trip-tabs button span { display: inline; }
}

/* Calendario (FullCalendar con la piel de la app) */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .8rem; }
.cal-nav { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.cal-title { margin: 0 0 0 .4rem; font-family: var(--app-display); font-weight: 740; font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-views { display: inline-flex; padding: .22rem; border-radius: 999px; background: var(--app-surface-3); }
.cal-views button { padding: .4rem .8rem; border: 0; border-radius: 999px; color: var(--app-muted); background: transparent; font-weight: 700; font-size: .82rem; }
.cal-views button.active { color: var(--app-ink); background: var(--app-surface); box-shadow: var(--app-shadow-sm); }
.cal-wrap { padding: .4rem; overflow: hidden; }
.cal-hint { margin: .7rem .3rem 0; color: var(--app-muted); font-size: .82rem; }
.fc {
    --fc-border-color: var(--app-line);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: var(--app-surface-2);
    --fc-today-bg-color: var(--app-sun-soft);
    --fc-now-indicator-color: var(--app-danger);
    --fc-highlight-color: var(--app-tone-soft);
    --fc-list-event-hover-bg-color: var(--app-surface-2);
    --fc-event-border-color: transparent;
    --fc-event-text-color: var(--app-ink);
    --fc-event-bg-color: var(--app-surface);
    font-size: .86rem;
    color: var(--app-ink);
}
.fc .fc-scrollgrid { border: 0; }
.fc .fc-col-header-cell { padding: .4rem 0; background: transparent; }
.fc .fc-col-header-cell-cushion { color: var(--app-ink); font-weight: 700; text-decoration: none; display: grid; justify-items: center; gap: .05rem; }
.fc .day-head__name { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--app-muted); }
.fc .day-head__num { font-family: var(--app-display); font-size: 1.35rem; font-weight: 740; line-height: 1; }
.fc .day-head__trip { font-size: .66rem; font-weight: 750; color: var(--app-tone); }
.fc .fc-day-today .day-head__num { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--app-danger); }
.fc .fc-timegrid-slot { height: 2.6rem; }
.fc .fc-timegrid-slot-label-cushion, .fc .fc-timegrid-axis-cushion { color: var(--app-muted); font-size: .72rem; font-weight: 650; }
.fc .fc-timegrid-slot-minor { border-top-style: dotted; }
.fc .is-outside-trip { background-image: repeating-linear-gradient(135deg, transparent 0 7px, var(--app-line) 7px 8px); }
.fc .fc-daygrid-day-number { color: var(--app-ink-2); font-weight: 700; text-decoration: none; }
.fc a { color: inherit; }
.fc .fc-event.trip-event { --cat: #11875d; border: 0; border-left: 3px solid var(--cat); border-radius: .55rem; background: color-mix(in srgb, var(--cat) 15%, var(--app-surface)); color: var(--app-ink); box-shadow: 0 1px 2px rgba(16, 33, 46, .08); cursor: pointer; }
[data-bs-theme="dark"] .fc .fc-event.trip-event { background: color-mix(in srgb, var(--cat) 28%, var(--app-surface)); }
.fc .fc-event.trip-event:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat) 45%, transparent); }
.fc .fc-daygrid-event.trip-event { margin-top: 2px; padding: 1px 4px; }
.fc .trip-event .fc-event-main, .fc .trip-event .fc-event-main-frame { color: var(--app-ink); }
.trip-event__inner { display: flex; flex-direction: column; gap: .05rem; padding: .15rem .25rem; min-width: 0; overflow: hidden; line-height: 1.2; }
.trip-event__title { display: flex; align-items: center; gap: .3rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-event__title i { color: var(--cat); flex: 0 0 auto; }
.trip-event__meta { color: var(--app-muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-event__badges { display: inline-flex; gap: .3rem; color: var(--app-muted); font-size: .68rem; }
.fc .fc-list { border: 0; }
.fc .fc-list-day-cushion { background: var(--app-surface-2); }
.fc .fc-list-event-dot { border-color: var(--cat, var(--app-tone)); }
.fc .fc-list-empty { background: transparent; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--app-line); }
.fc .fc-scroller { scrollbar-width: thin; scrollbar-color: var(--app-line-strong) transparent; }

/* Emojis y banderas también en Windows (que no dibuja banderas): fuente de color solo para estos huecos. */
.trip-emoji, .emoji-row input, .emoji-suggest button, .trip-card__media--empty::after, .trip-row__media, .story__mood, .mood-picker button, .proposal__icon { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
@media (max-width: 575.98px) {
    .cal-toolbar { gap: .5rem; }
    .cal-views { width: 100%; justify-content: space-between; }
    .cal-views button { flex: 1 1 auto; padding: .4rem .3rem; }
    .cal-title { font-size: 1.1rem; }
    .fc { font-size: .78rem; }
    .fc .fc-timegrid-slot { height: 2.1rem; }
    .fc .day-head__num { font-size: 1.1rem; }
}

/* Mapa */
.trip-map { position: relative; z-index: 0; isolation: isolate; height: min(68vh, 40rem); min-height: 22rem; overflow: hidden; padding: 0; }
.map-days { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .6rem; scrollbar-width: none; }
.map-days::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border: 1px solid var(--app-line-strong); border-radius: 999px; color: var(--app-ink-2); background: var(--app-glass-strong); font-weight: 650; font-size: .82rem; }
.filter-chip:hover { border-color: var(--app-ink); color: var(--app-ink); }
.filter-chip.active { color: var(--app-on-primary); background: var(--app-primary); border-color: var(--app-primary); }
.filter-chip .swatch { width: .6rem; height: .6rem; border-radius: 50%; background: var(--day-color); }
.map-pin { width: 2rem; height: 2rem; display: grid; place-items: center; border: 2.5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pin, #0b7a75); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); }
.map-pin span { transform: rotate(45deg); color: #fff; font-size: .78rem; font-weight: 800; }
.map-pin--home { --pin: #10212e; border-color: var(--ring, #fff); border-radius: 50%; transform: none; }
.map-pin.map-pin--home i { transform: none; }

/* --------------------------------------------------------------------------
   Itinerario: el viaje por jornadas
   -------------------------------------------------------------------------- */
.itin-strip { position: sticky; top: 0; z-index: 30; display: flex; gap: .4rem; margin: 0 0 .7rem; padding: .55rem 0; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--app-canvas) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.itin-strip::-webkit-scrollbar { display: none; }
.itin-chip { flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: .05rem; min-width: 3.9rem; min-height: 2.9rem; padding: .3rem .7rem; border: 1px solid var(--app-line-strong); border-radius: 1rem; color: var(--app-ink); background: var(--app-surface); line-height: 1.1; }
.itin-chip strong { font-size: .84rem; font-weight: 750; }
.itin-chip small { color: var(--app-muted); font-size: .7rem; font-weight: 600; }
.itin-chip--prep { min-width: 3.4rem; }
.itin-chip--prep .bi { font-size: 1rem; }
.itin-chip.is-today { border-color: var(--app-sun); box-shadow: inset 0 0 0 1px var(--app-sun); }
.itin-chip.active { color: var(--app-on-primary); background: var(--app-primary); border-color: var(--app-primary); }
.itin-chip.active small { color: inherit; opacity: .8; }
.itin-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
[data-pane="itinerary"].is-dropping .itin-days { outline: 3px dashed var(--app-tone); outline-offset: 6px; border-radius: var(--app-radius); }

.itin-prep { margin-bottom: 1rem; border: 1px solid var(--app-glass-border); border-radius: var(--app-radius); background: var(--app-glass); box-shadow: var(--app-shadow-sm); scroll-margin-top: 4.5rem; }
.itin-prep summary { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; list-style: none; cursor: pointer; }
.itin-prep summary::-webkit-details-marker { display: none; }
.itin-prep__icon { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: .9rem; color: var(--app-on-tone-container); background: var(--app-tone-container); font-size: 1.1rem; }
.itin-prep__copy { flex: 1; min-width: 0; display: grid; }
.itin-prep__copy small { color: var(--app-muted); font-size: .8rem; }
.itin-prep__chevron { color: var(--app-muted); transition: transform .2s var(--app-ease); }
.itin-prep[open] .itin-prep__chevron { transform: rotate(180deg); }
.itin-prep__body { padding: 0 1rem 1rem; }

.itin-day { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--app-glass-border); border-radius: var(--app-radius); background: var(--app-glass); box-shadow: var(--app-shadow-sm); scroll-margin-top: 4.5rem; }
.itin-day.is-today { box-shadow: 0 0 0 2px var(--app-sun), var(--app-shadow-sm); }
.itin-day__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .85rem; }
.itin-day__badge { width: 3.1rem; height: 3.1rem; flex: 0 0 auto; display: grid; place-items: center; align-content: center; border-radius: 1.05rem; color: #fff; background: var(--day-color, var(--app-tone)); line-height: 1; }
.itin-day__badge small { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.itin-day__badge strong { font-family: var(--app-display); font-size: 1.35rem; font-weight: 800; }
.itin-day__title { min-width: 0; }
.itin-day__title h2 { margin: 0; font-size: 1.12rem; font-weight: 780; letter-spacing: -.01em; }
.itin-day__title h2::first-letter { text-transform: uppercase; }
.itin-day__title p { margin: .15rem 0 0; color: var(--app-muted); font-size: .82rem; line-height: 1.35; }
.itin-today { margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; color: #5b3200; background: var(--app-sun); font-size: .7rem; font-weight: 800; vertical-align: middle; }
.itin-day__empty { margin: .2rem 0 0; color: var(--app-muted); font-size: .9rem; }

/* isolation: las capas de Leaflet (z-index 400–1000) se quedan dentro del mapa y no tapan la tira de días al hacer scroll */
.itin-mapwrap { position: relative; z-index: 0; isolation: isolate; margin-bottom: .9rem; }
.itin-map { height: 11.5rem; border-radius: 1rem; overflow: hidden; background: var(--app-surface-2); cursor: zoom-in; }
.itin-map .leaflet-control-attribution { font-size: .6rem; }
.itin-map__mode { position: absolute; top: .55rem; left: .55rem; z-index: 500; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 0; border-radius: 999px; color: var(--app-ink); background: var(--app-glass-strong); box-shadow: var(--app-shadow-sm); font-size: .78rem; font-weight: 750; }
.itin-map__mode .bi-arrow-left-right { color: var(--app-muted); font-size: .7rem; }
.itin-map__big { position: absolute; top: .55rem; right: .55rem; z-index: 500; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; color: var(--app-ink); background: var(--app-glass-strong); box-shadow: var(--app-shadow-sm); font-size: .8rem; pointer-events: none; }

/* La jornada: hora · punto con línea · plan */
.itin-timeline { --time-w: 2.9rem; --dot: 1.9rem; --gap: .6rem; position: relative; display: grid; }
.itin-item, .itin-leg { position: relative; display: grid; grid-template-columns: var(--time-w) var(--dot) minmax(0, 1fr); column-gap: var(--gap); }
.itin-item::before, .itin-leg::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--time-w) + var(--gap) + var(--dot) / 2 - 1px); width: 2px; background: var(--app-line-strong); }
.itin-item:first-child::before { top: .95rem; }
.itin-item:last-child::before { bottom: auto; height: .95rem; }
.itin-item:only-child::before { display: none; }
.itin-item__time { padding-top: .3rem; text-align: right; font-weight: 780; font-size: .88rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.itin-item__time small { display: block; color: var(--app-muted); font-weight: 550; font-size: .72rem; }
.itin-item__dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cat); font-size: .82rem; box-shadow: 0 0 0 3px var(--app-surface); }
.itin-item.is-home .itin-item__dot { background: #10212e; }
/* Hora e icono con chincheta en el mapa: al pulsarlos, la chincheta salta */
button.itin-item__time { width: 100%; align-self: start; padding: .3rem 0 0; border: 0; background: none; color: var(--app-ink); font-family: inherit; cursor: pointer; }
button.itin-item__time:hover { color: var(--app-tone); }
button.itin-item__dot { padding: 0; border: 0; cursor: pointer; transition: transform .15s var(--app-ease); }
button.itin-item__dot:hover { transform: scale(1.08); }
button.itin-item__time:focus-visible, button.itin-item__dot:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
.map-pin.is-hopping { animation: pin-hop .9s var(--app-ease); }
@keyframes pin-hop {
    0%, 100% { translate: 0 0; }
    22% { translate: 0 -18px; }
    42% { translate: 0 0; }
    58% { translate: 0 -8px; }
    74% { translate: 0 0; }
    86% { translate: 0 -2px; }
}
@media (prefers-reduced-motion: reduce) { .map-pin.is-hopping { animation: none; outline: 3px solid var(--app-sun); } }
[data-bs-theme="dark"] .itin-item.is-home .itin-item__dot { color: #10212e; background: #e7eff1; }
.itin-item__body { min-width: 0; padding: .25rem 0 .85rem; }
/* «⋯» de cada línea: editar, mover, duplicar o borrar sin abrir el panel. */
.itin-item__menu { position: absolute; top: -.15rem; right: -.35rem; z-index: 1; width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--app-muted); background: transparent; }
.itin-item__menu:hover, .itin-item__menu:focus-visible { color: var(--app-ink); background: var(--app-surface-3); }
.itin-item.has-menu .itin-item__body { padding-right: 1.8rem; }
@media (hover: hover) {
    .itin-item__menu { opacity: .45; transition: opacity .15s ease; }
    .itin-item:hover .itin-item__menu, .itin-item__menu:focus-visible { opacity: 1; }
}
.itin-item__title { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--app-ink); font-weight: 720; font-size: .98rem; line-height: 1.3; text-align: left; }
.itin-item__title:hover { color: var(--app-tone); }
.itin-item.is-home .itin-item__title { font-weight: 650; }
.itin-item__meta { display: flex; align-items: baseline; gap: .35rem; margin: .15rem 0 0; color: var(--app-muted); font-size: .8rem; }
.itin-item__meta span { min-width: 0; overflow-wrap: anywhere; }
.itin-item__meta.is-missing { color: #a8640f; }
[data-bs-theme="dark"] .itin-item__meta.is-missing { color: var(--app-sun); }
.itin-leg { align-items: center; min-height: 2.2rem; color: var(--app-muted); font-size: .8rem; }
.itin-leg::before { background: repeating-linear-gradient(to bottom, var(--app-line-strong) 0 4px, transparent 4px 8px); }
.itin-leg > .bi { grid-column: 2; justify-self: center; position: relative; z-index: 1; width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border-radius: 50%; color: var(--app-tone); background: var(--app-surface); font-size: .78rem; }
.itin-leg p { grid-column: 3; margin: 0; padding: .3rem 0; line-height: 1.35; }
.itin-leg em { font-style: normal; }
.itin-leg em::before, .itin-leg b::before { content: "· "; }
.itin-leg a { margin-left: .3rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.itin-leg.is-tight { color: #9a3412; }
.itin-leg.is-tight > .bi { color: #c2410c; }
[data-bs-theme="dark"] .itin-leg.is-tight, [data-bs-theme="dark"] .itin-leg.is-tight > .bi { color: var(--app-sun); }

/* Fotos, billetes e historias dentro de la jornada */
.itin-files { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.itin-thumb { position: relative; width: 3.6rem; height: 3.6rem; padding: 0; border: 0; border-radius: .75rem; background: var(--app-surface-3) center / cover no-repeat; color: #fff; }
.itin-thumb .bi { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.itin-doc { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .4rem .7rem; border: 1px solid var(--app-line-strong); border-radius: .8rem; color: var(--app-ink); background: var(--app-surface); font-size: .8rem; font-weight: 650; }
.itin-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.itin-doc .bi { color: var(--app-tone); font-size: 1rem; }
.itin-stories { display: grid; gap: .5rem; margin-top: .5rem; }
/* Historia dentro de un plan: una nota breve, con la cara del día y quién la escribió */
.story.story--compact { padding: .55rem .7rem .6rem .8rem; border: 0; border-left: 3px solid var(--app-sun); border-radius: 0 .9rem .9rem 0; background: var(--app-sun-soft); box-shadow: none; }
.story--compact .story__head { align-items: center; gap: .45rem; }
.story--compact .story__mood { font-size: 1.05rem; }
.story--compact .story__head h3 { font-size: .88rem; }
.story--compact .story__head h3:empty { display: none; }
.story--compact .story__head small { font-size: .72rem; }
.story--compact .story__menu .btn { width: 1.8rem; height: 1.8rem; padding: 0; border: 0; background: transparent; }
.story--compact .story__body { margin-top: .2rem; font-size: .9rem; line-height: 1.5; }
.itin-item__time > .bi { display: inline-block; padding-top: .1rem; color: var(--app-muted); font-size: 1.05rem; }
.itin-extra { margin-top: .4rem; padding-top: .7rem; border-top: 1px solid var(--app-line); }
.itin-label { display: flex; align-items: center; gap: .4rem; margin: 0 0 .1rem; color: var(--app-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.itin-docs { margin-top: 1rem; }
.itin-day__actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--app-line); }
.itin-day__actions button { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border: 1px solid var(--app-line-strong); border-radius: 999px; color: var(--app-ink); background: var(--app-surface); font-size: .8rem; font-weight: 700; }
.itin-day__actions button:hover { border-color: var(--app-ink); }
.itin-day__actions .rumbo { font-size: .5rem; }
@media (max-width: 575.98px) {
    /* En el móvil, las acciones del día en una fila: icono arriba y texto abajo */
    .itin-day__actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
    .itin-day__actions button { flex-direction: column; justify-content: center; gap: .15rem; padding: .45rem .15rem; border-radius: .9rem; font-size: .7rem; }
    .itin-day__actions button .bi { font-size: 1rem; }
    .itin-day__actions .rumbo { font-size: .55rem; }
    .itin-day { padding: .9rem .8rem; }
    .itin-timeline { --time-w: 2.6rem; --gap: .5rem; }
    .itin-map { height: 10rem; }
}
.map-pin i { transform: rotate(45deg); color: #fff; font-size: .85rem; }
.map-photo { width: 2.6rem; height: 2.6rem; border: 2.5px solid #fff; border-radius: .8rem; background: #ccc center / cover; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); }
.leaflet-container { font-family: var(--app-font); background: var(--app-surface-2); }
.leaflet-popup-content-wrapper { border-radius: 1rem; background: var(--app-surface); color: var(--app-ink); box-shadow: var(--app-shadow); }
.leaflet-popup-tip { background: var(--app-surface); }
.leaflet-popup-content { margin: .8rem 1rem; font-size: .86rem; }
.map-popup strong { display: block; font-size: .95rem; }
.map-popup small { color: var(--app-muted); }
.map-popup .btn { margin-top: .5rem; }
[data-bs-theme="dark"] .leaflet-control-attribution { background: rgba(15, 30, 41, .8); color: var(--app-muted); }
[data-bs-theme="dark"] .leaflet-control-attribution a { color: var(--app-tone); }

/* Archivos */
.files-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .8rem; }
.filter-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.dropzone { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; border: 1.5px dashed var(--app-line-strong); border-radius: 1.3rem; background: var(--app-glass); color: var(--app-ink-2); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.dropzone > i { font-size: 1.8rem; color: var(--app-tone); }
.dropzone strong, .dropzone small { display: block; }
.dropzone small { color: var(--app-muted); }
.dropzone:hover, .dropzone.is-over { border-color: var(--app-tone); background: var(--app-tone-soft); }
.files-day { margin-bottom: 1.4rem; }
.files-day__head { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .6rem; }
.files-day__head h3 { margin: 0; font-family: var(--app-display); font-weight: 740; font-size: 1.15rem; }
.files-day__head small { color: var(--app-muted); font-weight: 650; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; }
.files-grid--compact { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.file-tile { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; border-radius: 1rem; background: var(--app-surface-3) center / cover no-repeat; color: var(--app-ink); text-align: left; transition: transform .2s var(--app-ease); }
.file-tile:hover { transform: scale(1.02); }
.file-tile__badge { position: absolute; left: .4rem; top: .4rem; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .45rem; border-radius: 999px; background: rgba(5, 12, 18, .55); color: #fff; font-size: .68rem; font-weight: 700; backdrop-filter: blur(6px); }
.file-tile__fav { position: absolute; right: .4rem; top: .35rem; color: #ff6b81; font-size: 1rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.file-tile--doc { display: flex; flex-direction: column; justify-content: space-between; padding: .7rem; background: var(--app-surface); border: 1px solid var(--app-line); }
.file-tile--doc > i { font-size: 2rem; color: var(--app-tone); }
.file-tile--doc strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; line-height: 1.25; word-break: break-word; }
.file-tile--doc small { color: var(--app-muted); font-size: .7rem; }
.file-tile__event { position: absolute; left: .4rem; right: .4rem; bottom: .4rem; overflow: hidden; padding: .15rem .45rem; border-radius: .5rem; background: rgba(5, 12, 18, .55); color: #fff; font-size: .66rem; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; backdrop-filter: blur(6px); }
.file-tile--doc .file-tile__event { position: static; margin-top: .3rem; background: var(--app-surface-3); color: var(--app-ink-2); }
.file-tile--uploading { display: grid; place-items: center; background: var(--app-surface-2); }
/* Galería de todas las fotos: por días y con selección de varias */
.gallery .files-grid { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .35rem; }
.gallery section + section { margin-top: 1.2rem; }
.gallery__day { margin: 0 0 .5rem; font-family: var(--app-font); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--app-tone); }
.gallery__day small { margin-left: .3rem; color: var(--app-muted); font-weight: 650; letter-spacing: 0; }
.gallery .file-tile { border-radius: .7rem; }
.gallery.is-selecting .file-tile::after { content: ""; position: absolute; top: .4rem; right: .4rem; width: 1.4rem; height: 1.4rem; border: 2px solid #fff; border-radius: 50%; background: rgba(5, 12, 18, .3); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.gallery.is-selecting .file-tile.is-selected { outline: 3px solid var(--app-tone); outline-offset: -3px; }
.gallery.is-selecting .file-tile.is-selected::after { content: "\F26E"; display: grid; place-items: center; font-family: "bootstrap-icons"; color: #fff; background: var(--app-tone); border-color: var(--app-tone); font-size: .95rem; }
.gallery.is-selecting .file-tile__fav { right: 2.1rem; }
.gallery__bar { flex-wrap: nowrap; gap: .5rem; padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); }
.gallery__bar > * { margin: 0; }
.gallery__bar [data-count] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery__bar .btn { flex: 0 0 auto; }
@media (max-width: 575.98px) { .gallery .files-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; } .gallery .file-tile { border-radius: .45rem; } }

/* Visor */
.viewer .modal-dialog { max-width: min(1100px, calc(100vw - 1rem)); }
.viewer .modal-content { display: flex; flex-direction: column; max-height: calc(100dvh - 1rem); overflow: hidden; background: #0a1118; color: #eef3f5; border: 0; }
.viewer__stage { position: relative; display: grid; flex: 1 1 auto; place-items: center; min-height: 40vh; max-height: 70vh; background: #05090c; touch-action: pan-y; }
.viewer__count { position: absolute; top: .9rem; left: 1rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
    .viewer .modal-content { max-height: none; }
    .viewer__stage { min-height: 0; max-height: none; }
    .viewer__stage img, .viewer__stage video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
    .viewer__stage iframe { position: absolute; inset: 0; height: 100%; }
    .viewer__panel { flex: 0 0 auto; max-height: 48dvh; overflow-y: auto; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
    .viewer__close { top: calc(.7rem + env(safe-area-inset-top, 0px)); }
}
.viewer__stage img, .viewer__stage video { max-width: 100%; max-height: 70vh; object-fit: contain; }
.viewer__stage iframe { width: 100%; height: 70vh; border: 0; background: #fff; }
.viewer__doc { display: grid; justify-items: center; gap: .8rem; padding: 3rem 1rem; text-align: center; }
.viewer__doc i { font-size: 3.5rem; color: #7fd8cf; }
.viewer__nav { position: absolute; top: 50%; width: 2.8rem; height: 2.8rem; transform: translateY(-50%); display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.viewer__nav--prev { left: .7rem; }
.viewer__nav--next { right: .7rem; }
.viewer__close { position: absolute; top: .7rem; right: .7rem; z-index: 2; }
.viewer__panel { display: grid; gap: .7rem; padding: 1rem 1.2rem 1.2rem; }
.viewer__panel .form-control, .viewer__panel .form-select { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #eef3f5; }
.viewer__panel .form-select option { color: #10212e; }
.viewer__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: rgba(238, 243, 245, .7); font-size: .82rem; }
.viewer__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.viewer__actions .btn-light { --bs-btn-bg: rgba(255, 255, 255, .1); --bs-btn-border-color: rgba(255, 255, 255, .18); --bs-btn-color: #eef3f5; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #10212e; }

/* Subidas en curso */
.upload-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 1095; width: min(22rem, calc(100vw - 2rem)); padding: .9rem 1rem; border-radius: 1.2rem; background: #10212e; color: #eef3f5; box-shadow: var(--app-shadow-lg); }
@media (max-width: 991.98px) { .upload-panel { bottom: calc(var(--app-dock-height) + env(safe-area-inset-bottom, 0px) + 1.4rem); left: 50%; right: auto; transform: translateX(-50%); } }
.upload-panel strong { display: block; font-size: .9rem; }
.upload-panel small { color: rgba(238, 243, 245, .7); }
.upload-panel .progress { height: .4rem; margin-top: .6rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.upload-panel .progress-bar { background: #7fd8cf; }

/* Diario */
.mood-picker { display: flex; flex-wrap: wrap; gap: .25rem; }
.mood-picker button { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: var(--app-surface-2); font-size: 1.15rem; transition: transform .15s var(--app-ease); }
.mood-picker button:hover { transform: scale(1.12); }
.mood-picker button.active { border-color: var(--app-tone); background: var(--app-tone-soft); }
.mood-picker--compact button { width: 2rem; height: 2rem; font-size: 1rem; }
.diary-list { display: grid; gap: .9rem; }
.diary-day { font-family: var(--app-display); font-weight: 740; font-size: 1.2rem; margin: .6rem 0 -.2rem; }
.story { position: relative; padding: 1.1rem 1.2rem; border-radius: 1.3rem; background: var(--app-glass); border: 1px solid var(--app-glass-border); box-shadow: var(--app-shadow-sm); }
.story__head { display: flex; align-items: flex-start; gap: .7rem; }
.story__mood { font-size: 1.6rem; line-height: 1; }
.story__head h3 { margin: 0; font-size: 1.05rem; }
.story__head small { display: block; color: var(--app-muted); font-size: .78rem; }
.story__body { margin: .6rem 0 0; white-space: pre-line; font-size: 1rem; line-height: 1.6; color: var(--app-ink-2); }
.story__menu { margin-left: auto; }
.diary-list--compact .story { padding: .8rem .9rem; }
.diary-list--compact .story__body { font-size: .95rem; }

/* Preparativos */
.task-add { display: flex; gap: .5rem; }
.task-progress { display: flex; align-items: center; gap: .7rem; margin: 1rem 0 .4rem; color: var(--app-muted); font-size: .82rem; font-weight: 650; }
.task-progress .progress { flex: 1; height: .45rem; border-radius: 999px; background: var(--app-surface-3); }
.task-progress .progress-bar { background: var(--app-tone); }
.task-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.task-item { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: .6rem; background: var(--app-surface); }
.task-item:first-child { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.task-item:last-child { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.task-item .form-check-input { width: 1.3rem; height: 1.3rem; margin: 0; flex: 0 0 auto; border-radius: .45rem; }
.task-item span { flex: 1; min-width: 0; }
.task-item.is-done span { color: var(--app-muted); text-decoration: line-through; }
.task-item button { border: 0; background: transparent; color: var(--app-muted); }
.tasks-help .rumbo { font-size: 1.3rem; }

/* Recuerdo de un viaje */
/* Reproductor del recuerdo: mosaico de fotos del viaje (no la portada de la cabecera) con el botón de reproducir */
.memory-player { overflow: hidden; border: 1px solid var(--app-line); border-radius: 1.8rem; background: var(--app-surface); box-shadow: var(--app-shadow-lg); }
.memory-player__screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 22rem; padding: 0; overflow: hidden; border: 0; color: #fff; text-align: left; background: linear-gradient(135deg, var(--trip-color, #10212e), #0a1520); isolation: isolate; }
.memory-player__screen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 18, .08) 40%, rgba(5, 12, 18, .78)); }
.memory-player__mosaic { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.memory-player__mosaic[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.memory-player__mosaic[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.memory-player__mosaic .tile { overflow: hidden; background: #1c3242; }
.memory-player__mosaic .tile:first-child { grid-row: 1 / -1; }
.memory-player__mosaic .tile > span { display: block; width: 100%; height: 100%; background: center / cover; }
.memory-player__mosaic .tile:first-child > span { animation: kenburns 24s ease-in-out infinite alternate; }
.memory-player__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; border-radius: 50%; color: #10212e; background: rgba(255, 255, 255, .94); font-size: 2.3rem; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .7); transition: transform .2s var(--app-ease); }
.memory-player__play i { margin-left: .2rem; }
.memory-player__screen:hover .memory-player__play, .memory-player__screen:focus-visible .memory-player__play { transform: scale(1.08); }
.memory-player__caption { position: absolute; right: 1.3rem; bottom: 1rem; left: 1.3rem; display: grid; gap: .1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.memory-player__caption strong { font-family: var(--app-display); font-size: 1.35rem; font-weight: 740; line-height: 1.1; letter-spacing: -.01em; }
.memory-player__caption small { color: rgba(255, 255, 255, .88); font-size: .85rem; font-weight: 600; }
.memory-player__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem 1.1rem; }
.memory-player__stats { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--app-muted); font-size: .86rem; font-weight: 650; }
.memory-player__stats i { margin-right: .3rem; color: var(--app-tone); }
@media (max-width: 575.98px) { .memory-player__screen { aspect-ratio: 4 / 3; } }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.chronicle-body { font-size: 1rem; line-height: 1.65; color: var(--app-ink-2); }
.chronicle-body h4 { margin: 1.2rem 0 .2rem; font-family: var(--app-font); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--app-tone); }
.chronicle-body p { margin: 0 0 .6rem; }
.chronicle-highlights { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; font-family: var(--app-font); font-size: .82rem; }
.chronicle-highlights li { padding: .3rem .7rem; border-radius: 999px; background: var(--app-sun-soft); color: var(--app-ink); font-weight: 650; }
.memory-favorites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.memory-favorites button { aspect-ratio: 1; border: 0; border-radius: .8rem; background: var(--app-surface-3) center / cover; }
/* Banda sonora */
.soundtrack-list { display: grid; gap: .15rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.soundtrack-item { display: flex; align-items: center; gap: .6rem; padding: .35rem .3rem; border-radius: .9rem; }
.soundtrack-item.is-playing { background: var(--app-tone-soft); }
.soundtrack-item__num { width: 1.1rem; flex: 0 0 auto; color: var(--app-muted); font-size: .78rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.soundtrack-item__play { flex: 0 0 auto; border-radius: 50%; }
.soundtrack-item.is-playing .soundtrack-item__play { --bs-btn-bg: var(--app-tone); --bs-btn-color: #fff; --bs-btn-border-color: var(--app-tone); --bs-btn-hover-bg: var(--app-tone); --bs-btn-hover-color: #fff; }
.soundtrack-item__copy { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.soundtrack-item__copy strong { overflow: hidden; font-size: .92rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.soundtrack-item__copy small { color: var(--app-muted); font-size: .78rem; }
.soundtrack-empty { padding: .2rem 0; color: var(--app-muted); font-size: .88rem; }
.track-start { display: flex; align-items: center; gap: .7rem; }
.track-start .form-range { flex: 1 1 auto; }
.track-start__time { min-width: 2.8rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* --------------------------------------------------------------------------
   Panel de actividad
   -------------------------------------------------------------------------- */
.event-panel.offcanvas-end { --bs-offcanvas-width: min(32rem, 100vw); border-left: 0; box-shadow: var(--app-shadow-lg); }
@media (max-width: 575.98px) { .event-panel.offcanvas-end { --bs-offcanvas-width: 100vw; } }
.event-panel__head { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem .6rem; }
.event-panel__icon { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 1rem; color: var(--cat, var(--app-tone)); background: color-mix(in srgb, var(--cat, #0b7a75) 16%, transparent); font-size: 1.3rem; }
.event-panel__title { min-width: 0; flex: 1; }
.event-panel__title h2 { margin: 0; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-panel__title p { margin: 0; color: var(--app-muted); font-size: .82rem; }
.event-tabs { display: flex; gap: .2rem; margin: 0 1.2rem; padding: .22rem; border-radius: 999px; background: var(--app-surface-3); }
.event-tabs button { flex: 1; padding: .42rem .5rem; border: 0; border-radius: 999px; color: var(--app-muted); background: transparent; font-weight: 700; font-size: .84rem; }
.event-tabs button.active { color: var(--app-ink); background: var(--app-surface); box-shadow: var(--app-shadow-sm); }
.event-tabs b { font-weight: 800; color: var(--app-tone); }
.event-panel .offcanvas-body { padding: 1rem 1.2rem 1.4rem; }
.category-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.category-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .7rem; border: 1px solid var(--app-line-strong); border-radius: 999px; color: var(--app-ink-2); background: var(--app-surface); font-size: .8rem; font-weight: 650; cursor: pointer; }
.category-chip i { color: var(--cat); }
.btn-check:checked + .category-chip { color: #fff; background: var(--cat); border-color: var(--cat); }
.btn-check:checked + .category-chip i { color: #fff; }
.btn-check:focus-visible + .category-chip { outline: 3px solid var(--app-focus); }
.event-times .form-control { font-variant-numeric: tabular-nums; }
.is-all-day .timed-only { display: none; }
.is-all-day .event-times > .col-7 { flex: 0 0 50%; max-width: 50%; }
.place-field { position: relative; }
.place-results { position: absolute; left: 0; right: 0; top: 4.2rem; z-index: 20; display: grid; gap: 2px; max-height: 18rem; overflow-y: auto; padding: .35rem; border: 1px solid var(--app-line); border-radius: 1rem; background: var(--app-surface); box-shadow: var(--app-shadow-lg); }
.place-results button { display: grid; gap: .05rem; padding: .55rem .7rem; border: 0; border-radius: .7rem; background: transparent; color: var(--app-ink); text-align: left; }
.place-results button:hover, .place-results button:focus { background: var(--app-surface-2); }
.place-results small { color: var(--app-muted); font-size: .76rem; }
.place-status { margin-top: .4rem; color: var(--app-muted); font-size: .78rem; }
.place-status .is-set { color: var(--app-tone); font-weight: 700; }
.place-status button { border: 0; padding: 0; background: transparent; color: var(--app-muted); text-decoration: underline; font-size: .78rem; }
.event-more summary { color: var(--app-ink-2); font-weight: 700; font-size: .88rem; cursor: pointer; }
.event-form__actions { display: flex; align-items: center; gap: .4rem; padding-top: .3rem; }

/* --------------------------------------------------------------------------
   Rumbo: un pequeño globo terráqueo con ojos y un avión en órbita
   -------------------------------------------------------------------------- */
/* Diseño pensado para leerse pequeño: cara limpia en el centro (ojos blancos con pupila y contorno oscuro,
   sonrisa), tierra solo en los bordes del globo y el avión fuera de él, con halo blanco. */
.rumbo {
    --globe-a: #4fc6b8;
    --globe-b: #0e5d6f;
    --land: #8fd17c;
    --land-2: #e7c97f;
    --ink: #0c1b26;
    --plane: #f2a03d;
    --glow: rgba(79, 198, 184, .4);
    position: relative;
    display: inline-block;
    width: 3em;
    height: 3em;
    flex: 0 0 auto;
    vertical-align: middle;
    transition: transform .4s var(--app-ease);
}
.rumbo__globe {
    position: absolute;
    inset: .42em;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .14em;
    padding-bottom: .2em;
    overflow: hidden;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .5) 0 .07em, transparent .42em),
        radial-gradient(ellipse .56em .34em at 6% 88%, var(--land) 0 95%, transparent 100%),
        radial-gradient(ellipse .36em .24em at 92% 84%, var(--land-2) 0 95%, transparent 100%),
        radial-gradient(ellipse .42em .26em at 86% 10%, var(--land) 0 95%, transparent 100%),
        linear-gradient(160deg, var(--globe-a), var(--globe-b));
    box-shadow: inset -.18em -.2em .34em rgba(0, 0, 0, .3), inset .08em .08em .2em rgba(255, 255, 255, .35), 0 0 0 .05em rgba(12, 27, 38, .2), 0 0 .6em var(--glow);
    transition: filter .45s ease;
}
/* Meridiano sutil (para que se lea como un globo) y la sonrisa. */
.rumbo__globe::before { content: ""; position: absolute; inset: -.05em 31%; border: .04em solid rgba(255, 255, 255, .2); border-top: 0; border-bottom: 0; border-radius: 50%; }
.rumbo__globe::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 63%;
    width: .32em;
    height: .15em;
    margin-left: -.16em;
    border: .065em solid var(--ink);
    border-top: 0;
    border-radius: 0 0 .2em .2em;
    transition: all .3s var(--app-ease);
}
.rumbo__eye {
    position: relative;
    z-index: 1;
    width: .34em;
    height: .44em;
    border-radius: 50%;
    background:
        radial-gradient(circle at calc(42% + var(--look-x, 0) * 16%) calc(46% + var(--look-y, 0) * 14%), #fff 0 .028em, transparent .034em),
        radial-gradient(circle at calc(50% + var(--look-x, 0) * 16%) calc(56% + var(--look-y, 0) * 14%), var(--ink) 0 .095em, transparent .105em),
        #fff;
    box-shadow: 0 0 0 .05em var(--ink), 0 .05em .08em rgba(0, 0, 0, .25);
    transition: height .25s ease, width .25s ease, border-radius .25s ease, transform .3s var(--app-ease);
}
.rumbo__orbit { position: absolute; inset: -.22em; z-index: 3; border-radius: 50%; font-style: normal; rotate: 42deg; pointer-events: none; }
.rumbo__plane { position: absolute; top: -.04em; left: 50%; display: block; font-size: .64em; line-height: 1; color: var(--plane); transform: translateX(-50%) rotate(90deg); filter: drop-shadow(0 0 .045em #fff) drop-shadow(0 0 .02em #fff) drop-shadow(0 .05em .05em rgba(0, 0, 0, .3)); }
.rumbo:not([data-move]) .rumbo__plane { animation: rumbo-bob 3.2s ease-in-out infinite; }
@keyframes rumbo-bob { 50% { translate: 0 -.08em; } }
.rumbo[data-move="fly"] .rumbo__orbit { animation: rumbo-fly 1.9s cubic-bezier(.5, .05, .3, 1); }
.rumbo[data-move="look"] .rumbo__eye { animation: rumbo-look 1.6s ease-in-out; }
@keyframes rumbo-fly { from { rotate: 42deg; } to { rotate: 402deg; } }
@keyframes rumbo-look { 20%, 40% { transform: translateX(-.05em); } 60%, 80% { transform: translateX(.05em); } }
/* Ánimos: contento (ojos cerrados y sonrisa grande, solo un momento), pensando, preocupado… */
.rumbo[data-mood="happy"] .rumbo__eye { height: .2em; margin-top: .1em; background: transparent; border: .075em solid var(--ink); border-bottom: 0; border-radius: .2em .2em 0 0; box-shadow: none; }
.rumbo[data-mood="happy"] .rumbo__globe::after { width: .4em; height: .2em; margin-left: -.2em; background: #8a2a2a; border-color: var(--ink); }
.rumbo[data-mood="thinking"] { --look-x: .9; --look-y: -1; }
.rumbo[data-mood="thinking"] .rumbo__globe::after { width: .2em; margin-left: -.06em; border-radius: 0 0 .2em 0; }
.rumbo[data-mood="thinking"] .rumbo__orbit { animation: rumbo-fly 2.6s linear infinite; }
.rumbo[data-mood="worried"] { --globe-a: #f1b45a; --globe-b: #b5542f; --glow: rgba(241, 180, 90, .45); }
.rumbo[data-mood="worried"] .rumbo__globe::after { top: 66%; border-top: .065em solid var(--ink); border-bottom: 0; border-radius: .2em .2em 0 0; }
.rumbo[data-mood="confused"] { transform: rotate(-9deg); }
.rumbo[data-mood="confused"] .rumbo__eye:last-child { height: .32em; }
.rumbo[data-mood="sleepy"] .rumbo__globe { filter: saturate(.3) brightness(.92); }
.rumbo[data-mood="sleepy"] .rumbo__eye { height: .07em; background: var(--ink); box-shadow: none; }
.rumbo[data-mood="listening"] .rumbo__globe { animation: rumbo-listen 1.1s ease-in-out infinite; }
.rumbo[data-mood="listening"] .rumbo__eye { height: .5em; }
.rumbo[data-mood="listening"] .rumbo__globe::after { width: .18em; height: .18em; margin-left: -.09em; border: .065em solid var(--ink); border-radius: 50%; }
.rumbo.is-blink .rumbo__eye { animation: rumbo-blink .22s ease; }
.rumbo.is-hop { animation: rumbo-hop .7s var(--app-ease); }
@keyframes rumbo-blink { 50% { scale: 1 .1; } }
@keyframes rumbo-listen { 50% { scale: 1.06; } }
@keyframes rumbo-hop { 30% { transform: translateY(-.35em) scale(1.04, .96); } 55% { transform: translateY(0) scale(.96, 1.04); } 75% { transform: translateY(-.08em); } }
.rumbo--xs { font-size: .5rem; }
.rumbo--sm { font-size: .82rem; }
.rumbo--md { font-size: 1.05rem; }
.rumbo--lg { font-size: 1.5rem; }
.rumbo--xl { font-size: 2.4rem; }
.app-dock__orb .rumbo__globe { box-shadow: inset -.18em -.2em .34em rgba(0, 0, 0, .3), inset .08em .08em .2em rgba(255, 255, 255, .35), 0 0 0 .14em var(--app-canvas), 0 .35em .7em -.2em var(--glow); }
.app-dock__orb .rumbo:not([data-move]):not([data-mood="listening"]) .rumbo__globe { animation: rumbo-breathe 4.5s ease-in-out infinite; }
@keyframes rumbo-breathe { 50% { scale: 1.04; } }
@media (prefers-reduced-motion: reduce) { .rumbo *, .rumbo { animation: none !important; } }

/* --------------------------------------------------------------------------
   Hoja del copiloto
   -------------------------------------------------------------------------- */
.assistant-sheet.offcanvas-bottom { height: auto; max-height: 92dvh; display: flex; flex-direction: column; border-radius: 2rem 2rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 992px) { .assistant-sheet.offcanvas-bottom { left: calc(50% - 22rem + 130px); right: auto; width: 44rem; max-width: calc(100vw - 2rem); border-radius: 2rem 2rem 0 0; } }
.assistant-sheet__grip { position: absolute; top: .6rem; left: 50%; width: 2.6rem; height: .3rem; margin-left: -1.3rem; border-radius: 999px; background: var(--app-line-strong); }
.assistant-sheet__head { display: flex; align-items: center; gap: .9rem; padding: 1.5rem 1.4rem .5rem; }
.assistant-sheet__title { min-width: 0; flex: 1; }
.assistant-sheet__title h2 { margin: 0; font-family: var(--app-display); font-weight: 740; font-size: 1.5rem; letter-spacing: -.02em; }
.assistant-sheet__title p { margin: .1rem 0 0; color: var(--app-muted); font-size: .86rem; }
.assistant-sheet__reset { width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%; color: var(--app-muted); }
.assistant-context { display: flex; align-items: center; gap: .5rem; margin: 0 1.4rem .5rem; padding: .45rem .75rem; border-radius: 999px; background: var(--app-tone-soft); color: var(--app-on-tone-container); font-size: .8rem; font-weight: 650; }
[data-bs-theme="dark"] .assistant-context { color: var(--app-tone); }
.assistant-log { display: flex; flex-direction: column; gap: .9rem; min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 0 1.4rem; }
.assistant-log:empty { display: none; }
.assistant-turn { display: flex; flex-direction: column; gap: .55rem; animation: toast-in .3s var(--app-ease); }
.assistant-msg { max-width: 90%; margin: 0; padding: .7rem .95rem; border-radius: 1.2rem; font-size: .95rem; line-height: 1.45; }
.assistant-msg p { margin: 0; }
.assistant-msg--user { align-self: flex-end; color: var(--app-on-primary); background: var(--app-primary); border-bottom-right-radius: .35rem; overflow-wrap: anywhere; }
.assistant-msg--bot { align-self: flex-start; max-width: 100%; color: var(--app-ink); background: var(--app-surface); border: 1px solid var(--app-line); border-bottom-left-radius: .35rem; box-shadow: var(--app-shadow-sm); }
.assistant-msg--bot strong { font-weight: 750; background: linear-gradient(transparent 62%, var(--app-sun-soft) 0); }
.assistant-msg__actions, .assistant-msg__choices { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.assistant-done { display: flex; gap: .4rem; align-items: baseline; margin: .5rem 0 0; color: var(--app-ink-2); font-size: .88rem; }
.assistant-done i { color: var(--app-tone); }
.assistant-thinking { display: inline-flex; gap: .3rem; padding: .85rem 1rem; }
.assistant-thinking span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--app-muted); animation: thinking-dot 1s infinite ease-in-out; }
.assistant-thinking span:nth-child(2) { animation-delay: .15s; }
.assistant-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes thinking-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.assistant-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 1.4rem .2rem; }
.assistant-chip { padding: .45rem .85rem; border: 1px solid var(--app-line-strong); border-radius: 999px; color: var(--app-ink-2); background: var(--app-surface); font-size: .84rem; font-weight: 650; }
.assistant-chip:hover { border-color: var(--app-ink); color: var(--app-ink); }
.assistant-composer { display: flex; align-items: center; gap: .4rem; margin: .7rem 1.4rem .9rem; padding: .35rem .35rem .35rem 1.1rem; border: 1px solid var(--app-line-strong); border-radius: 999px; background: var(--app-surface); box-shadow: var(--app-shadow-sm); transition: box-shadow .2s ease, border-color .2s ease; }
.assistant-composer:focus-within { border-color: var(--app-tone); box-shadow: 0 0 0 4px var(--app-focus); }
.assistant-composer__input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--app-ink); font-size: 1rem; }
.assistant-composer__input:focus-visible { outline: 0; }
.assistant-composer__input::placeholder { color: var(--app-muted); }
.assistant-composer__mic, .assistant-composer__send { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; font-size: 1.1rem; }
.assistant-composer__mic { color: var(--app-ink-2); background: var(--app-surface-3); }
.assistant-composer__mic.is-listening { color: #fff; background: var(--app-danger); animation: rumbo-listen 1s infinite; }
.assistant-composer__send { color: var(--app-on-primary); background: var(--app-primary); }
.proposals { display: grid; gap: .5rem; margin-top: .8rem; }
.proposal { --cat: #11875d; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; padding: .8rem; border: 1px solid var(--app-line); border-radius: 1.1rem; background: var(--app-surface-2); }
.proposal__icon { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: .85rem; color: var(--cat); background: color-mix(in srgb, var(--cat) 16%, transparent); font-size: 1.1rem; }
.proposal h3 { margin: 0; font-size: .98rem; font-weight: 750; }
.proposal__when { display: flex; flex-wrap: wrap; gap: .1rem .7rem; margin-top: .1rem; color: var(--app-muted); font-size: .78rem; font-weight: 650; }
.proposal__desc { margin: .35rem 0 0; font-size: .88rem; color: var(--app-ink-2); }
.proposal__tip { display: flex; gap: .35rem; margin: .35rem 0 0; font-size: .8rem; color: var(--app-muted); }
.proposal__tip i { color: var(--app-sun); }
.proposal__actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.proposal.is-added { opacity: .65; }
/* Alojamientos de Google Maps elegidos por Rumbo */
.hotel-cards { display: grid; gap: .6rem; margin-top: .8rem; }
.hotel-card { overflow: hidden; border: 1px solid var(--app-line); border-radius: 1.1rem; background: var(--app-surface-2); }
.hotel-card__photo { display: block; width: 100%; height: 9.5rem; object-fit: cover; background: var(--app-surface-3); }
.hotel-card__photo.is-empty { display: grid; place-items: center; height: 4.5rem; color: var(--app-muted); font-size: 1.6rem; }
.hotel-card__body { padding: .75rem .85rem .7rem; }
.hotel-card h3 { margin: 0; font-size: 1rem; font-weight: 750; }
.hotel-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .3rem 0 0; color: var(--app-muted); font-size: .8rem; font-weight: 600; }
.hotel-card__score { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .45rem; border-radius: .5rem; color: #fff; background: #3b6b8a; font-weight: 800; }
.hotel-card__score.is-top { background: #11875d; }
.hotel-card__score.is-low { background: #c2410c; }
.hotel-card__score .bi { font-size: .7rem; }
.hotel-card__why { margin: .4rem 0 0; font-size: .88rem; color: var(--app-ink-2); }
.hotel-card__credit { display: block; margin-top: .45rem; color: var(--app-muted); font-size: .68rem; }

/* Un viaje desde un vídeo: pasos mientras Rumbo lo ve y tarjeta con lo que ha sacado */
.video-progress { display: grid; gap: .35rem; min-width: min(17rem, 100%); }
.video-progress__steps { display: flex; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.video-progress__steps li { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: var(--app-muted); background: var(--app-surface-2); border: 1px solid var(--app-line); transition: background .3s, color .3s; }
.video-progress__steps li.is-done { color: var(--app-on-primary); background: var(--app-tone); border-color: transparent; }
.video-progress__steps li.is-active { color: var(--app-primary); border-color: var(--app-primary); animation: video-step 1.3s ease-in-out infinite; }
.video-progress__text { font-weight: 700; }
.video-progress small { color: var(--app-muted); font-size: .78rem; }
@keyframes video-step { 50% { box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--app-primary) 18%, transparent); } }
@media (prefers-reduced-motion: reduce) { .video-progress__steps li.is-active { animation: none; } }
.video-wish { overflow: hidden; margin-top: .8rem; border: 1px solid var(--app-line); border-radius: 1.1rem; background: var(--app-surface-2); }
.video-wish.is-dismissed { opacity: .6; }
.video-wish__cover { display: block; width: 100%; height: 11rem; object-fit: cover; background: var(--app-surface-3); }
.video-wish__body { padding: .75rem .85rem .75rem; }
.video-wish__source { display: inline-flex; align-items: center; gap: .3rem; color: var(--app-muted); font-size: .75rem; font-weight: 700; }
.video-wish h3 { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 760; }
.video-wish__emoji { margin-right: .1rem; }
.video-wish__places { margin-top: .55rem; }
.video-wish__places summary { color: var(--app-ink-2); font-size: .85rem; font-weight: 750; cursor: pointer; }
.video-wish__places ol { display: grid; gap: .4rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.video-wish__places li { display: flex; gap: .5rem; align-items: baseline; font-size: .86rem; line-height: 1.35; }
.video-wish__places li small { font-size: .78rem; }
.assistant-msg--bot .video-wish__places strong { background: none; }
.video-wish__tips { display: grid; gap: .25rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.video-wish__tips li { display: flex; gap: .35rem; color: var(--app-ink-2); font-size: .82rem; }
.video-wish__tips i { color: var(--app-sun); }
.video-wish__note { display: block; margin-top: .45rem; color: var(--app-muted); font-size: .75rem; }
.video-dialog .modal-body > p { margin-bottom: .9rem; }
.video-dialog__link .form-control { min-width: 0; }
.video-dialog__or { display: flex; align-items: center; gap: .6rem; margin: .9rem 0; color: var(--app-muted); font-size: .8rem; }
.video-dialog__or::before, .video-dialog__or::after { content: ""; flex: 1; height: 1px; background: var(--app-line); }
.video-dialog__hint { display: block; margin-top: .7rem; color: var(--app-muted); font-size: .78rem; }
.proposal-list-items { display: grid; gap: 2px; margin: .6rem 0 0; padding: 0; list-style: none; }
.proposal-list-items li { display: flex; gap: .5rem; align-items: baseline; padding: .45rem .7rem; border-radius: .45rem; background: var(--app-surface-2); font-size: .88rem; }
.proposal-list-items li:first-child { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.proposal-list-items li:last-child { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.proposal-list-items i { color: var(--app-tone); }

/* --------------------------------------------------------------------------
   Avisos, diálogos y hojas de acciones
   -------------------------------------------------------------------------- */
.app-toast-region { position: fixed; left: 50%; bottom: 1.4rem; z-index: 1090; display: grid; gap: .5rem; width: min(26rem, calc(100vw - 2rem)); transform: translateX(-50%); pointer-events: none; }
@media (max-width: 991.98px) { .app-toast-region { bottom: calc(var(--app-dock-height) + env(safe-area-inset-bottom, 0px) + 1.5rem); } }
.app-toast-region.is-top { top: calc(1rem + env(safe-area-inset-top, 0px)); bottom: auto; z-index: 2100; }
.app-toast { display: flex; align-items: center; gap: .7rem; padding: .75rem .8rem .75rem 1rem; border-radius: 1.1rem; color: #eef3f5; background: #10212e; box-shadow: var(--app-shadow-lg); font-size: .9rem; font-weight: 600; pointer-events: auto; animation: toast-in .3s var(--app-ease); }
[data-bs-theme="dark"] .app-toast { background: #1c3242; }
.app-toast > i { color: #7fd8cf; font-size: 1.1rem; }
.app-toast[data-tone="error"] > i { color: #ff8a8a; }
.app-toast span { flex: 1; min-width: 0; }
.app-toast button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: .4rem .8rem; color: #04312e; background: #7fd8cf; font-weight: 750; font-size: .84rem; }
.app-toast.is-leaving { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
.app-dialog .modal-content { text-align: center; }
.app-dialog .modal-body { padding: 1.8rem 1.6rem 1rem; }
.app-dialog__icon { width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 1.2rem; font-size: 1.5rem; color: var(--app-ink); background: var(--app-surface-3); }
.app-dialog.is-danger .app-dialog__icon { color: var(--app-danger); background: rgba(214, 69, 69, .12); }
.app-dialog h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.app-dialog p { color: var(--app-muted); margin: 0; }
.app-dialog .modal-footer { justify-content: center; border: 0; padding-top: 0; }
.app-dialog.is-danger .btn-primary { --bs-btn-bg: var(--app-danger); --bs-btn-border-color: var(--app-danger); --bs-btn-color: #fff; --bs-btn-hover-bg: #b93737; --bs-btn-hover-border-color: #b93737; --bs-btn-hover-color: #fff; }
.app-sheet.offcanvas-bottom { height: auto; max-height: 86dvh; border-radius: 2rem 2rem 0 0; padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .app-sheet.offcanvas-bottom { left: 50%; right: auto; width: 30rem; transform: translate(-50%, 100%); } .app-sheet.offcanvas-bottom.show, .app-sheet.offcanvas-bottom.showing { transform: translate(-50%, 0); } }
.app-sheet__grip { position: absolute; top: .6rem; left: 50%; width: 2.6rem; height: .3rem; margin-left: -1.3rem; border-radius: 999px; background: var(--app-line-strong); }
.app-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.4rem .6rem; }
.app-sheet__head h2 { margin: 0; font-size: 1.3rem; }
.app-sheet__head p { margin: .1rem 0 0; color: var(--app-muted); font-size: .88rem; }
.app-sheet__list { display: grid; gap: 3px; padding: .3rem 1rem 0; overflow-y: auto; }
.app-sheet__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 1rem; border: 0; border-radius: .5rem; color: var(--app-ink); background: var(--app-surface-2); text-align: left; text-decoration: none; font: inherit; }
.app-sheet__item:first-child { border-top-left-radius: 1.3rem; border-top-right-radius: 1.3rem; }
.app-sheet__item:last-child { border-bottom-left-radius: 1.3rem; border-bottom-right-radius: 1.3rem; }
.app-sheet__item:hover { color: var(--app-ink); background: var(--app-surface-3); }
.app-sheet__item > .bi:first-child { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: .9rem; color: var(--app-on-tone-container); background: var(--app-tone-container); font-size: 1.05rem; }
.app-sheet__item strong { display: block; font-weight: 650; }
.app-sheet__item small { display: block; color: var(--app-muted); font-size: .8rem; }
.app-sheet__chevron { color: var(--app-muted); }
.app-sheet__item.is-danger { color: var(--app-danger); }
.app-sheet__item.is-danger > .bi:first-child { color: var(--app-danger); background: rgba(214, 69, 69, .1); }

/* Formulario de viaje */
.trip-form .modal-body { display: grid; gap: .9rem; }
/* ¿Quién viaja?: fichas (personas de la app con su icono) y sugerencias debajo */
.travelers-box { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 3.2rem; padding: .45rem .6rem; border: 1px solid var(--app-line-strong); border-radius: var(--bs-border-radius); background: var(--app-surface); cursor: text; }
.travelers-box:focus-within { border-color: var(--app-tone); box-shadow: 0 0 0 .22rem var(--app-focus); }
.travelers-chips { display: contents; }
.travelers-input { flex: 1 1 9rem; min-width: 9rem; padding: .3rem .2rem; border: 0; outline: 0; background: transparent; color: var(--app-ink); }
.travelers-input::placeholder { color: var(--app-muted); opacity: .8; }
.traveler-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .25rem .3rem .25rem .65rem; border-radius: 999px; background: var(--app-surface-3); font-weight: 650; font-size: .9rem; }
.traveler-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traveler-chip.is-app { color: var(--app-on-tone-container); background: var(--app-tone-container); }
.traveler-chip button { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; font-size: .75rem; }
.traveler-chip button:hover { background: rgba(0, 0, 0, .08); }
.travelers-suggest { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.traveler-option { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px dashed var(--app-line-strong); border-radius: 999px; color: var(--app-ink); background: transparent; font-size: .86rem; font-weight: 600; }
.traveler-option.is-app { border-style: solid; }
.traveler-option.is-app .bi { color: var(--app-tone); }
.traveler-option.is-new { color: var(--app-on-tone-container); background: var(--app-tone-soft); border-color: transparent; }
.traveler-option small { color: var(--app-muted); font-weight: 500; }
.traveler-option:hover { background: var(--app-surface-2); }
.emoji-row { display: flex; align-items: center; gap: .6rem; }
.emoji-row input { width: 4rem; height: 4rem; padding: 0; text-align: center; font-size: 2rem; border-radius: 1.2rem; }
.emoji-suggest { display: flex; flex-wrap: wrap; gap: .2rem; }
.emoji-suggest button { width: 2.1rem; height: 2.1rem; border: 0; border-radius: .7rem; background: var(--app-surface-2); font-size: 1.1rem; }
.color-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.color-row label { width: 2rem; height: 2rem; border-radius: 50%; background: var(--swatch); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.color-row input:checked + label { outline: 3px solid var(--app-ink); outline-offset: 2px; }
.priority-pick { display: inline-flex; gap: .2rem; }
.priority-pick button { border: 0; background: transparent; color: var(--app-line-strong); font-size: 1.4rem; padding: 0 .1rem; }
.priority-pick button.on { color: var(--app-sun); }
.members-list { display: grid; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.members-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 1rem; background: var(--app-surface-2); }
.members-list .sidebar-avatar { width: 2rem; height: 2rem; font-size: .78rem; }
.members-list span { flex: 1; min-width: 0; }
.members-list small { display: block; color: var(--app-muted); }
.members-list .sidebar-avatar { flex: 0 0 auto; }
.members-list .members-list__controls { flex: 0 0 auto; display: flex; align-items: center; gap: .3rem; }
.members-list__controls .form-select { width: auto; }
@media (max-width: 575.98px) {
    .members-list li { flex-wrap: wrap; }
    .members-list .members-list__controls { width: 100%; padding-left: 2.7rem; }
    .members-list__controls .form-select { flex: 1; }
}
.share-form { padding: 1rem; border-radius: 1.2rem; border: 1px solid var(--app-line); background: var(--app-surface); }
/* Compartir un viaje con enlaces (para editar y para solo ver) */
.share-links { display: grid; gap: .5rem; padding: .8rem; border-radius: 1.1rem; background: var(--app-surface-2); }
.share-links [data-links] { display: grid; gap: .4rem; }
.share-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border: 1px solid var(--app-line); border-radius: .9rem; background: var(--app-surface); }
.share-link.is-on { border-color: color-mix(in srgb, var(--app-tone) 45%, transparent); }
.share-link__icon { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: .8rem; color: var(--app-tone); background: var(--app-tone-soft); }
.share-link__copy { flex: 1; min-width: 0; display: grid; }
.share-link__copy strong { font-size: .92rem; }
.share-link__copy small { color: var(--app-muted); font-size: .78rem; }
.share-link__actions { flex: 0 0 auto; display: flex; gap: .3rem; }
.sync-icon { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .9rem; color: var(--app-tone); background: var(--app-tone-soft); font-size: 1.2rem; }
@media (max-width: 575.98px) {
    .share-link { flex-wrap: wrap; }
    .share-link__actions { width: 100%; justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Permisos: modo lectura y lo que solo ve quien puede crear
   -------------------------------------------------------------------------- */
.app-main.is-readonly [data-edit-only] { display: none !important; }
.app-main.is-readonly .diary-cols > .col-lg-7 { width: 100%; }
body:not([data-can-create]) [data-new-trip], body:not([data-can-create]) [data-create-only] { display: none !important; }
.trip-meta__readonly { padding: .1rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 700; }
.trip-card__readonly { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .16); font-size: .82rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Usuarios
   -------------------------------------------------------------------------- */
.user-list { display: grid; gap: .75rem; max-width: 52rem; }
.user-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--app-radius); background: var(--app-glass); border: 1px solid var(--app-glass-border); box-shadow: var(--app-shadow-sm); }
.user-card[role="button"] { cursor: pointer; transition: transform .2s var(--app-ease), box-shadow .2s var(--app-ease); }
.user-card[role="button"]:hover { transform: translateY(-1px); box-shadow: var(--app-shadow); }
.user-card[role="button"]:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
.user-card__avatar { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #08504c; background: conic-gradient(from 200deg, #8fe3da, #f6cf8f, #a9c4ff, #8fe3da); font-weight: 800; }
.user-card__avatar.is-pending { color: var(--app-muted); background: var(--app-surface-3); border: 2px dashed var(--app-line-strong); }
.user-card__copy { flex: 1; min-width: 0; }
.user-card__copy h2 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.user-card__you { margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; color: var(--app-on-tone-container); background: var(--app-tone-container); font-size: .72rem; font-weight: 750; vertical-align: middle; }
.user-card__email { margin: .1rem 0 .55rem; color: var(--app-muted); font-size: .88rem; overflow-wrap: anywhere; }
.user-card__access { display: flex; flex-wrap: wrap; gap: .35rem; }
.user-card__status { margin: .55rem 0 0; color: var(--app-muted); font-size: .8rem; }
.user-card__status.is-pending { color: #a8640f; font-weight: 650; }
[data-bs-theme="dark"] .user-card__status.is-pending { color: var(--app-sun); }
.user-card__menu { flex: 0 0 auto; }
.access-pill, .access-trip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.access-pill.is-admin, .access-pill.is-full { color: var(--app-on-tone-container); background: var(--app-tone-container); }
.access-pill.is-none { color: var(--app-muted); background: var(--app-surface-3); }
.access-trip { color: var(--app-ink); background: var(--app-surface-2); border: 1px solid var(--app-line); }
.access-trip .bi { color: var(--app-muted); font-size: .75rem; }
.access-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.access-option { display: flex; align-items: flex-start; gap: .7rem; height: 100%; padding: .85rem .9rem; border: 1.5px solid var(--app-line-strong); border-radius: 1.1rem; background: var(--app-surface); cursor: pointer; }
.access-option > .bi { font-size: 1.3rem; color: var(--app-muted); }
.access-option strong { display: block; }
.access-option small { display: block; color: var(--app-muted); line-height: 1.35; }
.btn-check:checked + .access-option { border-color: var(--app-tone); background: var(--app-tone-soft); box-shadow: inset 0 0 0 1px var(--app-tone); }
.btn-check:checked + .access-option > .bi { color: var(--app-tone); }
.btn-check:focus-visible + .access-option { outline: 3px solid var(--app-focus); outline-offset: 2px; }
.share-group { margin: 0 0 .8rem; padding: 0; border: 0; }
.share-group legend { margin-bottom: .3rem; color: var(--app-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.share-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: .9rem; }
.share-row + .share-row { margin-top: .15rem; }
.share-row.is-on { background: var(--app-tone-soft); }
.share-row > .form-check-input { flex: 0 0 auto; margin: 0; }
.share-row label { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.share-row label strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row label small { display: block; color: var(--app-muted); font-size: .78rem; }
.share-row__emoji { font-size: 1.25rem; }
.share-row .form-select { width: auto; flex: 0 0 auto; }
.share-row__owner { color: var(--app-muted); font-size: .8rem; font-weight: 700; }
.invite-link { display: flex; gap: .4rem; margin-top: .4rem; }
.invite-link .form-control { min-width: 0; font-size: .82rem; }
@media (max-width: 575.98px) {
    .access-choice { grid-template-columns: 1fr; }
    .user-card { padding: 1rem; gap: .8rem; }
    .share-row { flex-wrap: wrap; }
    .share-row label { flex-basis: calc(100% - 2.2rem); }
    .share-row .form-select, .share-row__owner { margin-left: 2rem; }
}

/* --------------------------------------------------------------------------
   Acceso
   -------------------------------------------------------------------------- */
.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1.1rem; }
.auth-panel { width: min(64rem, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.auth-intro h1 { margin: 1.3rem 0 1rem; font-size: clamp(2.8rem, 6.5vw, 4.6rem); font-weight: 780; line-height: .95; letter-spacing: -.06em; }
.auth-intro > p { max-width: 30rem; color: var(--app-ink-2); font-size: 1.12rem; }
.auth-feature-list { display: grid; gap: .65rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.auth-feature-list li { display: flex; align-items: center; gap: .75rem; color: var(--app-ink-2); font-weight: 550; }
.auth-feature-list i, .auth-feature-list .rumbo { flex: 0 0 auto; }
.auth-feature-list > li > i { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: .8rem; color: var(--app-tone); background: var(--app-glass-strong); border: 1px solid var(--app-line); }
.auth-feature-list .rumbo { font-size: .74rem; }
.auth-card { border-radius: 2rem; background: var(--app-glass-strong); }
.auth-card .nav-pills .nav-link { color: var(--app-muted); }
.auth-guide-link { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: .8rem 1rem; border: 1px solid var(--app-line); border-radius: 1.2rem; background: var(--app-surface); color: var(--app-ink); text-decoration: none; }
.auth-guide-link > i:first-child { font-size: 1.3rem; color: var(--app-tone); }
.auth-guide-link span { flex: 1; }
.auth-guide-link strong, .auth-guide-link small { display: block; }
.auth-guide-link small { color: var(--app-muted); }
@media (max-width: 991.98px) { .auth-panel { grid-template-columns: 1fr; gap: 1.6rem; } .auth-intro h1 { margin-top: 1rem; } .auth-feature-list { display: none; } }
.public-guide-shell .app-main { margin-left: 0; padding-bottom: 2rem; }

/* Guía */
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) { .guide-steps { grid-template-columns: 1fr; } }
.guide-step__icon { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: .8rem; border-radius: 1rem; color: var(--app-on-tone-container); background: var(--app-tone-container); font-size: 1.4rem; }
.guide-examples { padding-left: 1.1rem; color: var(--app-ink-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   Tour: el viaje animado sobre el mapa (reproductor y grabación)
   -------------------------------------------------------------------------- */
.tour-overlay { position: fixed; inset: 0; z-index: 2050; display: flex; flex-direction: column; background: #04080b; color: #eef3f5; animation: toast-in .3s var(--app-ease); }
.tour-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: .6rem; }
.tour-stage canvas { max-width: 100%; max-height: 100%; border-radius: 1rem; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); background: #0b1620; }
.tour-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center; background: #04080b; }
.tour-loading .rumbo { font-size: 2rem; }
.tour-loading .progress { width: min(18rem, 70vw); height: .4rem; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tour-loading .progress-bar { background: #7fd8cf; }
.tour-controls { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem calc(.8rem + env(safe-area-inset-bottom, 0px)); }
.tour-controls .btn-light { --bs-btn-bg: rgba(255, 255, 255, .1); --bs-btn-border-color: rgba(255, 255, 255, .18); --bs-btn-color: #eef3f5; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #10212e; }
.tour-controls input[type="range"] { flex: 1 1 auto; accent-color: #7fd8cf; }
.tour-time { min-width: 6.5rem; color: rgba(238, 243, 245, .7); font-size: .82rem; font-variant-numeric: tabular-nums; text-align: right; }
.tour-rec { display: none; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(214, 69, 69, .2); color: #ff9a9a; font-weight: 700; font-size: .8rem; }
.tour-rec::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #ff5f5f; animation: rumbo-listen 1s infinite; }
.tour-overlay.is-recording .tour-rec { display: inline-flex; }
.tour-controls [data-tour-sound].is-blocked { animation: tour-sound 1.4s ease-in-out infinite; }
@keyframes tour-sound { 50% { box-shadow: 0 0 0 .4rem rgba(127, 216, 207, .35); } }
@media (prefers-reduced-motion: reduce) { .tour-controls [data-tour-sound].is-blocked { animation: none; outline: 2px solid #7fd8cf; } }
.tour-music { display: grid; gap: .15rem; }
@media (max-width: 575.98px) { .tour-time { min-width: 0; font-size: .74rem; white-space: nowrap; } }
.tour-overlay.is-recording .tour-controls input[type="range"], .tour-overlay.is-recording [data-tour-toggle] { pointer-events: none; opacity: .4; }
.tour-done { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .9rem; padding: 1.5rem; text-align: center; background: rgba(4, 8, 11, .82); backdrop-filter: blur(6px); }
.tour-done video { max-width: min(28rem, 90vw); max-height: 45vh; border-radius: 1rem; }
.tour-options { display: grid; gap: .8rem; }
.tour-options .format-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tour-options .format-choice label { display: grid; justify-items: center; gap: .4rem; padding: .9rem; border: 1.5px solid var(--app-line-strong); border-radius: 1.1rem; cursor: pointer; font-weight: 650; }
.tour-options .format-choice input:checked + label { border-color: var(--app-tone); background: var(--app-tone-soft); }
.tour-options .format-choice .shape { border: 2px solid currentColor; border-radius: .3rem; }

@media (prefers-reduced-motion: reduce) {
    body::before, .memory-player__mosaic .tile > span, .skeleton { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Calendario laboral: ciudades, puentes y el año mes a mes
   -------------------------------------------------------------------------- */
.page-tabs { display: inline-flex; flex-wrap: nowrap; max-width: 100%; margin: 0 0 1rem; overflow-x: auto; scrollbar-width: none; }
.page-tabs .nav-link { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .9rem; }
.holiday-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.holiday-cities { display: flex; flex-wrap: wrap; gap: .4rem; }
.city-chip { display: inline-flex; align-items: center; border: 1px solid var(--app-line-strong); border-radius: 999px; background: var(--app-surface); }
.city-chip button { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .3rem .35rem .75rem; border: 0; background: transparent; color: var(--app-ink); font-size: .88rem; font-weight: 700; }
.city-chip .city-chip__menu { padding: .35rem .65rem .35rem .3rem; color: var(--app-muted); }
.city-chip__dot { display: inline-block; flex: 0 0 auto; width: .7rem; height: .7rem; border-radius: 50%; background: var(--city); }
.city-chip.is-off { opacity: .55; }
.city-chip.is-off .city-chip__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--city); }
.holiday-notice { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; padding: .55rem .8rem; border-radius: .9rem; color: var(--app-ink-2); background: var(--app-sun-soft); font-size: .86rem; }
.holiday-notice button { padding: 0; border: 0; background: none; color: var(--app-tone); font-weight: 700; }
.bridge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .6rem; }
.bridge-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; padding: .8rem; border: 1px solid var(--app-glass-border); border-radius: 1.2rem; background: var(--app-glass); box-shadow: var(--app-shadow-sm); }
.bridge-card__days { display: grid; place-items: center; align-content: center; width: 3.3rem; height: 3.3rem; border-radius: 1rem; color: var(--app-on-primary); background: var(--app-tone); line-height: 1; }
.bridge-card:not(.is-free) .bridge-card__days { color: #10212e; background: var(--app-sun); }
.bridge-card__days strong { font-family: var(--app-display); font-size: 1.45rem; font-weight: 800; }
.bridge-card__days small { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bridge-card h3 { margin: 0; font-size: 1rem; font-weight: 760; }
.bridge-card h3::first-letter { text-transform: uppercase; }
.bridge-card p { margin: .15rem 0 0; color: var(--app-muted); font-size: .82rem; }
.bridge-card p i { margin-right: .3rem; }
.bridge-card .bridge-card__why { color: var(--app-ink-2); font-weight: 650; }
.bridge-card__actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.cal-month { padding: .7rem; border: 1px solid var(--app-glass-border); border-radius: 1.1rem; background: var(--app-glass); }
.cal-month h3 { margin: 0 0 .4rem .2rem; font-size: .95rem; font-weight: 760; }
.cal-month h3::first-letter { text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid b { padding-bottom: .15rem; color: var(--app-muted); font-size: .66rem; font-weight: 750; text-align: center; }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: .5rem; color: var(--app-ink); background: transparent; font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: var(--app-surface-3); }
.cal-day.is-weekend { color: var(--app-muted); background: var(--app-surface-2); }
.cal-day.is-take { background: var(--app-sun-soft); box-shadow: inset 0 0 0 1.5px var(--app-sun); }
.cal-day.is-holiday { color: var(--app-on-primary); background: var(--app-tone); font-weight: 800; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--app-ink); }
.cal-day.is-past { opacity: .5; }
.cal-day.has-trip::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 2px; height: 3px; border-radius: 2px; background: var(--trip); }
.cal-day__dots { position: absolute; top: 2px; right: 3px; display: flex; gap: 1px; }
.cal-day__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--city); }
.cal-day.is-holiday .cal-day__dots i { box-shadow: 0 0 0 1px var(--app-surface); }
.holiday-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .9rem; color: var(--app-muted); font-size: .8rem; }
.holiday-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.holiday-legend .sw { display: inline-block; width: .95rem; height: .95rem; border-radius: .3rem; }
.holiday-legend .sw.is-holiday { background: var(--app-tone); }
.holiday-legend .sw.is-dot { background: var(--app-surface-2); box-shadow: inset 0 0 0 1px var(--app-line-strong); }
.holiday-legend .sw.is-take { background: var(--app-sun-soft); box-shadow: inset 0 0 0 1.5px var(--app-sun); }
.holiday-legend .sw.is-trip { height: .3rem; background: var(--app-tone); }
.holiday-legend .sw.is-weekend { background: var(--app-surface-2); }
.city-chip__person { margin-left: .1rem; color: var(--app-muted); font-size: .78rem; font-weight: 650; }
/* Vacaciones de cada persona de la cuenta */
.vacation-panel { margin: .4rem 0 0; }
.vacation-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .6rem; }
.vacation-person { padding: .75rem .8rem; border: 1px solid var(--app-glass-border); border-left: 4px solid var(--person); border-radius: 1.1rem; background: var(--app-glass); box-shadow: var(--app-shadow-sm); }
.vacation-person header { display: flex; align-items: center; gap: .6rem; }
.vacation-person header > span:last-child { display: grid; min-width: 0; }
.vacation-person header small { color: var(--app-muted); font-size: .78rem; }
.vacation-person__avatar { flex: 0 0 auto; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--person); font-size: .82rem; font-weight: 800; }
.vacation-list { display: grid; gap: .3rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.vacation-list li { display: flex; align-items: center; gap: .5rem; padding: .35rem .55rem; border-radius: .7rem; background: var(--app-surface-2); font-size: .86rem; }
.vacation-list li span { font-weight: 700; }
.vacation-list li span::first-letter { text-transform: uppercase; }
.vacation-list li em { flex: 1; min-width: 0; overflow: hidden; color: var(--app-muted); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.vacation-list li button { margin-left: auto; padding: 0 .2rem; border: 0; background: none; color: var(--app-muted); }
.vacation-person__empty, .vacation-person__hint { margin: .5rem 0 0; color: var(--app-muted); font-size: .8rem; }
.vacation-person__hint { color: #a8640f; }
.cal-day.is-vacation { color: var(--app-on-tone-container); background: var(--app-tone-container); }
.cal-day__vac { position: absolute; top: 2px; left: 3px; display: flex; gap: 1px; }
.cal-day__vac i { width: 5px; height: 5px; border-radius: 1px; background: var(--person); }
.holiday-legend .sw.is-vacation { background: var(--app-tone-container); }
.holiday-results { display: grid; gap: .2rem; margin-top: .6rem; }
.holiday-results button { display: grid; padding: .55rem .7rem; border: 0; border-radius: .8rem; background: transparent; color: var(--app-ink); text-align: left; }
.holiday-results button:hover { background: var(--app-surface-3); }
.holiday-results small { color: var(--app-muted); }
.local-list, .day-list { display: grid; gap: .35rem; margin: .6rem 0; padding: 0; list-style: none; }
.local-list li { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: .8rem; background: var(--app-surface-2); font-size: .88rem; }
.local-list li span { min-width: 7.5rem; color: var(--app-muted); }
.local-list li strong { flex: 1; min-width: 0; }
.local-list li button { padding: 0 .2rem; border: 0; background: none; color: var(--app-muted); }
.local-list li.is-empty { color: var(--app-muted); }
.day-list li { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; text-align: left; }
.day-list li .city-chip__dot { transform: translateY(.05rem); }

/* --------------------------------------------------------------------------
   Escritorio más denso: más información a la vista en portátiles (Windows suele escalar al 125 %,
   y entonces quedan unos 1500 × 700 px). Todo en rem encoge un poco; titulares y portadas, más.
   El móvil se queda como está.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    html { font-size: 15px; }
    .app-sidebar { width: 228px; gap: .75rem; padding: 1rem .75rem .85rem; }
    .app-main { margin-left: calc(228px + .9rem); }
    .app-sidebar .nav-link { padding: .48rem .8rem; }
    .sidebar-section-label { margin-top: .2rem; }
    .app-page-header { gap: .8rem 1rem; padding: 1.5rem 2rem .5rem; }
    .app-page-header h1 { font-size: clamp(1.9rem, 2.6vw, 2.45rem); }
    .header-title-row > p:not(.eyebrow) { margin-top: .35rem; font-size: .95rem; }
    .eyebrow { margin-bottom: .35rem; }
    .app-content { padding: .9rem 2rem 2rem; }
    .section-head { margin: 1.3rem 0 .6rem; }
    .section-head h2 { font-size: 1.2rem; }
    /* Cifras en una línea */
    .stat-tile { display: flex; align-items: baseline; gap: .5rem; padding: .6rem 1rem; border-radius: 1.1rem; }
    .stat-tile strong { font-size: 1.5rem; }
    .photo-strip a { height: 10rem; }
    /* Tarjetas de viaje */
    .trip-card { min-height: 12.5rem; }
    .trip-card__title { font-size: 1.35rem; }
    .trip-card__media--empty::after { top: 2.6rem; font-size: 3.4rem; }
    /* Cabecera de un viaje y de un recuerdo */
    .trip-header { margin: .7rem 1rem 0; border-radius: 1.6rem; }
    .trip-header h1 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
    .trip-emoji { width: 3.3rem; height: 3.3rem; border-radius: 1.1rem; font-size: 1.8rem; }
    .year-heading { font-size: 1.5rem; }
}
/* Pantallas anchas: cada jornada con su mapa al lado (fijo al bajar), no encima de los planes. */
@media (min-width: 1200px) {
    .itin-day__body.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 38%); gap: 1.2rem; align-items: start; }
    .itin-day__body.has-map .itin-mapwrap { grid-column: 2; grid-row: 1; position: sticky; top: 5.2rem; margin-bottom: 0; }
    .itin-day__body.has-map .itin-day__main { grid-column: 1; grid-row: 1; min-width: 0; }
    .itin-day__body.has-map .itin-map { height: 16rem; }
}
