:root {
    --brand-900: #2f221b;
    --brand-700: #6b3d2a;
    --brand-600: #9b5731;
    --brand-500: #c96d3a;
    --brand-100: #f4e9df;
    --olive-700: #3b4a3f;
    --sand-50: #f9f6f1;
    --sand-100: #f3efe9;
    --sand-200: #e5ded4;
    --text-900: #1f1a16;
    --text-700: #4a413a;
    --text-500: #6b625a;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 20px 45px rgba(31, 26, 22, 0.12);
    --shadow-card: 0 12px 30px rgba(31, 26, 22, 0.14);
}

body.site {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background: var(--sand-50);
    color: var(--text-900);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.4px;
}

a {
    color: inherit;
}

a:hover {
    color: inherit;
}

/* Logo central y protagonista */
.logo-central {
    height: 76px;
    max-height: 76px;
    transition: all 0.3s ease-in-out;
    padding: 2px 0;
}

/* NAVBAR Estilo limpio */
.navbar {
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 26, 22, 0.06);
    border-bottom: 1px solid var(--sand-200);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.front-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.front-navbar .container {
    max-width: 1180px;
}

.front-navbar .navbar-nav {
    gap: 10px;
}

.front-navbar .nav-link {
    color: var(--text-700);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    font-size: 0.84rem;
    transition: all 0.25s ease-in-out;
    padding: 0.3rem 0;
    position: relative;
}

.front-navbar .nav-link:hover,
.front-navbar .nav-link:focus {
    color: var(--brand-700);
}

.front-navbar .nav-link.active {
    color: var(--brand-700);
}

.front-navbar .nav-link:focus-visible {
    outline: 2px solid rgba(155, 87, 49, 0.35);
    outline-offset: 3px;
    border-radius: 6px;
}

.front-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--brand-500);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.front-navbar .nav-link:hover::after,
.front-navbar .nav-link.active::after {
    width: 100%;
}

.front-navbar .navbar-phone {
    white-space: nowrap;
}

.front-navbar .navbar-collapse {
    gap: 14px;
}

.front-navbar .navbar-actions {
    margin-left: auto;
}

.front-navbar .navbar-phone {
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    font-size: 0.85rem;
}

.front-navbar .navbar-consign {
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Hero Banner */
.hero {
    background-image: linear-gradient(115deg, rgba(25, 20, 16, 0.78), rgba(80, 60, 40, 0.45)), url('/img/fondo-campo.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 5rem;
}

.hero-content {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 700;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.45);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2.2rem;
}

.btn-brand {
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    border: none;
    box-shadow: 0 10px 20px rgba(201, 109, 58, 0.3);
}

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

.btn-outline-brand {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
}

.btn-outline-brand:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.search-panel {
    background: #fff;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    color: var(--text-900);
}

.search-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}

.search-panel__head h5 {
    margin: 0;
    font-weight: 700;
}

.search-panel__head span {
    font-size: 0.9rem;
    color: var(--text-500);
}

.search-panel .form-select,
.search-panel .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-200);
    background-color: var(--sand-50);
    font-weight: 600;
}

.btn-search {
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    background: var(--brand-600);
    border: none;
}

.btn-search:hover {
    background: var(--brand-700);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.trust-item {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.section-soft {
    background: var(--sand-100);
    padding: 4rem 0;
}

.section-head {
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.6rem;
}

.section-subtitle {
    color: var(--text-500);
    max-width: 620px;
    margin: 0 auto;
}

.info-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.info-card h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.info-card p {
    color: var(--text-500);
    margin: 0;
}

/* Navbar Toggle */
.navbar-toggler {
    z-index: 1050;
    border: none;
}

.front-navbar .navbar-toggler {
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    background: #fff;
}

.front-navbar .navbar-toggler:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(155, 87, 49, 0.2);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #25D366;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out;
    animation: whatsappPulse 1.8s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-outline-danger {
    border-width: 2px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-600);
    border-color: var(--brand-600);
}

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

/* Cards de propiedades */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-card) !important;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(31, 26, 22, 0.18);
}

.card-property .card-body {
    padding: 1.6rem;
    background-color: #fff;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-900);
}

.card-text {
    color: var(--text-500);
    font-size: 0.95rem;
}

.card-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-500);
}

.card .text-danger {
    font-size: 1.15rem;
    color: var(--brand-600) !important;
}

/* Botón dentro de la card */
.card .btn-outline-danger {
    border-radius: 999px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.card .btn-outline-danger:hover {
    background-color: var(--brand-600);
    color: white;
    border-color: var(--brand-600);
}

/* Etiquetas flotantes en cards */
.badge-venta,
.badge-arriendo,
.badge-destacado {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-venta {
    background-color: #d1662d;
}

.badge-arriendo {
    background-color: #2f5d7f;
}

.badge-destacado {
    background-color: #3a6b45;
}

.badge-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1f1a16;
    background: #f7d36a;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.cta-band {
    background: linear-gradient(120deg, var(--brand-700), var(--olive-700));
    padding: 3.5rem 0 4rem;
    color: #fff;
}

.cta-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.cta-card h3 {
    margin: 0 0 0.6rem;
}

.cta-card p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.85);
}

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

/* Footer */
.footer {
    background-color: #fff;
    color: var(--text-900);
    padding: 40px 0 20px;
    font-size: 0.95rem;
    border-top: 1px solid var(--sand-200);
}

.footer a {
    color: var(--text-900);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: var(--text-900);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 200px;
}

.footer-section h5 {
    margin-bottom: 15px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--sand-200);
    padding-bottom: 8px;
    color: var(--text-900);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid var(--sand-200);
    padding-top: 14px;
    color: var(--text-500);
}

/* Estilos específicos para el logotipo en el footer */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    max-width: 150px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .logo-central {
        height: 62px;
        max-height: 62px;
    }

    .front-navbar .navbar-nav {
        flex-direction: column !important;
        align-items: center;
        gap: 0.65rem;
    }

    .front-navbar .navbar-collapse {
        margin-top: 1rem;
        background: #fff;
        border: 1px solid var(--sand-200);
        border-radius: var(--radius-md);
        padding: 12px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 12px 24px rgba(31, 26, 22, 0.1);
    }

    .front-navbar .nav-link::after {
        display: none;
    }

    .hero {
        padding: 3.5rem 0 4rem;
        min-height: auto;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .search-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin: 10px 0;
    }

    .logo-section {
        margin-bottom: 20px;
    }

    .cta-card {
        text-align: center;
        justify-content: center;
    }

    .cta-actions {
        justify-content: center;
    }
}

@media screen and (max-width: 1024px) {
    .logo-central {
        height: 62px;
        padding: 0 !important;
    }
}
