/* =====================================================
   VARIABLES GENERALES
===================================================== */
:root {
    --negro: #111111;
    --negro-suave: #1b1b1b;
    --dorado: #c2a17d;
    --dorado-hover: #b18d67;
    --blanco: #ffffff;
    --beige: #e8e2d6;
    --fondo-claro: #f7f4ef;
    --texto-suave: rgba(255, 255, 255, 0.82);
    --borde-suave: rgba(194, 161, 125, 0.18);
    --sombra-suave: 0 16px 38px rgba(0, 0, 0, 0.07);
    --sombra-media: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   BASE GENERAL
===================================================== */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--fondo-claro);
    margin: 0;
    padding: 0;
}

.flexgrow {
    flex-grow: 1;
}

/* =====================================================
   NAVBAR
===================================================== */

.inmobiliaria-navbar {
    background:
        linear-gradient(
            90deg,
            var(--negro) 0%,
            var(--negro-suave) 50%,
            var(--negro) 100%
        );
    border-bottom: 1px solid var(--borde-suave);
    padding: 0.55rem 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

/* Marca */

.inmobiliaria-brand {
    min-width: max-content;
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-title {
    margin: 0;
    color: var(--blanco);
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
}

.brand-subtitle {
    margin-top: 0.24rem;
    color: var(--dorado);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

/* Enlaces principales */

.inmobiliaria-navbar .navbar-nav .nav-link {
    position: relative;
    padding: 0.55rem 0.75rem;
    color: var(--texto-suave);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.inmobiliaria-navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: 0.25rem;
    left: 0.75rem;
    height: 1px;
    background-color: var(--dorado);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.inmobiliaria-navbar .navbar-nav .nav-link:hover,
.inmobiliaria-navbar .navbar-nav .nav-link:focus,
.inmobiliaria-navbar .navbar-nav .nav-link.active {
    color: var(--dorado);
}

.inmobiliaria-navbar .navbar-nav .nav-link:hover::after,
.inmobiliaria-navbar .navbar-nav .nav-link:focus::after,
.inmobiliaria-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Botón dorado */

.btn-contacto-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.58rem 1rem;
    background-color: var(--dorado);
    color: var(--blanco);
    border: 1px solid var(--dorado);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.btn-contacto-nav:hover,
.btn-contacto-nav:focus {
    background-color: transparent;
    color: var(--dorado);
    border-color: var(--dorado);
    transform: translateY(-1px);
}

/* Toggler */

.custom-toggler {
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(194, 161, 125, 0.4);
    border-radius: 10px;
    box-shadow: none !important;
}

.custom-toggler:hover,
.custom-toggler:focus {
    border-color: var(--dorado);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* =====================================================
   NAVBAR ESCRITORIO
===================================================== */

.navbar-desktop-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

.navbar-desktop-menu .nav-item {
    width: auto;
    flex: 0 0 auto;
}

.navbar-desktop-menu .nav-link {
    width: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.85rem;
    white-space: nowrap;
}

.navbar-desktop-menu form {
    width: auto;
    margin: 0;
}

/* =====================================================
   MENÚ DEL USUARIO — ESCRITORIO
===================================================== */

.user-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.38rem 0.72rem;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.28);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.user-menu-button:hover,
.user-menu-button:focus,
.user-menu-button.show {
    background-color: rgba(194, 161, 125, 0.12);
    color: var(--blanco);
    border-color: var(--dorado);
    transform: translateY(-1px);
}

.user-menu-button::after {
    margin-left: 0.1rem;
    color: var(--dorado);
}

.user-menu-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #242424;
    color: var(--dorado);
    border: 2px solid rgba(194, 161, 125, 0.7);
    border-radius: 50%;
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.user-menu-avatar i {
    font-size: 1rem;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.user-menu-info strong {
    max-width: 120px;
    overflow: hidden;
    color: var(--blanco);
    font-size: 0.76rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-info small {
    color: var(--dorado);
    font-size: 0.62rem;
}

/* Dropdown */

.user-dropdown-menu {
    width: min(310px, calc(100vw - 2rem));
    padding: 0.7rem;
    background-color: #181818;
    border: 1px solid rgba(194, 161, 125, 0.26);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);

    position: absolute !important;
    top: calc(100% + 0.65rem) !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 1055;
}
.navbar-desktop-menu .dropdown {
    position: relative;
}

.inmobiliaria-navbar,
.inmobiliaria-navbar .container {
    overflow: visible;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #242424;
    color: var(--dorado);
    border: 2px solid rgba(194, 161, 125, 0.7);
    border-radius: 50%;
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-header > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.user-dropdown-header strong {
    color: var(--blanco);
    font-size: 0.84rem;
}

.user-dropdown-header small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu .dropdown-divider {
    margin: 0.4rem 0;
    border-color: rgba(194, 161, 125, 0.18);
}

.user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem;
    background-color: transparent;
    color: var(--blanco);
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.user-dropdown-item:hover,
.user-dropdown-item:focus,
.user-dropdown-item.active {
    background-color: rgba(194, 161, 125, 0.12);
    color: var(--blanco);
    transform: translateX(2px);
}

.user-dropdown-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(194, 161, 125, 0.13);
    color: var(--dorado);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 10px;
}

.user-dropdown-item > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-dropdown-item strong {
    color: inherit;
    font-size: 0.79rem;
}

.user-dropdown-item small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.67rem;
}

.user-dropdown-logout {
    color: #f0a4aa;
}

.user-dropdown-logout .user-dropdown-icon {
    background-color: rgba(176, 42, 55, 0.12);
    color: #e36b76;
    border-color: rgba(176, 42, 55, 0.24);
}

.user-dropdown-logout:hover,
.user-dropdown-logout:focus {
    background-color: rgba(176, 42, 55, 0.14);
    color: #ffffff;
}

/* =====================================================
   OFFCANVAS MOBILE
===================================================== */

.inmobiliaria-offcanvas {
    width: min(340px, 88vw);
    background:
        linear-gradient(
            160deg,
            #111111 0%,
            #1b1b1b 100%
        );
    color: var(--blanco);
    border-left: 1px solid rgba(201, 163, 104, 0.35);
}

.inmobiliaria-offcanvas .offcanvas-header {
    padding: 1.35rem;
    border-bottom: 1px solid rgba(201, 163, 104, 0.25);
}

.inmobiliaria-offcanvas .offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.offcanvas-brand-title {
    color: var(--blanco);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.offcanvas-brand-subtitle {
    margin-top: 0.2rem;
    color: var(--dorado);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mobile-menu-list {
    width: 100%;
    gap: 0.3rem;
}

.mobile-menu-list .nav-item {
    width: 100%;
}

.inmobiliaria-offcanvas .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        color 0.2s ease,
        padding-left 0.2s ease,
        border-color 0.2s ease;
}

.inmobiliaria-offcanvas .nav-link:hover,
.inmobiliaria-offcanvas .nav-link.active {
    color: var(--dorado);
    padding-left: 1rem;
    border-bottom-color: var(--dorado);
}

/* Cuenta mobile */

.mobile-menu-account {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 163, 104, 0.25);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 14px;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #242424;
    color: var(--dorado);
    border: 2px solid rgba(194, 161, 125, 0.7);
    border-radius: 50%;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mobile-user-info strong {
    color: var(--blanco);
    font-size: 0.82rem;
}

.mobile-user-info small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-account-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        padding-left 0.22s ease;
}

.mobile-account-link i {
    color: var(--dorado);
}

.mobile-account-link:hover,
.mobile-account-link.active {
    padding-left: 1rem;
    background-color: rgba(194, 161, 125, 0.08);
    color: var(--dorado);
}

.inmobiliaria-offcanvas .btn-contacto-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* =====================================================
   HERO HOME
===================================================== */
.hero,
.hero-slide {
    position: relative;
    height: 58vh;
    min-height: 460px;
}

.hero {
    color: var(--blanco);
    overflow: hidden;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-1 { background-image: url('../img/hero1.jpg'); }
.hero-2 { background-image: url('../img/hero2.jpg'); }
.hero-3 { background-image: url('../img/hero3.jpg'); }
.hero-4 { background-image: url('../img/hero4.jpg'); }

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.58) 45%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 1.5rem;
}

.hero-subtitle,
.section-kicker,
.cta-kicker,
.section-label {
    display: inline-block;
    color: var(--dorado);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.section-kicker,
.section-label {
    margin-bottom: 0.75rem;
}

.page-hero .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    color: var(--blanco);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-title span {
    color: var(--dorado);
}

.hero-text {
    max-width: 460px;
    margin: 0 0 1.6rem;
    color: var(--texto-suave);
    font-size: 1rem;
    line-height: 1.7;
}

.hero .carousel-indicators {
    z-index: 3;
    bottom: 1.3rem;
    margin-bottom: 0;
}

.hero .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--blanco);
    opacity: 0.6;
    border: 0;
    margin: 0 0.45rem;
}

.hero .carousel-indicators .active {
    background-color: var(--dorado);
    opacity: 1;
}
.service-card{
    background: #161616;
    border: 1px solid rgba(193, 154, 107, .20);
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.service-card:hover{
    transform: translateY(-8px);
    border-color: var(--brand-color);
    box-shadow: 0 18px 40px rgba(0,0,0,.30);
}

.service-icon{
    font-size: 2.7rem;
    color: var(--dorado);
    margin-bottom: 1rem;
}

.service-card h3{
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p{
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 0;
}

/* =====================================================
   HERO PÁGINAS INTERNAS
===================================================== */
.page-hero {
    position: relative;
    background-image: url('/img/hero3.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0 80px;
    color: var(--blanco);
    ;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0.10) 100%
    );
}

.page-hero .container,
.page-hero .container-xxl {
    position: relative;
    z-index: 2;
}
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 600;
    max-width: 620px;
    margin: 0.6rem 0;
}

.page-text {
    font-size: 0.95rem;
    color: var(--texto-suave);
    max-width: 420px;
    line-height: 1.6;
    margin-top: 0.6rem;
}

/* =====================================================
   BOTONES GENERALES
===================================================== */
.btn-hero,
.btn-cta,
.btn-contacto-form,
.btn-gold,
.property-btn {
    background-color: var(--dorado);
    color: var(--blanco);
    border: 1px solid var(--dorado);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero,
.property-btn {
    padding: 0.78rem 1.4rem;
    border-radius: 8px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 6px;
}

.btn-contacto-form {
    padding: 0.82rem 1.4rem;
    border-radius: 8px;
}

.btn-gold {
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.btn-hero:hover,
.btn-hero:focus,
.btn-cta:hover,
.btn-contacto-form:hover {
    background-color: transparent;
    color: var(--dorado);
    border-color: var(--dorado);
}

.btn-gold:hover,
.property-btn:hover {
    background-color: var(--negro);
    border-color: var(--negro);
    color: var(--blanco);
}

.btn-contacto-width {
    min-width: 220px;
    justify-content: center;
}

/* =====================================================
   TEXTOS Y TÍTULOS GENERALES
===================================================== */
.titulo-seccion {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
}

.section-description {
    color: #7d7d7d;
    font-size: 0.95rem;
    max-width: 560px;
}

.link-ver {
    color: var(--dorado);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.link-ver:hover {
    color: var(--dorado-hover);
}

/* =====================================================
   SOBRE NOSOTROS / SECCIONES INTERNAS
===================================================== */
.sobre,
.nosotros-section,
.valores-section,
.contacto-section {
    background-color: var(--fondo-claro);
    padding: 80px 0;
}

.sobre {
    margin-top: 0;
}

.sobre-card,
.contacto-card,
.contacto-form-box,
.valor-card {
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.14);
    box-shadow: var(--sombra-suave);
}

.sobre-card {
    border-radius: 22px;
    padding: 3rem;
}

.sobre-img,
.nosotros-img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.sobre-img {
    min-height: 320px;
    max-height: 420px;
}

.nosotros-img {
    max-height: 470px;
}

.sobre .titulo-seccion {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--negro);
}

.sobre p,
.nosotros-section p {
    color: #4b4b4b;
    line-height: 1.75;
    font-size: 0.98rem;
}

.frase-cierre {
    color: var(--negro) !important;
    font-weight: 700;
}

/* =====================================================
   CTA GENERAL
===================================================== */
.cta {
    background: linear-gradient(180deg, #0f0f0f 0%, #000000 100%);
    color: var(--blanco);
    padding: 60px 0;
}

.cta-box {
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 18px;
    padding: 3rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
}

.cta-title {
    font-family: 'Playfair Display', serif;
    color: var(--blanco);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* =====================================================
   VALORES
===================================================== */
.valor-card {
    height: 100%;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
}

.valor-card i {
    color: var(--dorado);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.valor-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.valor-card p {
    color: #5b5b5b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =====================================================
   CONTACTO
===================================================== */
.contacto-card,
.contacto-form-box {
    border-radius: 20px;
    padding: 2.2rem;
    min-height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contacto-lista li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(194, 161, 125, 0.14);
}

.contacto-lista li:last-child {
    border-bottom: 0;
}

.contacto-lista i {
    color: var(--dorado);
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

.contacto-lista strong {
    display: block;
    color: var(--negro);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.contacto-lista span {
    color: #666;
    font-size: 0.9rem;
}

.contacto-form-box .titulo-seccion,
.contacto-card .titulo-seccion {
    font-size: 1.8rem;
}

.contacto-form-box .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 0.35rem;
}

.contacto-form-box .form-control {
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 10px;
    padding: 0.78rem 0.95rem;
    font-size: 0.9rem;
}

.contacto-form-box .form-control:focus {
    border-color: var(--dorado);
    box-shadow: 0 0 0 0.16rem rgba(194, 161, 125, 0.16);
}

/* =====================================================
   PROPIEDADES / LISTADO / DETALLE / ADMIN
===================================================== */

.property-detail,
.propiedades-admin-section {
    position: relative;
    background: var(--fondo-claro);
    font-family: 'Montserrat', sans-serif;
}

.propiedades-admin-section {
    min-height: 70vh;
    padding-bottom: 7rem !important;
}
/* =====================================================
   COMPONENTES COMPARTIDOS
===================================================== */

.property-public-card,
.property-card,
.property-img-box,
.property-public-empty {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.property-title,
.property-subtitle,
.property-public-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.15;
}

.property-location,
.property-short,
.property-text,
.property-public-location,
.property-public-text,
.property-list span,
.property-image-description {
    color: rgba(255,255,255,.70);
}

/* =====================================================
   LISTADO PÚBLICO
===================================================== */

.property-public-card {
    background: #181818;
    border: 1px solid rgba(194,161,125,.22);
    transition: .3s ease;
}

.property-public-card:hover {
    transform: translateY(-6px);
    border-color: var(--dorado);
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

.property-public-img-link {
    position: relative;
    display: block;
    width: 100%;
    height: 235px;
    overflow: hidden;
    text-decoration: none;
}

.property-public-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.property-public-card:hover .property-public-img {
    transform: scale(1.04);
}

.property-public-badge,
.property-tag,
.property-label,
.property-status,
.property-featured {
    display: inline-block;
    padding: .48rem .85rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.property-public-badge,
.property-tag,
.property-label,
.property-featured{
    background: var(--dorado);
    color: #fff;
}

.property-status {
    background: #f8f5f1;
    color: var(--dorado);
    border: 1px solid var(--dorado);
    font-weight: 800;
}

.property-public-badge{
    position:absolute;
    top:1rem;
    left:1rem;
}

.property-public-body{
    padding:1.35rem;
}

.property-public-title{
    color:#fff;
    font-size:1.45rem;
    margin-bottom:.7rem;
}

.property-public-price{
    color:var(--dorado);
    font-size:1.3rem;
    font-weight:800;
    margin-bottom:.8rem;
}

.property-public-text{
    line-height:1.6;
    margin-bottom:1rem;
}

.property-public-features{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:.7rem;
    padding-top:1rem;
    border-top:1px solid rgba(255,255,255,.08);
}

.property-public-features span{
    color:#fff;
    font-size:.86rem;
    font-weight:600;
}

.property-public-features i{
    color:var(--dorado);
    margin-right:.35rem;
}

.property-public-empty{
    background:#181818;
    color:#fff;
    padding:3rem;
}

/* =====================================================
   DESTACADAS
===================================================== */

.destacadas-section{
    padding:2.5rem 0;
}

.destacadas-section .section-header{
    margin-bottom:1.5rem;
}

.destacadas-section .titulo-seccion{
    font-size:clamp(2rem,7vw,2.6rem);
}

.destacadas-section .section-description{
    max-width:520px;
}

.destacadas-section .link-ver{
    white-space:nowrap;
}

#destacadasCarousel .carousel-item{
    padding-bottom:1rem;
}

#destacadasCarousel .carousel-control-prev,
#destacadasCarousel .carousel-control-next{
    width:38px;
    height:38px;
    top:42%;

    border-radius:50%;
}

#destacadasCarousel .carousel-control-prev{
    left:.25rem;
}

#destacadasCarousel .carousel-control-next{
    right:.25rem;
}

/* =====================================================
   DETALLE
===================================================== */

.property-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--dorado);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.property-back:hover,
.property-back:focus {
    color: var(--negro);
    transform: translateX(-3px);
}

/* =====================================================
   GALERÍA
===================================================== */

.property-gallery {
    width: 100%;
}

.property-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--negro-suave);
    border: 1px solid rgba(194, 161, 125, 0.28);
    border-radius: 18px;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.property-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        opacity 0.25s ease,
        transform 0.45s ease;
}

.property-img-box:hover .property-img {
    transform: scale(1.025);
}

/* =====================================================
   MINIATURAS
===================================================== */

.property-thumbnails {
    margin-top: 0.85rem;
}

.property-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    padding: 0;
    overflow: hidden;
    background: var(--negro-suave);
    border: 2px solid transparent !important;
    border-radius: 11px;
    cursor: pointer;
    opacity: 0.72;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.property-thumbnail .ratio {
    width: 100%;
    height: 100%;
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.property-thumbnail:hover {
    opacity: 1;
    border-color: rgba(194, 161, 125, 0.7) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.property-thumbnail:hover img {
    transform: scale(1.06);
}

.property-thumbnail.is-active {
    opacity: 1;
    border: 3px solid var(--dorado) !important;
    box-shadow:
        0 0 0 4px rgba(194, 161, 125, 0.17),
        0 12px 26px rgba(0, 0, 0, 0.18);
}

.property-thumbnail:focus {
    box-shadow: none;
}

.property-thumbnail:focus-visible {
    opacity: 1;
    outline: 3px solid rgba(194, 161, 125, 0.4);
    outline-offset: 3px;
}

/* =====================================================
   TARJETAS
===================================================== */

.property-card {
    background:
        linear-gradient(
            145deg,
            #191919 0%,
            #151515 100%
        );
    border: 1px solid rgba(194, 161, 125, 0.24);
    border-radius: 18px;
    padding: clamp(1.25rem, 2vw, 2rem);
    overflow: hidden;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

/* =====================================================
   ETIQUETAS
===================================================== */

.property-tag,
.property-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.48rem 0.85rem;
    background: var(--dorado);
    color: var(--blanco);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

/* =====================================================
   TÍTULOS Y TEXTOS
===================================================== */

.property-title,
.property-subtitle {
    font-family: 'Playfair Display', serif;
    color: var(--blanco);
    font-weight: 700;
    line-height: 1.12;
}

.property-title {
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    letter-spacing: -0.015em;
}

.property-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.property-location {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.5;
}

.property-location i {
    color: var(--dorado);
}

.property-price {
    color: var(--dorado);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.property-short {
    color: rgba(255, 255, 255, 0.77);
    font-size: 0.93rem;
    line-height: 1.65;
}

.property-text,
.property-image-description {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.93rem;
    line-height: 1.85;
}

/* =====================================================
   CARACTERÍSTICAS
===================================================== */

.property-icon {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0.65rem;
    background:
        linear-gradient(
            145deg,
            #242424 0%,
            #202020 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--blanco);
    font-size: clamp(0.76rem, 1.5vw, 0.85rem);
    font-weight: 700;
    text-align: center;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.property-icon:hover {
    border-color: rgba(194, 161, 125, 0.48);
    transform: translateY(-1px);
}

.property-icon i {
    color: var(--dorado);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.property-icon span {
    line-height: 1.2;
}

/* =====================================================
   FICHA TÉCNICA
===================================================== */

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

.property-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.property-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.property-list span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.property-list strong {
    color: var(--blanco);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

/* =====================================================
   BOTÓN WHATSAPP
===================================================== */

.property-card .btn-hero {
    min-height: 48px;
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(194, 161, 125, 0.18);
}

.property-card .btn-hero:hover,
.property-card .btn-hero:focus {
    box-shadow: none;
}
/* =====================================================
   PANEL DE ADMINISTRACIÓN DE PROPIEDADES
===================================================== */

/* =====================================================
   TABLA DE ESCRITORIO
===================================================== */

.admin-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    background-color: var(--blanco);
    table-layout: auto;
}

/* Encabezado */

.admin-table thead th {
    padding: 1rem 1.1rem !important;
    background:
        linear-gradient(
            180deg,
            #191919 0%,
            #111111 100%
        ) !important;
    color: var(--blanco) !important;
    border: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Filas */

.admin-table tbody td {
    padding: 1rem 1.1rem !important;
    color: #3f3f3f;
    border-color: rgba(194, 161, 125, 0.16);
    vertical-align: middle;
}

.admin-table tbody tr {
    background-color: var(--blanco);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-table tbody tr:hover {
    background-color: #fffaf4;
    box-shadow: inset 4px 0 0 var(--dorado);
}

/* =====================================================
   PROPIEDAD: IMAGEN Y DATOS
===================================================== */

.admin-property-image {
    display: block;
    width: 78px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--negro-suave);
    border: 1px solid rgba(194, 161, 125, 0.24);
    border-radius: 10px;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
}

.admin-property-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.admin-property-image:hover img {
    transform: scale(1.06);
}

.admin-property-info {
    min-width: 180px;
}

.admin-property-title {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--negro);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.25s ease;
}

.admin-property-title:hover,
.admin-property-title:focus {
    color: var(--dorado-hover);
}

.admin-property-meta {
    display: block;
    color: #777777;
    font-size: 0.74rem;
    line-height: 1.4;
    white-space: nowrap;
}

.admin-property-meta i {
    color: var(--dorado);
}

/* =====================================================
   OPERACIÓN, PRECIO Y UBICACIÓN
===================================================== */

.admin-operation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.72rem;
    background-color: rgba(194, 161, 125, 0.14);
    color: #8f6946;
    border: 1px solid rgba(194, 161, 125, 0.34);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-property-price {
    color: var(--negro);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-location {
    display: flex;
    min-width: 135px;
    align-items: flex-start;
    gap: 0.4rem;
    color: #5d5d5d;
    font-size: 0.8rem;
    line-height: 1.45;
}

.admin-location i {
    flex-shrink: 0;
    color: var(--dorado);
    margin-top: 0.08rem;
}

/* =====================================================
   ESTADOS
===================================================== */

.badge-disponible {
    background-color: #f7f3ed !important;
    color: #95704d !important;
    border: 1px solid var(--dorado);
    font-size: 0.7rem;
    font-weight: 800;
}

.badge-reservada {
    background-color: #8b1e1e !important;
    color: var(--blanco) !important;
    border: 1px solid #a93636;
    font-size: 0.7rem;
    font-weight: 800;
}

/* Estados futuros */

.badge-vendida,
.badge-alquilada {
    background-color: #343a40 !important;
    color: var(--blanco) !important;
    border: 1px solid #343a40;
    font-size: 0.7rem;
    font-weight: 800;
}

.badge-inactiva {
    background-color: #e9ecef !important;
    color: #636363 !important;
    border: 1px solid #ced4da;
    font-size: 0.7rem;
    font-weight: 800;
}

/* =====================================================
   BOTONES DESCARGAR Y COMPARTIR
===================================================== */

.admin-social-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.72rem;
    background-color: var(--fondo-claro);
    color: var(--negro);
    border: 1px solid rgba(194, 161, 125, 0.42);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-social-button i {
    color: var(--dorado);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.admin-social-button:hover,
.admin-social-button:focus {
    background-color: var(--negro);
    color: var(--blanco);
    border-color: var(--negro);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.admin-social-button:hover i,
.admin-social-button:focus i {
    color: var(--dorado);
}

/* =====================================================
   MENÚ DE ACCIONES ADMINISTRATIVAS
===================================================== */
.admin-table-card {
    position: relative;
    overflow: visible !important;
    background-color: var(--blanco);
    border-radius: 1rem;
}

.admin-table-card .table,
.admin-table-card tbody,
.admin-table-card tr,
.admin-table-card td {
    overflow: visible !important;
}

/* Botón principal */

.admin-manage-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background-color: var(--negro);
    color: var(--blanco);
    border: 1px solid var(--negro);
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-manage-button:hover,
.admin-manage-button:focus,
.admin-manage-button.show {
    background-color: var(--dorado);
    color: var(--blanco);
    border-color: var(--dorado);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.16);
}

.admin-manage-button::after {
    margin-left: 0.15rem;
}

/* Contenedor del menú */

.admin-actions-menu {
    width: min(290px, calc(100vw - 2rem));
    max-height: min(470px, calc(100vh - 2rem));
    overflow-y: auto;
    padding: 0.65rem;
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.24) !important;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
    z-index: 1090;
}

/* Encabezado */

.admin-actions-title {
    padding: 0.45rem 0.65rem 0.7rem;
    color: #8b735c;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Cada acción */

.admin-actions-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem;
    background-color: transparent;
    color: var(--negro);
    border: 0;
    border-radius: 10px;
    text-align: left;
    text-decoration: none;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.admin-actions-item:hover,
.admin-actions-item:focus {
    background-color: var(--fondo-claro);
    color: var(--negro);
    transform: translateX(2px);
}

.admin-actions-item > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.admin-actions-item strong {
    color: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.25;
}

.admin-actions-item small {
    color: #7b7b7b;
    font-size: 0.68rem;
    line-height: 1.3;
}

/* Íconos */

.admin-actions-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(194, 161, 125, 0.13);
    color: var(--dorado-hover);
    border: 1px solid rgba(194, 161, 125, 0.25);
    border-radius: 10px;
    font-size: 0.9rem;
}

.admin-actions-item:hover .admin-actions-icon,
.admin-actions-item:focus .admin-actions-icon {
    background-color: var(--negro);
    color: var(--dorado);
    border-color: var(--negro);
}

/* Separador */

.admin-actions-menu .dropdown-divider {
    margin: 0.45rem 0;
    border-color: rgba(194, 161, 125, 0.2);
}

/* Eliminar */

.admin-actions-danger {
    color: #b02a37;
}

.admin-actions-danger .admin-actions-icon {
    background-color: rgba(176, 42, 55, 0.08);
    color: #b02a37;
    border-color: rgba(176, 42, 55, 0.18);
}

.admin-actions-danger:hover,
.admin-actions-danger:focus {
    background-color: rgba(176, 42, 55, 0.08);
    color: #b02a37;
}

.admin-actions-danger:hover .admin-actions-icon,
.admin-actions-danger:focus .admin-actions-icon {
    background-color: #b02a37;
    color: var(--blanco);
    border-color: #b02a37;
}

/* =====================================================
   TARJETAS ADMIN: TABLET Y CELULAR
===================================================== */

.admin-property-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 18px;
    box-shadow: var(--sombra-suave);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.admin-property-card:hover {
    border-color: rgba(194, 161, 125, 0.55);
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.admin-property-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--negro-suave);
}

.admin-property-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.admin-property-card:hover .admin-property-card-image img {
    transform: scale(1.04);
}

.admin-property-card-operation {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    background-color: var(--dorado);
    color: var(--blanco);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-property-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.15rem, 3vw, 1.5rem);
}

.admin-property-card-title {
    margin-bottom: 0.45rem;
    font-family: 'Playfair Display', serif;
    color: var(--negro);
    font-size: clamp(1.25rem, 4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
}

.admin-property-card-location {
    margin: 0;
    color: #707070;
    font-size: 0.8rem;
    line-height: 1.5;
}

.admin-property-card-location i {
    color: var(--dorado);
}

.admin-property-card-price {
    margin-bottom: 1rem;
    color: var(--dorado-hover);
    font-size: clamp(1.15rem, 3vw, 1.3rem);
    font-weight: 800;
}

/* Características */

.admin-property-feature {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem;
    background-color: var(--fondo-claro);
    color: #444444;
    border: 1px solid rgba(194, 161, 125, 0.22);
    border-radius: 8px;
    font-size: clamp(0.68rem, 2vw, 0.76rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.admin-property-feature i {
    flex-shrink: 0;
    color: var(--dorado);
}

/* Acciones de las tarjetas */

.admin-card-action {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.45rem;
    background-color: transparent;
    color: var(--negro);
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 8px;
    font-size: clamp(0.65rem, 2vw, 0.72rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.admin-card-action i {
    color: var(--dorado);
}

.admin-card-action:hover,
.admin-card-action:focus {
    background-color: var(--negro);
    color: var(--blanco);
    border-color: var(--negro);
}

.admin-card-action:hover i,
.admin-card-action:focus i {
    color: var(--dorado);
}

.admin-card-action-danger {
    color: #b02a37;
    border-color: rgba(176, 42, 55, 0.3);
}

.admin-card-action-danger i {
    color: #b02a37;
}

.admin-card-action-danger:hover,
.admin-card-action-danger:focus {
    background-color: #b02a37;
    color: var(--blanco);
    border-color: #b02a37;
}

.admin-card-action-danger:hover i,
.admin-card-action-danger:focus i {
    color: var(--blanco);
}
/* =====================================================
   VISTA PREVIA RESPONSIVE DEL FLYER
===================================================== */

.property-flyer-preview-area {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 1rem;
    background: linear-gradient(
        145deg,
        #ebe6de 0%,
        #f8f5f0 100%
    );
    border: 1px solid rgba(194, 161, 125, 0.24);
    border-radius: 18px;
}

.property-flyer-preview {
    position: relative;
    width: 430px;
    height: 537.5px;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(194, 161, 125, 0.22);
    border-radius: 14px;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
}

.property-flyer-preview.flyer-preview-post {
    aspect-ratio: 4 / 5;
}

.property-flyer-preview.flyer-preview-story,
.property-flyer-preview.flyer-preview-status {
    max-width: 303px;
    aspect-ratio: 9 / 16;
}
.property-flyer-preview .social-template-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 1080px;
    height: 1350px;
    pointer-events: none;
    transform: scale(
        var(--flyer-preview-scale, 0.398)
    );
    transform-origin: top left;
}

.property-flyer-preview.flyer-preview-story
.social-template-wrapper,
.property-flyer-preview.flyer-preview-status
.social-template-wrapper {
    width: 1080px;
    height: 1920px;
}

.property-flyer-preview .property-social-template {
    transform: none !important;
}
/* =====================================================
   FLYER
===================================================== */

.social-template-wrapper {
    position: relative;
    width: 1080px;
    height: 1350px;
    flex-shrink: 0;
    transform-origin: top left;
}
.property-social-template,
.property-social-template * {
    box-sizing: border-box;
}

.property-social-template {
    position: relative;
    display: flex;
    width: 1080px;
    height: 1350px;
    flex-direction: column;
    overflow: hidden;
    background-color: #111111;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

/* =====================================================
   ENCABEZADO
===================================================== */

.social-flyer-header {
    display: flex;
    width: 100%;
    height: 155px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 48px;
    background: linear-gradient(
        135deg,
        #111111 0%,
        #1b1b1b 100%
    );
    border-bottom: 2px solid rgba(194, 161, 125, 0.28);
}

.social-flyer-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 24px;
}

.social-flyer-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.social-flyer-brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.social-flyer-brand-text strong {
    overflow: hidden;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.social-flyer-brand-text span {
    overflow: hidden;
    color: #c2a17d;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.social-flyer-operation {
    display: inline-flex;
    min-width: 140px;
    min-height: 54px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background-color: #c2a17d;
    color: #ffffff;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
}

/* =====================================================
   IMAGEN PRINCIPAL
===================================================== */

.social-flyer-image-box {
    position: relative;
    width: 100%;
    height: 590px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #1b1b1b;
}

.social-flyer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.social-flyer-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 20%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

.social-flyer-image-caption {
    position: absolute;
    right: 48px;
    bottom: 38px;
    left: 48px;
}

.social-flyer-type {
    display: inline-block;
    margin-bottom: 14px;
    padding: 11px 18px;
    background-color: rgba(194, 161, 125, 0.95);
    color: #ffffff;
    border-radius: 7px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
}

.social-flyer-title {
    display: -webkit-box;
    max-width: 920px;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.04;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* =====================================================
   CONTENIDO
===================================================== */

.social-flyer-content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    padding: 28px 48px;
    background: linear-gradient(
        145deg,
        #191919 0%,
        #111111 100%
    );
}

.social-flyer-main-data {
    display: flex;
    min-height: 55px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.social-flyer-location {
    display: flex;
    max-width: 650px;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
}

.social-flyer-price {
    margin: 0;
    color: #cfae89;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* =====================================================
   CARACTERÍSTICAS
===================================================== */

.social-flyer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.social-flyer-feature {
    display: flex;
    height: 100px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px;
    background-color: #222222;
    border: 1px solid rgba(194, 161, 125, 0.3);
    border-radius: 12px;
}

.social-flyer-feature > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.social-flyer-feature strong {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.social-flyer-feature div span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
}

/* =====================================================
   DESCRIPCIÓN
===================================================== */

.social-flyer-description-box {
    min-height: 112px;
    overflow: hidden;
    padding: 17px 22px;
    background-color: #202020;
    border: 1px solid rgba(194, 161, 125, 0.3);
    border-radius: 12px;
}

.social-flyer-description-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: #cfae89;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.social-flyer-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* =====================================================
   ÍCONOS
===================================================== */

.social-flyer-icon,
.social-flyer-feature-icon,
.social-flyer-description-icon {
    display: block;
    flex-shrink: 0;
    color: #cfae89;
    stroke: currentColor;
    fill: none;
}

.social-flyer-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.3;
}

.social-flyer-feature-icon {
    width: 38px;
    height: 38px;
    stroke-width: 2.2;
}

.social-flyer-description-icon {
    width: 21px;
    height: 21px;
    stroke-width: 2.4;
}

.social-flyer-contact-svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #cfae89;
}

/* =====================================================
   FOOTER
===================================================== */

.social-flyer-footer {
    display: flex;
    width: 100%;
    height: 150px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 48px;
    background-color: #0d0d0d;
    border-top: 2px solid rgba(194, 161, 125, 0.28);
}

.social-flyer-footer-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 18px;
}

.social-flyer-footer-logo {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    object-fit: contain;
}

.social-flyer-footer-brand div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.social-flyer-footer-brand strong {
    overflow: hidden;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-flyer-footer-brand span {
    overflow: hidden;
    color: #c2a17d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.social-flyer-contact {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.social-flyer-contact > span {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* =====================================================
   HISTORIA DE INSTAGRAM Y ESTADO DE WHATSAPP
===================================================== */
.property-social-story,
.property-social-status {
    width: 1080px;
    height: 1920px;
}

.social-template-wrapper:has(
    .property-social-story
),
.social-template-wrapper:has(
    .property-social-status
) {
    width: 1080px;
    height: 1920px;
}

.property-social-story .social-flyer-header,
.property-social-status .social-flyer-header {
    height: 170px;
    padding: 32px 52px;
}

.property-social-story .social-flyer-image-box,
.property-social-status .social-flyer-image-box {
    height: 850px;
}

.property-social-story .social-flyer-content,
.property-social-status .social-flyer-content {
    gap: 32px;
    padding: 46px 52px;
}

.property-social-story .social-flyer-main-data,
.property-social-status .social-flyer-main-data {
    min-height: 65px;
}

.property-social-story .social-flyer-location,
.property-social-status .social-flyer-location {
    font-size: 26px;
}

.property-social-story .social-flyer-price,
.property-social-status .social-flyer-price {
    font-size: 52px;
}

.property-social-story .social-flyer-feature,
.property-social-status .social-flyer-feature {
    height: 125px;
    padding: 20px;
}

.property-social-story .social-flyer-description-box,
.property-social-status .social-flyer-description-box {
    min-height: 160px;
    padding: 25px 28px;
}

.property-social-story .social-flyer-description,
.property-social-status .social-flyer-description {
    font-size: 19px;
    line-height: 1.5;
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.property-social-story .social-flyer-footer,
.property-social-status .social-flyer-footer {
    height: 160px;
    padding: 28px 52px;
}
/* =====================================================
   FORMULARIO PUBLICAR / EDITAR
===================================================== */
.publicar-form .sobre-card {
    max-width: 1050px;
    margin: 0 auto;
}

.publicar-form .titulo-seccion {
    color: var(--negro);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.publicar-form .form-label {
    color: var(--negro);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.publicar-form .form-control,
.publicar-form .form-select {
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 10px;
    padding: 0.78rem 0.95rem;
    font-size: 0.9rem;
    color: var(--negro);
    background-color: var(--blanco);
}

.publicar-form .form-control:focus,
.publicar-form .form-select:focus {
    border-color: var(--dorado);
    box-shadow: 0 0 0 0.16rem rgba(194, 161, 125, 0.16);
}

.publicar-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.publicar-form .form-check-label {
    color: #4b4b4b;
    font-size: 0.9rem;
}

.publicar-form .form-check-input {
    border-color: rgba(17, 17, 17, 0.25);
}

.publicar-form .form-check-input:checked {
    background-color: var(--dorado);
    border-color: var(--dorado);
}

.publicar-form .btn-cancelar {
    background: transparent;
    color: var(--negro);
    border: 1px solid rgba(194, 161, 125, 0.45);
    border-radius: 8px;
    padding: 0.82rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.publicar-form .btn-cancelar:hover {
    background-color: var(--fondo-claro);
    color: var(--dorado);
    border-color: var(--dorado);
}/* =====================================================
   EDITAR PROPIEDAD - NUEVO DISEÑO
===================================================== */

.edit-property-section {
    padding: clamp(1.25rem, 3vw, 2rem);
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.18);
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
}

.edit-property-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(194, 161, 125, 0.16);
}

.edit-property-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(194, 161, 125, 0.13);
    color: var(--dorado-hover);
    border: 1px solid rgba(194, 161, 125, 0.28);
    border-radius: 14px;
    font-size: 1.15rem;
}

.edit-property-heading .section-label {
    margin-bottom: 0.2rem;
    font-size: 0.62rem;
}

.edit-property-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--negro);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
}

/* Portada */

.edit-cover-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--negro-suave);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.edit-cover-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.edit-cover-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.4rem 0.65rem;
    background-color: rgba(17, 17, 17, 0.84);
    color: var(--blanco);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Galería */

.edit-gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--negro-suave);
    border: 1px solid rgba(194, 161, 125, 0.22);
    border-radius: 10px;
}

.edit-gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.edit-gallery-image:hover img {
    transform: scale(1.05);
}

.edit-gallery-image span {
    position: absolute;
    left: 0.45rem;
    bottom: 0.45rem;
    padding: 0.3rem 0.45rem;
    background-color: var(--dorado);
    color: var(--blanco);
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Checkboxes visuales */

.edit-property-check {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    background-color: var(--fondo-claro);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 10px;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.edit-property-check:hover {
    background-color: #fffaf4;
    border-color: rgba(194, 161, 125, 0.48);
}

.edit-property-check .form-check-input {
    flex-shrink: 0;
    margin: 0;
}

.edit-property-check .form-check-label {
    color: #444444;
    font-size: 0.86rem;
    font-weight: 700;
}

.edit-property-check .form-check-label i {
    color: var(--dorado);
}

/* Inputs con iconos y unidades */

.publicar-form .input-group-text {
    background-color: var(--fondo-claro);
    color: var(--dorado-hover);
    border-color: rgba(17, 17, 17, 0.1);
    border-radius: 10px 0 0 10px;
}

.publicar-form .input-group > .form-control:last-child {
    border-radius: 0 10px 10px 0;
}

.publicar-form .input-group > .form-control:first-child {
    border-radius: 10px 0 0 10px;
}

.publicar-form .input-group > .input-group-text:last-child {
    border-radius: 0 10px 10px 0;
}

/* Acciones */

.edit-property-actions {
    padding: 1.25rem;
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.18);
    border-radius: 16px;
    box-shadow: var(--sombra-suave);
}

.edit-property-actions .btn {
    min-height: 46px;
}
/* =====================================================
   ALERTAS FLOTANTES
===================================================== */

.feedback-alert-wrapper {
    position: fixed;
    top: 88px;
    left: 50%;
    z-index: 9999;

    width: min(420px, calc(100% - 1.5rem));

    transform: translateX(-50%);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.feedback-alert-wrapper.is-closing {
    opacity: 0;
    transform: translate(-50%, -12px);
    pointer-events: none;
}

.custom-alert {
    position: relative;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 0.85rem 3rem 0.85rem 0.9rem;

    background-color: #181818;
    color: #ffffff;

    border: 1px solid rgba(194, 161, 125, 0.35);
    border-left: 4px solid var(--dorado);
    border-radius: 14px;

    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.alert-icon {
    width: 36px;
    height: 36px;

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

    background-color: rgba(194, 161, 125, 0.16);
    border-radius: 50%;
}

.alert-icon i {
    color: var(--dorado);
    font-size: 1rem;
}

.custom-alert .flex-grow-1 {
    min-width: 0;

    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

.custom-alert .btn-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;

    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;

    background-size: 11px;
    filter: invert(1);
    opacity: 0.7;

    box-shadow: none;
}

.custom-alert .btn-close:hover,
.custom-alert .btn-close:focus {
    opacity: 1;
    box-shadow: none;
}
/* =====================================================
   LOGIN INMOBILIARIA
===================================================== */
.login-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.login-card {
    background: var(--blanco);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid #ece7df;
}

.login-header {
    background: linear-gradient(135deg, var(--negro) 0%, var(--negro-suave) 100%);
    padding: 3rem 2rem;
    color: var(--blanco);
}

.login-badge {
    display: inline-block;
    background: rgba(194, 161, 125, 0.15);
    color: var(--dorado);
    border: 1px solid rgba(194, 161, 125, 0.3);
   padding: 6px 15px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--blanco);
}

.login-text {
    color: var(--texto-suave);
    margin: 0;
    font-size: 1rem;
}

.login-body {
    padding: 2.5rem;
}

.custom-label {
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 0.6rem;
}

.input-group-text {
    background: #f8f5f0;
    border: 1px solid rgba(194, 161, 125, 0.25);
    color: var(--dorado);
    border-radius: 16px 0 0 16px;
    padding-inline: 1rem;
}

.input-group .custom-input {
    border-left: 0;
    border-radius: 0 16px 16px 0;
}

.custom-input {
    border: 1px solid #d8d1c8;
    padding: 0.95rem 1rem;
    background: #faf8f5;
    transition: all 0.25s ease;
}

.custom-input:focus {
    border-color: var(--dorado);
    background: var(--blanco);
    box-shadow: 0 0 0 0.25rem rgba(194, 161, 125, 0.15);
}

.input-group:focus-within .input-group-text {
    border-color: var(--dorado);
    background: var(--blanco);
}

.is-invalid {
    border-color: #b02a37 !important;
}

.login-error {
    color: #b02a37;
    font-size: 0.85rem;
    font-weight: 600;
}

.login-error i {
    color: #b02a37;
}

.btn-login {
    background: linear-gradient(135deg, var(--dorado) 0%, #d5b28c 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem;
    font-weight: 700;
    color: var(--blanco);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--dorado-hover) 0%, var(--dorado) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(194, 161, 125, 0.25);
}
/* =====================================================
   ELIMINAR PROPIEDAD
===================================================== */
.delete-property-section{
    background: var(--fondo-claro);
}

.delete-card{
    background:#151515;
    border:1px solid rgba(194,161,125,.25);
    border-radius:22px;
    padding:2rem;
    box-shadow:0 20px 45px rgba(0,0,0,.18);
}

.delete-badge{
    display:inline-block;
    background:#3b1f1f;
    color:#fff;
    border:1px solid rgba(255,80,80,.45);
    border-radius:999px;
    padding:.45rem .85rem;
    font-size:.75rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.1em;
    margin-bottom:1rem;
}

.delete-title{
    font-family:'Playfair Display', serif;
    color:#fff;
    font-size:clamp(2rem,4vw,2.8rem);
}

.delete-text{
    color:rgba(255,255,255,.75);
    line-height:1.7;
}

.delete-preview{
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.delete-img-box{
    height:220px;
    border-radius:14px;
    overflow:hidden;
}

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

.delete-info{
    padding:.5rem;
}

.delete-info h2{
    font-family:'Playfair Display', serif;
    color:var(--negro);
    font-weight:700;
    margin-bottom:1rem;
}

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

.delete-info li{
    display:flex;
    justify-content:space-between;
    gap:1rem;
    padding:.7rem 0;
    border-bottom:1px solid var(--beige);
}

.delete-info span{
    color:#777;
}

.delete-info strong{
    color:var(--negro);
    text-align:right;
}
/* =====================================================
   ELIMINAR PROPIEDAD - BOTONES
===================================================== */

.btn-delete-cancel{
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: .82rem 1.6rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: .3s ease;
}

.btn-delete-cancel:hover{
    background: #fff;
    color: var(--negro);
    border-color: #fff;
}

.btn-delete-confirm{
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .82rem 1.8rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: .3s ease;
}

.btn-delete-confirm:hover{
    background: #bb2d3b;
    color: #fff;
}
/* =====================================================
   MODAL DESCARGAR PUBLICACIÓN
===================================================== */

.property-download-modal {
    overflow: hidden;
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.22);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.property-download-modal .modal-header {
    align-items: flex-start;
    padding: 1.75rem 1.75rem 1rem;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbf8f4 100%
        );
}

.property-download-modal .modal-body {
    padding: 0 1.75rem 1.25rem;
}

.property-download-modal .modal-footer {
    padding: 0 1.75rem 1.75rem;
    background-color: var(--blanco);
}

.property-download-modal .section-label {
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
}

.property-download-modal-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--negro);
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
}

.property-download-description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.property-download-description strong {
    color: var(--negro);
    font-weight: 800;
}

/* Opciones */

.property-download-option {
    display: flex;
    width: 100%;
    min-height: 76px;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background-color: var(--fondo-claro);
    color: var(--negro);
    border: 1px solid rgba(194, 161, 125, 0.28);
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.property-download-option:hover,
.property-download-option:focus-visible {
    background-color: #fffaf4;
    border-color: var(--dorado);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.property-download-option:focus {
    outline: none;
}

/* Ícono */

.property-download-option-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #1d1d1d 0%,
            #111111 100%
        );
    color: var(--dorado);
    border: 1px solid rgba(194, 161, 125, 0.26);
    border-radius: 13px;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

/* Texto */

.property-download-option-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.property-download-option-content strong {
    color: var(--negro);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.property-download-option-content small {
    color: #777777;
    font-size: 0.76rem;
    line-height: 1.4;
}

/* Flecha */

.property-download-option-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--dorado);
    border: 1px solid rgba(194, 161, 125, 0.32);
    border-radius: 50%;
    font-size: 1rem;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.property-download-option:hover
.property-download-option-arrow {
    background-color: var(--dorado);
    color: var(--blanco);
    transform: translateY(1px);
}

/* Cerrar */

.property-download-modal .btn-close {
    margin-top: 0.2rem;
    box-shadow: none;
    opacity: 0.65;
}

.property-download-modal .btn-close:hover {
    opacity: 1;
}

/* Cancelar */

.property-download-modal .btn-cancelar {
    min-width: 120px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* ========================================
   RECUPERAR CONTRASEÑA
======================================== */

.login-section {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(184, 126, 63, 0.12), transparent 35%),
        linear-gradient(135deg, #f5f0ea 0%, #ffffff 55%, #eee5db 100%);
}

.login-card {
    overflow: hidden;
    border: 1px solid rgba(184, 126, 63, 0.18);
    border-radius: 22px;
    background-color: #ffffff;
    box-shadow: 0 22px 55px rgba(31, 27, 23, 0.15);
}

.login-header {
    position: relative;
    padding:30px 28px;
    background:
        linear-gradient(rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.98)),
        url('/img/hero3.jpg') center/cover no-repeat;
}

.login-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, #c99a63, transparent);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(201, 154, 99, 0.45);
    border-radius: 50px;
    color: #d8ad7d;
    background-color: rgba(201, 154, 99, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-header .titulo-seccion {
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: .8rem !important;
}

.login-text {
    max-width: 340px;
    margin: 0 auto;
    color: rgba(255,255,255,.78);
    font-size: .88rem;
    line-height: 1.55;
}
.login-body {
    padding: 34px;
    background-color: #ffffff;
}

.custom-label {
    margin-bottom: 9px;
    color: #211d19;
    font-size: 0.9rem;
    font-weight: 700;
}

.input-group {
    overflow: hidden;
    border: 1px solid #ddd2c6;
    border-radius: 14px;
    background-color: #ffffff;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.input-group:focus-within {
    border-color: #b87e3f;
    box-shadow: 0 0 0 4px rgba(184, 126, 63, 0.12);
}

.input-group-text {
    min-width: 52px;
    justify-content: center;
    border: 0;
    background-color: #f8f3ed;
    color: #b87e3f;
}

.custom-input {
    min-height: 52px;
    border: 0;
    color: #211d19;
    background-color: #ffffff;
    font-size: 0.95rem;
}

.custom-input:focus {
    border: 0;
    box-shadow: none;
}

.custom-input::placeholder {
    color: #a99e94;
}

.input-group:has(.custom-input.is-invalid) {
    border-color: #dc3545;
}

.custom-input.is-invalid {
    background-image: none;
}

.btn-login {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #b87e3f, #d3aa7d);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 25px rgba(184, 126, 63, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-login:hover {
    color: #ffffff;
    transform: translateY(-2px);
    filter: brightness(0.96);
    box-shadow: 0 16px 30px rgba(184, 126, 63, 0.32);
}

.btn-login:active {
    transform: translateY(0);
}

.login-body .alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.login-body .alert-success {
    border: 1px solid #a8d5bd;
    color: #17633a;
    background-color: #e8f7ef;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0;

    color: #8c6741;
    text-decoration: none;

    font-size: .84rem;
    font-weight: 600;

    transition: color .25s ease;
}

.login-back-link:hover {
    color: #b87e3f;
    text-decoration: underline;
}

.login-back-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    background: transparent;
    color: #b87e3f;

    font-size: .85rem;
}

.login-back-link:hover {
    color: #b87e3f;
}

.text-danger {
    font-size: 0.86rem;
}
/*=====================================
=            VOLVER LOGIN             =
=====================================*/

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    border: 1px solid rgba(184, 126, 63, .25);
    border-radius: 50px;

    background: #faf8f5;

    color: #6f5232;
    text-decoration: none;

    font-size: .92rem;
    font-weight: 600;

    transition: all .25s ease;
}

.login-back-link:hover {
    color: #b87e3f;
    background: #fff;
    border-color: rgba(184, 126, 63, .55);

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(184,126,63,.15);
}

.login-back-link:active {
    transform: translateY(0);
}

.login-back-icon {
    width: 34px;
    height: 34px;

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

    border-radius: 50%;

    background: linear-gradient(135deg,#b87e3f,#d7b28b);

    color: #fff;

    transition: transform .25s ease;
}

.login-back-link:hover .login-back-icon {
    transform: translateX(-4px);
}
/* =====================================================
   MI PERFIL
===================================================== */

.profile-section {
    min-height: 75vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(194, 161, 125, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f7f4ef 0%,
            #ffffff 55%,
            #eee7df 100%
        );
}

.profile-page-header {
    max-width: 680px;
}

.profile-page-header .titulo-seccion {
    color: var(--negro);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.profile-page-text {
    color: #6c665f;
    font-size: 0.94rem;
    line-height: 1.65;
}

/* RESUMEN DEL PERFIL */

.profile-summary-card {
    height: 100%;
    padding: 2rem;
    background:
        linear-gradient(
            145deg,
            #191919 0%,
            #111111 100%
        );
    color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.28);
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
    text-align: center;
}

.profile-avatar-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.4rem;
    overflow: hidden;
    border: 4px solid rgba(194, 161, 125, 0.75);
    border-radius: 50%;
    background-color: #242424;
    box-shadow:
        0 0 0 7px rgba(194, 161, 125, 0.1),
        0 14px 30px rgba(0, 0, 0, 0.28);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dorado);
    font-size: 4rem;
}

.profile-summary-name {
    margin-bottom: 0.55rem;
    color: var(--blanco);
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
}

.profile-summary-email,
.profile-summary-phone {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-summary-email i,
.profile-summary-phone i {
    color: var(--dorado);
}

.profile-summary-divider {
    height: 1px;
    margin: 1.6rem 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-summary-status {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 14px;
    text-align: left;
}

.profile-status-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(194, 161, 125, 0.14);
    color: var(--dorado);
    border-radius: 12px;
    font-size: 1rem;
}

.profile-summary-status strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--blanco);
    font-size: 0.82rem;
}

.profile-summary-status small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    line-height: 1.45;
}

/* TARJETAS */

.profile-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    background-color: var(--blanco);
    border: 1px solid rgba(194, 161, 125, 0.2);
    border-radius: 22px;
    box-shadow: var(--sombra-suave);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(194, 161, 125, 0.18);
}

.profile-card-header .section-label {
    margin-bottom: 0.2rem;
    font-size: 0.62rem;
}

.profile-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(194, 161, 125, 0.13);
    color: var(--dorado-hover);
    border: 1px solid rgba(194, 161, 125, 0.28);
    border-radius: 14px;
    font-size: 1.1rem;
}

.profile-card-title {
    margin: 0;
    color: var(--negro);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
}

/* FORMULARIO */

.profile-label {
    margin-bottom: 0.5rem;
    color: var(--negro);
    font-size: 0.85rem;
    font-weight: 700;
}

.profile-input-group {
    overflow: hidden;
    background-color: var(--blanco);
    border: 1px solid #ddd2c6;
    border-radius: 12px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.profile-input-group:focus-within {
    border-color: var(--dorado);
    box-shadow: 0 0 0 4px rgba(194, 161, 125, 0.13);
}

.profile-input-group .input-group-text {
    min-width: 48px;
    justify-content: center;
    padding: 0;
    background-color: var(--fondo-claro);
    color: var(--dorado-hover);
    border: 0;
    border-radius: 0;
}

.profile-input {
    min-height: 50px;
    padding: 0.75rem 0.9rem;
    background-color: var(--blanco);
    color: var(--negro);
    border: 0;
    border-radius: 0;
    font-size: 0.9rem;
}

.profile-input:focus {
    background-color: var(--blanco);
    border: 0;
    box-shadow: none;
}

.profile-input.is-invalid {
    background-image: none;
}

.profile-input-group:has(.profile-input.is-invalid) {
    border-color: #dc3545;
}

/* ARCHIVO */

.profile-file-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--fondo-claro);
    border: 1px dashed rgba(194, 161, 125, 0.48);
    border-radius: 14px;
}

.profile-file-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: var(--negro);
    color: var(--dorado);
    border-radius: 12px;
}

.profile-file-input {
    color: #53504c;
    border-color: rgba(17, 17, 17, 0.12);
    border-radius: 9px;
    font-size: 0.82rem;
}

.profile-file-input:focus {
    border-color: var(--dorado);
    box-shadow: 0 0 0 0.16rem rgba(194, 161, 125, 0.16);
}

.profile-file-help {
    display: block;
    margin-top: 0.45rem;
    color: #7b756f;
    font-size: 0.72rem;
    line-height: 1.45;
}

/* BOTONES */

.profile-submit-button,
.profile-password-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.5rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-submit-button {
    width: 100%;
}

.profile-password-button {
    background-color: var(--negro);
    color: var(--blanco);
    border: 1px solid var(--negro);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.profile-password-button:hover,
.profile-password-button:focus {
    background-color: var(--dorado);
    color: var(--blanco);
    border-color: var(--dorado);
    transform: translateY(-2px);
}

/* MENSAJES */

.profile-alert {
    border-radius: 13px;
    font-size: 0.84rem;
}

.profile-error {
    margin-top: 0.45rem;
    color: #b02a37;
    font-size: 0.78rem;
    font-weight: 600;
}
/* =====================================================
   MOSTRAR Y OCULTAR CONTRASEÑA
===================================================== */

.password-toggle {
    width: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--dorado);
    border: 1px solid rgba(194, 161, 125, 0.25);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    background-color: rgba(194, 161, 125, 0.08);
    color: var(--dorado-hover);
    border-color: var(--dorado);
    outline: none;
}

.password-toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.profile-input-group .form-control {
    border-right: 0;
}

.profile-input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--dorado);
}

.profile-input-group:focus-within .password-toggle {
    border-color: var(--dorado);
}
/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: var(--negro);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 25px;
    font-size: 0.9rem;
}

.footer-logo {
    width: 70px;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    max-width: 260px;
}

.footer h5 {
    color: var(--dorado);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

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

.footer-links li,
.footer-contacto li {
    margin-bottom: 0.6rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--dorado);
}

.footer-contacto i {
    color: var(--dorado);
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}
