
:root {
    --principal: #;
    --boton-fondo: #DA251C;
    --boton-fondo-hover: #414141;
    --boton-texto: #FFFFFF;
    --boton-texto-hover: #FFFFFF;
    --iconos: #DA251C;
    --fondo-ficha-detalles: #;
    --pie-fuente: #;
    --header-fondo: #FFFFFF;
    --header-menu: #000000;
    --header-menu-hover: #DA251C;
    --footer-fondo: #f5f5f5;
    --footer-menu: #000000;
    --footer-menu-hover: #DA251C;
    --fondo: #FFFFFF;
    --titulos: #000000;
    --texto: #212121;
} 

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    color: #333;
    background-color: var(--fondo);
    line-height: 1.6;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--header-fondo);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 50px;
    margin-left: 10px;
}

.logo img {
    height: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin-right: 10px;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--header-menu);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--header-menu-hover);
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--header-menu);
    cursor: pointer;
    margin-right: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.nosotros-hero,
.hero.contacto-hero {
    height: 300px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1);
    transition: transform 5s ease-in-out, opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.1);
}

.search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.search-title {
    text-align: center;
    color: var(--titulos);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-bullets {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.bullet.active {
    background-color: white;
}

.search-container h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.search-form .form-group {
    width: 100%;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    height: 45px;
}

.search-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.full-width {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 0;
}

.search-btn {
    background-color: var(--boton-fondo);
    color: var(--boton-texto);
    border: none;
    padding: 12px 25px;
    height: 45px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
}

.search-btn:hover {
    background-color: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
}

/* Featured Properties */
.featured {
    padding: 50px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--titulos);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.property-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background-color: #FFFFFF;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.property-img {
    height: 200px;
    position: relative;
}

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

.property-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.tag-featured,
.property-tag {
    background-color: #ffd700;
    color: #333;
}

.property-details {
    padding: 0px;
}

.property-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--titulos);
}

.property-location {
    font-size: 14px;
    color: var(--texto);
    margin-bottom: 10px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--texto);
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.property-type {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: var(--texto);
    float: right;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 30px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    background-color: var(--boton-fondo);
    color: var(--boton-texto);
    transition: all 0.3s ease;
}

.view-all:hover {
    background-color: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
}

/* Services Section */
.services {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 30px;
    text-align: center;
}

.service-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    text-align: center;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--titulos);
}

.service-desc {
    font-size: 14px;
    color: var(--texto);
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--boton-fondo);
    color: var(--boton-texto);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn:hover {
    background-color: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
    text-decoration: none;
}

/* Property Types */
.property-types {
    padding: 50px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.type-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    transition: all 0.3s;
    border-radius: 8px;
}

.type-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.type-icon {
    font-size: 40px;
    color: var(--iconos);
    margin-bottom: 15px;
    transition: color 0.3s;
    border-radius: 8px;
    background-color: #f8f9fa;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.type-card:hover .type-icon {
    color: color-mix(in srgb, var(--iconos) 85%, black);
}

.type-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--texto);
}

/* Footer */
footer {
    background-color: var(--footer-fondo);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--titulos);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #DA251C;
}

.office-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--texto);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--texto);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--footer-menu-hover);
}

.company-info p {
    font-size: 14px;
    color: var(--texto);
    margin-bottom: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #DA251C;
    font-size: 14px;
    color: var(--texto);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: unset;
        padding: 2rem 0 1rem 0;
        display: block;
    }
    .hero-slider {
        display: none !important;
    }
    .search-container {
        position: relative;
        z-index: 10;
        top: unset;
        left: unset;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0 auto;
        background: rgba(255,255,255,0.98);
        border-radius: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.10);
        /* Sombra similar al header */
    }
    .search-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--header-fondo);
        transition: 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px;
        margin: 0;
    }

    .main-nav li {
        margin: 15px 0;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 10px;
        color: var(--header-menu);
        font-size: 18px;
        width: 100%;
    }

    .main-nav a:hover {
        color: var(--header-menu-hover);
    }
}

@media (max-width: 576px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* Property Listings Page */
.listings {
    padding: 50px 0;
    background-color: var(--fondo);
}

.listings h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.property-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.tag-featured {
    background-color: #ffd700;
    color: #333;
}

.property-details {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    
    line-height: 1.4;
}

.property-location {
    font-size: 14px;
    color: var(--texto);
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--texto);
}

.property-feature i {
    color: var(--iconos);
    font-size: 14px;
    transition: color 0.3s;
}

.property-feature:hover i {
    color: color-mix(in srgb, var(--iconos) 85%, black);
}

.property-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.property-type {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: var(--texto);
}

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 15px;
    background-color: var(--boton-fondo);
    color: var(--boton-texto);
    border: none;
}

.view-details:hover {
    background-color: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
    text-decoration: none;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: var(--texto);
}

/* Sort Section Styles */
.sort-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    min-width: 200px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination li.active a,
.pagination li.active span {
    background-color: var(--boton-fondo);
    border-color: var(--boton-fondo);
    color: var(--boton-texto);
}

.pagination li a:hover {
    background-color: var(--boton-fondo-hover);
    border-color: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
}

.pagination li.disabled span {
    color: #999;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-width {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-template-columns: 1fr;
    }

    .sort-section {
        text-align: left;
        margin-bottom: 20px;
    }

    .pagination li a,
    .pagination li span {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

.feature i,
.property-feature i {
    color: var(--iconos);
    font-size: 14px;
    transition: color 0.3s;
}

.feature:hover i,
.property-feature:hover i {
    color: color-mix(in srgb, var(--iconos) 85%, black);
}

/* Estilos de la ficha de propiedad */
.property-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.property-left {
    flex: 1;
    max-width: 65%;
}

.property-right {
    flex: 0 0 35%;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

/* Estilos responsive para la ficha */
@media (max-width: 991px) {
    .property-container {
        flex-direction: column;
        gap: 20px;
    }

    .property-left,
    .property-right {
        max-width: 100%;
        width: 100%;
        flex: 1 1 auto;
    }

    .property-right {
        position: static;
    }

    .property-details {
        width: 100%;
    }

    .details-table {
        width: 100%;
    }

    .details-table td {
        padding: 12px;
    }

    .property-features {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .feature {
        width: 100%;
    }

    .property-description {
        width: 100%;
    }

    .location {
        width: 100%;
    }

    .map-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .property-container {
        gap: 15px;
        margin: 10px 0;
    }

    .property-left {
        padding: 0;
    }

    .main-image {
        height: 250px;
    }

    .thumbnails {
        gap: 5px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .property-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .property-address {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .property-features {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }

    .feature {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .details-table td {
        padding: 10px;
        font-size: 14px;
    }

    .property-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .map-container {
        height: 200px;
    }
}

/* Estilos de la galería */
.gallery-container {
    position: relative;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--8);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--4);
    font-size: 20px;
    transition: all 0.3s ease;
     z-index: 10;
}

.gallery-nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav i {
    pointer-events: none;
}

.price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.price-tag .label {
    font-size: 14px;
    display: block;
    text-align: center;
    color: var(--5);
}

.price-tag .price {
    font-size: 22px;
    color: var(--4);
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--6);
    transform: translateY(-5px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos de la información de la propiedad */
.property-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.property-title i {
    margin-right: 10px;
    color: var(--iconos);
}

.property-title h2 {
    font-size: 18px;
    font-weight: normal;
    color: var(--4);
}

.property-address {
    font-size: 16px;
    color: var(--5);
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--8);
}

.feature {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--5);
}

.feature i {
    margin-right: 5px;
    color: var(--iconos);
}

.property-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--8);
    color: var(--iconos);
}

.property-description {
    margin-bottom: 30px;
    margin-top: 10px;
    line-height: 1.6;
    color: var(--5);
    font-size: 14px;
}

/* Estilos de los detalles */
.property-details {
    margin-bottom: 5px;
    background-color: #;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    border: none;
}

.details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
}

.details-table tr {
    transition: all 0.3s ease;
}

.details-table tr:hover {
    background-color: var(--boton-fondo-hover);
    border-radius: 5px;
}

.details-table tr:hover td {
    color: var(--boton-texto-hover);
}

.details-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--5);
    border-bottom: 1px solid var(--8);
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table td:first-child {
    color: var(--6);
    font-weight: 500;
    width: 40%;
}

.details-table td:last-child {
    text-align: right;
    color: var(--4);
    font-weight: 500;
}

/* Estilos del mapa */
.location {
    margin-bottom: 30px;
}

.location-address {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--texto);
}

.map-container {
    width: 100%;
    height: 250px;
    background-color: var(--8);
    border-radius: 5px;
    overflow: hidden;
}

.map-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Estilos de mensajes de estado del formulario */
.success-message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-message img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--texto);
    font-size: 1.2em;
    text-align: center;
    margin: 0;
}

.success-message .close-success {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.loading-message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-message p {
    color: var(--texto);
    font-size: 1.2em;
    text-align: center;
    margin-top: 1rem;
}

.contact-form-container {
    position: relative;
    width: 100%;
}

/* Estilos del formulario de contacto */
.contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.agency-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.agency-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.agency-details h3 {
    margin: 0;
    font-size: 18px;
    color: var(--titulos);
}

.agency-details p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--texto);
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.whatsapp-btn, .phone-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    color: var(--boton-texto);
    background: var(--boton-fondo);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover, .phone-btn:hover {
    background: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea.form-control {
    height: 100px;
    resize: vertical;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#captchaCanvas {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--boton-fondo);
    color: var(--boton-texto);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
}

/* Estilos responsive del formulario */
@media (max-width: 991px) {
    .property-container {
        flex-direction: column;
    }
    
    .property-right {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 15px;
    }
    
    .agency-info {
        flex-direction: column;
        text-align: center;
    }
    
    .agency-logo {
        width: 120px;
        margin-bottom: 10px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .whatsapp-btn, .phone-btn {
        width: 100%;
    }
}

/* Estilos para los elementos hr */
hr {
    border: none;
    height: 2px;
    background-color: var(--principal);
    margin: 20px 0;
}

.property-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--5);
    font-size: 14px;
}

/* Footer Styles */
.inmoup-provider {
    margin-top: 15px;
}

.provider-text {
    font-size: 0.8em;
    margin-bottom: 5px;
    color: #;
}

.inmoup-logo {
    max-width: 100px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.inmoup-logo:hover {
    opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

/* Estilos para el loader y captcha */
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.captcha-group {
    margin-bottom: 15px;
}

.captcha-container {
    background: #fff;
}

#refreshCaptcha {
    background: #f8f9fa;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #333;
}

#refreshCaptcha:hover {
    background: var(--principal);
    color: #fff;
}

/* Estilos para el modal de imagen grande */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: 0 auto;
    display: block;
    width: 100%;
    height: calc(100% - 120px);
    object-fit: contain;
    padding: 20px;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover {
    color: #bbb;
}

/* Estilos para las flechas de navegación en el modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav.disabled:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Estilos para el footer del modal */
.modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 120px;
}

.modal-counter {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    height: 70px;
}

/* Ocultar scrollbar para Chrome, Safari y Opera */
.modal-thumbnails::-webkit-scrollbar {
    display: none;
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex: 0 0 auto;
}

.modal-thumbnail:hover {
    opacity: 0.8;
}

.modal-thumbnail.active {
    border-color: #fff;
    opacity: 1;
}

/* Hacer que la imagen principal sea clickeable */
.main-image {
    cursor: pointer;
    transition: opacity 0.3s;
}

.main-image:hover {
    opacity: 0.9;
}

/* Animación para el modal */
@keyframes zoom {
    from {transform:scale(0.95)} 
    to {transform:scale(1)}
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.3s;
}

/* Ajustes responsivos para el modal */
@media only screen and (max-width: 768px) {
    .modal-content {
        padding: 10px;
        height: calc(100% - 100px);
    }

    .modal-footer {
        padding: 10px;
        height: 100px;
    }

    .modal-thumbnails {
        max-width: 100%;
        padding: 5px 0;
    }

    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }

    .modal-counter {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-close {
        right: 15px;
        top: 5px;
        font-size: 30px;
    }
}

/* Estilos para el diseño de dos columnas */
.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.two-columns .column-image {
    flex: 0 0 33.333%;
    min-width: 300px;
}

.two-columns .column-text {
    flex: 0 0 calc(66.666% - 30px);
    min-width: 300px;
}

@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
    }
    
    .two-columns .column-image,
    .two-columns .column-text {
        width: 100%;
        flex: 0 0 100%;
    }
}

.property-description h3,
.location h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--titulos);
}

.property-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--texto);
    font-size: 14px;
}

.details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
}

.details-table tr {
    transition: all 0.3s ease;
}

.details-table tr:hover {
    background-color: var(--boton-fondo-hover);
    border-radius: 5px;
}

.details-table tr:hover td {
    color: var(--boton-texto-hover);
}

.details-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--texto);
    border-bottom: 1px solid var(--8);
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table td:first-child {
    color: var(--titulos);
    font-weight: 500;
    width: 40%;
}

.details-table td:last-child {
    text-align: right;
    color: var(--texto);
    font-weight: 500;
}

/* Estilos para la página Nosotros */
.about-section {
    padding-top: 50px;
    padding-bottom: 60px;
}

.about-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}

.about-services {
    margin-bottom: 60px;
}

.about-services h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--titulos);
    text-align: center;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.service-card-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-card-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 20px;
}

.service-card-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--titulos);
}

.service-card-text p {
    color: var(--texto);
    line-height: 1.6;
}

.about-cta {
    background: var(--principal);
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.about-cta h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

.about-cta .contact-btn {
    background: #fff;
    color: var(--principal);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
}

.about-cta .contact-btn:hover {
    background: var(--boton-fondo-hover);
    color: var(--boton-texto-hover);
} 