/* ==========================================================================
   Catálogo de Espacios & Ficha de Detalle (1600px, Responsive & Táctil)
   Mundo Sostenible - Estilo Moderno, Limpio y Corporativo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO & FILTROS DEL CATÁLOGO
   -------------------------------------------------------------------------- */
.espacios-catalog-header {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -30px; /* Neutraliza el padding-top de .main-wrapper para llegar arriba */
    background: linear-gradient(135deg, #18201a 0%, #222e25 60%, #171f19 100%);
    border-radius: 0;
    padding: 60px 0 45px 0;
    margin-bottom: 45px;
    color: #ffffff;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(195, 214, 0, 0.2);
    box-sizing: border-box;
    z-index: 10;
}

.catalog-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.espacios-catalog-header::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 214, 0, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.espacios-catalog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(195, 214, 0, 0.15);
    color: #c3d600;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(195, 214, 0, 0.35);
    margin: 0 auto 14px auto;
}

.espacios-catalog-title {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 auto 12px auto;
    text-align: center;
}

.espacios-catalog-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 780px;
    line-height: 1.6;
    margin: 0 auto 28px auto;
    text-align: center;
}

/* Barra de Filtros Táctiles */
.filters-bar-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 30;
    width: 100%;
}

.filters-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 2px 8px 2px;
    width: 100%;
    max-width: 100%;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.filters-row-categories {
    gap: 10px;
}

.filters-row-dropdowns {
    gap: 12px;
    padding-top: 2px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    user-select: none;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(195, 214, 0, 0.4);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--primary);
    color: #111827;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(195, 214, 0, 0.35);
    font-weight: 700;
}



.catalog-counter-pill {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

/* ==========================================================================
   CUSTOM DROPDOWN ESTILIZADO (DESKTOP & MÓVIL)
   ========================================================================== */
.custom-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
}

.custom-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.custom-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(195, 214, 0, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.custom-dropdown.open .custom-dropdown-toggle {
    background: rgba(26, 34, 27, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(195, 214, 0, 0.25);
}

.custom-dropdown.has-selection .custom-dropdown-toggle {
    border-color: rgba(195, 214, 0, 0.6);
}

.custom-dropdown-selected {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dropdown-pin-icon {
    color: var(--primary);
    font-size: 0.95rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Menú desplegable con diseño moderno oscuro tipo tarjeta */
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max-content;
    background: #18201a;
    border: 1px solid rgba(195, 214, 0, 0.4);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    padding: 8px;
    margin: 0;
    list-style: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(195, 214, 0, 0.4) transparent;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.custom-dropdown-item i {
    width: 18px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.9rem;
    transition: color 0.18s ease;
    flex-shrink: 0;
}

.custom-dropdown-item:hover {
    background: rgba(195, 214, 0, 0.12);
    color: #ffffff;
}

.custom-dropdown-item:hover i {
    color: var(--primary);
}

.custom-dropdown-item.active {
    background: var(--primary);
    color: #111827;
    font-weight: 700;
}

.custom-dropdown-item.active i {
    color: #111827;
}

/* Modos Responsive: Desktop vs Móvil */
.desktop-filters-only {
    display: flex;
}

.mobile-filters-container {
    display: none;
}

@media (max-width: 900px) {
    .desktop-filters-only {
        display: none !important;
    }

    .mobile-filters-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }

    .mobile-filters-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%;
    }

    .mobile-select-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-filter-label {
        font-size: 0.82rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-filter-label i {
        color: var(--primary);
    }

    .mobile-full-dropdown {
        width: 100%;
    }

    .mobile-full-dropdown .custom-dropdown-toggle {
        width: 100%;
        border-radius: 14px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .mobile-full-dropdown .custom-dropdown-menu {
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 560px) {
    .mobile-filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   2. TARJETAS DEL CATÁLOGO (ESPACIOS GRID)
   -------------------------------------------------------------------------- */
.espacios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 50px;
}

@media (max-width: 1100px) {
    .espacios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .espacios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.espacio-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, opacity 0.25s ease;
    position: relative;
    opacity: 1;
}

.espacio-card-modern.filtering-out {
    opacity: 0;
    transform: scale(0.95);
}

.espacio-card-modern.filtering-in {
    animation: cardFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



.espacio-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(195, 214, 0, 0.6);
}

/* Contenedor de la Imagen */
.espacio-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    background: #0f172a;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.espacio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.espacio-card-modern:hover .espacio-card-media img {
    transform: scale(1.05);
}

.espacio-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.espacio-media-placeholder i {
    font-size: 2rem;
    color: #94a3b8;
}

/* Badges sobre la imagen */
.espacio-card-badges-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.espacio-type-tag {
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.espacio-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.espacio-status-badge.disponible {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.espacio-status-badge.ocupado,
.espacio-status-badge.no-disponible {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.espacio-status-badge.reservado {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* Cuerpo de la tarjeta */
.espacio-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.espacio-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-main);
}

.espacio-card-title a {
    color: inherit;
    text-decoration: none;
}

.espacio-card-title a:hover {
    color: #4d5800;
}

.espacio-card-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

/* Features rápidas con microiconos */
.espacio-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
}

.espacio-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}

.espacio-spec-item i {
    color: #849600;
    font-size: 0.95rem;
}

/* Pie de la tarjeta: Precio y Botón táctil */
.espacio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    gap: 12px;
}

.espacio-price-block {
    display: flex;
    flex-direction: column;
}

.espacio-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.espacio-price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.espacio-price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    min-height: 48px;
    background: #111827;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-card-action:hover {
    background: var(--primary);
    color: #111827;
    box-shadow: none;
    transform: none;
}

.btn-card-action i {
    transition: transform 0.2s ease;
}

.btn-card-action:hover i {
    transform: translateX(4px);
}

/* Estado de catálogo vacío */
.espacios-empty-state {
    text-align: center;
    padding: 70px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border-color);
    margin: 20px 0 50px 0;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    color: #849600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto 24px auto;
}

/* --------------------------------------------------------------------------
   3. FICHA DE DETALLE DEL ESPACIO (DISEÑO FIEL A MUNDOSOSTENIBLE.ES)
   Mosaico Airbnb, Sticky Booking Card, Highlights, Equipamiento y Mapa
   -------------------------------------------------------------------------- */

/* Hero Section (Integrado en el fondo continuo de la página) */
.single-office-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: transparent;
}

.soh-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    width: 100%;
}

.office-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.office-breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.office-breadcrumb a:hover {
    color: var(--primary-hover);
}

.office-breadcrumb svg {
    color: #cbd5e1;
    display: inline-block;
    vertical-align: middle;
}

.office-breadcrumb > span:not(.badge) {
    color: var(--text-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.office-breadcrumb .breadcrumb-status-badge {
    margin-left: 0.35rem;
    font-size: 0.72rem;
    padding: 3px 10px;
    line-height: 1.2;
    vertical-align: middle;
    align-self: center;
}

.soh-header-text {
    margin-bottom: 1.5rem;
    position: relative;
}

.pos-relative-badge {
    position: relative;
    display: inline-flex;
    margin-bottom: 0.75rem;
}

.soh-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #111827;
}

.soh-title .title-highlight {
    color: var(--primary);
    font-weight: 800;
}

.soh-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.soh-location svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Gallery Grid (Mosaico Airbnb de mundosostenible.es) */
.soh-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.gallery-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-main img, .gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.gallery-main:hover img, .gallery-side:hover img {
    transform: scale(1.03);
}

.gallery-side {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-side-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-side-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Badge flotante de Espacio Destacado sobre la foto principal */
.gallery-destacado-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-left: 4px solid #eab308;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    z-index: 3;
    pointer-events: none;
    letter-spacing: 0.2px;
}

.gallery-destacado-badge i {
    color: #eab308;
    font-size: 0.95rem;
}

/* Badge píldora de Espacio Destacado en breadcrumb / cabecera */
.badge-destacado-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 9999px;
    line-height: 1.2;
    vertical-align: middle;
    align-self: center;
}

.badge-destacado-pill i {
    color: #eab308;
    font-size: 0.75rem;
}

.btn-gallery-more {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: #ffffff;
    color: #111827;
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
    transition: all 0.2s ease;
    z-index: 2;
}

.btn-gallery-more:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: none;
    box-shadow: none;
}

.btn-gallery-more svg {
    color: #111827;
}

@media (max-width: 991px) {
    .soh-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        border-radius: 18px;
    }
    .gallery-main {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        aspect-ratio: 4 / 3;
        position: relative;
    }
    .gallery-side-top, .gallery-side-bottom {
        display: none;
    }
    .btn-gallery-more {
        display: flex !important;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Content Layout Ficha + Sticky Sidebar */
.single-office-content {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    background-color: transparent;
}

.container-office-layout {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
}

.sol-main {
    flex: 1;
    min-width: 0;
}

.sol-sidebar {
    width: 440px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
}

@media (max-width: 1024px) {
    .container-office-layout {
        flex-direction: column;
        gap: 2.5rem;
    }
    .sol-sidebar {
        width: 100%;
        position: static;
    }
}

/* Highlights Chips */
.soc-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.soc-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.soc-chip svg {
    color: var(--primary-hover);
    flex-shrink: 0;
}

.soc-chip span {
    font-size: 0.98rem;
    color: var(--text-main);
}

.soc-chip strong {
    font-size: 1.05rem;
    color: #111827;
}

.soc-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem 0;
}

.soc-section {
    margin-bottom: 2.5rem;
}

.soc-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
}

.soc-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
}

/* Amenities Grid (Equipamiento) */
.soc-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.amenity-icon {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #849600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.03);
}

.amenity-icon svg {
    width: 24px;
    height: 24px;
}

.amenity-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

/* Extras */
.soc-list-extra li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    color: #475569;
}

.plus-icon {
    font-weight: 700;
    color: #849600;
}

/* Sticky Booking Card */
.sticky-booking-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.sbc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.sbc-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.sbc-period {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.sbc-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.pc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.sbc-features {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.75rem 0;
    margin-bottom: 1.75rem;
}

.sbc-feat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.sbc-feat-row:last-child {
    margin-bottom: 0;
}

.sbc-feat-val {
    font-weight: 700;
    color: var(--text-main);
}

.sbc-feat-val.highlight {
    color: #10b981;
}

.sbc-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.5rem;
}

.sbc-btn {
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

/* Botón 1: Reservar espacio (Destacado Principal en Verde Corporativo sin resplandores) */
.sbc-btn-reservar {
    background: var(--primary);
    color: #111827;
    border: 1px solid var(--primary);
    box-shadow: none;
}

.sbc-btn-reservar:hover {
    background: var(--primary-hover);
    color: #111827;
    border-color: var(--primary-hover);
    transform: none;
    box-shadow: none;
}

/* Botón 2: Información sobre este espacio (Secundario Elegante) */
.sbc-btn-contactar {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
    box-shadow: none;
}

.sbc-btn-contactar:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   MODAL DE CONTACTO / INFORMACIÓN DEL ESPACIO
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-modal-container {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.custom-modal-overlay.active .custom-modal-container {
    transform: translateY(0) scale(1);
}

.custom-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.custom-modal-header {
    margin-bottom: 24px;
}

.modal-badge-space {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(195, 214, 0, 0.2);
    color: #556300;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.custom-modal-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.custom-modal-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.custom-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 540px) {
    .form-row-modal {
        grid-template-columns: 1fr;
    }
}

.modal-form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.modal-form-input,
.modal-form-textarea {
    width: 100%;
    padding: 12px 16px;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.modal-form-textarea {
    resize: vertical;
    min-height: 85px;
}

.modal-form-input:focus,
.modal-form-textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(195, 214, 0, 0.25);
}

.form-privacy-group {
    padding: 6px 0;
}

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.45;
    cursor: pointer;
}

.privacy-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #849600;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-checkbox-label a {
    color: #556300;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-checkbox-label a:hover {
    color: #000000;
}

.btn-modal-submit {
    width: 100%;
    min-height: 50px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none;
}

.modal-feedback-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

.modal-feedback-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.modal-feedback-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Office Map Section (Full Ancho, Fondo #c3d600, Letras Negras y Sin Margen con Footer) */
.office-map-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4.5rem 0 5.5rem 0;
    margin-bottom: -30px; /* Neutraliza el padding-bottom de .main-wrapper para tocar el footer */
    background-color: #c3d600;
    color: #000000;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.om-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .om-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.om-text h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.2;
}

.om-text p {
    color: #111827;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
}

.om-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.om-badge {
    background: #000000;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.65rem 1.2rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.om-map-wrapper iframe {
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(0, 0, 0, 0.08) !important;
}

/* Lightbox Modal (Fiel a mundosostenible.es) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100000;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
    color: var(--primary);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 992px) {
    .catalog-hero-inner {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .lightbox-prev, .lightbox-next {
        top: auto;
        bottom: 2rem;
        transform: none;
        font-size: 1.8rem;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        width: 54px;
        height: 54px;
    }
    .lightbox-prev { left: 22%; }
    .lightbox-next { right: 22%; }
}

