/* SomosUNO — estilos compartidos mockups */

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
}

.font-display { font-family: 'Outfit', sans-serif; }

/* Azul TuBarco — header / superficies de alianza */
.bg-marca {
    background-color: #0001F6;
    background-image: linear-gradient(150deg, #0001F6 0%, #0000A0 55%, #000044 100%);
}

.site-header {
    color: #fff;
    box-shadow: 0 10px 32px rgba(0, 0, 68, 0.28);
}

/* Franja de emergencia: bandera ocre (50% / 25% / 25%), visible pero secundaria */
.flag-helpline {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    width: 100%;
}

.flag-helpline-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.18rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.1;
    text-decoration: none;
    transition: filter 0.15s;
}

.flag-helpline-cell i {
    font-size: 0.7em;
    opacity: 0.85;
}

.flag-helpline-cell:hover {
    filter: brightness(0.93);
}

.flag-helpline-yellow {
    background: linear-gradient(90deg, #d6a61a 0%, #c89612 100%);
    color: #2a2108;
}

.flag-helpline-blue {
    background: linear-gradient(90deg, #2a5796 0%, #1f4a86 100%);
    color: #fff;
}

.flag-helpline-red {
    background: linear-gradient(90deg, #c14a3e 0%, #b03c34 100%);
    color: #fff;
}

@media (max-width: 639px) {
    .flag-helpline-cell i {
        display: none;
    }

    .flag-helpline-blue,
    .flag-helpline-red {
        font-size: 0.55rem;
    }
}

@media (min-width: 640px) {
    .flag-helpline-cell {
        font-size: 0.6875rem;
        padding: 0.22rem 0.5rem;
        gap: 0.35rem;
    }
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: color 0.15s;
}

.header-nav-link:hover,
.header-nav-link.is-active {
    color: #fff;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-nav-main {
    display: none;
    align-items: center;
    gap: 1.15rem;
    margin-left: 0.35rem;
}

.header-nav-actions {
    display: none;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-nav-main,
    .header-nav-actions {
        display: flex;
    }
}

.header-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000044;
    white-space: nowrap;
}

.header-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.header-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    white-space: nowrap;
}

.header-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.header-dropdown {
    position: relative;
}

.header-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.header-dropdown-btn i {
    font-size: 0.65em;
    opacity: 0.75;
    transition: transform 0.15s;
}

.header-dropdown.is-open .header-dropdown-btn i,
.header-dropdown.is-open .header-account-btn i {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 248px;
    padding: 0.4rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 40, 0.28);
    z-index: 60;
}

.header-dropdown.is-open .header-dropdown-menu {
    display: block;
}

.header-dropdown-item {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.55rem;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.25;
}

.header-dropdown-item:hover,
.header-dropdown-item:focus-visible {
    background: #f5f5f4;
    outline: none;
}

.header-dropdown-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.header-dropdown-item span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.header-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 16rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.4rem 0.75rem 0.4rem 0.9rem;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.header-account-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.header-account-name {
    font-size: 0.8125rem;
    font-weight: 700;
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-rol {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding-right: 0.15rem;
}

.header-account-btn i {
    font-size: 0.6rem;
    opacity: 0.8;
    transition: transform 0.15s;
}

.header-account-menu {
    min-width: 260px;
    padding: 0.55rem 0.45rem 0.6rem;
}

.header-account-menu .account-nav-label {
    padding: 0.45rem 0.75rem 0.2rem;
}

.header-account-menu .account-nav-link {
    width: 100%;
}

.header-mobile-role {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.5rem;
}

.header-mobile-role .account-nav-label {
    color: rgba(255, 255, 255, 0.45);
    padding: 0.7rem 0 0.15rem;
}

.header-mobile-role .account-nav-link.is-mobile {
    color: rgba(255, 255, 255, 0.92);
    width: 100%;
}

.header-mobile-role .account-nav-link.is-mobile:hover,
.header-mobile-role .account-nav-link.is-mobile.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.header-mobile-role .account-nav-link.is-mobile.is-logout {
    color: #fecaca;
}

.header-login {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.header-login:hover {
    color: #fff;
}

.header-alliance {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    margin-left: 0.1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

/* Alianza compacta — solo móvil (entre marca y menú hamburguesa) */
.header-alliance-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 9.5rem;
}

.header-alliance-mobile-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

.header-alliance-mobile-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.625rem;
    line-height: 1;
    user-select: none;
}

.header-alliance-mobile-logo {
    display: inline-flex;
    opacity: 0.95;
    flex-shrink: 1;
    min-width: 0;
}

.header-alliance-mobile-logo:hover {
    opacity: 1;
}

.header-logo-dv-mobile {
    height: 13px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}

.header-logo-tb-mobile {
    height: 16px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    mix-blend-mode: screen;
}

@media (min-width: 768px) {
    .header-alliance-mobile {
        display: none;
    }
}

.header-alliance-label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.2;
}

.header-logo-dv {
    height: 20px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
}

.header-logo-tb {
    height: 14px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.header-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.header-mobile-kicker {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0.75rem 0 0.15rem;
}

.header-mobile-kicker:first-child {
    margin-top: 0;
}

@media (min-width: 1280px) {
    .header-alliance { display: flex; }
    .header-logo-dv { height: 22px; max-width: 110px; }
    .header-logo-tb { height: 16px; max-width: 92px; }
}

.auth-side {
    background-size: cover;
    background-position: center;
}

.su-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e7e5e4;
    background: #fff;
    padding: 0.85rem 1rem;
    font-weight: 500;
    color: #1e293b;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field:focus {
    outline: none;
    border-color: #0001F6;
    box-shadow: 0 0 0 3px rgba(0, 1, 246, 0.18);
}

.field.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.field-msg-error {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 600;
    color: #dc2626;
}

.field-msg-error[hidden] {
    display: none !important;
}

/* Botones primarios: azul TuBarco (gradiente) */
a.bg-brand-navy,
button.bg-brand-navy,
.btn-marca {
    background-color: #0001F6;
    background-image: linear-gradient(150deg, #0001F6 0%, #0000A0 55%, #000044 100%);
    color: #fff;
}

a.bg-brand-navy:hover,
button.bg-brand-navy:hover,
.btn-marca:hover {
    filter: brightness(1.1);
    color: #fff;
}

input[type="file"]::file-selector-button {
    background-color: #0001F6;
    background-image: linear-gradient(150deg, #0001F6 0%, #0000A0 55%, #000044 100%);
    color: #fff;
    border: 0;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.badge-gratis {
    background: #dcfce7;
    color: #166534;
}

.badge-social {
    background: #fef3c7;
    color: #92400e;
}

.badge-flexible {
    background: #dbeafe;
    color: #1e40af;
}

.cap-verde { background: #22c55e; }
.cap-amarillo { background: #eab308; }
.cap-rojo { background: #ef4444; }

.listing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 1, 246, 0.16);
}

#map-refugios,
#map-ubicacion-refugio {
    min-height: 420px;
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    z-index: 1;
}

#map-ubicacion-refugio {
    min-height: 280px;
    height: 280px;
}

.leaflet-container { font-family: 'Source Sans 3', sans-serif; }

@media (prefers-reduced-motion: reduce) {
    .listing-card:hover { transform: none; }
}

/* Footer institucional */
.site-footer {
    background: #00002c;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8125rem;
}

.site-footer-flag {
    height: 3px;
    background: linear-gradient(90deg, #d6a61a 0 40%, #2a5796 40% 70%, #c14a3e 70% 100%);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand,
.footer-brand:hover {
    color: #fff;
}

.footer-kicker {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-weight: 500;
}

.footer-bottom {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.15rem;
}

.footer-logo-tb {
    height: 20px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.88;
}

.footer-logo-dv {
    height: 18px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.88;
}

.footer-partners a:hover img {
    opacity: 1;
}

/* Previsualización de adjuntos + lightbox */
.file-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.file-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    width: 76px;
    padding: 0.4rem 0.3rem;
    border: 1px solid #e7e5e4;
    border-radius: 0.65rem;
    background: #fafaf9;
    cursor: default;
    text-align: center;
}

.file-chip.is-image {
    cursor: zoom-in;
}

.file-chip-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.file-chip img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.35rem;
}

.file-chip i {
    font-size: 1.85rem;
    line-height: 48px;
    height: 48px;
}

.file-chip .file-excel { color: #1d6f42; }
.file-chip .file-pdf { color: #e5252a; }
.file-chip .file-other { color: #64748b; }

.file-chip span {
    display: block;
    width: 100%;
    font-size: 0.6rem;
    font-weight: 600;
    color: #57534e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-chip-remove {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 0;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.file-chip-remove:hover {
    background: #b91c1c;
}

.file-chip-remove i {
    font-size: 0.7rem;
    line-height: 1;
    height: auto;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.85rem;
    border: 1px solid #e7e5e4;
    box-shadow: 0 6px 18px rgba(0, 0, 40, 0.08);
}

.file-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(8, 10, 24, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.file-lightbox[hidden] {
    display: none !important;
}

.file-lightbox img {
    max-width: min(92vw, 960px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.file-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000044;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* --- Marketplace: filtros compactos en móvil --- */
.marketplace-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 40, 0.06);
    font-size: 0.875rem;
    font-weight: 700;
    color: #000044;
    cursor: pointer;
}

.marketplace-filters-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.marketplace-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #c41e3a;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1;
}

.marketplace-filters-chevron {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.marketplace-filters-toggle.is-open .marketplace-filters-chevron {
    transform: rotate(180deg);
}

.marketplace-filter-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.marketplace-filter-control {
    font-size: 0.8125rem !important;
    padding: 0.5rem 0.65rem !important;
    min-height: 2.25rem;
}

.marketplace-filters-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.marketplace-filter-apply {
    flex: 1 1 auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
}

.marketplace-filter-clear {
    flex: 0 0 auto;
    padding: 0.45rem 0.5rem;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .marketplace-filters {
        display: none;
        margin-top: 0.15rem;
    }

    .marketplace-filters.is-open {
        display: block;
    }

    .marketplace-filters-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem 0.75rem;
    }

    .marketplace-filters-actions {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .marketplace-filters {
        display: block !important;
    }

    .marketplace-filters-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .marketplace-filters-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .marketplace-filter-apply {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .marketplace-filter-clear {
        width: 100%;
        padding: 0.35rem;
    }

    .marketplace-filter-label {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.375rem;
    }

    .marketplace-filter-control {
        font-size: 0.875rem !important;
        padding: 0.625rem 0.75rem !important;
        min-height: 2.5rem;
    }
}

/* ── Account shell (panel / perfil) ───────────────────────────── */
.account-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.75rem 0 3rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .account-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
        padding-top: 2rem;
    }
}

.account-aside {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 1rem;
}

@media (min-width: 960px) {
    .account-aside {
        position: sticky;
        top: 5.5rem;
        padding: 1.25rem 1rem;
    }
}

.account-aside-head {
    padding: 0.25rem 0.5rem 1rem;
    border-bottom: 1px solid #f5f5f4;
    margin-bottom: 0.75rem;
}

.account-kicker {
    font-family: Outfit, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0001F6;
    margin: 0 0 0.35rem;
}

.account-user-name {
    font-family: Outfit, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #000044;
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
}

.account-user-rol {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.account-nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
    .account-nav {
        flex-direction: column;
        overflow: visible;
        padding-bottom: 0;
    }
}

.account-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    padding: 0.65rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.account-nav-link i {
    width: 1.1rem;
    text-align: center;
    opacity: 0.75;
    font-size: 0.85rem;
}

.account-nav-link:hover {
    background: #f5f5f4;
    color: #000044;
}

.account-nav-link.is-active {
    background: rgba(0, 1, 246, 0.08);
    color: #000044;
}

.account-nav-link.is-active i {
    opacity: 1;
    color: #0001F6;
}

.account-nav-link.is-logout {
    color: #c41e3a;
}

.account-nav-link.is-logout:hover {
    background: #fef2f2;
    color: #c41e3a;
}

.account-nav-label {
    margin: 0.55rem 0 0.15rem;
    padding: 0 0.85rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.account-nav-label:first-child {
    margin-top: 0;
}

@media (max-width: 959px) {
    .account-aside .account-nav-label {
        display: none;
    }
}

@media (max-width: 1199px) {
    .header-account-rol {
        display: none;
    }
}

.account-nav-link.is-dropdown {
    width: 100%;
    color: #334155;
}

.account-panel[id],
#password {
    scroll-margin-top: 6rem;
}

.account-panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.account-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #000044;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border-radius: 0.7rem;
    text-decoration: none;
    white-space: nowrap;
}

.account-toolbar-btn:hover {
    filter: brightness(1.08);
    color: #fff;
}

.host-listing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .host-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.host-listing-card {
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.host-listing-photo {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e7e5e4;
    overflow: hidden;
}

.host-listing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-listing-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.host-listing-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.host-listing-title {
    font-weight: 700;
    color: #000044;
    margin: 0;
    line-height: 1.3;
}

.host-listing-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    background: #f5f5f4;
    color: #57534e;
}

.host-listing-badge.is-disponible {
    background: #d1fae5;
    color: #065f46;
}

.host-listing-badge.is-ocupado {
    background: #fef3c7;
    color: #92400e;
}

.host-listing-badge.is-inactivo {
    background: #fee2e2;
    color: #991b1b;
}

.admin-listing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .admin-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .admin-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.admin-filter-bar {
    display: grid;
    gap: 0.65rem 0.75rem;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 0.9rem 1rem 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
    .admin-filter-bar {
        grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr 0.9fr 0.9fr auto;
        align-items: end;
    }
}

.admin-filter-bar label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #78716c;
    margin-bottom: 0.3rem;
}

.admin-col-filter {
    width: 100%;
    min-width: 0;
    border: 1px solid #e7e5e4;
    border-radius: 0.55rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.8125rem;
    color: #0f172a;
    background: #fff;
}

.admin-col-filter:focus {
    outline: 2px solid rgba(43, 108, 176, 0.35);
    outline-offset: 1px;
    border-color: #2b6cb0;
}

.admin-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.05rem;
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .admin-filter-actions {
        grid-column: auto;
    }
}

.admin-filter-btn {
    font-weight: 800;
    font-size: 0.75rem;
    background: #000044;
    color: #fff;
    border: 0;
    border-radius: 0.55rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.admin-filter-btn:hover {
    filter: brightness(1.08);
}

.admin-filter-clear {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: underline;
}

.admin-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.admin-pager-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-pager-link,
.admin-pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid #e7e5e4;
    background: #fff;
    color: #000044;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
}

.admin-pager-link:hover,
.admin-pager-num:hover {
    border-color: #cbd5e1;
}

.admin-pager-num.is-current {
    background: #000044;
    color: #fff;
    border-color: #000044;
}

.admin-pager-link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.admin-pager-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    color: #a8a29e;
}

.mini-carousel {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e7e5e4;
    overflow: hidden;
}

.mini-carousel-viewport {
    height: 100%;
    overflow: hidden;
}

.mini-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.28s ease;
}

.mini-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #d6d3d1;
    cursor: zoom-in;
}

.mini-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.mini-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.7rem;
    height: 1.7rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #000044;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 40, 0.18);
    z-index: 1;
}

.mini-carousel-btn.is-prev {
    left: 0.4rem;
}

.mini-carousel-btn.is-next {
    right: 0.4rem;
}

.mini-carousel-btn:hover {
    background: #fff;
}

.mini-carousel-dots {
    position: absolute;
    bottom: 0.45rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.28rem;
    z-index: 1;
}

.mini-carousel-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 40, 0.12);
    cursor: pointer;
}

.mini-carousel-dot.is-on {
    background: #fff;
}

.file-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000044;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.file-lightbox-nav.is-prev {
    left: 1rem;
}

.file-lightbox-nav.is-next {
    right: 1rem;
}

.file-lightbox-nav[hidden] {
    display: none !important;
}

.host-listing-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.host-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem 1rem 2rem;
    background: rgba(15, 23, 42, 0.52);
    overflow-y: auto;
}

.account-modal[hidden] {
    display: none !important;
}

.account-modal-dialog {
    width: min(760px, 100%);
    margin: 1.5rem auto 2rem;
    background: #fff;
    border-radius: 1.15rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 40, 0.28);
}

.account-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.account-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: #f5f5f4;
    color: #000044;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.account-modal-close:hover {
    background: #e7e5e4;
    color: #000044;
}

.account-main {
    min-width: 0;
}

.account-main-head {
    margin-bottom: 1.25rem;
}

.account-main-head .account-kicker {
    display: none;
}

@media (min-width: 960px) {
    .account-main-head .account-kicker {
        display: block;
    }
}

.account-title {
    font-family: Outfit, sans-serif;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #000044;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.account-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 42rem;
}

.account-flash {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.account-flash.is-ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.account-flash.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #c41e3a;
}

.account-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .account-grid.is-split {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
    }
}

.account-panel {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
}

@media (min-width: 640px) {
    .account-panel {
        padding: 1.5rem 1.6rem;
    }
}

.account-panel-title {
    font-family: Outfit, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #000044;
    margin: 0 0 0.35rem;
}

.account-panel-meta {
    margin: 0 0 1.1rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.account-form-grid {
    display: grid;
    gap: 0.9rem;
}

@media (min-width: 640px) {
    .account-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-form-grid .span-2 {
        grid-column: 1 / -1;
    }
}

.account-stack {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 800px) {
    .account-stack.is-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Peer-to-peer disclaimer */
.su-disclaimer {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
}
.su-disclaimer--inline {
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.su-disclaimer-title {
    font-family: Outfit, sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #000044;
    margin: 0 0 0.35rem;
}
.su-disclaimer-body {
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
    color: #57534e;
}
.su-disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.su-disclaimer-modal[hidden] {
    display: none !important;
}
.su-disclaimer-dialog {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #e7e5e4;
    max-width: 26rem;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}
.su-disclaimer-btn {
    margin-top: 1rem;
    width: 100%;
    font-family: Outfit, sans-serif;
    font-weight: 800;
    background: #000044;
    color: #fff;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
}
.su-disclaimer-btn:hover {
    filter: brightness(1.08);
}

.hint-precio-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.7rem;
}

.hint-precio-why {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #0001F6;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hint-precio-why:hover {
    color: #000044;
}

.su-precio-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 12, 40, 0.58);
    backdrop-filter: blur(5px);
}

.su-precio-modal[hidden] {
    display: none !important;
}

.su-precio-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    width: min(860px, 100%);
    max-height: min(92vh, 640px);
    background: #fff;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 40, 0.38);
}

.su-precio-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #000044;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 40, 0.12);
}

.su-precio-close:hover {
    background: #fff;
}

.su-precio-visual {
    position: relative;
    min-height: 100%;
    background: #12183a;
}

.su-precio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.su-precio-visual-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2.6rem 1.15rem 1.05rem;
    background: linear-gradient(180deg, transparent, rgba(8, 12, 40, 0.86));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}

.su-precio-body {
    padding: 1.55rem 1.65rem 1.45rem;
    overflow: auto;
}

.su-precio-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c41e3a;
}

.su-precio-title {
    font-family: Outfit, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #000044;
    margin: 0 0 0.7rem;
}

.su-precio-lead {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
}

.su-precio-reasons {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.su-precio-reasons li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #334155;
}

.su-precio-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #eef0ff;
    color: #0001F6;
    font-size: 0.85rem;
}

.su-precio-techo {
    margin: 0 0 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.88rem;
    line-height: 1.4;
}

.su-precio-caps {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.su-precio-caps li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    border-bottom: 1px dashed #e7e5e4;
    padding-bottom: 0.28rem;
}

.su-precio-caps strong {
    color: #000044;
    font-weight: 800;
}

.su-precio-cta {
    width: 100%;
    border: 0;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-family: Outfit, sans-serif;
    font-weight: 800;
    background: #000044;
    color: #fff;
    cursor: pointer;
}

.su-precio-cta:hover {
    filter: brightness(1.08);
}

@media (max-width: 720px) {
    .su-precio-dialog {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow: auto;
    }

    .su-precio-visual {
        min-height: 190px;
        max-height: 220px;
    }
}
