/* ===================================
   Propiedades y proyectos - BRUTAL UI
   Diseño premium, alto impacto visual
   =================================== */

:root {
    --sys-primary: #FF385C;
    --sys-primary-dark: #E31C5F;
    --sys-primary-light: #FF5A60;
    --sys-primary-glow: rgba(255, 56, 92, 0.25);
    --sys-secondary: #00A699;
    --sys-accent: #00D1C1;
    --sys-bg: #FFFFFF;
    --sys-bg-light: #F7F7F7;
    --sys-bg-hover: #EBEBEB;
    --sys-bg-dark: #0f0f0f;
    --sys-text: #222222;
    --sys-text-light: #717171;
    --sys-text-muted: #DDDDDD;
    --sys-border: #DDDDDD;
    --sys-border-light: #EEEEEE;
    --sys-shadow: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-light: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 48px rgba(0,0,0,0.14);
    --shadow-brutal: 0 24px 56px rgba(0,0,0,0.16);
    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-brutal: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: none;
        --transition-fast: none;
    }
}

/* ===================================
   ARCHIVE - CONTENEDOR Y CABECERA
   =================================== */

.sys-properties-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.sys-archive-header {
    text-align: center;
    margin-bottom: 56px;
    padding: 0 16px;
}

.sys-archive-header h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sys-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.sys-archive-header p {
    font-size: 18px;
    color: var(--sys-text-light);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.6;
}

/* ===================================
   GRID DE TARJETAS - BRUTAL
   =================================== */

.sys-properties-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 56px;
}

.sys-property-card {
    background: var(--sys-bg);
    border-radius: var(--radius-brutal);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--sys-border-light);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 440px;
    box-shadow: var(--shadow-light);
}

.sys-property-card:hover {
    box-shadow: var(--shadow-brutal);
    transform: translateY(-6px);
    border-color: transparent;
}

.sys-property-card:focus-within {
    outline: 2px solid var(--sys-primary);
    outline-offset: 2px;
}

.sys-property-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8e8e8 0%, #f0f0f0 100%);
}

.sys-property-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.sys-property-card:hover .sys-property-card-image::after {
    opacity: 1;
}

.sys-property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.sys-property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-small);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 1;
    transition: var(--transition-fast);
}

.sys-property-card:hover .sys-property-badge {
    background: var(--sys-primary);
}

.sys-property-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sys-property-card-header {
    flex: 1;
    margin-bottom: 20px;
}

.sys-property-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sys-text);
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sys-property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sys-property-title a:hover {
    color: var(--sys-primary);
}

.sys-property-slogan {
    font-size: 15px;
    color: var(--sys-text-light);
    font-weight: 400;
    margin: 0 0 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sys-property-location {
    display: inline-flex;
    align-items: center;
    color: var(--sys-text-light);
    font-size: 14px;
    margin-bottom: 0;
    font-weight: 500;
}

.sys-property-location::before {
    content: '📍';
    margin-right: 8px;
    font-size: 16px;
    opacity: 0.9;
}

.sys-property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--sys-border-light);
    margin-top: auto;
}

.sys-property-specs {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: none;
    flex-wrap: wrap;
}

.sys-property-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--sys-text);
    font-weight: 600;
}

.sys-property-spec strong {
    color: var(--sys-text);
    font-size: 14px;
    font-weight: 700;
}

.sys-property-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--sys-text);
    margin: 0;
    text-align: right;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sys-property-price small {
    font-size: 12px;
    color: var(--sys-text-light);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.sys-property-cta {
    display: flex;
    gap: 10px;
    margin-top: 0;
}

/* Paginación */
.sys-pagination {
    margin-top: 48px !important;
    padding: 24px 0;
    text-align: center;
}

.sys-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sys-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sys-text);
    background: var(--sys-bg);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--radius-small);
    text-decoration: none;
    transition: var(--transition-fast);
}

.sys-pagination .page-numbers:hover,
.sys-pagination .page-numbers.current {
    background: var(--sys-primary);
    color: #fff;
    border-color: var(--sys-primary);
}

.sys-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.sys-pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--sys-text);
}

/* Placeholder cuando no hay imagen en la tarjeta */
.sys-card-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(145deg, #eaeaea 0%, #f5f5f5 100%);
    color: var(--sys-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.sys-card-image-placeholder:hover {
    background: linear-gradient(145deg, #e0e0e0 0%, #eee 100%);
}

.sys-placeholder-icon {
    font-size: 56px;
    opacity: 0.5;
    margin-bottom: 8px;
}

.sys-placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

/* Estado vacío */
.sys-no-properties {
    text-align: center;
    padding: 80px 24px !important;
    background: var(--sys-bg-light);
    border-radius: var(--radius-brutal);
    border: 1px dashed var(--sys-border);
}

.sys-no-properties h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--sys-text);
    margin: 0 0 12px;
}

.sys-no-properties p {
    font-size: 16px;
    color: var(--sys-text-light);
    margin: 0;
}

.sys-no-properties-icon {
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

/* Botones globales */
.sys-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--radius-small);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
    min-height: 48px;
}

.sys-btn:focus-visible {
    outline: 2px solid var(--sys-primary);
    outline-offset: 2px;
}

.sys-btn-primary {
    background: var(--sys-primary);
    color: white;
}

.sys-btn-primary:hover {
    background: var(--sys-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--sys-primary-glow);
}

.sys-btn-whatsapp {
    background: #25D366;
    color: white;
}

.sys-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.sys-btn-secondary {
    background: white;
    color: var(--sys-text);
    border: 2px solid var(--sys-border);
}

.sys-btn-secondary:hover {
    background: var(--sys-bg-hover);
    border-color: var(--sys-text);
}

/* Archive responsive */
@media (max-width: 768px) {
    .sys-properties-container {
        padding: 32px 16px 48px;
    }
    .sys-archive-header {
        margin-bottom: 40px;
    }
    .sys-archive-header h1 {
        font-size: 28px;
    }
    .sys-properties-list {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
    .sys-property-card {
        min-height: 380px;
    }
    .sys-property-card-image {
        height: 260px;
    }
    .sys-card-image-placeholder {
        min-height: 260px;
    }
    .sys-property-card-content {
        padding: 20px;
    }
    .sys-property-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sys-properties-container {
        padding: 24px 12px 40px;
    }
    .sys-property-card-image {
        height: 240px;
    }
    .sys-card-image-placeholder {
        min-height: 240px;
    }
}

/* ===================================
   SINGLE PROPERTY PAGE
   =================================== */

.sys-single-property {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sys-bg);
}

.sys-property-hero {
    position: relative;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: none;
}

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

.sys-property-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.sys-property-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.sys-property-hero-slogan {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.sys-property-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.sys-property-section {
    background: var(--sys-bg);
    padding: 60px 80px;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--sys-border-light);
}

.sys-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--sys-text);
    margin: 0 0 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sys-border-light);
}

.sys-property-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--sys-text);
    margin-bottom: 40px;
}

.sys-amenidades-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.sys-amenidad-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: var(--sys-bg-light);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--radius-medium);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0;
}

.sys-amenidad-item:hover {
    background: var(--sys-bg-hover);
    border-color: var(--sys-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.sys-amenidad-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--sys-secondary);
    color: white;
    border-radius: 50%;
    margin-right: 16px;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sys-amenidad-item:hover::before {
    background: var(--sys-primary);
}

.sys-tipologias-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}

.sys-tipologia-card {
    border: 1px solid var(--sys-border-light);
    border-radius: var(--radius-medium);
    padding: 32px;
    transition: var(--transition);
    background: var(--sys-bg);
    box-shadow: var(--shadow-light);
    margin-bottom: 0;
}

.sys-tipologia-card:hover {
    border-color: var(--sys-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.sys-tipologia-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sys-text);
    margin: 0 0 20px;
}

.sys-tipologia-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sys-tipologia-card .sys-property-spec {
    background: var(--sys-bg-light);
    border: 1px solid var(--sys-border-light);
    padding: 12px 20px;
    border-radius: var(--radius-medium);
    font-size: 16px;
}

/* Gallery */
.sys-property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sys-gallery-item {
    position: relative;
    height: 280px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--sys-border-light);
    transition: var(--transition);
    margin-bottom: 0;
}

.sys-gallery-item:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.03);
}

.sys-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sys-gallery-item:hover img {
    transform: scale(1.08);
}

.sys-planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.sys-plano-item {
    border-radius: var(--radius-medium);
    overflow: hidden;
    border: 1px solid var(--sys-border-light);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 0;
}

.sys-plano-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.sys-plano-image {
    width: 100%;
    height: auto;
}

.sys-plano-title {
    padding: 20px;
    background: var(--sys-bg-light);
    font-weight: 600;
    color: var(--sys-text);
    text-align: center;
    font-size: 16px;
    border-top: 1px solid var(--sys-border-light);
}

/* Sidebar */
.sys-property-sidebar {
    position: sticky;
    top: 0;
    height: fit-content;
    background: var(--sys-bg-light);
    padding: 40px;
}

.sys-contact-card {
    background: var(--sys-bg);
    padding: 32px;
    border: 1px solid var(--sys-border-light);
    border-radius: var(--radius-medium);
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
}

.sys-contact-card:first-child {
    background: var(--sys-primary);
    color: white;
    border-color: var(--sys-primary);
    box-shadow: var(--shadow-hover);
    padding: 40px;
}

.sys-contact-card:first-child .sys-property-price {
    color: white;
}

.sys-contact-card:first-child .sys-property-price small {
    color: rgba(255,255,255,0.9);
}

.sys-contact-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sys-text);
    margin: 0 0 24px;
}

.sys-contact-card:first-child .sys-contact-title {
    color: white;
}

.sys-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    padding: 16px;
    background: var(--sys-bg-light);
    border-radius: var(--radius-medium);
    border: 1px solid var(--sys-border-light);
}

.sys-promotores-list {
    display: grid;
    gap: 20px;
}

.sys-promotor-item {
    text-align: center;
    padding: 24px;
    background: var(--sys-bg);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--radius-medium);
    transition: var(--transition);
}

.sys-promotor-item:hover {
    background: var(--sys-bg-hover);
    border-color: var(--sys-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.sys-promotor-item img {
    max-width: 160px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: var(--radius-medium);
}

/* Subsidios */
.sys-subsidios-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--sys-bg-light);
    border-radius: var(--radius-medium);
    border: 1px solid var(--sys-border-light);
}

.sys-subsidios-logos img {
    max-height: 48px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
    border-radius: var(--radius-small);
}

.sys-subsidios-logos img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* WhatsApp Float */
.sys-whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 72px;
    height: 72px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    transition: var(--transition);
}

.sys-whatsapp-float::before {
    content: '💬';
    font-size: 36px;
}

.sys-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .sys-property-main {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sys-property-sidebar {
        position: relative;
        top: 0;
        background: var(--sys-bg);
        padding: 40px;
    }

    .sys-planos-grid {
        grid-template-columns: 1fr;
    }

    .sys-property-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .sys-property-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .sys-property-hero {
        height: 400px;
        border-radius: 0;
    }

    .sys-property-hero-overlay {
        padding: 40px;
    }

    .sys-property-hero-title {
        font-size: 36px;
    }

    .sys-property-hero-slogan {
        font-size: 18px;
    }

    .sys-section-title {
        font-size: 28px;
    }

    .sys-property-section {
        padding: 32px;
    }

    .sys-property-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sys-gallery-item {
        height: 240px;
    }

    .sys-property-cta {
        flex-direction: column;
    }

    .sys-btn {
        width: 100%;
    }

    .sys-contact-card {
        padding: 24px;
    }

    .sys-property-sidebar {
        padding: 24px;
    }

    .sys-whatsapp-float {
        width: 64px;
        height: 64px;
        bottom: 24px;
        right: 24px;
    }

    .sys-whatsapp-float::before {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .sys-single-property {
        padding: 0;
    }

    .sys-property-hero {
        height: 320px;
        border-radius: 0;
    }

    .sys-property-hero-overlay {
        padding: 24px;
    }

    .sys-property-hero-title {
        font-size: 28px;
    }

    .sys-property-section {
        padding: 24px;
    }

    .sys-tipologia-card {
        padding: 24px;
    }

    .sys-contact-card {
        padding: 20px;
    }

    .sys-property-sidebar {
        padding: 20px;
    }

    .sys-whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .sys-whatsapp-float::before {
        font-size: 28px;
    }
}

/* ===================================
   UBICACIÓN Y MAPA - ESTILOS ESPECÍFICOS
   =================================== */
.sys-property-location-info {
    margin-bottom: 24px;
    padding: 0;
}

.sys-location-text {
    font-size: 18px;
    color: var(--sys-text);
    font-weight: 500;
    padding: 20px 24px;
    background: var(--sys-bg-light);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--radius-medium);
    display: block;
    margin-bottom: 16px;
    transition: var(--transition);
}

.sys-location-text:hover {
    background: var(--sys-bg-hover);
    border-color: var(--sys-border);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.sys-property-map {
    height: 400px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    margin-top: 0;
    border: 1px solid var(--sys-border-light);
    box-shadow: var(--shadow-light);
    background: #f0f0f0;
    position: relative;
}

.sys-property-map::before {
    content: '📍 Mapa de la ubicación';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: var(--sys-text-light);
    font-weight: 500;
    z-index: 1;
}

/* Estilos para cuando el mapa está cargado */
.sys-property-map.leaflet-container {
    background: transparent;
}

.sys-property-map.leaflet-container::before {
    display: none;
}


