/*!
 * Ucha Inmobiliaria — CSS principal
 *
 * Paleta de marca AA-compliant (derivada del kit Elementor original):
 *   --ucha-brand        #6EC1E4   azul claro (decoración: hero overlays, fondos suaves)
 *   --ucha-primary      #1B7FA8   azul mismo tono, oscurecido → AA (6.0:1 sobre blanco)
 *   --ucha-primary-dark #145D7E   hover/active
 *   --ucha-secondary    #54595F   gris secundario texto (7.5:1)
 *   --ucha-text         #1F2937   gris muy oscuro cuerpo (13.1:1)
 *   --ucha-text-muted   #595959   gris para meta-info (7.0:1)
 *   --ucha-accent       #2E8540   verde mismo tono que el original, AA (5.4:1)
 *   --ucha-bg-light     #F5F8FA   fondo suave con tinte azul
 *
 * Tipografía: Roboto (kit Elementor original), peso 400/500/600/700.
 */

:root {
    --ucha-navy:          #1A1F5C;   /* color corporativo principal (logo, header bar, texto) */
    --ucha-navy-dark:     #11164E;
    --ucha-navy-deep:     #0D1240;   /* fondo barra menú y secciones oscuras */

    --ucha-cyan:          #6EC1E4;   /* accent decorativo y botones (con texto navy: 7.6:1 AAA) */
    --ucha-cyan-soft:     #B9E1F2;   /* hover suave */
    --ucha-cyan-tint:     #EAF6FC;   /* fondos de sección con tinte */
    --ucha-cyan-pale:     #F5FAFD;   /* tinte aún más suave */

    --ucha-text:          #1F2937;
    --ucha-text-muted:    #595959;
    --ucha-bg-soft:       #FAFAFA;
    --ucha-accent:        #2E8540;

    /* Overrides Bootstrap */
    --bs-primary:          #1A1F5C;
    --bs-link-color:       #1A1F5C;
    --bs-link-hover-color: #11164E;
    --bs-body-color:       #1F2937;
    --bs-body-font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    --bs-border-radius:    .5rem;
}

body {
    color: var(--ucha-text);
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--ucha-text);
}

/* ============ Bootstrap primary overrides ============ */
.bg-primary       { background-color: var(--ucha-primary) !important; }
.text-primary     { color: var(--ucha-primary) !important; }
.text-muted       { color: var(--ucha-text-muted) !important; }   /* AA fix */
.text-secondary   { color: var(--ucha-secondary) !important; }

.btn-primary {
    background-color: var(--ucha-primary);
    border-color: var(--ucha-primary);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--ucha-primary-dark) !important;
    border-color: var(--ucha-primary-dark) !important;
}
.btn-outline-primary {
    color: var(--ucha-primary);
    border-color: var(--ucha-primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--ucha-primary) !important;
    color: #fff !important;
}

/* ============ Foco visible — WCAG 2.4.7 ============ */
:focus-visible {
    outline: 2px solid var(--ucha-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(27, 127, 168, 0.25);
}

/* ============ Skip link visible al enfocar ============ */
.visually-hidden-focusable:focus { z-index: 9999; }

/* ============ Header (dos filas: logo arriba blanco / menú abajo navy) ============ */
.site-header { background: #fff; }
.site-header-logo {
    padding: 1.2rem 0;
    text-align: center;
    background: #fff;
}
.site-header-logo img { max-height: 72px; }

.site-nav {
    background: var(--ucha-navy-deep);
}
.site-nav .navbar { padding: 0; }
.site-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 1rem 1.2rem !important;
    font-size: 0.95rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
    color: var(--ucha-cyan) !important;
    background: rgba(255,255,255,0.05);
}
.site-nav .dropdown-toggle::after { margin-left: .4rem; }
.site-nav .lang-switch { color: #fff; }
.site-nav .lang-switch img { height: 1.1em; vertical-align: -2px; margin-right: .35rem; }

/* ============ Hero ============ */
.hero h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    font-weight: 700;
}
.hero .lead { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* ============ Cards de propiedades ============ */
.property-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 6px;
    overflow: hidden;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}
.property-card .card-img-top { transition: transform 0.4s; }
.property-card:hover .card-img-top { transform: scale(1.04); }
.property-card .card-title a { color: var(--ucha-text); }
.property-card .card-title a:hover { color: var(--ucha-primary); }

/* Badges sobre cards — usar AA-compliant */
.badge.bg-primary { background-color: var(--ucha-primary) !important; }
.badge.bg-accent  { background-color: var(--ucha-accent) !important; color: #fff; }

/* ============ Footer (fondo claro, texto navy, banner Kit Digital arriba) ============ */
.site-footer {
    background: var(--ucha-bg-soft);
    color: var(--ucha-text);
    padding-top: 0;
}
.kit-digital-banner {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.kit-digital-banner img { max-width: 100%; height: auto; }

.site-footer h2 {
    color: var(--ucha-navy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 14px;
}
.site-footer h2::before {
    content: '';
    position: absolute;
    left: 0; top: .25em;
    width: 5px; height: 1em;
    background: var(--ucha-cyan);
    border-radius: 2px;
}
.site-footer ul li { margin-bottom: .35rem; }
.site-footer a {
    color: var(--ucha-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-footer a:hover { color: var(--ucha-navy-dark); }
.site-footer .footer-logo { max-height: 70px; }
.site-footer .copyright {
    font-size: 0.85rem;
    color: var(--ucha-text-muted);
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

/* ============ Secciones con tinte de marca ============ */
.bg-light { background-color: var(--ucha-cyan-pale) !important; }

/* CTA section: usar tonos AA */
.cta-section {
    background-color: var(--ucha-primary);
    color: #fff;
}

/* ============ Forms ============ */
.form-control:focus,
.form-select:focus {
    border-color: var(--ucha-primary);
    box-shadow: 0 0 0 0.2rem rgba(27, 127, 168, 0.25);
}

/* Placeholders AA */
::placeholder      { color: var(--ucha-text-muted) !important; opacity: 1; }
::-ms-input-placeholder { color: var(--ucha-text-muted) !important; }

/* ============ Breadcrumb ============ */
.breadcrumb-item.active { color: var(--ucha-text-muted); }
.breadcrumb a { color: var(--ucha-primary); }

/* ============ Pagination ============ */
.pagination .page-link { color: var(--ucha-primary); }
.pagination .page-item.active .page-link {
    background-color: var(--ucha-primary);
    border-color: var(--ucha-primary);
}

/* ============ Property gallery / detail ============ */
.property-gallery img { transition: opacity 0.2s; }
.property-gallery img:hover { opacity: 0.92; }

dl.row dt { color: var(--ucha-text-muted); font-weight: 500; }
dl.row dd { color: var(--ucha-text); font-weight: 500; }

/* =====================================================================
   SISTEMA DE DISEÑO — secciones, encabezados, botones cyan, cards
   ===================================================================== */

/* Secciones con espacio generoso */
.section          { padding: 5rem 0; }
.section-sm       { padding: 3rem 0; }
.section-tint     { background: var(--ucha-cyan-tint); }
.section-pale     { background: var(--ucha-cyan-pale); }
.section-soft     { background: var(--ucha-bg-soft); }
.section-navy     { background: var(--ucha-navy-deep); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

/* Encabezado con rectángulo cyan decorativo a la izquierda (estilo del diseño actual) */
.section-heading {
    position: relative;
    display: inline-block;
    color: var(--ucha-navy);
    font-weight: 700;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}
.section-heading::before {
    content: '';
    position: absolute;
    left: 0; top: 0.4em;
    width: 6px;
    height: 1.2em;
    background: var(--ucha-cyan);
    border-radius: 2px;
}
.section-heading.centered {
    padding-left: 0;
    display: block;
    text-align: center;
}
.section-heading.centered::before {
    position: static;
    display: block;
    width: 60px; height: 4px;
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* Botón "brand" cyan con texto navy — AA (7.6:1) y mismo look que el original */
.btn-brand {
    background: var(--ucha-cyan);
    color: var(--ucha-navy);
    border: 2px solid var(--ucha-cyan);
    font-weight: 600;
    padding: .65rem 1.6rem;
    border-radius: 999px;            /* píldora */
    text-transform: none;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(110, 193, 228, .25);
}
.btn-brand:hover,
.btn-brand:focus {
    background: var(--ucha-navy);
    color: #fff;
    border-color: var(--ucha-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 31, 92, .3);
}
.btn-brand-outline {
    background: transparent;
    color: var(--ucha-navy);
    border: 2px solid var(--ucha-cyan);
    font-weight: 600;
    padding: .65rem 1.6rem;
    border-radius: 999px;
}
.btn-brand-outline:hover {
    background: var(--ucha-cyan);
    color: var(--ucha-navy);
}

/* Bloque "imagen + texto" con rectángulo cyan offset detrás de la imagen */
.media-frame {
    position: relative;
    display: inline-block;
    width: 100%;
}
.media-frame::before {
    content: '';
    position: absolute;
    inset: -16px -16px auto auto;
    width: 100%; height: 100%;
    background: var(--ucha-cyan);
    border-radius: .5rem;
    z-index: 0;
    opacity: .8;
}
.media-frame.left::before {
    inset: -16px auto auto -16px;
}
.media-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Hero con franja diagonal de fondo */
.about-hero {
    position: relative;
    overflow: hidden;
}
.about-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 200px; height: 200px;
    background: var(--ucha-cyan);
    opacity: .15;
    border-radius: 50%;
    z-index: 0;
}
.about-hero > .container { position: relative; z-index: 1; }

/* Testimonios refinados */
.testimonial-card {
    background: #fff;
    border-radius: .75rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    border-top: 4px solid var(--ucha-cyan);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}
.testimonial-card .quote-mark {
    font-size: 3rem;
    line-height: 0;
    color: var(--ucha-cyan);
    margin-top: 1rem;
    margin-bottom: 0;
}
.testimonial-card blockquote {
    font-size: .92rem;
    color: var(--ucha-text);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}
.testimonial-card .author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-weight: 600;
    color: var(--ucha-navy);
}

/* Form sobre fondo navy: inputs blancos legibles */
.form-on-navy .form-control,
.form-on-navy .form-select {
    background: #fff;
    border: 0;
    padding: .7rem 1rem;
}
.form-on-navy .form-label { color: #fff; }
.form-on-navy .form-check-label { color: #fff; }

/* Imagen-tarjeta con esquinas redondeadas y sombra */
.img-card {
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    overflow: hidden;
}

/* Container max-width un pelín más holgado en pantallas grandes */
@media (min-width: 1400px) {
    .container { max-width: 1240px; }
}

/* =====================================================================
   HOME — bloques específicos
   ===================================================================== */

/* Hero con imagen full-width y card flotante */
.home-hero { background: var(--ucha-cyan-tint); }
.home-hero .hero-image-wrap {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}
.home-hero .hero-image-wrap > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.home-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
}
.home-hero .hero-card {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: .5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    border-left: 5px solid var(--ucha-cyan);
    max-width: 320px;
}
.home-hero .hero-card h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--ucha-navy);
    font-weight: 700;
}
@media (max-width: 768px) {
    .home-hero .hero-image-wrap > img { height: 320px; }
    .home-hero .hero-card { max-width: 280px; padding: 1rem 1.25rem; }
    .home-hero .hero-card h1 { font-size: 1.25rem; }
}

/* "Por qué elegirnos" cards — icono fondo blanco con sombra, texto alineado izq */
.why-card {
    padding: 1rem 0;
    text-align: left;
}
.why-card .why-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ucha-cyan);
    font-size: 1.4rem;
    transition: all .25s;
    border: 1px solid rgba(0, 0, 0, .04);
}
.why-card:hover .why-icon {
    box-shadow: 0 6px 18px rgba(110, 193, 228, .35);
    transform: translateY(-2px);
    color: var(--ucha-navy);
}

/* Servicios — tiles con icono grande y borde */
.service-tile {
    background: #fff;
    border-radius: .75rem;
    padding: 1.75rem 1rem;
    transition: all .25s;
    border-bottom: 3px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.service-tile:hover {
    border-bottom-color: var(--ucha-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.service-tile .service-icon {
    font-size: 2.2rem;
    color: var(--ucha-cyan);
    display: inline-block;
    padding: 12px;
    background: var(--ucha-cyan-tint);
    border-radius: 50%;
    width: 64px; height: 64px;
    line-height: 1.6;
    text-align: center;
}
.service-tile:hover .service-icon {
    color: #fff;
    background: var(--ucha-navy);
}

/* =====================================================================
   PROPERTY CARDS V2 — listado
   ===================================================================== */
.property-card-v2 {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.property-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.1);
}

.prop-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16 / 10;
    text-decoration: none;
    color: inherit;
}
.prop-image-wrap:focus-visible {
    outline: 3px solid var(--ucha-cyan);
    outline-offset: -3px;
}
.prop-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.property-card-v2:hover .prop-image-wrap img { transform: scale(1.05); }

.prop-no-image {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    background: #f0f0f0;
}

.prop-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 12px;
    background: var(--ucha-navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
    z-index: 2;
}
.prop-badge-alquiler { background: var(--ucha-cyan); color: var(--ucha-navy); }
.prop-badge-venta_alquiler { background: #6c757d; }
.prop-badge-featured {
    left: auto; right: 12px;
    background: var(--ucha-cyan);
    color: var(--ucha-navy);
}
.prop-badge-featured i { margin-right: 2px; }

.prop-price {
    position: absolute;
    bottom: 12px; left: 0;
    background: var(--ucha-navy);
    color: #fff;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 0 4px 4px 0;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.prop-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.prop-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; line-height: 1.3; }
.prop-title a {
    color: var(--ucha-navy);
    text-decoration: none;
}
.prop-title a:hover { color: var(--ucha-navy); text-decoration: underline; }
.prop-location {
    font-size: .85rem;
    color: var(--ucha-text-muted);
    margin: 0 0 .75rem;
}
.prop-location i { margin-right: .3rem; }

.prop-meta {
    color: var(--ucha-text-muted);
    font-size: .85rem;
}
.prop-meta li { margin-right: .85rem !important; }
.prop-meta i { margin-right: .25rem; color: var(--ucha-cyan); }

.btn-detail {
    background: var(--ucha-cyan);
    color: var(--ucha-navy);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn-detail:hover { background: var(--ucha-navy); color: #fff; }

/* =====================================================================
   SIDEBAR WIDGETS (listado de propiedades)
   ===================================================================== */
.widget-box {
    background: #fff;
    border-radius: .75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.widget-box .section-heading {
    font-size: .95rem;
    margin-bottom: 1rem;
    padding-left: .85rem;
}
.widget-box .section-heading::before { top: .15em; height: 1em; width: 4px; }

/* Mini-card de propiedad (sidebar) */
.prop-mini { color: var(--ucha-navy); }
.prop-mini:hover { color: var(--ucha-navy); text-decoration: underline; }
.prop-mini-img,
.prop-mini-img img,
.prop-mini-noimg {
    width: 72px; height: 56px;
    border-radius: 6px;
    object-fit: cover;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prop-mini-body { flex-grow: 1; min-width: 0; }
.prop-mini-body i { margin-right: .2rem; color: var(--ucha-cyan); }

/* =====================================================================
   PROPERTY DETAIL (ficha)
   ===================================================================== */
.property-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
    background: var(--ucha-navy);
}
.property-hero-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.property-hero-noimg {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: rgba(255,255,255,.5);
}

/* Badge operación reutiliza .prop-badge */
.property-hero-badge {
    position: absolute;
    top: 24px; left: 24px;
    font-size: .9rem !important;
    padding: 6px 16px !important;
}

.property-hero-actions {
    position: absolute;
    top: 24px; right: 24px;
    display: flex; gap: .5rem;
}
.action-btn {
    background: rgba(255,255,255,.95);
    border: 0;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center; justify-content: center;
    color: var(--ucha-navy);
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.action-btn:hover { background: var(--ucha-cyan); color: var(--ucha-navy); }

/* Banda inferior degradado — opacidad reforzada para legibilidad AA del breadcrumb */
.property-hero-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 3rem 0 1.5rem;
    background: linear-gradient(to top, rgba(13, 18, 64, 0.92) 0%, rgba(13, 18, 64, 0.7) 65%, rgba(13, 18, 64, 0.2) 100%);
    color: #fff;
}
.property-hero-overlay .breadcrumb-item a {
    color: #fff !important;
    opacity: .85;
    text-decoration: none;
}
.property-hero-overlay .breadcrumb-item a:hover { opacity: 1; }
.property-hero-overlay .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.5);
}
.property-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.property-hero-location {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
}
.property-hero-price {
    background: var(--ucha-cyan);
    color: var(--ucha-navy);
    padding: .75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Galería strip — thumbnails como botones que abren el lightbox */
.gallery-thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity .2s, transform .2s;
}
.gallery-thumb-btn:hover .gallery-thumb,
.gallery-thumb-btn:focus-visible .gallery-thumb { opacity: .9; transform: scale(1.02); }

.gallery-more-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 18, 64, .65);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 6px;
    pointer-events: none;
}

/* Hero image como botón clickeable que abre el lightbox */
.property-hero-img-btn {
    display: block;
    width: 100%; height: 100%;
    padding: 0; border: 0;
    background: transparent;
    cursor: zoom-in;
}
.property-hero-img-btn .property-hero-img { width: 100%; height: 100%; }

/* ===== LIGHTBOX (modal + carousel Bootstrap) ===== */
.gallery-modal .modal-content,
.gallery-modal-content {
    background: rgba(13, 18, 64, 0.96);
    border: 0;
    border-radius: .5rem;
    overflow: hidden;
}
.gallery-modal .modal-dialog { max-width: 1100px; }
.gallery-modal-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.gallery-modal .carousel-item { text-align: center; padding: 1.5rem; }
.gallery-modal-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    pointer-events: none;
}
.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next { width: 70px; opacity: .9; }
.gallery-modal .carousel-control-prev:hover,
.gallery-modal .carousel-control-next:hover { opacity: 1; }
.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
    width: 44px; height: 44px;
    background-color: rgba(110, 193, 228, .92);
    border-radius: 50%;
    background-size: 50%;
}
.gallery-close {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 10;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ucha-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all .2s;
}
.gallery-close:hover {
    background: var(--ucha-cyan);
    color: var(--ucha-navy);
}

/* Bloques del cuerpo */
.property-block {
    background: #fff;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    margin-bottom: 1.5rem;
}
.property-description {
    color: var(--ucha-text);
    line-height: 1.75;
}

/* Datos clave en card */
.fact-card {
    text-align: center;
    padding: 1.25rem .75rem;
    background: var(--ucha-cyan-pale);
    border-radius: .5rem;
    height: 100%;
}
.fact-icon {
    font-size: 1.6rem;
    color: var(--ucha-cyan);
    margin-bottom: .25rem;
}
.fact-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ucha-navy);
    line-height: 1;
}
.fact-label {
    font-size: .8rem;
    color: var(--ucha-text-muted);
    margin-top: .25rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Tabla de detalles */
.details-box {
    background: var(--ucha-cyan-pale);
    border-radius: .5rem;
    overflow: hidden;
}
.detail-row {
    display: flex !important;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-size: .9rem;
}
.detail-row:nth-last-child(-n+2) { border-bottom: 0; }
.detail-label { color: var(--ucha-text-muted); }
.detail-value { color: var(--ucha-navy); font-weight: 600; }

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}
.features-grid li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .85rem;
    background: var(--ucha-cyan-pale);
    border-radius: 4px;
    font-size: .9rem;
    color: var(--ucha-navy);
}
.features-grid li i {
    color: var(--ucha-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Mapa */
.property-map {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: .5rem;
}

/* Sidebar form contacto */
.contact-form-box {
    background: #fff;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border-top: 4px solid var(--ucha-cyan);
}
.contact-form-box .btn-success {
    background: #2E8540;
    border-color: #2E8540;
}
.contact-form-box .btn-success:hover {
    background: #246a32;
    border-color: #246a32;
}

@media (max-width: 768px) {
    .property-hero { height: 50vh; min-height: 320px; }
    .property-hero-title { font-size: 1.5rem; }
    .property-hero-price { font-size: 1.1rem; padding: .5rem 1rem; }
    .property-hero-badge { top: 12px; left: 12px; font-size: .75rem !important; padding: 4px 10px !important; }
    .property-hero-actions { top: 12px; right: 12px; }
}

/* =====================================================================
   COOKIE BANNER — fijo abajo, navy oscuro con texto claro (AA)
   ===================================================================== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--ucha-navy-deep);
    color: #fff;
    z-index: 9999;
    border-top: 3px solid var(--ucha-cyan);
    box-shadow: 0 -8px 24px rgba(0,0,0,.25);
    padding: 1rem 0;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1 1 320px;
    min-width: 240px;
}
.cookie-banner-text p {
    margin: 0;
    font-size: .9rem;
    color: rgba(255,255,255,.92);
    line-height: 1.5;
}
.cookie-banner-link {
    color: var(--ucha-cyan);
    text-decoration: underline;
    font-size: .85rem;
    font-weight: 500;
    display: inline-block;
    margin-top: .35rem;
}
.cookie-banner-link:hover { color: #fff; }
.cookie-banner-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-banner .btn-outline-light {
    border-color: rgba(255,255,255,.5);
    color: #fff;
}
.cookie-banner .btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

@media (max-width: 600px) {
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: .75rem; text-align: center; }
    .cookie-banner-actions { justify-content: center; }
}
