/* ==========================================================================
   Dream City Real Estate — hoja de estilos principal
   Tokens tomados de assets/Guideline.pdf
   ========================================================================== */

:root {
    /* Colores */
    --color-title: #002991;      /* Títulos (Cinzel) */
    --color-body:  #515151;      /* Texto de desarrollo (Outfit) */

    /* Degradados oficiales */
    --grad-gold: linear-gradient(90deg, #925e08 0%, #c19436 33%, #f0c964 66%, #925e08 100%);
    --grad-blue: linear-gradient(90deg, #001e65 0%, #002a93 55%, #001849 100%);

    /* Tipografías */
    --font-title: 'Cinzel', serif;
    --font-body:  'Outfit', sans-serif;

    /* Espaciado entre secciones */
    --section-gap: 80px;

    /* Layout */
    --navbar-height: 72px;
    --container: 1560px;
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--color-title);
    font-weight: 600;
}

/* Línea dorada decorativa (bajo navbar y hero) */
.gold-line {
    height: 5px;
    background: var(--grad-gold);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--grad-blue);
}

.navbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.navbar__link {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding: 6px 2px;
    position: relative;
    transition: color 0.25s ease;
}

.navbar__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link--active::after {
    transform: scaleX(1);
}

.navbar__link:hover {
    color: #f0c964;
}

/* Selector de idioma */
.navbar__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.125rem;
    margin-left: 48px;
    padding-bottom: 4px;
    border-bottom: 2px solid #fff;
}

.navbar__flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

/* Botón hamburguesa (oculto en escritorio) */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.navbar__toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    height: min(calc(100vh - var(--navbar-height)), 48.7vw);
    min-height: 420px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__logo {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(200px, 18vw, 340px);
    filter: drop-shadow(0 4px 18px rgba(0, 24, 73, 0.35));
    animation: hero-logo-in 1.1s ease both;
}

@keyframes hero-logo-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero__line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ==========================================================================
   FRANJA "WE TAKE CARE OF YOU"
   ========================================================================== */
.care {
    position: relative;
    background: linear-gradient(115deg, #001e65 0%, #002a93 48%, #001849 100%);
    text-align: center;
    padding: 44px 24px 52px;
    /* línea blanca entre la línea dorada del hero y el azul */
    border-top: 6px solid #fff;
}

.care__script {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    color: #fff;
    display: inline-block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0 34px 2px;
    margin-bottom: 10px;
}

.care__title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
}

.care__wave {
    width: 110px;
    margin: 18px auto 0;
}

.care__line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* línea blanca entre el azul y la línea dorada de cierre */
    border-top: 6px solid #fff;
}

/* ==========================================================================
   BUSCADOR "FIND YOUR IDEAL PROPERTY"
   ========================================================================== */
.search {
    padding: var(--section-gap) 24px;
}

.search__card {
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #c19436;
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0, 24, 73, 0.06);
    padding: 56px 48px 72px;
    text-align: center;
}

.search__title {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.search__wave {
    width: 110px;
    margin: 14px auto 40px;
}

/* Tabs de operación */
.search__tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 44px;
}

.search__tab {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-title);
    background: #fff;
    border: 1.5px solid var(--color-title);
    border-radius: 8px;
    padding: 15px 30px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.search__tab:hover {
    transform: translateY(-2px);
}

.search__tab.is-active {
    background: var(--grad-blue);
    border-color: transparent;
    color: #fff;
}

/* Campos + botón de búsqueda */
.search__fields {
    display: flex;
    justify-content: center;
}

.search__field select {
    appearance: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-body);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23515151' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center;
    border: 1px solid #8a8a8a;
    border-right: 0;
    height: 58px;
    width: 240px;
    padding: 0 44px 0 20px;
    cursor: pointer;
}

.search__field:first-child select {
    border-radius: 8px 0 0 8px;
}

.search__submit {
    display: grid;
    place-items: center;
    width: 70px;
    height: 58px;
    background: var(--grad-blue);
    border: 0;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    transition: filter 0.25s ease;
}

.search__submit:hover {
    filter: brightness(1.25);
}

.search__submit svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   CABECERA DE SECCIÓN (título + onda + texto)
   ========================================================================== */
.section-head {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.section-head__title {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    letter-spacing: 0.02em;
}

.section-head__wave {
    width: 110px;
    margin: 14px auto 26px;
}

.section-head__text {
    font-size: clamp(1.15rem, 1.35vw, 1.3rem);
    font-weight: 400;
    line-height: 1.55;
}

/* ==========================================================================
   MOST POPULAR PROPERTIES
   ========================================================================== */
.popular {
    padding: 0 24px var(--section-gap);
}

.popular__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ---------- Card de propiedad ---------- */
.property-card {
    background: #fff;
    border: 1px solid #9db4e0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 24, 73, 0.14);
}

.property-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
}

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

.property-card__price {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 62%;
    background: var(--grad-blue);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 400;
    padding: 8px 18px;
    border-radius: 10px 0 0 0;
}

.property-card__price strong {
    font-weight: 700;
}

.property-card__price small {
    font-size: 0.68em;
    font-weight: 300;
}

.property-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px 20px;
    flex: 1;
}

.property-card__meta {
    display: flex;
    gap: 12px;
}

.property-card__location,
.property-card__status {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
}

.property-card__location {
    color: var(--color-title);
    border: 1px solid var(--color-title);
}

.property-card__location svg {
    width: 15px;
    height: 15px;
}

.property-card__status {
    color: #fff;
    background: #157f3d;
}

.property-card__specs {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.property-card__specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 1px solid #9db4e0;
    border-radius: 8px;
    padding: 12px 6px 10px;
    text-align: center;
}

.property-card__specs img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 3px;
}

.property-card__specs strong {
    color: var(--color-title);
    font-size: 0.85rem;
    font-weight: 600;
}

.property-card__specs small {
    font-size: 0.75rem;
    color: var(--color-body);
}

.property-card__cta {
    margin-top: auto;
    display: block;
    text-align: center;
    background: #1257c0;
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.property-card__cta:hover {
    background: #0d47a1;
}

/* ==========================================================================
   BANNER "INVEST IN YOUR DREAM"
   ========================================================================== */
.invest {
    padding: 0 24px var(--section-gap);
}

.invest__banner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 48% 52%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 24, 73, 0.18);
}

.invest__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 70px 48px;
    background: radial-gradient(circle at 32% 38%, #0035b0 0%, #002a93 45%, #001849 100%);
}

/* Separador dorado vertical entre panel y foto */
.invest__panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #925e08, #c19436, #f0c964, #925e08);
}

.invest__title {
    width: clamp(260px, 26vw, 440px);
}

.invest__logo {
    width: clamp(170px, 15vw, 260px);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.invest__media {
    min-height: 560px;
}

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

/* ==========================================================================
   EXPLORE OUR LISTINGS
   ========================================================================== */
.listings {
    padding: 0 24px var(--section-gap);
}

.listings__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.listings__card {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 44px rgba(0, 24, 73, 0.14);
}

.listings__media {
    height: clamp(300px, 32vw, 620px);
    overflow: hidden;
}

.listings__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listings__card:hover .listings__media img {
    transform: scale(1.035);
}

.listings__caption {
    display: block;
    text-align: center;
    background: var(--grad-blue);
    border-top: 4px solid transparent;
    border-image: var(--grad-gold) 1;
    color: #fff;
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 2vw, 1.9rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 20px 24px;
}

/* Nombre de proyecto sobre la caption (ej. "Lions Gate") */
.listings__caption-name {
    position: relative;
    display: table;
    margin: 0 auto 12px;
    font-size: 1.05em;
    background: linear-gradient(90deg, #925e08 0%, #c19436 22%, #f0c964 50%, #c19436 78%, #925e08 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 30px 10px;
}

/* Subrayado dorado con puntas afiladas */
.listings__caption-name::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% + 30px);
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #c19436 18%, #f0c964 50%, #c19436 82%, transparent 100%);
    clip-path: polygon(0 50%, 4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%);
}

/* ==========================================================================
   LATEST NEW (BLOG)
   ========================================================================== */
.news {
    padding: 0 24px var(--section-gap);
}

.news__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: #f7f7f7;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 24, 73, 0.12);
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 9;
}

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

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 26px 26px;
    flex: 1;
}

.news-card__date {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
    align-self: flex-start;
}

.news-card__title {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.25;
}

.news-card__excerpt {
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.5;
}

.news-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.news-card__avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.news-card__more {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.25s ease;
}

.news-card__more:hover {
    color: var(--color-title);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: linear-gradient(115deg, #001e65 0%, #002a93 48%, #001849 100%);
    color: #fff;
    padding: 64px 24px 28px;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer__brand img {
    width: clamp(200px, 16vw, 290px);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 22px;
}

.footer__col a {
    display: block;
    color: #e8ecf7;
    font-size: 1.02rem;
    font-weight: 300;
    padding: 7px 0;
    transition: color 0.25s ease;
}

.footer__col a:hover {
    color: #f0c964;
}

.footer__social {
    display: flex;
    gap: 26px;
}

.footer__social a {
    padding: 0;
}

.footer__social svg {
    width: 30px;
    height: 30px;
}

.footer__copy {
    max-width: var(--container);
    margin: 48px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 300;
    color: #c9d2ea;
    text-align: center;
}

/* ==========================================================================
   PÁGINAS INTERNAS (cabecera común, botones, formularios)
   ========================================================================== */
.page-head {
    padding-top: var(--section-gap);
}

.page-head .section-head {
    margin-bottom: 0;
}

.btn-primary {
    display: inline-block;
    background: var(--grad-blue);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    border: 0;
    border-radius: 8px;
    padding: 15px 42px;
    cursor: pointer;
    transition: filter 0.25s ease, transform 0.15s ease;
}

.btn-primary:hover {
    filter: brightness(1.3);
    transform: translateY(-2px);
}

.btn-gold {
    display: inline-block;
    background: var(--grad-gold);
    color: #001849;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    padding: 15px 42px;
    transition: filter 0.25s ease, transform 0.15s ease;
}

.btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* Campos de formulario */
.field {
    display: block;
}

.field__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-title);
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-body);
    background: #fff;
    border: 1px solid #8a8a8a;
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-title);
    box-shadow: 0 0 0 3px rgba(0, 41, 145, 0.12);
}

/* Mensajes flash */
.flash {
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.98rem;
}

.flash--success {
    background: #e8f5ec;
    color: #157f3d;
    border: 1px solid #157f3d;
}

.flash--error {
    background: #fdecec;
    color: #b02a2a;
    border: 1px solid #b02a2a;
}

/* ==========================================================================
   PROPERTIES (listado con filtros)
   ========================================================================== */
.filters {
    padding: 48px 24px 0;
}

.filters__card {
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #c19436;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 24, 73, 0.06);
    padding: 32px 32px 36px;
}

.filters__card .search__tabs {
    margin-bottom: 28px;
}

.results {
    padding: 56px 24px var(--section-gap);
}

.results__count {
    max-width: var(--container);
    margin: 0 auto 24px;
    font-size: 1.05rem;
    color: var(--color-body);
}

.results__empty {
    max-width: 560px;
    margin: 40px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.results__empty img {
    width: 110px;
    opacity: 0.8;
}

.results__empty p {
    font-size: 1.2rem;
    font-weight: 400;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}

.pagination__page {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--color-title);
    border-radius: 8px;
    color: var(--color-title);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination__page:hover {
    background: rgba(0, 41, 145, 0.08);
}

.pagination__page--current {
    background: var(--grad-blue);
    border-color: transparent;
    color: #fff;
}

/* ==========================================================================
   DETALLE DE PROPIEDAD
   ========================================================================== */
.detail {
    padding: 48px 24px var(--section-gap);
}

.detail__wrap {
    max-width: 1360px;
    margin: 0 auto;
}

.detail__back {
    margin-bottom: 24px;
}

.detail__back a {
    color: var(--color-title);
    font-weight: 500;
    transition: color 0.2s ease;
}

.detail__back a:hover {
    color: #c19436;
}

.detail__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
    align-items: start;
}

/* Galería */
.detail__gallery-main {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 14px 44px rgba(0, 24, 73, 0.14);
}

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

.detail__gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.detail__thumb {
    width: 110px;
    aspect-ratio: 16 / 10;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: none;
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

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

.detail__thumb.is-active,
.detail__thumb:hover {
    opacity: 1;
    border-color: #c19436;
}

/* Descripción */
.detail__description {
    margin-top: 40px;
}

.detail__description h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.detail__description p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Columna lateral */
.detail__side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.detail__card {
    background: #fff;
    border: 1px solid #c19436;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 10px 40px rgba(0, 24, 73, 0.06);
}

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

.detail__badges .property-card__location,
.detail__badges .property-card__status {
    flex: 0 1 auto;
    padding: 8px 16px;
}

.detail__title {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.25;
}

.detail__price {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-title);
}

.detail__price small {
    font-size: 0.55em;
    font-weight: 300;
}

.detail__meta {
    font-size: 1rem;
}

.detail__meta strong {
    color: var(--color-title);
}

/* Formulario de interés */
.detail__form {
    background: #fff;
    border: 1px solid #9db4e0;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail__form h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-title);
}

.detail__form .btn-primary {
    align-self: stretch;
    text-align: center;
}

/* Lightbox (imágenes a pantalla completa) */
.detail__gallery-main {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 12, 42, 0.94);
    display: grid;
    place-items: center;
    animation: lightbox-in 0.25s ease;
}

.lightbox[hidden] {
    display: none;
}

@keyframes lightbox-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 26px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
}

.lightbox__close:hover {
    color: #f0c964;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #f0c964;
}

.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 18px;
}

@media (max-width: 640px) {
    .lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }
}

/* ==========================================================================
   BLOG (artículo)
   ========================================================================== */
.article {
    padding: 48px 24px var(--section-gap);
}

.article__wrap {
    max-width: 900px;
    margin: 0 auto;
}

.article__cover {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 8;
    box-shadow: 0 14px 44px rgba(0, 24, 73, 0.14);
    margin-bottom: 28px;
}

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

.article__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--color-body);
}

.article__title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.article__wave {
    width: 110px;
    margin: 16px 0 28px;
}

.article__body p {
    font-size: 1.13rem;
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 20px;
}

.article__others {
    max-width: 1180px;
    margin: var(--section-gap) auto 0;
}

.article__others-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .article__others-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

/* Página de error */
.error-cta {
    text-align: center;
    padding: 40px 24px var(--section-gap);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
    padding: var(--section-gap) 24px;
}

.contact__wrap {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 420px 1fr;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #c19436;
    box-shadow: 0 10px 40px rgba(0, 24, 73, 0.08);
}

.contact__info {
    background: linear-gradient(160deg, #002a93 0%, #001849 100%);
    color: #fff;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact__logo {
    width: 190px;
    align-self: center;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.contact__items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact__items li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact__items a {
    transition: color 0.2s ease;
}

.contact__items a:hover {
    color: #f0c964;
}

.contact__items svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #f0c964;
}

.contact__social h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
}

.contact__social .footer__social a {
    color: #fff;
}

.contact__social .footer__social a:hover {
    color: #f0c964;
}

.contact__form {
    background: #fff;
    padding: 64px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__form-title {
    font-size: 2.1rem;
    text-align: left;
}

.contact__form .field__label {
    font-size: 1.15rem;
}

.contact__form .field input,
.contact__form .field textarea {
    font-size: 1.12rem;
    padding: 17px 19px;
}

.contact__form .field textarea {
    min-height: 180px;
}

.contact__form .btn-primary {
    font-size: 1.15rem;
    padding: 17px 54px;
}

.contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact__form .btn-primary {
    align-self: flex-start;
}

/* ==========================================================================
   ABOUT US
   ========================================================================== */
.about-story {
    padding: var(--section-gap) 24px 0;
}

.about-story__wrap {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-story__media {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 44px rgba(0, 24, 73, 0.14);
}

.about-story__media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.about-story__body h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 22px;
}

.about-story__body p {
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 16px;
}

.about-values {
    padding: var(--section-gap) 24px 0;
}

.about-values__grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    text-align: center;
    border: 1px solid #9db4e0;
    border-radius: 16px;
    padding: 40px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 24, 73, 0.12);
}

.value-card__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--grad-blue);
    color: #f0c964;
}

.value-card__icon svg {
    width: 32px;
    height: 32px;
}

.value-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.55;
}

.about-cta {
    padding: var(--section-gap) 24px;
}

.about-cta__banner {
    max-width: var(--container);
    margin: 0 auto;
    background: radial-gradient(circle at 30% 40%, #0035b0 0%, #002a93 45%, #001849 100%);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 0 18px 50px rgba(0, 24, 73, 0.18);
}

.about-cta__banner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 820px) {
    .navbar__inner {
        justify-content: flex-start;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__nav {
        position: absolute;
        top: calc(var(--navbar-height) + 5px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--grad-blue);
        padding: 12px 24px 20px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .navbar__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar__link {
        padding: 14px 0;
        width: 100%;
    }

    .navbar__lang {
        margin: 16px 0 0;
    }

    .hero__logo {
        width: clamp(170px, 40vw, 260px);
    }

    .search__card {
        padding: 40px 22px 48px;
    }

    .search__fields {
        flex-direction: column;
        gap: 14px;
    }

    .search__field select {
        width: 100%;
        border-right: 1px solid #8a8a8a;
        border-radius: 8px;
    }

    .search__field:first-child select {
        border-radius: 8px;
    }

    .search__submit {
        width: 100%;
        border-radius: 8px;
    }
}

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

@media (max-width: 640px) {
    .popular__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

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

    .invest__panel {
        padding: 56px 32px;
        gap: 36px;
    }

    /* En columna, el separador dorado pasa a horizontal */
    .invest__panel::after {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: 5px;
        background: var(--grad-gold);
    }

    .invest__media {
        min-height: 300px;
        max-height: 380px;
    }
}

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

    .detail__side {
        position: static;
    }

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

    .contact__form {
        padding: 36px 24px;
    }

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

    .about-story__wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-values__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 1080px) {
    .news__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col a {
        padding: 9px 0;
    }

    .footer__social {
        justify-content: center;
    }
}
