/* Importación de fuentes - Raleway */
@import url('https://fonts.googleapis.com/css2?family=Libre Baskerville:wght@300;400;500;600;700&display=swap');

/* Variables globales */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --font-main: 'Libre Baskerville', sans-serif;
    --input-height: 46px;
}

/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    /* Esto centra verticalmente los elementos */
    height: 100%;
    /* Ocupar toda la altura del header */
}

/* Contenedores específicos */
/* Configurar la posición relativa del contenedor del hero para que sirva como referencia */
.hero-container {
    position: relative;
    z-index: 1;
    /* Aumentamos el padding-bottom para dejar espacio para la superposición */
    padding-bottom: 150px;
}

/* Ocultar el padding-bottom previamente definido en .header-container, .hero-container */
.header-container,
.hero-container {
    position: relative;
    /* Eliminar el padding-bottom de 80px que estaba afectando */
    padding-bottom: 0;
    z-index: 1;
}

.filter-container,
.property-container,
.quienes-somos-container,
.contact-outer-container,
.footer-container {
    display: block;
}

/* Header */
header {
    background-color: #111;
    /* Casi negro */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 140px;
    /* Aumentado para el logo más grande */
}

/* Estructura del navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Estilos para el logo */
.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo-img {
    height: 170px;
    /* Aumentar tamaño del logo */
    width: auto;
    position: relative;
    z-index: 1001;
    vertical-align: middle;
    margin-top: 5px;
    /* Ajustar posición vertical si es necesario */
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

/* Estilos para el menú */
.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    font-size: 14px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Barra inferior para redes sociales */
.social-bar {
    background-color: #111;
    height: 30px;
    width: 40%;
    position: sticky;
    top: 0px;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    /* Cambiado de center a flex-end para alinear a la derecha */
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-right: 30px;
    /* Añadir margen a la derecha para no pegar al borde */
}


.social-icons a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Eliminar el subrayado de todos los enlaces */
}

.social-icons a[href^="mailto:"] {
    text-decoration: none;
    /* Asegurar que no tenga subrayado */
    border-bottom: none;
    /* Por si acaso hay un borde inferior */
}

.social-icons a:hover {
    color: #f1c40f;
    /* Amarillo al pasar el mouse */
    transform: translateY(-2px);
}

/* Ajustes para el navbar */
.navbar {
    padding-top: 10px;
    /* Espacio para compensar la barra social */
}

/* Media Queries para Responsivo */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .property-detail .property-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .property-sidebar {
        position: static;
        margin-top: 30px;
    }

    .sidebar-widget {
        max-width: 100%;
    }

    .quienes-somos-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quienes-somos-image {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Estilo específico para la primera imagen (edificio.png) */
    .quienes-somos-image img:first-child {
        height: 130%;
        /* Estiramiento del 30% en altura */
        object-fit: fill;
        /* Permitir distorsión */
        width: 100%;
        /* Mantener ancho al 100% */
    }

    /* Estilo específico para la segunda imagen (costanera.png) */
    .quienes-somos-image img:nth-child(2) {
        width: 100%;
        object-fit: cover;
    }

    /* Ajustar tamaño del logo en la columna derecha */
    .quienes-somos-text div img {
        max-width: 150px;
        /* Ajusta este valor para hacer la imagen más pequeña */
        height: auto;
        margin-bottom: 20px;
        transform: scale(0.8);
        /* Reducir tamaño al 80% */
    }

    .filter-item-larger {
        flex: 1 1 48%;
        min-width: 200px;
    }

    .filter-item {
        flex: 1 1 48%;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    header {
        height: 90px;
    }

    .logo-img {
        height: 100px;
        margin-top: 0;
    }

    .social-bar {
        height: 25px;
    }

    .social-icons a {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block !important;
    }

    .hero {
        height: auto;
        min-height: 60vh;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 15px;
    }

    .search-bar select,
    .search-bar input {
        width: 100%;
        border-radius: 0;
        padding: 15px;
    }

    .search-btn {
        width: 100%;
        padding: 15px;
        border-radius: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .property-title {
        font-size: 15px;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .property-features-list {
        grid-template-columns: 1fr;
    }

    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .quienes-somos {
        background-attachment: scroll;
    }

    .tab-headers {
        justify-content: flex-start;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .nav-button {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }

    .modal-header {
        padding: 8px 12px;
    }

    .modal-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: auto !important;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .search-bar {
        padding: 0;
    }

    .search-bar select,
    .search-bar input,
    .search-btn {
        font-size: 15px;
    }

    .property-grid {
        gap: 15px;
    }

    .property-img {
        height: 180px;
    }

    .main-image {
        height: 220px;
    }

    .thumbnail {
        height: 60px;
    }

    .property-features {
        flex-wrap: wrap;
        gap: 10px;
    }

    .property-feature {
        flex: 0 0 30%;
    }

    .nav-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .prev-button {
        left: 5px;
    }

    .next-button {
        right: 5px;
    }

    .modal-header,
    .modal-footer {
        padding: 8px 10px;
    }

    .modal-title,
    .image-counter {
        font-size: 14px;
    }

    #modal-image {
        max-width: 95%;
        max-height: calc(100vh - 80px);
    }

    .modal-image-container {
        padding: 10px 5px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .filter-item-larger,
    .filter-item {
        flex: 0 0 100%;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .btn-primary {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left;
    }
}

/* Estilo para enlace activo en el menú */
.nav-links a.active {
    color: var(--secondary);
}

/* Añadir indicador bajo el enlace activo */
.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    position: absolute;
    bottom: -5px;
    left: 0;
}

/* Menú móvil - Estilos consolidados */
.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    z-index: 1005;
    padding: 8px;
}

.mobile-nav-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
    text-align: center;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 15px 0;
}

.mobile-nav-links a.active {
    color: var(--secondary);
}

.mobile-nav-visible {
    display: block !important;
}

/* Hero Section con Video */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-bottom: 20px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    margin: 0 auto;
    margin-top: -20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-bar {
    position: relative;
    z-index: 11;
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 700px;
}

.search-bar select,
.search-bar input,
.search-bar button {
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    font-family: var(--font-main);
    flex: 1 1 auto;
    min-width: 100px;
    height: var(--input-height) !important;
    min-height: var(--input-height) !important;
    max-height: var(--input-height) !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.search-bar select {
    background-color: #f1f1f1;
    cursor: pointer;
    flex: 0 0 auto;
}

.search-bar input {
    flex-grow: 1;
    flex-basis: 150px;
}

.search-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: var(--font-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn i {
    margin-right: 6px;
}

.search-btn:hover {
    background-color: #2980b9;
}

/* Filter Section */
.filters {
    position: relative;
    z-index: 10;
    padding-top: 20px;
    /* Añadir padding superior */
    padding-bottom: 30px;
    /* Añadir padding inferior */
    margin-bottom: 70px;
    /* Aumentar espacio después de filtros */
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para los filtros */
.filter-options {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

.top-row,
.bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.filter-item-larger {
    flex: 1 1 48%;
    min-width: 200px;
}

.filter-item {
    flex: 1 1 23%;
    min-width: 150px;
}

.filter-item label,
.filter-item-larger label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.filter-item select,
.filter-item input,
.filter-item-larger select,
.filter-item-larger input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    box-sizing: border-box;
    height: 40px;
    /* Altura uniforme para todos los inputs/selects */
}

.filter-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    margin-right: 10px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: #eaf2fa;
}

/* Properties Section */
.properties {
    position: relative;
    padding-top: 80px;
    /* Aumentar considerablemente el padding superior */
    margin-top: 30px;
    /* Añadir más margen superior */
    z-index: 1;
}

.properties .section-title {
    padding-top: 100px;
    /* Añadir padding al título */
}

.property-container {
    position: relative;
}

/* Property Grid */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title p {
    color: #666;
    font-size: 15px;
}

.tab-headers {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    z-index: 5;
    background-color: #fff;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
    /* Eliminar línea inferior */
    gap: 10px;
    /* Espacio entre pestañas */
    padding: 10px 0;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f5f5f5;
    /* Color de fondo para pestañas inactivas */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #666;
    font-family: var(--font-main);
    border-radius: 5px;
    /* Bordes redondeados */
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: white;
    background-color: var(--secondary);
    /* Fondo azul para pestaña activa */
}

/* Eliminar el pseudo-elemento que crea el slider */
.tab-btn.active::after {
    display: none;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    margin-top: 40px;
    width: 100%;
}

.property-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.property-card .property-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px; /* Espacio entre ubicación y título */
    display: block; /* Cambiamos a block para que ocupe toda la anchura */
    width: 100%; /* Asegurar que ocupe todo el ancho */
}

.property-card .property-address i {
    margin-right: 5px;
    color: var(--secondary);
}

.property-card .property-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    /* Permitimos que el título tenga hasta 2 líneas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ajustes específicos para la página de detalle de propiedad */
.similar-grid .property-card .property-address,
#similar-grid .property-card .property-address {
    display: block;
    margin-bottom: 2px;
}

.similar-grid .property-card .property-title,
#similar-grid .property-card .property-title {
    display: block;
    clear: both;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-img img {
    transform: scale(1.1);
}

.property-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .property-card .property-address {
        margin-bottom: 6px;
        font-size: 12px;
    }
    
    .property-card .property-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
}

.tag-sale {
    background-color: var(--accent);
    color: white;
}

.tag-rent {
    background-color: var(--success);
    color: white;
}

.tag-sale-keys {
    background-color: #FF9800;
    /* Color naranja para diferenciar */
    color: white;
}


.property-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.property-address i {
    margin-right: 5px;
    color: var(--secondary);
}

.property-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 12px;
}

.property-price span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.property-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.property-feature span {
    font-size: 13px;
    color: #666;
}

.load-more {
    text-align: center;
    margin-bottom: 50px;
}

.btn-load-more {
    padding: 12px 30px;
    background-color: white;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-main);
}

.btn-load-more:hover {
    background-color: var(--secondary);
    color: white;
}

/* Sección Quienes Somos */
.quienes-somos {
    background-image: url('ciudad1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 60px 0;
    color: white;
}

.quienes-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.quienes-somos-container {
    position: relative;
    z-index: 2;
}

.quienes-somos .section-title h2,
.quienes-somos .section-title p {
    color: white;
}

.quienes-somos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quienes-somos-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quienes-somos-text h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
    font-weight: 600;
}

.quienes-somos-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
    font-size: 15px;
}

.quienes-somos-text ul {
    list-style: none;
    padding: 0;
}

.quienes-somos-text li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #f0f0f0;
}

.quienes-somos-text li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--light);
    padding: 60px 0;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* Contenedor principal - asegurar flexbox horizontal */
.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 600;
}

.contact-item i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.contact-text p {
    margin: 5px 0;
    color: #555;
    font-size: 15px;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 14px;
    height: 40px;
    /* Altura uniforme para todos los inputs */
}

textarea.form-control {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--secondary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: var(--font-main);
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary);
}

.email-text {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    /* Asegurar que el texto no tenga subrayado */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bbb;
    font-size: 13px;
}

/* Detalle de Propiedad */
.breadcrumb {
    padding: 12px 0;
    background-color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

.property-detail {
    padding: 30px 0;
}

.property-header {
    margin-bottom: 25px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image:hover .image-overlay {
    opacity: 1;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.thumbnail {
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Redefinición para property-content en detalle de propiedad */
.property-detail .property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5px;
    margin-bottom: 40px;
    padding: 0;
}

.property-description {
    margin-bottom: 25px;
}

.property-text {
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
}

.property-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.feature-item i {
    margin-right: 10px;
    color: var(--secondary);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.property-location {
    margin-bottom: 25px;
}

.map-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eee;
}

#property-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}

.property-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.agent-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agent-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid var(--light);
}

.agent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.agent-title {
    color: #777;
    margin-bottom: 12px;
    text-align: center;
    font-size: 14px;
}

.agent-contact {
    width: 100%;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-family: var(--font-main);
    font-size: 14px;
}

.btn-phone {
    background-color: var(--secondary);
    color: white;
}

.btn-phone:hover {
    background-color: #2980b9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20BD5C;
}

.btn-email {
    background-color: #F1C40F;
    color: white;
}

.btn-email:hover {
    background-color: #E5B90C;
}

.contact-btn i {
    margin-right: 8px;
}

.similar-properties {
    margin-top: 50px;
}

.similar-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
    font-weight: 600;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.no-results p {
    color: #666;
    font-size: 14px;
}

/* Estilos para el modal de imágenes */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: auto;
}

.modal-image-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow: hidden;
}

#modal-image {
    max-height: calc(100vh - 100px);
    max-width: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1101;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 15px;
}

.next-button {
    right: 15px;
}

.modal-footer {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

.image-counter {
    font-size: 14px;
}

/* Mejoras para accesibilidad: focus visible en elementos interactivos */
.close-modal:focus,
.nav-button:focus,
.tab-btn:focus,
.btn:focus {
    outline: 2px solid var(--secondary);
}

/* Captcha y mensajes de estado del formulario */
.g-recaptcha {
    margin-bottom: 15px;
    transform-origin: left;
    transform: scale(0.9);
}

.form-status {
    margin-top: 15px;
}

.alert {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

/* Cambio en la estructura de columnas para vistas móviles */
@media (max-width: 992px) {

    /* Estructura de una columna para detalle de propiedad en tablets y móviles */
    .property-detail .property-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Ajuste para que sidebar no sea sticky en móviles */
    .property-sidebar {
        position: static;
        margin-top: 30px;
        width: 100%;
    }

    /* Ajustes para las características en vista mobile */
    .property-features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ajustes para miniaturas en vista mobile */
    .thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    /* Mejorar espaciado del contenedor principal */
    .property-main {
        width: 100%;
    }
}

/* Ajustes adicionales para smartphones */
@media (max-width: 576px) {

    /* Ajustar título de la propiedad */
    .property-detail .property-header h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    /* Imagen principal más pequeña para móviles */
    .main-image {
        height: 220px;
    }

    /* Una sola columna para características en móviles pequeños */
    .property-features-list {
        grid-template-columns: 1fr;
    }

    /* Mejorar visualización de thumbnails en móviles */
    .thumbnail {
        height: 60px;
    }

    /* Ajustar widgets de sidebar */
    .sidebar-widget {
        padding: 15px;
    }

    /* Ajustar espaciado del breadcrumb en móviles */
    .breadcrumb {
        padding: 8px 0;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    /* Propiedades similares ajustadas para móviles */
    .similar-grid {
        grid-template-columns: 1fr;
    }

    /* Mejorar display de botones de contacto en móviles */
    .contact-btn {
        padding: 10px;
    }

    /* Ajustar padding del formulario en móviles */
    .contact-form {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .quienes-somos-image img:first-child {
        height: auto;
        /* En móvil, no estirar tanto */
        max-height: 250px;
    }

    .quienes-somos-text div img {
        max-width: 120px;
        transform: scale(0.7);
        /* Reducir aún más en móvil */
    }
}


/**/

/* Estilos para la sección de propiedades destacadas */
.destacadas {
    position: relative;
    margin-top: -200px;
    z-index: 2;
}

/* Mejor apariencia para el contenedor de destacadas */
.destacadas-container {
    background-color: #85d7fd;
    /* Celeste claro */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.destacadas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.destacadas-header h3 {
    color: #2c3e50;
    /* Color oscuro para mejor contraste con el fondo celeste */
}

.destacadas-nav {
    display: flex;
    gap: 10px;
}

.destacadas-nav-btn {
    background-color: #3498db;
    /* Azul más intenso para los botones */
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.destacadas-nav-btn:hover {
    background-color: #2980b9;
    /* Azul más oscuro al pasar el mouse */
}

.destacadas-nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.destacadas-slider {
    position: relative;
    overflow: hidden;
}

.destacadas-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
    padding: 5px;
}

.destacada-item {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 240px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.destacada-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.destacada-img {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.destacada-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destacada-item:hover .destacada-img img {
    transform: scale(1.1);
}

.destacada-info {
    padding: 12px;
}

.destacada-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.destacada-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary);
}

.destacada-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.tag-destacada {
    background-color: var(--accent);
    color: white;
}

/* Ribbon para mostrar que es propiedad destacada */
.destacada-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    background-color: yellow; /* var(--accent);*/
    color: black;
    padding: 3px 30px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

/* Estilo para mostrar si la propiedad está reservada */
.destacada-reservada {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .destacada-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .destacadas {
        margin-top: 0; /* Eliminar el margen negativo en móvil */
        margin-bottom: 20px; /* Añadir espacio después */
    }

    .destacada-item {
        flex: 0 0 calc(50% - 10px);
    }

    .destacada-img {
        height: 120px;
    }

    .social-icons {
        margin-right: 15px;
        gap: 15px;
    }

    .email-text {
        display: none;
        /* Ocultar el texto del correo en pantallas pequeñas */
    }

    /* Asegurar que el hero no tenga padding extra en móvil */
    .hero-container {
        padding-bottom: 20px; /* Reducir el padding en móvil */
    }
    
    /* Asegurar espacio adecuado para el filtro */
    .filters {
        margin-top: 20px; /* Añadir espacio entre destacadas y filtros */
    }    
}

@media (max-width: 576px) {
    .destacadas-container {
        padding: 15px; /* Reducir el padding en pantallas muy pequeñas */
    }
    
    .destacadas-header h3 {
        font-size: 16px; /* Reducir tamaño del título */
    }
    
    /* Ajustar tamaño de elementos dentro de destacadas para móvil */
    .destacada-item {
        min-width: 180px; /* Reducir ancho mínimo */
    }

    .destacada-img {
        height: 110px;
    }
}

.category-section {
    padding: 50px 0;
    margin-bottom: 0;
}

.category-section:nth-child(odd) {
    background-color: #f8f9fa;
}

.category-section:nth-child(even) {
    background-color: #e8f4fc;
}

.btn-ver-mas {
    padding: 10px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-ver-mas:hover {
    background-color: #2980b9;
}

.ver-mas-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

/* Estilos para el botón flotante */
.floating-contact-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffc107; /* Amarillo */
    color: #000000; /* Negro */
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 40px; /* Altura fija */
    width: auto;
    line-height: normal;
    font-weight: bold; /* Hacer el texto más visible sobre fondo amarillo */
}

.floating-contact-btn:hover {
    background-color: #ffb300; /* Amarillo ligeramente más oscuro al pasar el mouse */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.floating-contact-btn i {
    font-size: 16px;
    margin-right: 6px;
    color: #000000; /* Icono negro */
}

.floating-contact-btn span {
    font-weight: 600;
    font-size: 14px;
    color: #000000; /* Texto negro */
}

/* Modal de contacto */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Versión móvil */
@media (max-width: 768px) {
    .floating-contact-btn {
        right: 20px;
        padding: 10px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .floating-contact-btn span {
        display: none;
    }
    
    .floating-contact-btn i {
        margin-right: 0;
        font-size: 18px;
    }

    .contact-modal-content {
        width: 95%;
        margin: 20px auto;
    }
}


/* Modal de contacto */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffc107; /* Fondo amarillo */
    border-bottom: 1px solid #ffb300; /* Borde un poco más oscuro */
    border-radius: 8px 8px 0 0; /* Bordes redondeados solo arriba */
}

.contact-modal-header h3 {
    margin: 0;
    color: #000000; /* Texto negro */
    font-size: 18px;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #000000; /* Botón de cerrar negro */
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: #555; /* Color gris oscuro al pasar el mouse */
}

/* Asegurar que el contenido del cuerpo tenga buen contraste */
.contact-modal-body {
    padding: 20px;
    background-color: #ffffff; /* Fondo blanco para el cuerpo */
}

.contact-modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden; /* Para evitar que el contenido sobresalga de las esquinas redondeadas */
}

/* Estilo para el banner de propiedades reservadas */
.property-reserved-banner {
    position: absolute;
    right: -25px;
    top: 20px;
    width: 120px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    font-size: 12px;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Asegurar que el contenedor de la imagen tenga position relative */
.property-img {
    position: relative;
    overflow: hidden;
}

