:root {
    --map-red: #BD000E;
    --map-brown: #733510;
    --map-cream: #fff7f2;
}

body {
    padding-top: 0;
    background-color: #f6f3f1;
}

.page-main {
    min-height: 60vh;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

.main-navbar {
    background-color: #FFF;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    padding-top: 8px;
    padding-bottom: 8px;
}

.main-navbar .navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all .3s ease;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    background-color: var(--map-red);
    color: #FFF;
}

.main-navbar .brand-center img {
    height: 50px;
}

.main-navbar .btn-ingresar {
    background-color: var(--map-red);
    color: #FFF !important;
}

.main-navbar .btn-ingresar:hover {
    background-color: var(--map-brown);
}

.main-navbar .dropdown-toggle {
    color: var(--map-brown);
    font-weight: 700;
    text-transform: none;
}

.discount-alert {
    letter-spacing: .3px;
}

.hero-carousel .carousel-item img {
    max-height: 70vh;
    object-fit: cover;
}

.contentMain {
    margin-top: 40px;
    margin-bottom: 60px;
}

.search-hero {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.search-hero input {
    border-radius: 50px;
    border: 2px solid #f0e3da;
    padding-right: 56px;
    box-shadow: 0 6px 18px rgba(115, 53, 16, .07);
}

.search-hero input:focus {
    border-color: var(--map-red);
    box-shadow: 0 6px 18px rgba(189, 0, 14, .12);
}

.search-hero button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--map-red);
    color: #FFF;
    transition: all .3s ease;
}

.search-hero button:hover {
    background: var(--map-brown);
}

.category-section {
    display: block;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.category-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(189, 0, 14, .15), rgba(115, 53, 16, .55));
    transition: opacity .3s ease;
}

.category-section .category-thumb {
    position: relative;
    z-index: 2;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-head h2 {
    font-weight: 800;
    color: var(--map-red);
    font-size: 26px;
    margin: 0;
}

.section-head .see-all {
    text-decoration: none;
    color: var(--map-brown);
    font-weight: 700;
    font-size: 14px;
}

.puppy-card {
    background: #FFF;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.puppy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(115, 53, 16, .16);
}

.puppy-thumb {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.puppy-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.puppy-card:hover .puppy-thumb img {
    transform: scale(1.06);
}

.puppy-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    color: #FFF;
}

.puppy-badge.reserved {
    background: #e67e22;
}

.puppy-badge.adopt {
    background: #16a085;
}

.puppy-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.puppy-name {
    font-weight: 800;
    font-size: 17px;
    color: var(--map-red);
    text-decoration: none;
}

.puppy-breed {
    font-size: 12px;
    color: var(--map-brown);
}

.puppy-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0eae6;
}

.puppy-price {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 15px;
}

.puppy-price.free {
    color: #16a085;
}

.puppy-loc {
    font-size: 11px;
    color: #9a8b80;
}

.buttonLike {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    background: rgba(255, 255, 255, .85);
    color: #c9b8ad;
    text-decoration: none;
}

.buttonLike.is-active,
.buttonLike:hover {
    background: var(--map-red);
    color: #FFF;
}

.catalog-head {
    background: linear-gradient(135deg, var(--map-cream), #fff);
    padding: 40px 0 28px;
    border-bottom: 1px solid #f0e3da;
}

.catalog-head.adopt-head {
    background: linear-gradient(135deg, #eafaf4, #fff);
}

.catalog-title {
    font-weight: 800;
    color: var(--map-red);
    text-align: center;
}

.catalog-sub {
    text-align: center;
    color: var(--map-brown);
    margin-bottom: 22px;
}

.catalog-search {
    margin-bottom: 22px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--map-brown);
    background: #FFF;
    border: 1px solid #ecdfd6;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all .3s ease;
}

.chip:hover,
.chip.active {
    background: var(--map-red);
    color: #FFF;
    border-color: var(--map-red);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b3a79f;
}

.empty-state i {
    font-size: 54px;
    margin-bottom: 14px;
    color: #e3d5cb;
}

.adopt-cta {
    background: linear-gradient(120deg, var(--map-brown), var(--map-red));
    color: #FFF;
    border-radius: 22px;
    padding: 32px 36px;
}

.adopt-cta h3 {
    font-weight: 800;
    margin-bottom: 6px;
}

.adopt-cta p {
    margin: 0;
    opacity: .9;
}

.product-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

.ribbon-adopt {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #16a085;
    color: #FFF;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 50px;
}

.product-sidebar {
    background: #FFF;
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    border-bottom: 4px solid var(--map-red);
}

.product-sidebar.adopt-sidebar {
    border-bottom-color: #16a085;
}

.productPrice.free {
    background: #16a085;
}

.box-title {
    font-weight: 800;
    color: var(--map-red);
    font-size: 17px;
    margin-bottom: 12px;
}

.crumb a {
    text-decoration: none;
    color: var(--map-brown);
    font-weight: 700;
    font-size: 14px;
}

.about-icon {
    font-size: 40px;
    color: var(--map-red);
    margin-bottom: 14px;
}

.auth-section {
    margin: 0;
}

.auth-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    min-height: calc(100vh - 160px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #FFF;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(115, 53, 16, .1);
    border: 1px solid #f0e3da;
}

.auth-logo {
    width: 150px;
}

.auth-title {
    color: var(--map-red);
    font-weight: 800;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.auth-link {
    color: var(--map-brown);
    font-weight: 700;
    text-decoration: none;
}

.auth-image {
    background-size: cover;
    background-position: center;
    clip-path: polygon(6% 0, 100% 0%, 100% 100%, 0% 100%);
}

.avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.list-profile-nav a.active {
    background-color: var(--map-red);
    color: #FFF;
}

.logout-link {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    color: var(--map-red);
    font-weight: 700;
    font-size: 14px;
    padding: 8px;
    border-radius: 10px;
}

.logout-link:hover {
    background: #fdeced;
}

.panel-card {
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.statics {
    overflow: hidden;
}

.bg-statics3 {
    background: #3498db;
}

.bg-statics4 {
    background: #9b59b6;
}

.bg-statics5 {
    background: #16a085;
}

.statics-title {
    font-size: 20px;
}

.order-thumb,
.request-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
}

.request-thumb {
    width: 72px;
    height: 72px;
}

.request-msg {
    background: #faf6f3;
    border-left: 3px solid var(--map-red);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #6b5b50;
    font-style: italic;
}

.form-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

.badge.status-pending,
.badge.status-reserved {
    background-color: #e67e22 !important;
    color: #FFF;
}

.badge.status-active,
.badge.status-approved,
.badge.status-available,
.badge.status-completed,
.badge.status-confirmed {
    background-color: #27ae60 !important;
    color: #FFF;
}

.badge.status-suspended,
.badge.status-rejected,
.badge.status-cancelled,
.badge.status-sold {
    background-color: #c0392b !important;
    color: #FFF;
}

.pie-page {
    position: static;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.footer-list a {
    margin: 0 10px;
}

.flash-wrap {
    margin-top: 16px;
}

.error-404-icon {
    font-size: 70px;
    color: #e3d5cb;
}

.error-404-title {
    font-size: 80px;
    font-weight: 800;
    color: var(--map-red);
    margin: 10px 0 0;
}

@media (max-width: 991.98px) {
    .main-navbar .navbar-nav .nav-link {
        padding: 10px 8px;
    }

    .auth-form-col {
        min-height: auto;
        padding: 30px 18px;
    }

    .contentMain {
        margin-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .section-head h2 {
        font-size: 22px;
    }

    .category-section {
        padding: 56px 0;
    }

    .category-section .category-thumb h3 {
        font-size: 26px;
    }

    .adopt-cta {
        padding: 24px;
        text-align: center;
    }

    .adopt-cta .text-md-end {
        margin-top: 16px;
    }

    .statics {
        padding: 30px 14px;
    }

    .statics-title {
        font-size: 16px;
    }

    .statics-icon {
        font-size: 54px;
    }

    .hero-carousel .carousel-item img {
        max-height: 38vh;
    }

    .listBlog a {
        font-size: 15px;
        padding: 18px 22px;
    }
}

@media (max-width: 575.98px) {
    .puppy-name {
        font-size: 15px;
    }

    .puppy-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .catalog-title {
        font-size: 24px;
    }

    .auth-card {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   Footer profesional
   ========================================================================== */
.pie-page {
    display: none;
}

.trust-strip {
    background: #fff;
    border-top: 1px solid #f0e3da;
    padding: 30px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

@media (min-width: 768px) {
    .trust-item {
        justify-content: flex-start;
    }
}

.trust-item i {
    font-size: 26px;
    color: var(--map-red);
    background: #fdecec;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-item h6 {
    margin: 0;
    font-weight: 800;
    font-size: 14px;
    color: var(--map-brown);
}

.trust-item span {
    font-size: 12px;
    color: #9a8b80;
}

.site-footer {
    background: linear-gradient(160deg, #3c1d0c 0%, #2a1408 60%, #1f0f06 100%);
    color: #e9ddd4;
    padding-top: 56px;
    margin-top: 0;
}

.footer-brand img {
    height: 46px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-about {
    font-size: 13.5px;
    line-height: 1.7;
    color: #c4b3a7;
    max-width: 340px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #e9ddd4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .3s ease;
}

.footer-social a:hover {
    background: var(--map-red);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--map-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c4b3a7;
    text-decoration: none;
    font-size: 13.5px;
    transition: all .25s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.footer-contact li {
    font-size: 13.5px;
    color: #c4b3a7;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--map-red);
    margin-top: 3px;
}

.footer-newsletter label {
    display: block;
    font-size: 13px;
    color: #c4b3a7;
    margin-bottom: 8px;
}

.newsletter-input {
    display: flex;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50px;
    overflow: hidden;
    padding: 4px;
}

.newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 16px;
    font-size: 13.5px;
}

.newsletter-input input::placeholder {
    color: #8a7a6e;
}

.newsletter-input button {
    border: none;
    background: var(--map-red);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background .3s ease;
}

.newsletter-input button:hover {
    background: #e01120;
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .2);
    font-size: 13px;
    color: #b3a195;
}

.footer-legal {
    margin-left: 14px;
}

.footer-legal a {
    color: #b3a195;
    text-decoration: none;
}

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

.footer-pay i {
    font-size: 26px;
    color: #cbbbb0;
    margin-left: 8px;
    vertical-align: middle;
}

/* ==========================================================================
   Login / Auth rediseñado
   ========================================================================== */
.auth-section {
    padding: 0;
}

.auth-form-col {
    background: radial-gradient(circle at top left, #fff 0%, #fbf4ef 100%);
}

.auth-card {
    max-width: 440px;
    box-shadow: 0 18px 50px rgba(115, 53, 16, .12);
}

.auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-head .auth-logo {
    width: 150px;
    margin-bottom: 14px;
}

.auth-head h3 {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 24px;
    margin: 0;
}

.auth-head p {
    color: #9a8b80;
    font-size: 14px;
    margin: 6px 0 0;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bda99b;
    font-size: 15px;
}

.input-icon .form-control {
    padding-left: 44px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #ecdfd6;
    background: #fff;
}

.input-icon .form-control:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
}

.input-icon .toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #bda99b;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.input-icon .toggle-pass:hover {
    color: var(--map-brown);
}

.input-icon .form-select {
    padding-left: 44px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #ecdfd6;
    background-color: #fff;
}

.input-icon .form-select:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
}

.input-icon textarea.form-control {
    padding-left: 44px;
    border-radius: 12px;
    border: 1px solid #ecdfd6;
    background: #fff;
}

.input-icon textarea.form-control:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
}

.input-icon.icon-top > i {
    top: 16px;
    transform: none;
}

.pass-strength {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.pass-strength span {
    height: 4px;
    flex: 1;
    border-radius: 4px;
    background: #ecdfd6;
    transition: background .25s ease;
}

.pass-strength em {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #b3a79f;
    margin-left: 6px;
    min-width: 46px;
    text-align: right;
}

.pass-strength.weak span.on { background: #e0563f; }
.pass-strength.medium span.on { background: #e8a13c; }
.pass-strength.good span.on { background: #8bbf3f; }
.pass-strength.strong span.on { background: #3fae5a; }
.pass-strength.weak em { color: #e0563f; }
.pass-strength.medium em { color: #e8a13c; }
.pass-strength.good em { color: #6f9e2e; }
.pass-strength.strong em { color: #3fae5a; }

.pass-match {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
}

.pass-match.show {
    display: flex;
}

.pass-match.ok {
    color: #2f9e54;
}

.pass-match.no {
    color: var(--map-red);
}

/* Registro en pasos (wizard) */
.wizard-progress {
    margin-bottom: 24px;
}

.wizard-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.wizard-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
    cursor: default;
}

.wizard-dot b {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1e6dd;
    color: #b3a79f;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid #f1e6dd;
    transition: all .25s ease;
}

.wizard-dot small {
    font-size: 11.5px;
    font-weight: 600;
    color: #b3a79f;
    transition: color .25s ease;
}

.wizard-dot.active b {
    background: var(--map-red);
    border-color: var(--map-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(189, 0, 14, .28);
}

.wizard-dot.active small {
    color: var(--map-brown);
}

.wizard-dot.done b {
    background: #fff;
    border-color: var(--map-red);
    color: var(--map-red);
    cursor: pointer;
}

.wizard-dot.done {
    cursor: pointer;
}

.wizard-bar {
    height: 5px;
    border-radius: 4px;
    background: #f1e6dd;
    margin-top: 14px;
    overflow: hidden;
}

.wizard-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--map-red), var(--map-brown));
    transition: width .35s ease;
}

.wizard-counter {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #b3a79f;
    margin-top: 8px;
}

.wizard-step {
    display: none;
    animation: wizardIn .3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

.wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.wizard-actions .wizard-prev {
    flex: 0 0 auto;
    height: 50px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid #ecdfd6;
    color: var(--map-brown);
    background: #fff;
}

.wizard-actions .wizard-prev:hover {
    border-color: var(--map-red);
    color: var(--map-red);
}

.wizard-actions .wizard-next,
.wizard-actions .wizard-submit {
    flex: 1;
}

.wizard .form-control.is-invalid,
.wizard .form-select.is-invalid {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
}

/* ==========================================================================
   Auth full-page empresarial
   ========================================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 48px 16px;
    background: radial-gradient(130% 120% at 50% 0%, #fbf7f3 0%, #f0e6dd 100%);
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
}

.auth-wrap.is-wide {
    max-width: 560px;
}

.auth-page .auth-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 42px 40px;
    border-radius: 16px;
    border: 1px solid #efe2d8;
    border-top: 4px solid var(--map-red);
    box-shadow: 0 24px 60px rgba(115, 53, 16, .14);
}

.auth-page .auth-head {
    margin-bottom: 26px;
}

.auth-page .auth-head .auth-logo {
    width: 134px;
    margin-bottom: 16px;
}

.auth-page .auth-head h3 {
    font-size: 26px;
}

.auth-page .auth-card .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #5c4a3f;
    margin-bottom: 5px;
}

.auth-page .auth-card .form-control,
.auth-page .auth-card .form-select {
    font-size: 15px;
}

.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #8a7a6e;
}

.auth-trust i {
    color: #3fae5a;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 28px 12px;
    }

    .auth-page .auth-card {
        padding: 30px 22px;
    }
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.auth-row-between .form-check-label {
    font-size: 13px;
    color: #6b5b50;
}

.btn-auth {
    height: 50px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, var(--map-red), #8c1a12);
    border: none;
    transition: transform .2s ease, box-shadow .3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(189, 0, 14, .28);
    background: linear-gradient(135deg, #d10010, var(--map-brown));
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #b3a79f;
    font-size: 12px;
    margin: 22px 0 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ecdfd6;
}

.auth-divider span {
    padding: 0 14px;
}

.auth-alt {
    display: flex;
    gap: 12px;
}

.auth-alt a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: var(--map-brown);
    border: 1px solid #ecdfd6;
    border-radius: 12px;
    padding: 12px 8px;
    transition: all .25s ease;
}

.auth-alt a:hover {
    border-color: var(--map-red);
    color: var(--map-red);
    background: #fdf3f3;
}

.auth-alt a i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--map-red);
}

/* Branded marketing aside */
.auth-aside {
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.auth-body .page-main {
    padding-bottom: 0;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(115, 53, 16, .95) 0%, rgba(120, 10, 16, .96) 55%, rgba(30, 15, 6, .985) 100%);
}

.auth-aside-content {
    position: relative;
    z-index: 2;
    padding: 56px;
    max-width: 560px;
}

.auth-aside-content h2 {
    font-weight: 800;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.auth-aside-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 24px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 15px;
}

.auth-features li i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .auth-aside {
        display: none;
    }
}

/* ==========================================================================
   Header profesional
   ========================================================================== */
.top-bar {
    background: #2a1408;
    color: #d8c7bb;
    font-size: 12.5px;
    padding: 7px 0;
}

.top-bar a {
    color: #d8c7bb;
    text-decoration: none;
    transition: color .25s ease;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-left a {
    margin-right: 22px;
}

.top-bar-left a i {
    color: var(--map-red);
    margin-right: 5px;
}

.top-bar-right a {
    margin-left: 16px;
}

.top-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .2);
    margin: 0 6px 0 16px;
    vertical-align: middle;
}

.promo-bar {
    background: linear-gradient(90deg, var(--map-red), #8c1a12);
    color: #fff;
    text-align: center;
    font-size: 13.5px;
    padding: 8px 0;
    letter-spacing: .2px;
}

.promo-cta {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    margin-left: 12px;
}

.promo-cta:hover {
    color: #ffe;
}

.main-navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.main-navbar .navbar-brand img {
    height: 48px;
}

.main-menu {
    gap: 4px;
}

.main-navbar .main-menu .nav-link {
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    color: #2a1408;
    padding: 8px 16px !important;
    border-radius: 8px;
    position: relative;
}

.main-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--map-red);
    transform: scaleX(0);
    transition: transform .25s ease;
    border-radius: 2px;
}

.main-navbar .main-menu .nav-link:hover {
    background: transparent;
    color: var(--map-red);
}

.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after {
    transform: scaleX(1);
}

.main-navbar .main-menu .nav-link.active {
    background: transparent;
    color: var(--map-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--map-brown);
    background: #f6efea;
    text-decoration: none;
    font-size: 16px;
    transition: all .25s ease;
}

.nav-icon-btn:hover {
    background: var(--map-red);
    color: #fff;
}

.btn-nav-outline {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--map-brown);
    border: 1.5px solid #e6d6cb;
    border-radius: 10px;
    padding: 9px 18px;
    text-decoration: none;
    transition: all .25s ease;
}

.btn-nav-outline:hover {
    border-color: var(--map-red);
    color: var(--map-red);
}

.btn-nav-solid {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--map-red), #8c1a12);
    border-radius: 10px;
    padding: 9px 20px;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 6px 16px rgba(189, 0, 14, .22);
}

.btn-nav-solid:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(189, 0, 14, .32);
}

.account-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 5px 10px 5px 5px;
    border-radius: 50px;
    border: 1px solid #eee2da;
    transition: all .25s ease;
}

.account-toggle:hover {
    border-color: var(--map-red);
}

.account-toggle::after {
    margin-left: 2px;
    color: #b3a195;
}

.account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.account-meta {
    flex-direction: column;
    line-height: 1.1;
}

.account-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #2a1408;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-role {
    font-size: 11px;
    color: #9a8b80;
}

.main-navbar .dropdown-item {
    font-size: 14px;
    padding: 9px 16px;
}

.main-navbar .dropdown-item:active {
    background: var(--map-red);
}

@media (max-width: 991.98px) {
    .main-menu {
        margin: 12px 0;
    }

    .main-menu .nav-link {
        padding: 12px 8px !important;
    }

    .main-menu .nav-link::after {
        display: none;
    }

    .nav-actions {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #f0e9e4;
    }
}

.main-navbar .navbar-toggler {
    border: 1.5px solid #ecdfd6;
    border-radius: 10px;
    padding: 6px 12px;
    color: var(--map-red);
    font-size: 20px;
    line-height: 1;
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .12);
}

/* ==========================================================================
   Galería de producto (estilo MercadoLibre) + reputación
   ========================================================================== */
.product-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    padding: 20px;
}

.gallery {
    display: flex;
    gap: 14px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 76px;
    flex-shrink: 0;
}

.gallery-thumb {
    border: 2px solid #eee2da;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    aspect-ratio: 1;
    transition: all .2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    border-color: var(--map-brown);
}

.gallery-thumb.active {
    border-color: var(--map-red);
}

.gallery-main {
    position: relative;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #faf6f3;
}

.gallery-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.gallery-fav {
    z-index: 3;
}

.gallery-badge {
    z-index: 3;
    left: auto;
    right: 14px;
    top: 14px;
}

.product-desc {
    color: #5c4d44;
    line-height: 1.8;
}

/* Buy box */
.buy-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.buy-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--map-brown);
    text-transform: uppercase;
    margin: 0;
}

.buy-meta {
    font-size: 12.5px;
    color: #9a8b80;
    margin: 6px 0 14px;
}

.buy-meta i {
    color: var(--map-red);
}

.buy-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--map-red);
    margin-bottom: 16px;
}

.buy-price.free-price {
    font-size: 22px;
    color: #16a085;
}

.buy-attrs {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.buy-attrs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f2eae5;
    font-size: 13.5px;
    color: #6b5b50;
}

.buy-attrs li span i {
    color: var(--map-brown);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.buy-btn {
    height: 50px;
    border-radius: 12px;
    font-weight: 700;
}

.buy-secure {
    text-align: center;
    font-size: 12px;
    color: #8a9a7f;
    margin-top: 14px;
}

.buy-secure i {
    color: #27ae60;
}

/* Seller card */
.seller-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    padding: 20px;
    margin-top: 20px;
}

.seller-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f2eae5;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}

.seller-name {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 15px;
}

.seller-verified {
    color: #3498db;
    font-size: 13px;
}

.seller-sub {
    font-size: 12px;
    color: #9a8b80;
}

.seller-rep {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    font-size: 14px;
    color: var(--map-brown);
}

.seller-rep-link {
    color: #9a8b80;
    font-size: 12.5px;
}

.seller-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seller-stats li {
    font-size: 13px;
    color: #6b5b50;
    padding: 5px 0;
}

.seller-stats li i {
    color: var(--map-red);
    width: 18px;
    margin-right: 6px;
}

/* Stars */
.stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Reviews */
.reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.reviews-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--map-brown);
}

.score-count {
    font-size: 12.5px;
    color: #9a8b80;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2eae5;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f6efea;
    color: var(--map-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.review-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-name {
    font-weight: 700;
    color: var(--map-brown);
    font-size: 14px;
}

.review-text {
    margin: 6px 0 4px;
    font-size: 13.5px;
    color: #5c4d44;
    line-height: 1.6;
}

.review-date {
    font-size: 11.5px;
    color: #b3a79f;
}

/* Star rating input widget */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    font-size: 30px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #e0d5cd;
    cursor: pointer;
    transition: color .15s ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5a623;
}

@media (max-width: 575.98px) {
    .gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .gallery-thumb {
        width: 64px;
        flex-shrink: 0;
    }

    .gallery-main img {
        height: 320px;
    }

    .buy-box {
        position: static;
    }
}

/* ==========================================================================
   Panel administrativo / facturación
   ========================================================================== */
.panel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.panel-greet {
    font-weight: 800;
    font-size: 22px;
    color: var(--map-brown);
    margin: 0;
}

.panel-sub {
    color: #9a8b80;
    font-size: 13.5px;
}

.section-label {
    font-weight: 800;
    font-size: 15px;
    color: var(--map-brown);
    margin-bottom: 12px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    transition: transform .25s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
}

.kpi-card.kpi-alert {
    box-shadow: 0 0 0 2px #e67e22 inset, 0 6px 18px rgba(230, 126, 34, .12);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin: 0 auto 10px;
    color: #fff;
}

.ic-red { background: #BD000E; }
.ic-brown { background: #733510; }
.ic-green { background: #27ae60; }
.ic-purple { background: #9b59b6; }
.ic-teal { background: #16a085; }
.ic-orange { background: #e67e22; }

.kpi-val {
    font-weight: 800;
    font-size: 24px;
    color: var(--map-brown);
    line-height: 1;
}

.kpi-label {
    font-size: 11.5px;
    color: #9a8b80;
    margin-top: 4px;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.finance-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 4px solid #e6d6cb;
}

.finance-card.fc-main {
    background: linear-gradient(135deg, var(--map-red), #8c1a12);
    border-left-color: transparent;
}

.finance-card.fc-main .fc-label,
.finance-card.fc-main .fc-val,
.finance-card.fc-main .fc-hint {
    color: #fff;
}

.finance-card.fc-paid { border-left-color: #27ae60; }
.finance-card.fc-pending { border-left-color: #e67e22; }

.fc-label {
    font-size: 12.5px;
    color: #9a8b80;
    font-weight: 600;
}

.fc-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--map-brown);
}

.fc-val.fc-split {
    font-size: 17px;
}

.fc-val small {
    color: #c9b8ad;
}

.fc-hint {
    font-size: 11px;
    color: #b3a79f;
}

.nav-badge {
    margin-left: auto;
    background: var(--map-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.list-profile-nav a.active .nav-badge {
    background: #fff;
    color: var(--map-red);
}

.billing-plan {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fff, var(--map-cream));
    border: 1px solid #f0e3da;
    border-radius: 16px;
    padding: 22px 24px;
}

.bp-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bp-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--map-brown);
}

.bp-desc {
    font-size: 13.5px;
    color: #6b5b50;
}

.table-search {
    border-radius: 50px;
    border: 1px solid #ecdfd6;
}

@media (max-width: 991.98px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .finance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finance-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Notificaciones
   ========================================================================== */
.nav-bell {
    position: relative;
}

.bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--map-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    border-left: 3px solid transparent;
}

a.notif-item:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.notif-item.unread {
    border-left-color: var(--map-red);
    background: #fffaf8;
}

.notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f6efea;
    color: var(--map-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.notif-item.unread .notif-icon {
    background: var(--map-red);
    color: #fff;
}

.notif-title {
    font-weight: 700;
    color: var(--map-brown);
    font-size: 14.5px;
}

.notif-text {
    font-size: 13px;
    color: #6b5b50;
    margin-top: 2px;
}

.notif-time {
    font-size: 11.5px;
    color: #b3a79f;
    margin-top: 4px;
}

.notif-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--map-red);
    margin-left: auto;
    margin-top: 6px;
    flex-shrink: 0;
}

.audit-action {
    font-weight: 700;
    font-size: 12px;
    color: var(--map-brown);
    background: #f6efea;
    padding: 4px 11px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
}

/* ==========================================================================
   Home rediseñada
   ========================================================================== */
.hero {
    position: relative;
}

.hero .hero-carousel .carousel-item img {
    height: 78vh;
    max-height: 640px;
    object-fit: cover;
    filter: brightness(.62);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 15, 6, .65) 0%, rgba(30, 15, 6, .25) 55%, transparent 100%);
}

.hero-overlay .container {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.hero-title {
    color: #fff;
    font-weight: 800;
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 14px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.hero-title span {
    color: #ffd2c2;
}

.hero-sub {
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    max-width: 460px;
    margin-bottom: 22px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero-search {
    margin: 0 0 18px;
    max-width: 440px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-cta .btn-outline-light {
    border-width: 2px;
    font-weight: 700;
}

.stats-band {
    background: #fff;
    padding: 28px 0;
    border-bottom: 1px solid #f0e3da;
}

.stat-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--map-red);
    line-height: 1;
}

.stat-lbl {
    font-size: 13px;
    color: var(--map-brown);
    font-weight: 600;
    margin-top: 4px;
}

.why-us .why-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.why-us .why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(115, 53, 16, .14);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.why-card h4 {
    font-weight: 800;
    font-size: 17px;
    color: var(--map-brown);
}

.why-card p {
    font-size: 13.5px;
    color: #6b5b50;
    margin: 0;
}

/* Card reveal animation */
.js-reveal .puppy-card,
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .55s ease, transform .55s ease;
}

.js-reveal .puppy-card.is-visible,
.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Panel del criador (vendedor) moderno
   ========================================================================== */
.kpi-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.dues-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border-radius: 14px;
    padding: 16px 22px;
    font-size: 14.5px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    color: var(--map-brown);
    text-decoration: none;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13.5px;
}

.quick-card i {
    font-size: 24px;
    color: var(--map-red);
    transition: transform .25s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    color: var(--map-red);
    box-shadow: 0 12px 26px rgba(189, 0, 14, .14);
}

.quick-card:hover i {
    transform: scale(1.15);
}

/* Admin site config preview */
.promo-preview {
    background: linear-gradient(90deg, var(--map-red), #8c1a12);
    color: #fff;
    text-align: center;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .kpi-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero .hero-carousel .carousel-item img {
        height: 70vh;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 15px;
    }
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-h1 {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 28px;
}

.checkout-step {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    margin-bottom: 18px;
}

.step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--map-brown);
    font-size: 16px;
    margin-bottom: 16px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--map-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.checkout-option {
    display: block;
    border: 2px solid #eee2da;
    border-radius: 13px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s ease;
}

.checkout-option:hover {
    border-color: #d8c4b6;
}

.checkout-option input {
    display: none;
}

.checkout-option:has(input:checked) {
    border-color: var(--map-red);
    background: #fdf3f3;
    box-shadow: 0 4px 14px rgba(189, 0, 14, .08);
}

.opt-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.opt-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f6efea;
    color: var(--map-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.checkout-option:has(input:checked) .opt-icon {
    background: var(--map-red);
    color: #fff;
}

.opt-body > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.opt-body strong {
    color: var(--map-brown);
    font-size: 14.5px;
}

.opt-body small {
    color: #9a8b80;
    font-size: 12px;
}

.opt-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--map-brown);
}

.opt-price.free {
    color: #16a085;
}

.checkout-summary {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    position: sticky;
    top: 90px;
}

.summary-title {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 17px;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2eae5;
    margin-bottom: 14px;
}

.summary-item img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.si-name {
    font-weight: 700;
    color: var(--map-brown);
}

.si-breed {
    font-size: 12px;
    color: #9a8b80;
}

.si-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--map-brown);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b5b50;
    padding: 6px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: var(--map-red);
    font-size: 20px;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid #f2eae5;
}

/* Confirmation */
.confirm-hero {
    text-align: center;
    padding: 20px 0 30px;
}

.confirm-check {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 22px rgba(39, 174, 96, .3);
    animation: pop .4s ease;
}

@keyframes pop {
    0% { transform: scale(.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.confirm-hero h1 {
    font-weight: 800;
    color: var(--map-brown);
}

.confirm-hero p {
    color: #6b5b50;
}

.confirm-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.confirm-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f2eae5;
}

.confirm-product img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
}

.cp-name {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 17px;
}

.cp-breed {
    font-size: 12.5px;
    color: #9a8b80;
}

.cp-seller {
    font-size: 12.5px;
    color: #6b5b50;
    margin-top: 4px;
}

.confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f2eae5;
}

.confirm-grid-full {
    grid-column: 1 / -1;
}

.cg-label {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #b3a79f;
    font-weight: 700;
    margin-bottom: 3px;
}

.cg-val {
    color: var(--map-brown);
    font-weight: 600;
    font-size: 14px;
}

.confirm-totals {
    padding: 16px 0;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .confirm-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

/* ==========================================================================
   Formulario de publicación (criador)
   ========================================================================== */
.form-section {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    margin-bottom: 18px;
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--map-brown);
    font-size: 16px;
    margin-bottom: 18px;
}

.fs-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--map-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fs-hint {
    font-weight: 500;
    font-size: 12.5px;
    color: #9a8b80;
}

.form-section .form-label {
    font-weight: 600;
    color: var(--map-brown);
    font-size: 13.5px;
}

.form-section .form-control {
    border: 1px solid #ecdfd6;
    border-radius: 11px;
    padding: 10px 14px;
}

.form-section .form-control:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
}

/* Dropzone */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border: 2px dashed #e0cdbf;
    border-radius: 16px;
    padding: 34px 20px;
    cursor: pointer;
    color: #9a8b80;
    background: #fdfaf8;
    transition: all .2s ease;
}

.dropzone:hover {
    border-color: var(--map-red);
    background: #fdf3f3;
}

.dropzone.dragover {
    border-color: var(--map-red);
    background: #fdeaea;
    transform: scale(1.01);
}

.dropzone i {
    font-size: 34px;
    color: var(--map-red);
    margin-bottom: 4px;
}

.dropzone strong {
    color: var(--map-brown);
    font-size: 15px;
}

.dropzone span {
    font-size: 12.5px;
}

.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.photo-preview {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #eee2da;
}

.photo-preview.is-cover {
    border-color: var(--map-red);
}

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

.cover-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--map-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 2px;
}

.current-photos {
    margin-top: 14px;
}

.current-photos .cp-label {
    font-size: 12.5px;
    color: #9a8b80;
}

.current-photos img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* Chip select (category) */
.chip-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-radio {
    cursor: pointer;
}

.chip-radio input {
    display: none;
}

.chip-radio span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--map-brown);
    background: #f6efea;
    border: 1.5px solid transparent;
    padding: 8px 14px;
    border-radius: 50px;
    transition: all .2s ease;
}

.chip-radio span i {
    color: var(--map-red);
}

.chip-radio input:checked + span {
    background: var(--map-red);
    color: #fff;
}

.chip-radio input:checked + span i {
    color: #fff;
}

/* Segmented control */
.segmented {
    display: inline-flex;
    background: #f6efea;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
}

.segmented.segmented-wide {
    max-width: 360px;
}

.segmented label {
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.segmented input {
    display: none;
}

.segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--map-brown);
    padding: 9px 8px;
    border-radius: 9px;
    transition: all .2s ease;
}

.segmented input:checked + span {
    background: #fff;
    color: var(--map-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* Input with left icon */
.input-icon-left {
    position: relative;
}

.input-icon-left > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--map-red);
    font-size: 14px;
}

.input-icon-left .form-control {
    padding-left: 40px;
}

/* Price field */
.price-field {
    position: relative;
}

.price-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 20px;
    color: var(--map-brown);
}

.price-field .form-control {
    padding-left: 38px;
    font-weight: 700;
    font-size: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Live preview */
.publish-preview {
    position: sticky;
    top: 90px;
}

.pp-head {
    font-weight: 800;
    color: var(--map-brown);
    margin-bottom: 12px;
}

.preview-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.preview-img {
    aspect-ratio: 4 / 3;
    background: #f6efea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8c4b6;
    font-size: 48px;
}

.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-body {
    padding: 16px 18px;
}

.pv-name {
    font-weight: 800;
    font-size: 18px;
    color: var(--map-red);
}

.pv-breed {
    font-size: 12.5px;
    color: var(--map-brown);
    margin: 4px 0 10px;
}

.pv-breed i {
    color: var(--map-red);
}

.pv-foot {
    padding-top: 10px;
    border-top: 1px solid #f0eae6;
}

.pv-price {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 17px;
}

.pv-price.free {
    color: #16a085;
}

.pp-hint {
    font-size: 12px;
    color: #9a8b80;
    margin-top: 12px;
}

@media (max-width: 991.98px) {
    .publish-preview {
        position: static;
        margin-bottom: 18px;
    }

    .col-lg-5:has(.publish-preview) {
        order: -1;
    }
}

/* ==========================================================================
   Tablas de paneles modernas
   ========================================================================== */
.panel-card .table {
    margin: 0;
}

.panel-card .table > :not(caption) > * > * {
    background-color: transparent;
}

.panel-card .table thead th {
    background: #faf6f3;
    color: #a3938a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: 0;
    padding: 13px 18px;
    white-space: nowrap;
}

.panel-card .table tbody td {
    border: 0;
    border-top: 1px solid #f4ece6;
    padding: 13px 18px;
    vertical-align: middle;
    font-size: 14px;
    color: #4a3d35;
}

.panel-card .table tbody tr:first-child td {
    border-top: 0;
}

.panel-card .table tbody tr {
    transition: background .15s ease;
}

.panel-card .table tbody tr:hover {
    background: #fdf8f5;
}

.panel-card .table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--map-red);
}

.t-entity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.t-thumb {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.t-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e6dd, #e7d3c6);
    color: var(--map-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.t-name {
    font-weight: 700;
    color: var(--map-brown);
}

.t-sub {
    font-size: 12px;
    color: #9a8b80;
}

.t-amount {
    font-weight: 800;
    color: #1c9b54;
    background: #e9f9f0;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 13px;
    display: inline-block;
}

/* Money badges in panels -> soft */
.panel-card .badge.bg-success {
    background: #e9f9f0 !important;
    color: #1c9b54 !important;
    font-weight: 800;
    font-size: 12.5px;
    padding: 6px 11px;
    border-radius: 9px;
}

/* Soft status badges with dot */
.badge[class*="status-"] {
    position: relative;
    padding: 5px 12px 5px 23px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 11.5px;
}

.badge[class*="status-"]::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.badge.status-active,
.badge.status-approved,
.badge.status-available,
.badge.status-completed,
.badge.status-confirmed {
    background-color: #e9f9f0 !important;
    color: #1c9b54 !important;
}

.badge.status-pending,
.badge.status-reserved {
    background-color: #fff3e3 !important;
    color: #c8791f !important;
}

.badge.status-suspended,
.badge.status-rejected,
.badge.status-cancelled,
.badge.status-sold {
    background-color: #fdeaea !important;
    color: #c0392b !important;
}

@media (max-width: 575.98px) {
    .panel-card .table thead th,
    .panel-card .table tbody td {
        padding: 11px 12px;
    }
}

/* ==========================================================================
   Tarjeta de cachorro (rediseño)
   ========================================================================== */
.puppy-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0e7e1;
    box-shadow: 0 8px 24px rgba(115, 53, 16, .07);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.puppy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 38px rgba(115, 53, 16, .18);
}

.puppy-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.puppy-thumb {
    display: block;
    width: 100%;
    height: 100%;
}

.puppy-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.puppy-card:hover .puppy-thumb img {
    transform: scale(1.07);
}

.puppy-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 15, 6, .35) 0%, transparent 38%);
    pointer-events: none;
}

.pc-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 3;
}

.pc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--map-brown);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    padding: 5px 11px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.pc-tag.reserved {
    background: #e67e22;
    color: #fff;
}

.pc-tag.adopt {
    background: #16a085;
    color: #fff;
}

.pc-fav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    color: #c9b8ad;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: all .25s ease;
    flex-shrink: 0;
}

.pc-fav:hover {
    transform: scale(1.12);
    color: var(--map-red);
}

.pc-fav.is-active {
    background: var(--map-red);
    color: #fff;
}

.pc-view {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: var(--map-red);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(189, 0, 14, .35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
}

.puppy-card:hover .pc-view {
    opacity: 1;
    transform: translateY(0);
}

.pc-view:hover {
    color: #fff;
    background: var(--map-brown);
}

.puppy-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.puppy-name {
    font-weight: 800;
    font-size: 19px;
    color: var(--map-red);
    text-decoration: none;
    line-height: 1.1;
}

.puppy-name:hover {
    color: var(--map-brown);
}

.puppy-breed {
    font-size: 12.5px;
    color: var(--map-brown);
    font-weight: 600;
}

.puppy-breed i {
    color: #f5a623;
}

.pc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.pc-meta span {
    font-size: 12px;
    color: #9a8b80;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pc-meta i {
    color: var(--map-red);
}

.puppy-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f2eae5;
}

.puppy-card .puppy-price {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 19px;
}

.puppy-card .puppy-price.free {
    color: #16a085;
    font-size: 15px;
}

.puppy-card .puppy-loc {
    font-size: 11.5px;
    color: #9a8b80;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 575.98px) {
    .puppy-body {
        padding: 12px 13px 14px;
        gap: 4px;
    }

    .puppy-name {
        font-size: 15.5px;
    }

    .puppy-breed {
        font-size: 11.5px;
    }

    .pc-meta {
        gap: 10px;
        margin-top: 2px;
    }

    .pc-meta span {
        font-size: 11px;
    }

    .puppy-card .puppy-price {
        font-size: 16px;
    }

    .puppy-card .puppy-price.free {
        font-size: 13.5px;
    }

    .pc-view {
        display: none;
    }

    .pc-fav {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .pc-tag {
        font-size: 10px;
        padding: 4px 9px;
    }

    .puppy-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding-top: 10px;
    }
}

@media (max-width: 359.98px) {
    .puppy-body {
        padding: 10px 11px 12px;
    }

    .pc-meta {
        gap: 8px;
    }
}

/* ==========================================================================
   Paginación de tablas
   ========================================================================== */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 6px 4px;
}

.table-pagination:empty {
    display: none;
}

.tp-info {
    font-size: 12.5px;
    color: #9a8b80;
}

.tp-pages {
    display: flex;
    gap: 6px;
}

.tp-num {
    border: 1px solid #ecdfd6;
    background: #fff;
    color: var(--map-brown);
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.tp-num:hover:not(:disabled) {
    border-color: var(--map-red);
    color: var(--map-red);
}

.tp-num.active {
    background: var(--map-red);
    border-color: var(--map-red);
    color: #fff;
}

.tp-num:disabled {
    opacity: .4;
    cursor: default;
}

/* ==========================================================================
   Filtros avanzados (catálogo)
   ========================================================================== */
.advanced-filters {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 22px rgba(115, 53, 16, .08);
    margin-top: 6px;
    text-align: left;
}

.af-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr;
    gap: 12px;
    align-items: end;
}

.af-grid.af-grid-3 {
    grid-template-columns: 2.4fr 1fr 1.4fr;
}

.af-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.af-field label {
    font-size: 11px;
    font-weight: 700;
    color: var(--map-brown);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.af-field select,
.af-field input,
.af-search input {
    border: 1px solid #ecdfd6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #4a3d35;
    background: #fff;
}

.af-field select:focus,
.af-field input:focus,
.af-search input:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
    outline: none;
}

.af-search {
    position: relative;
}

.af-search i {
    position: absolute;
    left: 14px;
    bottom: 13px;
    color: var(--map-red);
    font-size: 14px;
    pointer-events: none;
}

.af-search input {
    width: 100%;
    padding-left: 38px;
}

.af-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.af-actions .btn {
    white-space: nowrap;
}

.af-clear {
    color: var(--map-brown);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.af-clear:hover {
    color: var(--map-red);
}

.results-bar {
    margin-bottom: 16px;
    color: #6b5b50;
    font-size: 14px;
}

.results-bar strong {
    color: var(--map-brown);
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .af-grid,
    .af-grid.af-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .af-search {
        grid-column: 1 / -1;
    }

    .af-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .af-grid,
    .af-grid.af-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Loader de patitas
   ========================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff 0%, var(--map-cream) 100%);
    transition: opacity .4s ease, visibility .4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.paw-loader {
    display: flex;
    gap: 16px;
}

.paw-loader i {
    font-size: 32px;
    color: var(--map-red);
    opacity: .18;
    animation: pawStep 1.1s infinite ease-in-out;
}

.paw-loader i:nth-child(odd) {
    transform: rotate(-14deg);
}

.paw-loader i:nth-child(even) {
    transform: rotate(12deg) translateY(8px);
}

.paw-loader i:nth-child(1) { animation-delay: 0s; }
.paw-loader i:nth-child(2) { animation-delay: .18s; }
.paw-loader i:nth-child(3) { animation-delay: .36s; }
.paw-loader i:nth-child(4) { animation-delay: .54s; }

@keyframes pawStep {
    0%, 100% { opacity: .18; }
    45% { opacity: 1; transform: scale(1.12) rotate(-14deg); }
}

.paw-loader i:nth-child(even) {
    animation-name: pawStepEven;
}

@keyframes pawStepEven {
    0%, 100% { opacity: .18; }
    45% { opacity: 1; transform: scale(1.12) rotate(12deg) translateY(8px); }
}

/* ==========================================================================
   Reportes / gráficos
   ========================================================================== */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    margin-top: 10px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.bar-track {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.bar-fill {
    width: 16px;
    min-height: 3px;
    border-radius: 6px 6px 0 0;
    background: var(--map-red);
    transition: height .4s ease;
}

.bar-fill.collected {
    background: #27ae60;
}

.bar-fill.brown {
    background: var(--map-brown);
    width: 22px;
}

.bar-label {
    font-size: 11px;
    color: #9a8b80;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #6b5b50;
}

.chart-legend .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot-red { background: var(--map-red); }
.dot-green { background: #27ae60; }

.hbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hbar-label {
    width: 92px;
    font-size: 12.5px;
    color: var(--map-brown);
    font-weight: 600;
    flex-shrink: 0;
}

.hbar-track {
    flex: 1;
    height: 12px;
    background: #f2eae5;
    border-radius: 50px;
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    border-radius: 50px;
    background: var(--map-red);
    min-width: 2px;
    transition: width .5s ease;
}

.hbar-fill.brown { background: var(--map-brown); }
.hbar-fill.status-pending { background: #e67e22; }
.hbar-fill.status-confirmed { background: #3498db; }
.hbar-fill.status-completed { background: #27ae60; }
.hbar-fill.status-cancelled { background: #c0392b; }

.hbar-val {
    width: 70px;
    text-align: right;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--map-brown);
    flex-shrink: 0;
}

.mini-stat {
    background: #fff;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.mini-stat span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--map-red);
    line-height: 1;
    margin-bottom: 4px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 13.5px;
    color: #6b5b50;
    padding: 7px 0;
    border-bottom: 1px solid #f4ece6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: var(--map-red);
    width: 16px;
    text-align: center;
}

.pc-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.pc-tag.star {
    background: #f5a623;
    color: #fff;
}

/* ==========================================================================
   Comentarios / Preguntas y respuestas
   ========================================================================== */
.comment-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin: 14px 0 6px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #ecdfd6;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    resize: vertical;
}

.comment-form textarea:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
    outline: none;
}

.comment-login {
    display: inline-block;
    margin: 12px 0;
    font-weight: 700;
    color: var(--map-brown);
    text-decoration: none;
    background: #f6efea;
    padding: 10px 18px;
    border-radius: 10px;
}

.comment-login:hover {
    background: var(--map-red);
    color: #fff;
}

.comments-empty {
    text-align: center;
    color: #b3a79f;
    padding: 24px 10px;
}

.comments-empty i {
    font-size: 34px;
    margin-bottom: 8px;
    color: #e3d5cb;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment + .comment {
    border-top: 1px solid #f2eae5;
    padding-top: 18px;
}

.c-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e6dd, #e7d3c6);
    color: var(--map-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.c-body {
    flex: 1;
    min-width: 0;
}

.c-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.c-name {
    font-weight: 700;
    color: var(--map-brown);
    font-size: 14px;
}

.c-badge {
    font-size: 10.5px;
    font-weight: 700;
    background: var(--map-red);
    color: #fff;
    padding: 2px 9px;
    border-radius: 50px;
}

.c-time {
    font-size: 11.5px;
    color: #b3a79f;
}

.c-del {
    margin-left: auto;
}

.c-del button {
    border: none;
    background: transparent;
    color: #d3c4ba;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.c-del button:hover {
    color: var(--map-red);
    background: #fdeced;
}

.c-text {
    font-size: 14px;
    color: #4a3d35;
    line-height: 1.55;
    margin: 4px 0 0;
}

.comment.reply {
    margin-top: 14px;
    margin-left: 8px;
    padding: 12px 14px;
    background: #faf6f3;
    border-radius: 12px;
    border-left: 3px solid var(--map-red);
}

.comment.reply .c-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.comment.reply + .comment.reply {
    border-top: none;
    padding-top: 12px;
}

.c-reply {
    margin-top: 10px;
}

.c-reply > summary {
    display: inline-block;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--map-brown);
    list-style: none;
}

.c-reply > summary::-webkit-details-marker {
    display: none;
}

.c-reply > summary:hover {
    color: var(--map-red);
}

.c-reply[open] > summary {
    color: var(--map-red);
}

/* ==========================================================================
   Comunidad / feed social
   ========================================================================== */
.community-hero {
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #fff;
    padding: 40px 0 32px;
}

.community-hero h1 {
    font-weight: 800;
    margin-bottom: 8px;
}

.community-hero p {
    margin: 0;
    opacity: .92;
}

.post-create {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    padding: 20px;
    margin-bottom: 24px;
}

.pc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #9a8b80;
}

.post-create textarea,
.post-create input {
    border: 1px solid #ecdfd6;
    border-radius: 10px;
}

.post-create textarea:focus,
.post-create input:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
}

.feed-post {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    margin-bottom: 24px;
}

.fp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.fp-meta {
    flex: 1;
    min-width: 0;
}

.fp-author {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 14.5px;
}

.fp-time {
    font-size: 12px;
    color: #9a8b80;
}

.fp-time i {
    color: var(--map-red);
}

.fp-image {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    display: block;
    background: #faf6f3;
}

.fp-body {
    padding: 14px 18px 18px;
}

.fp-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.post-like {
    border: none;
    background: transparent;
    color: #b9a99e;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: color .2s ease, transform .15s ease;
    padding: 0;
}

.post-like:hover {
    color: var(--map-red);
}

.post-like.is-active {
    color: var(--map-red);
}

.post-like.is-active i {
    animation: likePop .3s ease;
}

@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.fp-cc {
    color: #9a8b80;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fp-caption {
    font-size: 14px;
    color: #4a3d35;
    line-height: 1.5;
    margin: 0 0 10px;
}

.fp-caption strong {
    color: var(--map-brown);
}

.fp-comments {
    border-top: 1px solid #f2eae5;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}

.fp-comment {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
    color: #5c4d44;
}

.fp-comment strong {
    color: var(--map-brown);
}

.fp-comment .c-del button {
    font-size: 11px;
}

.fp-comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fp-comment-form input {
    flex: 1;
    border: 1px solid #ecdfd6;
    border-radius: 50px;
    padding: 9px 16px;
    font-size: 13.5px;
}

.fp-comment-form input:focus {
    border-color: var(--map-red);
    box-shadow: 0 0 0 3px rgba(189, 0, 14, .1);
    outline: none;
}

.fp-comment-form button {
    border: none;
    background: var(--map-red);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .2s ease;
}

.fp-comment-form button:hover {
    background: var(--map-brown);
}

/* ==========================================================================
   Comunidad estilo Instagram
   ========================================================================== */
.composer-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    padding: 14px 16px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: box-shadow .2s ease;
}

.composer-bar:hover {
    box-shadow: 0 10px 24px rgba(115, 53, 16, .12);
}

.composer-placeholder {
    flex: 1;
    text-align: left;
    color: #9a8b80;
    font-size: 14.5px;
}

.composer-cta {
    color: var(--map-red);
    font-weight: 700;
    font-size: 14px;
}

.ig-post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    margin-bottom: 26px;
    overflow: hidden;
}

.ig-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
}

.ig-user {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ig-name {
    font-weight: 700;
    color: var(--map-brown);
    font-size: 14px;
}

.ig-sub {
    font-size: 12px;
    color: #9a8b80;
}

.ig-sub i {
    color: var(--map-red);
}

.ig-dots {
    border: none;
    background: transparent;
    color: #6b5b50;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.ig-image {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #faf6f3;
}

.ig-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.ig-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 15px 2px;
}

.ig-act {
    border: none;
    background: transparent;
    color: #2a1408;
    font-size: 23px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform .15s ease, color .2s ease;
    text-decoration: none;
}

.ig-act:hover {
    transform: scale(1.12);
}

.ig-act.post-like.is-active {
    color: var(--map-red);
}

.ig-act.post-like.is-active i {
    animation: likePop .3s ease;
}

.ig-likes {
    padding: 4px 15px 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--map-brown);
}

.ig-caption {
    padding: 4px 15px;
    font-size: 14px;
    color: #4a3d35;
    line-height: 1.5;
}

.ig-caption strong {
    color: var(--map-brown);
}

.ig-viewall {
    border: none;
    background: transparent;
    color: #9a8b80;
    font-size: 13.5px;
    padding: 2px 15px;
    cursor: pointer;
    display: block;
    text-align: left;
}

.ig-viewall:hover {
    color: var(--map-brown);
}

.ig-cprev {
    padding: 2px 15px;
    font-size: 13.5px;
    color: #4a3d35;
}

.ig-cprev strong {
    color: var(--map-brown);
}

.ig-addcomment {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f2eae5;
    margin-top: 10px;
    padding: 8px 15px;
}

.ig-addcomment input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.ig-addcomment button {
    border: none;
    background: transparent;
    color: var(--map-red);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Create modal dropzone */
.ig-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border: 2px dashed #e0cdbf;
    border-radius: 14px;
    padding: 40px 20px;
    cursor: pointer;
    color: #9a8b80;
    background: #fdfaf8;
    transition: all .2s ease;
}

.ig-dropzone:hover,
.ig-dropzone.dragover {
    border-color: var(--map-red);
    background: #fdf3f3;
}

.ig-dropzone i {
    font-size: 38px;
    color: var(--map-red);
}

.ig-dropzone strong {
    color: var(--map-brown);
}

.ig-preview img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
}

/* Post detail modal */
#postModal .modal-content {
    overflow: hidden;
    border: none;
    border-radius: 16px;
}

.ig-modal {
    display: flex;
    max-height: 86vh;
}

.ig-modal-img {
    flex: 1.4;
    background: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-modal-img img {
    width: 100%;
    max-height: 86vh;
    object-fit: contain;
}

.ig-modal-side {
    flex: 1;
    min-width: 330px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    max-height: 86vh;
}

.ig-modal-head {
    border-bottom: 1px solid #f0eae6;
    padding: 14px 16px;
}

.ig-modal-comments {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

.ig-cm {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
    font-size: 14px;
    color: #4a3d35;
    line-height: 1.45;
}

.ig-cm .c-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
    flex-shrink: 0;
}

.ig-cm strong {
    color: var(--map-brown);
}

.ig-cm-time {
    display: block;
    font-size: 11px;
    color: #b3a79f;
    margin-top: 2px;
}

.ig-cm .c-del {
    margin-left: auto;
}

.ig-nocomments {
    text-align: center;
    color: #b3a79f;
    padding: 30px 10px;
}

.ig-nocomments i {
    font-size: 34px;
    margin-bottom: 8px;
}

.ig-modal-foot {
    border-top: 1px solid #f0eae6;
    padding: 10px 16px 14px;
}

.ig-modal-foot .ig-actions {
    padding: 0 0 6px;
}

.ig-modal-foot .ig-likes {
    padding: 0 0 8px;
}

.ig-modal-foot .ig-addcomment {
    border-top: 1px solid #f2eae5;
    margin-top: 0;
    padding: 8px 0 0;
}

.ig-loginhint {
    display: inline-block;
    margin-top: 8px;
    color: var(--map-brown);
    font-weight: 700;
    text-decoration: none;
}

.ig-permalink {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.ig-permalink .ig-modal {
    max-height: none;
}

.ig-permalink .ig-modal-img,
.ig-permalink .ig-modal-side {
    max-height: 600px;
}

@media (max-width: 767.98px) {
    .ig-modal {
        flex-direction: column;
        max-height: 88vh;
        overflow-y: auto;
    }

    .ig-modal-img img {
        max-height: 50vh;
    }

    .ig-modal-side {
        min-width: 0;
        max-width: none;
    }
}

.feed-loading {
    text-align: center;
    padding: 12px 0 28px;
}

.feed-loading .paw-loader i {
    font-size: 22px;
}

/* Avatares imagen + enlaces de perfil */
img.c-avatar,
img.account-avatar {
    object-fit: cover;
    background: #eee;
}

.ig-avatar-link {
    flex-shrink: 0;
    display: inline-flex;
}

.ig-name a {
    color: inherit;
    text-decoration: none;
}

.ig-name a:hover {
    color: var(--map-red);
}

/* Perfil de comunidad */
.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 10px 0 26px;
    border-bottom: 1px solid #f0e7e1;
    margin-bottom: 26px;
}

.profile-avatar-img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--map-red), var(--map-brown));
    color: #fff;
    font-weight: 800;
    font-size: 44px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(115, 53, 16, .18);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-top h1 {
    font-weight: 800;
    color: var(--map-brown);
    font-size: 26px;
    margin: 0;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin: 12px 0;
    font-size: 14.5px;
    color: #6b5b50;
}

.profile-stats strong {
    color: var(--map-brown);
}

.profile-bio {
    margin: 0;
    color: #4a3d35;
    font-size: 14px;
    line-height: 1.5;
    max-width: 560px;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.ig-grid-item {
    position: relative;
    border: none;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #faf6f3;
    border-radius: 4px;
}

.ig-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.ig-grid-item:hover img {
    transform: scale(1.05);
}

.ig-grid-over {
    position: absolute;
    inset: 0;
    background: rgba(30, 15, 6, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .25s ease;
}

.ig-grid-item:hover .ig-grid-over {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-top,
    .profile-stats {
        justify-content: center;
    }

    .ig-grid {
        gap: 3px;
    }
}

.feed-tabs {
    display: flex;
    gap: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.feed-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--map-brown);
    text-decoration: none;
    transition: all .2s ease;
}

.feed-tabs a.active {
    background: var(--map-red);
    color: #fff;
}

.feed-tabs a:not(.active):hover {
    background: #f6efea;
}

.follow-btn.following:hover .fb-label {
    color: var(--map-red);
}

.stat-btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14.5px;
    color: #6b5b50;
    cursor: pointer;
}

.stat-btn strong {
    color: var(--map-brown);
}

.stat-btn:hover {
    color: var(--map-red);
}

.follows-list {
    max-height: 62vh;
    overflow-y: auto;
}

.follow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f4ece6;
}

.follow-row:last-child {
    border-bottom: none;
}

.follow-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.follow-name {
    font-weight: 700;
    color: var(--map-brown);
    font-size: 14px;
}

.follow-row .follow-btn {
    flex-shrink: 0;
}

.follows-empty {
    text-align: center;
    color: #b3a79f;
    padding: 28px;
}

.follows-empty i {
    font-size: 30px;
    margin-bottom: 8px;
}

.profile-handle {
    color: #9a8b80;
    font-size: 14px;
    margin: 2px 0 10px;
}

.mention {
    color: var(--map-red);
    font-weight: 700;
    text-decoration: none;
}

.mention:hover {
    text-decoration: underline;
}
