:root {
    --brand-primary: #e65100;
    /* naranja suave */
    --brand-dark: #c94600;
    --brand-light: #FDBA74;
    --brand-bg: #FFFFFF;
    --brand-grey: #dbdbdb;
}

html,
body {
    font-family: 'Creato Display', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8f9fa;
    margin: 0
}


header {
    position: relative;
    z-index: 10;
}

header a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

header a:hover {
    color: #f2f2f2;
    opacity: 0.85;
}

.iconos-header {
    color: white !important;
    box-shadow: none !important;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;

    background: linear-gradient(135deg,
            rgba(255, 122, 0, 0.85),
            rgba(230, 81, 0, 0.80),
            rgba(180, 55, 0, 0.85));

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    overflow: visible;
}

.main-header.scrolled {
    background: rgba(230, 81, 0, .95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.padding-header {
    padding-top: 190px !important;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    background-color: #6c6c6c;
    border-color: #565656;
    opacity: var(--bs-btn-disabled-opacity);
}

h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-weight: 600;
}

h3,
h4 {
    font-weight: 600;
}

.navbar,
.btn,
.card-title {
    font-weight: 500;
}

.price {
    font-weight: 700;
}

.card {
    border-radius: 12px;
    border: 0 !important;
}

.mercadopago {
    max-width: 480px;
    box-shadow: 0px 0px 15px #EEEEEE;

}

/*HOME COMPLETO*/
.section-title {
    font-weight: 600;
    margin-bottom: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.trust {
    background: #111;
    color: #fff;
    padding: 60px;
    position: relative;
    overflow: hidden;

    background-image: url("../img/marketplace_padel.jpg");
    background-size: cover;
    background-position: center;
}

.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-dark);
}

/******/
.product-card {
    transition: all 0.2s ease;
    border-radius: 14px;
}

.product-card .card-body {
    padding: 7px 11px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-title {
    min-height: 36px;
    font-size: 15px;
}

.score-mobile {
    font-size: small;
}

.product-img {
    height: 220px;
    object-fit: cover;
}

.sin-ofertas {
    background: #eaeaea;
    color: #7f7f7f !important;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: small;
}

.con-ofertas {
    background: #a33434;
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: smaller;
}

.fecha-publicacion {
    font-size: .8em;
}

.brand-logo {
    bottom: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-brand {
    background-color: var(--brand-primary);
}

.badge-status {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 12px;
}

/* Flujo positivo */
.bg-pending {
    background-color: #fff3cd;
    color: #856404;
}

.bg-counter {
    background-color: #ffe69c;
    color: #664d03;
}

.bg-accepted {
    background-color: #d1e7dd;
    color: #0f5132;
}

.bg-waiting-payment {
    background-color: #75c8a8;
    color: #ffffff;
}

.bg-paid {
    background-color: #198754;
    color: #ffffff;
}

/* Estados negativos */
.bg-rejected {
    background-color: #dc3545;
    color: #ffffff;
}

.bg-cancelled {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-condition {
    z-index: 40;
}

.badge.muy-usado {
    background-color: #dc3545;
}

/* rojo */
.badge.usado {
    background-color: #fd7e14;
}

/* naranja */
.badge.semi-nuevo {
    background-color: #ffc107;
}

/* amarillo */
.badge.nuevo {
    background-color: #01a955;
}

/* verde */
.badge.un-uso {
    background-color: #668719;
}

/* verde */
/* Navbar */
.bg-brand {
    background-color: var(--brand-bg);
}

.text-brand {
    color: var(--brand-primary) !important;
}

.text-brand:hover {
    color: var(--brand-dark)
}

.btn {
    border-radius: 6px;
    /* igual que publish */
    font-weight: 700;
    /* bold */
    /* box-shadow: 0 6px 18px rgb(255 255 255 / 18%); */
    transition: all 0.2s ease;
}

/* Hover y foco para todos los botones */
.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    /* efecto sutil de elevación */
    box-shadow: 0 8px 20px rgb(255 255 255 / 25%);
}

/* Opcional: animación de click */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgb(255 255 255 / 18%);
}

.btn-brand {
    background-color: var(--brand-primary);
    border: none;
    color: white;
    font-weight: 500;
    transition: 0.2s ease;
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    color: white;
}

.btn-brand-outline {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-brand-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

.btn-publish-lg {
    padding: 8px 25px;
    font-size: 17px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    border: none;
    background: linear-gradient(to bottom, #ff7a1a, #e65100);
    /* box-shadow: 0 4px 0 #c63f00, 0 8px 20px rgba(230, 81, 0, 0.25); */
    transition: all 0.15s ease;
}

.btn-publish-lg:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 0 #c63f00, 0 14px 26px rgba(230, 81, 0, 0.35); */
}

.btn-publish-lg:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #c63f00,
        0 4px 12px rgba(230, 81, 0, 0.25);
}

.btn-publish-mobile {

    font-size: 14px;
    /* border-radius: 15px; */
    font-weight: 700;
    color: #fff;
    border: none;
    background: linear-gradient(to bottom, #ff7a1a, #e65100);
    box-shadow: 0 4px 7px #ffa57b, 0 8px 20px rgba(230, 81, 0, 0.25);
    transition: all 0.15s ease;
}

.btn-publish-mobile:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #c63f00,
        0 14px 26px rgba(230, 81, 0, 0.35);
}

.btn-publish-mobile:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #c63f00,
        0 4px 12px rgba(230, 81, 0, 0.25);
}

.btn-acciones {
    padding: 3px 6px;
}

.logo {
    max-height: 42px;
    max-width: 250px;
}

.card-my-account {
    padding: 30px
}

.search-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 14px;
}

.search-input:focus {
    box-shadow: none;
}

.btn-google {
    background: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-google:hover {
    background: #f7f8f8;
    border-color: #c6c6c6;
    text-decoration: none;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.alerta-profile {
    position: relative;
    background: #fff5f5;
    border: 1px solid #ffb3b3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
}

.alerta-profile .profile-alert-link {
    color: #b42318 !important;

    text-decoration: none;
    font-weight: 500;
}

.location-navbar {
    position: relative;
    flex-shrink: 0;
    padding: 10px;
    z-index: 99999;
}

.location-navbar .bi-chevron-down {
    color: black;

}

.location-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}


.location-link>i:first-child {
    font-size: 22px;
    color: #e65100;
}


.location-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}


.location-text small {
    font-size: 11px;
    color: #777;
}

.location-label {
    font-size: 11px;
    color: #777;
}

.location-city {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}


.location-detail {
    font-size: 11px;
    color: #777;
}


/* Dropdown */

.location-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;

    width: 260px;

    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border: 1px solid rgba(255, 255, 255, .45);

    border-radius: 18px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .7);

    overflow: hidden;

    display: none;
     z-index: 9999;
}


.location-dropdown.active {
    display: block;
}


.location-option {

    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 0;
    background: none;

    padding: 12px;

    border-radius: 12px;

    font-size: 14px;

    color: #333;

    transition: .2s;

}


.location-option:hover {

    background: #f5f5f5;

}


.location-option i {

    font-size: 18px;
    color: #e65100;

}

@media (max-width: 767px) {

    .location-label {
        display: none;
    }

    .location-city {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
    }

    .location-detail {
        font-size: 11px;
        color: rgba(255, 255, 255, .8);
    }

    .location-link>i:first-child {
        color: #fff;
    }

    .location-link>i:last-child {
        color: rgba(255, 255, 255, .8);
    }


    .location-dropdown.active {
        display:block !important;
        position:absolute;
        top:55px;
        left:0;
        z-index:99999;
    }

}

.menu-side-left,
.menu-side-right {
    width: 400px;
    flex-shrink: 0;
}

.category-scroll-wrapper {
    flex: 1;
}

.menu-side-left {
    display: flex;
    justify-content: flex-start;
}

.menu-side-right {
    display: flex;
    justify-content: flex-end;
}

.location-mobile-wrapper {
    padding: 8px 12px;
}

/* Footer */
footer a {
    transition: 0.2s ease;
}

footer a:hover {
    color: var(--brand-primary);
}

/* Links */
a {
    color: var(--brand-primary);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--brand-dark);
}

/* ===========================
   AUTH (Login / Register)
=========================== */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    margin-top: 150px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 40px 45px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: 0.2s ease;
}

.auth-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.auth-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.auth-terms {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 25px;
}

.form-auth {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    transition: 0.2s ease;
}

.form-auth:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
}

.btn-auth {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.auth-link {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--brand-dark);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 2;
    color: #adb5bd;
    font-size: 14px;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.input-code {
    letter-spacing: 8px;
    height: 56px;
    border: 1px solid var(--brand-grey);
}

.input-code:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.15rem rgba(230, 81, 0, 0.25);
}

/* Dropdown usuario */
.dropdown-menu {
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 2000 !important;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    transition: 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-toggle::after {
    display: none;
    /* ocultamos flecha default */
}

/* Sidebar activo */

/* --- BOTON MERCADO PAGO */

.btn-mp {
    background: linear-gradient(to bottom, #FFE600, #f5d800);
    color: #2d2d2d;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 20px;
    font-size: small;
    box-shadow:
        0 4px 0 #d4b800,
        /* borde inferior tipo físico */
        0 6px 18px rgba(204, 170, 0, 0.25);

    transition: all .15s ease;
    margin: 5px 0px;
}

.btn-mp:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #d4b800,
        0 12px 24px rgba(204, 170, 0, 0.35);
}

.btn-mp:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #d4b800,
        0 4px 10px rgba(204, 170, 0, 0.2);
}

.list-group-item {
    font-weight: 500;
    padding: 12px 20px;
    border: none;
    /* quitamos bordes */
    border-radius: 0;
    /* sin borde redondeado lateral */
    transition: all 0.2s ease;
    background-color: transparent;
    color: #000;
}

.list-group-item:hover {
    background-color: var(--brand-grey);
    color: #000;
}

.list-group-item.active {
    background-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}

/* Botones dentro del panel */
.btn-dark {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-dark:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Mensajes de éxito y error opcionales */
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* Badges de notificaciones y carrito */
.badge-notification {
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}

/* ============================= */
/* ACCORDION BRAND OVERRIDE */
/* ============================= */

.accordion {

    /* Estado cerrado */
    --bs-accordion-btn-bg: var(--brand-bg);
    --bs-accordion-btn-color: var(--brand-primary);

    /* Estado abierto */
    --bs-accordion-active-bg: var(--brand-primary);
    --bs-accordion-active-color: #ffffff;

    /* Borde */
    --bs-accordion-border-color: var(--brand-grey);

    /* Quitar glow celeste */
    --bs-accordion-btn-focus-box-shadow: none;
}

/* Hover */
.accordion-button:hover {
    background-color: var(--brand-light);
    color: #000;
}

/* Flecha */
.accordion-button::after {
    filter: brightness(0.7);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.menu-mobile {
    margin-top: 90px
}


/* POPUP FALTAN DATOS */
/* Bootstrap modal background */

/* Card */
/* Card modal glass */
.cp-modal {

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 120, 30, 0.95), rgba(230, 60, 0, .85));
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 1px rgba(255, 255, 255, .25);
    color: white;

}

.cp-modal::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(120deg,
            rgba(255, 255, 255, .25),
            transparent 40%);

    pointer-events: none;
}

/* Body */
.cp-modal .modal-body {

    padding: 45px 38px 35px;

}


/* Fondo detrás del modal */
.modal-backdrop.show {

    background-color: rgba(0, 0, 0, .35);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

}



/* pequeño detalle superior */
.cp-modal-icon {

    width: 48px;
    height: 48px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .18);

    display: flex;
    align-items: center;
    justify-content: center;

}


.cp-modal-icon span {

    width: 12px;
    height: 12px;

    background: white;

    border-radius: 50%;

    box-shadow:
        0 0 18px white;

}



/* título */

.cp-title {

    font-size: 32px;

    font-weight: 700;

    letter-spacing: -.5px;

    margin-bottom: 15px;

}



/* descripción */

.cp-text {

    font-size: 17px;

    line-height: 1.5;

    color: rgba(255, 255, 255, .9);

    margin-bottom: 30px;

}



/* botón principal */

.cp-btn-primary {

    height: 52px;

    border-radius: 16px;

    border: 0;

    background: white;

    color: #f45b00;

    font-size: 17px;

    font-weight: 700;

    transition: .25s;

    display: flex;
    align-items: center;
    justify-content: center;

}


.cp-btn-primary:hover {

    background: #fff;
    color: #f45b00;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .25);

}



/* MercadoPago */

.cp-btn-secondary {


    height: 52px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .15);

    border:
        1px solid rgba(255, 255, 255, .35);


    color: white;

    font-size: 17px;

    font-weight: 600;

    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;

}


.cp-btn-secondary:hover {

    background:
        rgba(255, 255, 255, .25);

    color: white;

}

.mp-callout {
    position: relative;
    background: #fff5f5;
    border: 1px solid #ffb3b3;
    color: #b42318;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
}

/* Flecha que apunta al botón  de MP en Mi Cuenta*/
.mp-callout::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #ffb3b3 transparent;
}

.mp-callout::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 41px;
    border-width: 0 9px 9px 9px;
    border-style: solid;
    border-color: transparent transparent #fff5f5 transparent;
}

/* link */

.cp-later {

    color: white;

    opacity: .85;

    font-size: 15px;

}


.cp-later:hover {

    opacity: 1;

    color: white;

}

.step-arrow {
    /* width: 35px; */
    /* height: 35px; */
    margin: 0 auto;
    /* border-radius: 50%; */
    /* background: #f3f4f6; */
    color: white;
    display: flex;
    /* align-items: end; */
    justify-content: space-around;
    font-size: 25px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, .08); */
}

/* ===========================
   MOBILE MENU BRAND STYLE
=========================== */

.offcanvas {
    background-color: var(--brand-bg);
    z-index: 2000 !important;
}

.offcanvas-header {
    background-color: var(--brand-primary);
    color: #fff;
    border-bottom: none;
}

.offcanvas-header h5 {
    color: #fff;
}

.offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

.offcanvas-body {
    padding: 20px;
}

.offcanvas-body .border-bottom {
    border-color: var(--brand-grey) !important;
}

.offcanvas-body a {
    color: #000;
    text-decoration: none;
    transition: 0.2s ease;
}

.offcanvas.show {
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.offcanvas-body a:hover {
    color: var(--brand-primary);
}

.mobile-categories>div {
    padding: 10px 0;
    border-bottom: 1px solid var(--brand-grey);
}

.mobile-categories>div:last-child {
    border-bottom: none;
}

.mobile-categories>div>a {
    font-size: 15px;
}

.mobile-categories .ps-3 a {
    font-size: 13px;
    color: #6c757d;
}

.mobile-categories .ps-3 a:hover {
    color: var(--brand-primary);
}

/* Offcanvas por encima del header fijo */

.offcanvas-backdrop {
    z-index: 1990 !important;
}

/* Paginacion categorias */
.pagination .page-link {
    color: var(--brand-primary);
}

.pagination .active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.stars i {
    font-size: 11px;
    padding-bottom: 7px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px
    }

    .auth-wrapper {
        margin-top: 80px;
    }

    .btn-acciones {
        margin: 3px;
    }

    .product-title {
        font-size: 14px;
        min-height: 36px;
    }

    .product-img {
        height: 160px;
    }


    .btn-publish-lg {
        width: 100%;
        margin-top: 10px;
    }

    .search-group {
        margin-top: 15px;
    }

    .search-input {
        height: 48px;
        font-size: 16px;
    }

    .search-group .btn {
        display: none !important;
    }

    .btn-publish {
        margin-top: 10px;
    }

    .category-container {
        display: none;
    }

    .padding-header {
        padding-top: 50px !important;
    }

    .logo {
        max-height: 24px;
    }

    .col-12.col-md-6 {
        order: 3;
    }

    .btn-link {
        padding: 4px;
    }

    .fa-lg {
        font-size: 18px;
    }

}

@media (max-width: 991px) {
    .sidebar-mobile {
        padding-top: 20px;
        /* ajustá según altura real del header */
    }

    .padding-header h1 {
        padding-top: 45px;
    }
}