        @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&family=Prompt:wght@300;400;600;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Open Sans';
        }

        body {
            background-color: #eceff1;
        }

        /* Estilos para las imágenes de la galería */
        .galeria {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 20px 0;
        }

        .galeria img {
            width: 100px;
            height: 80px;
            object-fit: cover;
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .galeria img:hover {
            transform: scale(1.05);
        }

        /* Estilo para la imagen principal */
        .contenedor-imagen-principal {
            width: 100%;
            max-height: 500px;
            overflow: hidden;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .contenedor-imagen-principal img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* Estilos para el modal de la galería */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            text-align: center;
        }

        .modal-content {
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            max-width: 90vw !important;
            max-height: 90vh !important;
            background: transparent !important;
            box-shadow: none !important;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 0 !important;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        /* H E A D E R */

        .contenedor-header header .nav-responsive {
            display: none;
            font-size: 25px;
            margin-right: 15px;
            /* Aumenta la separación */
        }

        .contenedor-header header nav.responsive {
            max-width: 100%;
            display: block;
            position: absolute;
            top: 65px;
            background: linear-gradient(to right, #023e8a, #00b4d8);
            left: 0;
            width: 80%;
            /* Reducir el ancho */
            margin: 0 auto;
            right: 0;
            border-radius: 10px;
            /* Bordes redondeados */
            z-index: 1000;
            /* Asegurar que esté por encima de otros elementos */
        }

        .contenedor-header header nav.responsive a {
            display: block;
            width: 100%;
            text-align: center;
            margin: 15px 0;
        }

        .contenedor-header {
            background: linear-gradient(to left, #0047AB, #4682B4);
            /* border-bottom: 2px solid #424242; */
        }

        .contenedor-header header .logo {
            max-width: 300px;
            width: 100%;
        }

        /* Nueva regla para separar los elementos en móvil */
        @media only screen and (max-width: 900px) {
            .contenedor-header header .logo {
                max-width: 65% !important;
            }

            .contenedor-header .logo .logo-main {
                font-size: 20px !important;
            }

            .contenedor-header .logo .logo-sub {
                font-size: 10px !important;
            }

            .contenedor-header .logo img {
                height: 40px !important;
            }
        }

        .contenedor-header .logo a {
            text-decoration: none;
            color: #fff;
            display: flex;
            align-items: center;
        }

        .contenedor-header .logo img {
            height: 50px;
            margin-right: 10px;
        }

        .contenedor-header .logo-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }

        .contenedor-header .logo .logo-main {
            font-size: 22px;
            font-weight: bold;
            line-height: 1.2;
            margin: 0;
        }

        .contenedor-header .logo .logo-sub {
            font-size: 11px;
            font-weight: normal;
            line-height: 1;
            margin: 0;
        }

        .contenedor-header nav {
            max-width: 500px;
            width: 100%;
            display: flex;
            justify-content: flex-start;
            margin-left: -40px;
        }

        .contenedor-header .info-contacto {
            max-width: 260px;
            width: 100%;
            text-align: right;
        }

        .contenedor-header .info-contacto a {
            text-decoration: none;
        }

        .contenedor-header .info-contacto a {
            color: #fff;
            padding: 5px;
            transition: .5s;
        }

        .contenedor-header .info-contacto a:hover {
            color: #000;

        }

        .contenedor-header .info-contacto span {
            margin-left: 10px;
        }

        .contenedor-header header {
            max-width: 1200px;
            margin: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            color: #fff;
        }

        .contenedor-header nav a {
            font-size: 14px;
            padding: 5px 10px;
            color: #fff;
            display: inline-block;
            text-decoration: none;
            font-weight: bold;
            margin: 0 5px;
            transition: .5s;
            border-radius: 50px;
        }

        .contenedor-header nav a:hover {
            background-color: #00336B;
            font-size: 14px;
            color: #fff;
            display: inline-block;
            text-decoration: none;
            font-weight: bold;
            margin: 0 5px;
        }

        /* H O M E */

        .home {
            background: url(img/homeliving.jpeg);
            background-size: cover;
            background-attachment: fixed;
            background-position: center center;
            background-repeat: no-repeat;
            width: 100%;
        }

        .home h2 {
            text-align: center;
            padding-top: 50px;
            color: #ffffff;
            font-size: 50px;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.9);
            font-weight: bold;
        }

        /* BARRA DE B U S Q U E D A*/

        .pos-inferior {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .pos-centrada {
            margin: 30px auto;
        }

        .box-buscar-propiedades {
            max-width: 900px;
            width: 100%;
            background: linear-gradient(to left, #0047AB, #4682B4) !important;
            padding: 3px !important;
            bottom: 100px;
            border-radius: 15px;
        }

        .box-buscar-propiedades .box-interior {
            background-color: #fff;
            padding: 30px;
            text-align: center;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .box-buscar-propiedades .box-interior p {
            color: #424242;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .box-buscar-propiedades .box-interior select {
            width: 180px;
            background-color: #eee;
            color: #131313;
            border: 1px solid #ccc;
            padding: 7px 10px;
            margin: 0 10px;
            font-size: 12px;
            border-radius: 8px;
            outline: none;
            transition: border-color 0.3s;
        }

        .box-buscar-propiedades .box-interior input[type=submit] {
            width: 150px;
            padding: 7px;
            font-size: 14px;
            font-weight: bold;
            background: linear-gradient(to left, #0047AB, #4682B4);
            color: #fff;
            border: none;
            cursor: pointer;
            transition: .5s;
            border-radius: 8px;
        }

        .box-buscar-propiedades .box-interior input[type=submit]:hover {
            background-color: #0039A6;
        }

        .box-buscar-propiedades .box-interior select:focus {
            border-color: #0047AB;
            box-shadow: 0 0 5px rgba(0, 71, 171, 0.3);
        }

        .box-buscar-propiedades .box-interior input[type=radio] {
            font-size: 14px;
        }

        .box-buscar-propiedades .box-interior .estado {
            width: 180px;
            background-color: #f5f5f5;
            color: #131313;
            border: 1px solid #ccc;
            padding: 5px 10px;
            margin: 0 10px;
            font-size: 12px;
            display: inline-flex;
            align-items: center;
            border-radius: 8px;
        }

        .box-buscar-propiedades .box-interior .estado span {
            margin: 0 7px;
        }

        /* P R O P I E D A D E S */

        .page-propiedades .contenedor-propiedades {
            max-width: 1200px;
            margin: auto;
            padding: 0 15px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .page-propiedades .titulo-seccion {
            text-align: center;
            color: #2c3e50;
            font-size: 32px;
            font-weight: 800;
            margin: 25px 0 20px 0;
            position: relative;
            background: linear-gradient(135deg, #0047AB 0%, #4682B4 50%, #00b4d8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .page-propiedades .titulo-seccion::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #0047AB 0%, #4682B4 50%, #00b4d8 100%);
            border-radius: 2px;
        }

        .page-propiedades .fila {
            display: contents;
        }

        /* ✨ PREMIUM CARD DESIGN - GRID PERFECTO ✨ */
        .page-propiedades .contenedor-propiedad.modern-card {
            width: 100%;
            max-width: none;
            min-width: 0;
            height: 500px;
            margin: 0;
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            border-radius: 16px;
            box-shadow:
                0 8px 20px rgba(0, 71, 171, 0.08),
                0 3px 10px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            border: 1px solid rgba(0, 71, 171, 0.1);
            background-clip: padding-box;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .page-propiedades .contenedor-propiedad.modern-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #0047AB, #4682B4, #00b4d8);
            border-radius: 20px;
            padding: 2px;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .page-propiedades .contenedor-propiedad.modern-card:hover::before {
            opacity: 1;
        }

        .page-propiedades .contenedor-propiedad.modern-card:hover {
            transform: translateY(-6px);
            box-shadow:
                0 15px 30px rgba(0, 71, 171, 0.12),
                0 8px 20px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border-color: rgba(0, 71, 171, 0.2);
        }

        .page-propiedades .contenedor-propiedad .contenedor-img {
            width: 100%;
            position: relative;
            overflow: hidden;
            height: 200px;
            flex-shrink: 0;
            border-radius: 14px 14px 0 0;
        }

        .page-propiedades .contenedor-propiedad .contenedor-img::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg,
                    transparent 0%,
                    transparent 60%,
                    rgba(0, 71, 171, 0.1) 100%);
            pointer-events: none;
        }

        .page-propiedades .contenedor-propiedad .contenedor-img img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            filter: brightness(1) saturate(1.1);
        }

        .page-propiedades .contenedor-propiedad:hover .contenedor-img img {
            transform: scale(1.08) rotate(1deg);
            filter: brightness(1.1) saturate(1.2) contrast(1.1);
        }

        .page-propiedades .contenedor-propiedad .contenedor-img .estado {
            position: absolute;
            top: 16px;
            left: 16px;
            background: linear-gradient(135deg, #0047AB 0%, #4682B4 50%, #00b4d8 100%);
            color: #fff;
            padding: 10px 16px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow:
                0 8px 20px rgba(0, 71, 171, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            animation: pulse-glow 2s ease-in-out infinite alternate;
        }

        @keyframes pulse-glow {
            0% {
                box-shadow:
                    0 8px 20px rgba(0, 71, 171, 0.4),
                    0 4px 10px rgba(0, 0, 0, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }

            100% {
                box-shadow:
                    0 12px 30px rgba(0, 71, 171, 0.6),
                    0 6px 15px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }
        }

        .page-propiedades .contenedor-propiedad .contenedor-img .estado i {
            font-size: 10px;
        }

        .page-propiedades .contenedor-propiedad .contenedor-img .overlay-hover {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg,
                    rgba(0, 71, 171, 0.9) 0%,
                    rgba(70, 130, 180, 0.8) 50%,
                    rgba(0, 180, 216, 0.9) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            color: white;
            font-weight: 700;
            backdrop-filter: blur(10px);
            transform: scale(0.8);
        }

        .page-propiedades .contenedor-propiedad:hover .overlay-hover {
            opacity: 1;
            transform: scale(1);
        }

        .page-propiedades .contenedor-propiedad .overlay-hover i {
            font-size: 32px;
            margin-bottom: 12px;
            animation: bounce-icon 0.6s ease-out;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .page-propiedades .contenedor-propiedad .overlay-hover span {
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        @keyframes bounce-icon {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateY(0);
            }

            40% {
                transform: translateY(-10px);
            }

            60% {
                transform: translateY(-5px);
            }
        }

        .page-propiedades .contenedor-propiedad .info {
            padding: 20px;
            height: 300px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            position: relative;
        }

        .page-propiedades .contenedor-propiedad .info::before {
            content: '';
            position: absolute;
            top: 0;
            left: 24px;
            right: 24px;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, #0047AB 50%, transparent 100%);
            opacity: 0.3;
        }

        .page-propiedades .contenedor-propiedad .header-info {
            margin-bottom: 12px;
        }

        .page-propiedades .contenedor-propiedad .titulo-propiedad {
            font-size: 16px;
            font-weight: 700;
            color: #2c3e50;
            margin: 0 0 6px 0;
            line-height: 1.2;
            height: 40px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .page-propiedades .contenedor-propiedad .ubicacion {
            display: flex;
            align-items: center;
            color: #7f8c8d;
            font-size: 14px;
            gap: 6px;
        }

        .page-propiedades .contenedor-propiedad .ubicacion i {
            color: #0047AB;
            font-size: 12px;
        }

        .page-propiedades .contenedor-propiedad .precio-container {
            margin: 10px 0;
            padding: 8px 0;
            border-top: 1px solid #ecf0f1;
            border-bottom: 1px solid #ecf0f1;
        }

        .page-propiedades .contenedor-propiedad .precio {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(135deg, #0047AB 0%, #4682B4 50%, #00b4d8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
            text-shadow: 0 2px 4px rgba(0, 71, 171, 0.1);
            position: relative;
        }



        .page-propiedades .contenedor-propiedad .caracteristicas {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            border-radius: 12px;
            padding: 16px 10px;
            border: 1px solid rgba(0, 71, 171, 0.15);
            box-shadow: inset 0 1px 3px rgba(0, 71, 171, 0.05);
            min-height: 80px;
        }

        .page-propiedades .contenedor-propiedad .caracteristica {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            flex: 1;
            padding: 8px 6px;
            position: relative;
            transition: all 0.3s ease;
            border-radius: 8px;
            min-height: 60px;
            justify-content: center;
        }

        .page-propiedades .contenedor-propiedad .caracteristica:hover {
            transform: translateY(-2px);
        }

        .page-propiedades .contenedor-propiedad .caracteristica:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 30px;
            background: linear-gradient(180deg, transparent 0%, #0047AB 50%, transparent 100%);
            opacity: 0.3;
        }

        .page-propiedades .contenedor-propiedad .caracteristica i {
            color: #0047AB;
            font-size: 18px;
            margin-bottom: 6px;
            padding: 6px;
            background: linear-gradient(135deg, rgba(0, 71, 171, 0.1) 0%, rgba(70, 130, 180, 0.1) 100%);
            border-radius: 50%;
            transition: all 0.3s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .page-propiedades .contenedor-propiedad .caracteristica:hover i {
            background: linear-gradient(135deg, #0047AB 0%, #4682B4 100%);
            color: white;
            transform: scale(1.1);
        }

        .page-propiedades .contenedor-propiedad .caracteristica .numero {
            font-size: 20px;
            font-weight: 800;
            color: #1e293b;
            display: block;
            margin-bottom: 2px;
            line-height: 1;
        }

        .page-propiedades .contenedor-propiedad .caracteristica .label {
            font-size: 11px;
            color: #0047AB;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 4px;
            line-height: 1.2;
            display: block;
        }

        .page-propiedades #botonCargarMas {
            display: block;
            width: 220px;
            margin: 50px auto;
            padding: 18px 35px;
            font-size: 16px;
            font-weight: 700;
            background: linear-gradient(135deg, #0047AB 0%, #4682B4 50%, #00b4d8 100%);
            color: #fff;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow:
                0 8px 25px rgba(0, 71, 171, 0.3),
                0 4px 15px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        .page-propiedades #botonCargarMas::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .page-propiedades #botonCargarMas:hover::before {
            left: 100%;
        }

        .page-propiedades #botonCargarMas:hover {
            background: linear-gradient(135deg, #003d96 0%, #3a6fa5 50%, #0099cc 100%);
            transform: translateY(-4px) scale(1.05);
            box-shadow:
                0 15px 35px rgba(0, 71, 171, 0.4),
                0 8px 25px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .page-propiedades #botonCargarMas:active {
            transform: translateY(-2px) scale(1.02);
        }

        /* P U B L I C A C I O N */

        .page-publicacion .contenedor-principal {
            max-width: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
        }

        .page-publicacion .contenedor-principal .info-publicacion {
            width: 100%;
            max-width: 100%;
        }

        .page-publicacion .contenedor-principal .info-publicacion h2 {
            margin-bottom: 7px;
        }

        .page-publicacion .contenedor-principal .form-contacto {
            width: 100%;
            max-width: 300px;
            display: none;
            /* Hiding the contact form to give more space to the content */
        }

        .page-publicacion section {
            width: 100%;
            background-color: #fff;
            border: 1px solid #aaa;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .page-publicacion .info-publicacion .dato1 {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .page-publicacion .info-publicacion .dato1 .precio {
            display: inline-block;
            font-size: 26px;
            color: #ff5d55;
            margin: 5px 0;
            font-weight: bolder;
        }

        /* Estilos para la imagen principal y galería */
        .page-publicacion .contenedor-imagen-principal {
            width: 100%;
            max-height: 70vh;
            /* Altura máxima del 70% del viewport */
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f5f5;
            border-radius: 8px;
            margin-bottom: 20px;
            padding: 20px;
            box-sizing: border-box;
        }

        .page-publicacion .contenedor-imagen-principal img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            object-position: center;
            display: block;
        }

        .page-publicacion .galeria {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            margin: 20px 0;
        }

        .page-publicacion .galeria img {
            width: 100%;
            height: 100%;
            max-height: 120px;
            object-fit: contain;
            object-position: center;
            background-color: #f5f5f5;
            border-radius: 5px;
            padding: 5px;
            box-sizing: border-box;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .page-publicacion .galeria img:hover {
            transform: scale(1.05);
        }

        .page-publicacion .info-publicacion .dato1 .estado {
            display: inline-block;
            background-color: #e53935;
            color: #fff;
            padding: 10px 20px;
            font-weight: bold;
        }

        .page-publicacion .info-publicacion .contenedor-imagen-principal {
            width: 100%;
            margin-top: 15px;
        }

        .page-publicacion .info-publicacion .contenedor-imagen-principal img {
            width: 100%;
        }

        .page-publicacion .info-publicacion .galeria {
            margin-top: 20px;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 15px 0;
        }

        .page-publicacion .info-publicacion .galeria img {
            width: 100px;
            height: 80px;
            object-fit: cover;
            cursor: pointer;
            border-radius: 4px;
            transition: transform 0.3s ease;
            background-color: #f5f5f5;
        }

        .page-publicacion .info-publicacion .galeria img:hover {
            transform: scale(1.05);
        }

        .page-publicacion .info-publicacion .descripcion .fila {
            display: flex;
            margin: 30px 0
        }

        .page-publicacion .info-publicacion .descripcion .fila .dato {
            width: 150px;
            border-left: 5px solid #1976d2 !important;
            padding-left: 5px;
        }

        .page-publicacion .info-publicacion .descripcion .fila .dato span {
            display: block;
        }

        .page-publicacion .info-publicacion .descripcion .fila .dato .header {
            font-size: 13px;
            font-weight: bold;
            color: #1976d2 !important;
        }

        .page-publicacion .info-publicacion .descripcion .fila .dato .valor {
            font-size: 13px;
            color: #607d8b;
        }

        .page-publicacion .info-publicacion .descripcion .detalle {
            width: 100%;
            height: 100%;
        }

        .page-publicacion .form-contacto-publicacion {
            max-width: 320px;
            width: 100%;
            background-color: #fff;
            border: 1px solid #aaa;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .page-publicacion .form-contacto-publicacion h3 {
            margin-bottom: 10px;
        }

        .page-publicacion .form-contacto-publicacion label {
            display: block;
            width: 100%;
            margin-bottom: 6px;
            color: #607d8b;
        }

        .page-publicacion .form-contacto-publicacion div {
            margin-bottom: 15px;
        }

        .page-publicacion .form-contacto-publicacion input,
        .page-publicacion .form-contacto-publicacion textarea {
            display: block;
            width: 100%;
            padding: 10px;
        }

        .page-publicacion .compartir a {
            font-size: 24px;
            padding: 5px 0;
            display: inline-block;
            width: 60px;
            background-color: #ff5d55;
            color: #fff;
            text-decoration: none;
            text-align: center;
            margin-right: 20px;
            transition: .5s;
        }

        .page-publicacion .compartir a:hover {
            background-color: #e53935;
        }

        .page-publicacion .compartir a .fa-whatsapp {
            font-size: 30px;
        }

        .page-publicacion .compartir h3 {
            margin-bottom: 15px;
        }

        /* Ventana MODAL para las imagenes */

        .modal {
            display: none;
            /* Hidden by default */
            position: fixed;
            /* Stay in place */
            z-index: 1;
            /* Sit on top */
            left: 0;
            top: 0;
            width: 100%;
            /* Full width */
            height: 100%;
            /* Full height */
            overflow: hidden;
            /* Enable scroll if needed */
            background-color: rgb(0, 0, 0);
            /* Fallback color */
            background-color: rgba(0, 0, 0, 0.8);
            /* Black w/ opacity */
            justify-content: center;
            align-items: center;
        }

        /* Modal Content/Box */

        #fotoModal {
            display: block !important;
            margin: 0 auto !important;
            max-width: 90vw !important;
            max-height: 80vh !important;
            width: auto !important;
            height: auto !important;
            object-fit: contain !important;
            background: #222 !important;
            border-radius: 10px !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        }

        .modal-content button {
            font-size: 18px;
            padding: 5px 10px;
        }

        .modal-content span i {
            font-size: 18px;
            padding: 5px 15px;
            margin: 0 10px;
            background-color: #424242;
            border-radius: 20px;
            color: #aaa;
            cursor: pointer;
        }

        .modal-content span i:hover {
            background-color: #000;
            color: fff;
        }

        /* The Close Button */

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            margin-top: -10px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* B U S Q U E D A */

        .page-busqueda .contenedor-busqueda {
            max-width: 1200px;
            margin: 40px auto;
            background-color: #fff;
            border: 1px solid #aaa;
            padding: 0 15px;
        }

        .page-busqueda .contenedor-busqueda h3 {
            margin-top: 7px;
            font-size: 16px;
        }

        .page-busqueda .contenedor-busqueda h3 span {
            font-weight: normal;
            font-style: italic;
        }

        .page-busqueda .resultado {
            width: 100%;
            background-color: #eee;
            border: 1px solid #424242;
            box-shadow: 2px 2px 3px #424242;
            margin: 20px 0;
            display: flex;
            padding: 5px;
            cursor: pointer;
        }

        .page-busqueda .resultado .contenedor-imagen {
            flex: 0 0 250px;
            height: 180px;
            margin-right: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background-color: #f5f5f5;
            border-radius: 5px;
            padding: 10px;
            box-sizing: border-box;
        }

        .page-busqueda .resultado .contenedor-imagen img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            object-position: center;
            display: block;
            margin: 0 auto;
        }

        .page-busqueda .resultado .info {
            width: 100%;
        }

        .page-busqueda .resultado .info .titulo {
            font-size: 18px;
            font-weight: bold;
        }

        .page-busqueda .resultado .info .detalles {
            margin: 10px 0;
            display: flex;
        }

        .page-busqueda .resultado .info .detalles .dato1 {
            max-width: 140px;
            width: 100%;
            border-left: 5px solid #1976d2 !important;
            padding-left: 5px;
        }

        .page-busqueda .resultado .info .detalles .dato1 span {
            display: block;
        }

        .page-busqueda .resultado .info .detalles .dato1 .header {
            font-weight: bold;
            display: block;
            color: #1976d2 !important;
        }

        .page-busqueda .resultado .info .detalles .dato1 .header {
            font-weight: bold;
            color: #444;
            display: block;
            font-size: 14px;
        }

        .page-busqueda .resultado .info .detalles .dato1 .texto {
            font-size: 14px;
            color: #607d8b;
        }

        /* C O N T A C T O */

        .page-contacto .contenedor-contacto {
            max-width: 1200px;
            width: 100%;
            margin: 20px auto;
            display: flex;
            justify-content: space-around;
            font-size: 14px;
        }

        .page-contacto .titulo-seccion {
            text-align: center;
            margin-top: 20px;
        }

        .page-contacto .contenedor-contacto .col {
            width: 30%;
            background-color: #fff;
            border: 1px solid #aaa;
        }

        .page-contacto .contenedor-contacto .info {
            padding: 15px;
        }

        .page-contacto .contenedor-contacto .info div {
            margin-bottom: 20px;
        }

        .page-contacto .formulario {
            padding: 15px;
        }

        .page-contacto .formulario h3 {
            margin-bottom: 10px;
        }

        .page-contacto .formulario label {
            display: block;
            width: 100%;
            margin-bottom: 6px;
            color: #607d8b;
        }

        .page-contacto .formulario div {
            margin-bottom: 15px;
        }

        .page-contacto .formulario input,
        .page-contacto .formulario textarea {
            display: block;
            width: 100%;
            padding: 10px;
        }

        /* FOOTER */

        footer {
            width: 100%;
            background-color: #131313;
            color: #aaa;
            text-align: center;
            font-size: 12px;
            padding: 5px 0;
        }

        footer.inferior {
            position: absolute;
            bottom: 0;
        }

        footer.inferior2 {
            position: absolute;
            bottom: 0;
        }

        /* S E C C I O N P A R A M O V I L */
        @media only screen and (max-width: 1000px) {
            .page-publicacion .contenedor-principal {
                max-width: 1200px;
                margin: 40px 10px;
                display: block;
            }

            .page-publicacion .contenedor-principal .info-publicacion {
                max-width: 100%;
            }

            .page-publicacion .info-publicacion .galeria img {
                width: 30%;
                object-fit: cover;
                height: 154px;
                margin-right: 10px;
                cursor: pointer;
            }

            .page-publicacion .form-contacto-publicacion {
                max-width: 100%;

            }

            .page-contacto .contenedor-contacto {
                max-width: 1200px;
                width: 100%;
                margin: 10px auto;
                display: block;
                padding: 10px;
            }

            .page-contacto .contenedor-contacto .col {
                width: 100%;
                margin-bottom: 20px;
            }

            .page-contacto .formulario input,
            .page-contacto .formulario textarea {
                display: block;
                width: 100%;
                padding: 10px;
            }

            footer.inferior2 {
                position: relative;
            }
        }

        @media only screen and (max-width: 900px) {
            .contenedor-header header nav {
                display: none;
            }

            .contenedor-header header .info-contacto .numero-telefono {
                display: none;
            }

            .contenedor-header header .nav-responsive {
                display: block !important;
                margin-left: 20px !important;
                /* Aumentamos la separación del logo */
                margin-right: 20px !important;
                padding: 5px 10px !important;
            }

            .contenedor-header header {
                justify-content: space-between !important;
                /* Equilibra la distribución */
            }

            /* Estilos para el menú responsivo */
            #nav.responsive {
                display: block !important;
                position: absolute !important;
                top: 65px !important;
                background: linear-gradient(to right, #023e8a, #00b4d8) !important;
                left: 10% !important;
                right: 10% !important;
                width: 80% !important;
                margin: 0 auto !important;
                border-radius: 10px !important;
                z-index: 1000 !important;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
            }

            #nav.responsive a {
                display: block !important;
                width: 100% !important;
                text-align: center !important;
                margin: 10px 0 !important;
                padding: 10px 0 !important;
                font-size: 16px !important;
            }

            /* Para asegurar que el formulario no oculte el menú */
            .home .box-buscar-propiedades {
                margin-top: 250px !important;
            }

            .home h2 {
                padding-top: 40px;
                font-size: 30px;
            }

            .home .box-buscar-propiedades {
                position: relative;
                max-width: 350px;
                width: 100%;
                top: 30px;
                background: rgba(0, 0, 0, 0.5);
                left: 50%;
                margin-bottom: 20px;
                /* Añadir margen inferior */
            }

            .home .pos-inferior {
                position: relative;

            }

            .home .box-interior {
                padding: 15px;

            }

            .home .box-buscar-propiedades .box-interior select,
            .home .box-buscar-propiedades .box-interior input[type=submit],
            .home .box-buscar-propiedades .box-interior .estado {
                width: 100%;
                display: block;
                margin-bottom: 10px;
                margin-left: 0;
            }

            /* ESTILO PROPIEDADES */
            .page-propiedades .fila {
                display: block;
                margin: 25px 0;
            }

            .page-propiedades .contenedor-propiedad {
                max-width: 90%;
                margin: 20px auto;
            }

            .page-propiedades .box-buscar-propiedades .box-interior select,
            .page-propiedades .box-buscar-propiedades .box-interior input[type=submit],
            .page-propiedades .box-buscar-propiedades .box-interior .estado {
                width: 100%;
                display: block;
                margin-bottom: 10px;
                margin-left: 0;
            }

            .page-propiedades .box-buscar-propiedades {
                margin: 0px;
            }

            .page-propiedades .box-buscar-propiedades p {
                font-size: 18px;
            }

            .page-propiedades .box-interior {
                padding: 15px;
            }

            .page-busqueda .box-buscar-propiedades .box-interior select,
            .page-busqueda .box-buscar-propiedades .box-interior input[type=submit],
            .page-busqueda .box-buscar-propiedades .box-interior .estado {
                width: 100%;
                display: block;
                margin-bottom: 10px;
                margin-left: 0;
            }

            .page-busqueda #detalle-ocultar {
                display: none;
            }

            .page-busqueda span.titulo {
                font-size: 16px !important;
            }

            .page-busqueda p {
                font-size: 12px;
            }
        }

        @media only screen and (max-width: 450px) {
            .page-publicacion .info-publicacion .descripcion .fila {
                display: block;
                margin: 0;
            }

            .page-publicacion .info-publicacion .descripcion .fila .dato {
                margin: 5px 0;
            }

            .page-publicacion .info-publicacion .descripcion .fila .dato .header {
                display: inline;
            }

            .page-publicacion .info-publicacion .descripcion .fila .dato .valor {
                display: inline;
            }
        }

        .modal-controles {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 18px;
            margin-top: 16px;
            margin-bottom: 0;
            background: none;
            box-shadow: none;
        }

        .modal-controles span {
            background: none;
            color: #222;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            cursor: pointer;
            transition: color 0.2s;
            box-shadow: none;
            border: none;
        }

        .modal-controles span:hover {
            color: #007bff;
            background: none;
        }

        @media (max-width: 600px) {
            .img-propiedad {
                width: 100% !important;
                max-width: 100% !important;
                height: auto !important;
                min-height: 120px;
                object-fit: cover !important;
                border-radius: 8px;
                margin: 0 auto 10px auto;
                display: block;
            }

            .contenedor-imagen {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                overflow: hidden;
            }

            .resultado {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box;
                overflow: hidden;
                flex-direction: column !important;
                align-items: stretch !important;
            }

            .carrusel-movil {
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                gap: 8px;
                width: 100%;
                max-width: 100%;
                padding: 12px 0 12px 0;
                margin: 18px 0 18px 0;
                background: #fff;
                scroll-snap-type: x mandatory;
            }

            .img-carrusel-movil {
                flex: 0 0 auto;
                width: 85vw;
                max-width: 400px;
                height: 180px;
                object-fit: cover;
                border-radius: 10px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
                scroll-snap-align: center;
            }

            .contenedor-imagen-principal,
            .galeria {
                display: none !important;
            }

            .miniaturas-movil {
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                gap: 8px;
                width: 100%;
                max-width: 100%;
                padding: 6px 0 12px 0;
                margin-bottom: 10px;
                background: #fff;
                scroll-snap-type: x mandatory;
            }

            .miniatura-movil {
                flex: 0 0 auto;
                width: 70px;
                height: 70px;
                object-fit: cover;
                border-radius: 7px;
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
                scroll-snap-align: center;
                cursor: pointer;
                border: 2px solid #eee;
                transition: border 0.2s;
            }

            .miniatura-movil:active,
            .miniatura-movil:focus {
                border: 2px solid #007bff;
            }
        }

        @media (min-width: 601px) {
            .carrusel-movil {
                display: none !important;
            }

            .miniaturas-movil {
                display: none !important;
            }
        }

        /* ===
== MEJORAS PARA PUBLICACION.PHP ===== */

        /* Imagen principal mejorada */
        .contenedor-imagen-principal {
            width: 100%;
            max-width: 800px;
            margin: 20px auto;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .contenedor-imagen-principal:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
        }

        .img-principal-publicacion {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: contain;
            background: #f8f9fa;
            display: block;
        }

        /* Galería de miniaturas mejorada */
        .page-publicacion .galeria {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 12px;
            margin: 25px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .miniatura-container {
            position: relative;
            width: 100%;
            height: 90px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .miniatura-container:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .miniatura-galeria {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .miniatura-container:hover .miniatura-galeria {
            transform: scale(1.05);
        }

        /* Información de habitaciones destacada */
        .page-publicacion .descripcion .fila .dato:has(.header:contains("Habitaciones")) {
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border: 2px solid #2196f3;
            border-radius: 8px;
            padding: 12px;
        }

        .page-publicacion .descripcion .fila .dato .header {
            font-weight: 600;
            color: #1976d2;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .page-publicacion .descripcion .fila .dato .valor {
            font-weight: 700;
            color: #0d47a1;
            font-size: 1.1rem;
        }

        /* Responsive para móvil */
        @media (max-width: 768px) {
            .contenedor-imagen-principal {
                max-width: 100%;
                margin: 15px 0;
                border-radius: 8px;
            }

            .img-principal-publicacion {
                max-height: 300px;
            }

            .page-publicacion .galeria {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 8px;
                padding: 10px;
                margin: 15px 0;
            }

            .miniatura-container {
                height: 60px;
                border-radius: 6px;
            }
        }

        /* Mejoras adicionales para la sección de descripción */
        .page-publicacion .descripcion .fila {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .page-publicacion .descripcion .dato {
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            border-left: 4px solid #2196f3;
            transition: all 0.3s ease;
        }

        .page-publicacion .descripcion .dato:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        /* Destacar habitaciones específicamente */
        .page-publicacion .descripcion .dato:nth-child(4) {
            background: linear-gradient(135deg, #fff3e0, #ffe0b2);
            border-left-color: #ff9800;
        }

        .page-publicacion .descripcion .dato:nth-child(4) .header {
            color: #e65100;
        }

        .page-publicacion .descripcion .dato:nth-child(4) .valor {
            color: #bf360c;
            font-size: 1.2rem;
        }

        /*
 ===== MEJORAS PARA EL MODAL DE GALERÍA ===== */

        .modal-active {
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            margin: auto;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .modal-content img {
            width: 100%;
            height: auto;
            max-height: 80vh;
            object-fit: contain;
            background: #f8f9fa;
        }

        .modal-controles {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
            background: rgba(0, 0, 0, 0.7);
            padding: 10px 20px;
            border-radius: 25px;
            backdrop-filter: blur(10px);
        }

        .modal-controles span {
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .modal-controles span:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .close {
            position: absolute;
            top: 15px;
            right: 20px;
            color: white;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .close:hover {
            background: rgba(255, 0, 0, 0.7);
            transform: scale(1.1);
        }

        /* Efectos de carga para las imágenes */
        .miniatura-galeria,
        .img-principal-publicacion {
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .miniatura-galeria.loaded,
        .img-principal-publicacion.loaded {
            opacity: 1;
        }

        /* Indicador de carga */
        .miniatura-container::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #2196f3;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 1;
        }

        .miniatura-container:has(.loaded)::before {
            display: none;
        }

        @keyframes spin {
            0% {
                transform: translate(-50%, -50%) rotate(0deg);
            }

            100% {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }