/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevenir zoom horizontal en móviles */
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px; /* Tamaño base mínimo para móvil */
    /* Prevenir zoom horizontal */
    overflow-x: hidden;
    /* Mejorar renderizado en móviles */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Tipografía optimizada para móvil */
h1 {
    font-size: 2.5rem; /* Mínimo 40px */
    line-height: 1.2;
}

h2 {
    font-size: 2rem; /* Mínimo 32px */
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem; /* Mínimo 24px */
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem; /* Mínimo 20px */
    line-height: 1.4;
}

p, li, span {
    font-size: 1rem; /* Mínimo 16px */
    line-height: 1.6;
}

small {
    font-size: 0.875rem; /* Mínimo 14px */
    line-height: 1.5;
}

/* Asegurar legibilidad en elementos específicos */
.hero-content h1 {
    font-size: 3rem; /* 48px */
}

.hero-content p {
    font-size: 1.2rem; /* 19.2px */
}

.content-section h2 {
    font-size: 2.5rem; /* 40px */
}

.property-title {
    font-size: 1.3rem; /* 20.8px */
}

.property-price {
    font-size: 1.4rem; /* 22.4px */
    font-weight: bold;
}

.property-details {
    font-size: 1rem; /* 16px */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Responsive padding */
    width: 100%;
}

/* Contenedor flexible para móviles */
.mobile-container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
}

/* Prevenir elementos que se salgan del viewport */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Mejorar touch targets */
button, a, input, select, textarea {
    min-height: 44px; /* Tamaño mínimo táctil */
    min-width: 44px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Optimización móvil */
    min-height: 60px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 300;
    color: #4a90e2;
    text-decoration: none;
    /* Touch target mejorado */
    padding: 8px;
    margin: -8px;
}

.logo strong {
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 2rem;
    /* Se ocultará en móvil */
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    /* Touch target mejorado */
    padding: 12px 8px;
    margin: -12px -8px;
}

.main-nav a:hover {
    color: #4a90e2;
}

.user-options {
    display: flex;
    gap: 1rem;
    /* Se ocultará en móvil */
}

.login-btn, .register-btn {
    padding: 12px 16px; /* Tamaño táctil mejorado */
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    /* Touch target asegurado */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.login-btn:hover {
    background: #4a90e2;
    color: white;
}

.register-btn {
    background: #4a90e2;
    color: white;
}

.register-btn:hover {
    background: #357abd;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    /* Mejorar touch target */
    padding: 12px;
    margin: -12px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.hamburger-menu:active {
    background-color: rgba(74, 144, 226, 0.2);
}

/* Sección Hero */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-primary, .cta-secondary {
    padding: 16px 24px; /* Touch target optimizado */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    /* Asegurar touch target mínimo */
    min-height: 44px;
    min-width: 120px;
    font-size: 1rem; /* Mínimo 16px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Mejorar feedback táctil */
    cursor: pointer;
    user-select: none;
}

.cta-primary {
    background: #4a90e2;
    color: white;
    border: 2px solid #4a90e2;
}

.cta-primary:hover,
.cta-primary:focus {
    background: #357abd;
    border-color: #357abd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.cta-primary:active {
    background: #2c5aa0;
    transform: translateY(1px);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover,
.cta-secondary:focus {
    background: white;
    color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-secondary:active {
    background: #f0f0f0;
    transform: translateY(1px);
}

/* Carrusel */
.property-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
    color: white;
}

.slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.slide-content .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a90e2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    /* Asegurar touch target mínimo */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mejorar feedback táctil */
    user-select: none;
    z-index: 10;
}

.carousel-btn:hover,
.carousel-btn:focus {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    outline: none;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    margin-top: 1rem;
}

.dot {
    display: inline-block;
    width: 16px; /* Aumentar para mejor touch */
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 8px; /* Aumentar espaciado */
    cursor: pointer;
    transition: all 0.3s ease;
    /* Asegurar touch target mínimo */
    min-width: 44px;
    min-height: 44px;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.3s ease;
}

.dot.active::before {
    background: white;
}

.dot:hover::before,
.dot:focus::before {
    background: rgba(255,255,255,0.8);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Secciones de contenido */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.content-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 300;
}

.content-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filtros de búsqueda */
.search-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.filter-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    min-width: 150px;
}

.search-btn {
    padding: 0.8rem 2rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    align-self: flex-end;
}

.search-btn:hover {
    background: #357abd;
}

/* Grid de propiedades */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.property-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.property-info .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4a90e2;
    display: block;
    margin-bottom: 1rem;
}

.view-btn, .contact-btn {
    width: 100%;
    padding: 0.8rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-btn:hover, .contact-btn:hover {
    background: #357abd;
}

/* Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.project-details span {
    color: #666;
    font-size: 0.95rem;
}

.project-details i {
    color: #4a90e2;
    margin-right: 0.5rem;
    width: 16px;
}

/* Agentes */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.agent-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.agent-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.agent-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #4a90e2;
}

/* Sección Publicar */
.publish-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
}

.benefit i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.benefit h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.publish-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #4a90e2;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4a90e2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-group select {
        min-width: 200px;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .publish-benefits {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}


/* Overlay para menú móvil */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Opciones de usuario móvil */
.mobile-user-options {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px 30px;
    border-top: 2px solid #eee;
    background: #f8f9fa;
    margin-top: auto; /* Empujar hacia abajo */
}

/* Estilos mejorados para menú móvil */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem; /* Reducir padding en móvil */
    }
    
    .hamburger-menu {
        display: flex; /* Mostrar en móvil */
    }
    
    .main-nav {
        position: fixed;
        top: 60px; /* Ajustar a altura del header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch; /* Cambiar para mejor touch */
        padding: 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto; /* Permitir scroll si es necesario */
    }
    
    .main-nav.mobile-active {
        left: 0;
    }
    
    .main-nav a {
        padding: 20px 30px; /* Aumentar área táctil */
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left; /* Alineación más natural */
        margin: 0; /* Resetear margin */
        min-height: 60px; /* Asegurar touch target */
        display: flex;
        align-items: center;
    }
    
    .main-nav a:hover {
        background-color: rgba(74, 144, 226, 0.1);
    }
    
    .main-nav a:active {
        background-color: rgba(74, 144, 226, 0.2);
    }
    
    .hamburger-menu.active i {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    
    .user-options {
        display: none; /* Ocultar en móvil inicialmente */
    }
    
    /* Mostrar opciones de usuario en menú móvil */
    .main-nav.mobile-active .mobile-user-options {
        display: flex;
    }
    
    .mobile-user-options .login-btn,
    .mobile-user-options .register-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 15px;
        font-size: 1rem;
        margin: 0;
    }
        display: flex;
    }
}

/* Mejoras adicionales para la experiencia móvil */
@media (max-width: 480px) {
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
    }
    
    .slide-content .price {
        font-size: 1.1rem;
    }
    
    .property-info,
    .project-info,
    .agent-card {
        padding: 1.5rem;
    }
    
    .publish-form {
        padding: 1.5rem;
    }
}

/* Animaciones suaves */
.property-card,
.project-card,
.agent-card {
    transition: all 0.3s ease;
}

/* Mejora de accesibilidad */
.carousel-btn:focus,
.cta-primary:focus,
.cta-secondary:focus,
.search-btn:focus,
.view-btn:focus,
.contact-btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4a90e2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Estilos mejorados para botones de enlace */
.view-btn {
    width: 100%;
    padding: 0.8rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
}

.view-btn:hover {
    background: #357abd;
    color: white;
    text-decoration: none;
}

/* Mejoras para las tarjetas de propiedades */
.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Estilos para el ícono de piscina */
.fas.fa-swimming-pool:before {
    content: "\f5c5";
}

/* Fallback si el ícono no está disponible */
.detail-item .fas.fa-swimming-pool:before {
    content: "\f043"; /* Usar ícono de gota como fallback */
}


/* Estilos para botones de contacto */
.contact-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.contact-btn {
    background: #FF8C00;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.contact-btn:hover {
    background: #FF7F00;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Estilos para el formulario de publicación ampliado */
.upload-section {
    margin: 2rem 0;
}

.upload-group {
    margin-bottom: 2rem;
}

.upload-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #4a90e2;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #4a90e2;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-placeholder i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    color: #333;
    font-weight: 500;
}

.upload-info {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400 !important;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.file-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.file-item .file-info {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.file-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item .remove-file:hover {
    background: rgba(255, 0, 0, 1);
}

/* Mejoras para las tarjetas de propiedades */
.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.property-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.property-info p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.property-info .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 1rem;
}

/* Mejoras para las tarjetas de proyectos */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-info p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.project-details i {
    color: #4a90e2;
    width: 16px;
}

/* Mejoras para el formulario de publicación */
.publish-form h3 {
    color: #4a90e2;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.publish-form h3:first-of-type {
    margin-top: 0;
}

/* Responsive para botones de contacto */
@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .whatsapp-btn,
    .contact-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .file-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-placeholder i {
        font-size: 2rem;
    }
}


/* Estilos para la nueva sección de agentes */
.agent-types-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.agent-type-link {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.agent-type-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #4a90e2;
    text-decoration: none;
    color: inherit;
}

.agent-type-link i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.agent-type-link h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.agent-type-link p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.featured-agents {
    margin: 4rem 0;
}

.featured-agents h3 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.agent-registration-cta {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.agent-registration-cta h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.agent-registration-cta p {
    margin: 0 0 2rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-btn {
    background: white;
    color: #4a90e2;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #f8f9fa;
    color: #357abd;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mejoras para las tarjetas de agentes */
.agent-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.agent-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.agent-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.agent-info p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.agent-contact {
    margin: 1rem 0;
}

.agent-contact span {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.agent-contact i {
    color: #4a90e2;
    width: 16px;
    margin-right: 0.5rem;
}

.agent-stats {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.agent-stats span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #666;
}

.contact-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Responsive para agentes */
@media (max-width: 768px) {
    .agent-types-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .agent-type-link {
        padding: 1.5rem;
    }
    
    .agent-type-link i {
        font-size: 2rem;
    }
    
    .agent-registration-cta {
        padding: 2rem 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
}

/* Mejoras generales para el diseño */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.content-section > .container > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-card,
.property-card,
.project-card {
    animation: fadeInUp 0.6s ease;
}

/* Mejoras para botones */
.whatsapp-btn,
.contact-btn,
.view-btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover,
.contact-btn:hover,
.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mejoras para formularios */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

/* Mejoras para el carrusel */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-slide img {
    border-radius: 15px;
}

/* Mejoras para el footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}


/* Estilos para la página de tarifas */
.pricing-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-hero h1 {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-hero i {
    margin-right: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Planes de precios */
.pricing-plans {
    margin-bottom: 4rem;
}

.pricing-plans h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

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

.pricing-card.featured {
    border-color: #4a90e2;
    transform: scale(1.05);
}

.pricing-card.premium {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.plan-header i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.premium .plan-header i {
    color: white;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #4a90e2;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-badge.premium {
    background: #ff6b6b;
}

.plan-pricing {
    margin-bottom: 2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.premium .price-item {
    background: rgba(255,255,255,0.1);
}

.price-label {
    font-weight: 500;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a90e2;
}

.price-value.free {
    color: #28a745;
    font-size: 1.1rem;
}

.premium .price-value {
    color: white;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features h4 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.premium .plan-features h4 {
    color: white;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.plan-features i {
    color: #28a745;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.premium .plan-features i {
    color: #90EE90;
}

.plan-action {
    text-align: center;
}

.plan-action .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Métodos de pago */
.payment-methods-section {
    margin-bottom: 4rem;
    text-align: center;
}

.payment-methods-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.payment-method-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.payment-method-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.payment-method-card:nth-child(1) i {
    color: #0070ba;
}

.payment-method-card:nth-child(2) i {
    color: #1a1f71;
}

.payment-method-card:nth-child(3) i {
    color: #e74c3c;
}

.payment-method-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.payment-method-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e8;
    color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.security-badge i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Servicios adicionales */
.additional-services {
    margin-bottom: 4rem;
}

.additional-services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-card i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-card li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.service-card li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* FAQ */
.faq-section {
    margin-bottom: 4rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item h3 i {
    margin-right: 0.5rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* CTA de contacto */
.contact-cta {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Estilos para el modal de pago */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.payment-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.payment-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.payment-body {
    padding: 2rem;
}

.payment-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.payment-summary h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #666;
}

.payment-item.total {
    border-top: 1px solid #ddd;
    padding-top: 0.8rem;
    margin-top: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.payment-methods h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.method-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.method-card:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.payment-method input[type="radio"]:checked + .method-card {
    border-color: #4a90e2;
    background: #e3f2fd;
}

.method-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

.method-card span {
    display: block;
    font-weight: 600;
    color: #333;
}

.card-form, .pse-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.card-form h4, .pse-form h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem;
    border-top: 1px solid #eee;
}

.payment-footer .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.payment-footer .btn-secondary:hover {
    background: #5a6268;
}

.payment-footer .btn-primary {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-footer .btn-primary:hover {
    background: #357abd;
}

/* Estilos para información de tarifas en el formulario */
.pricing-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid #4a90e2;
}

.pricing-info h3 {
    color: #1976d2;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.pricing-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pricing-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.pricing-card .price {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.pricing-card .free {
    color: #28a745;
    font-weight: 700;
    font-size: 1rem;
}

.pricing-card .paid {
    color: #4a90e2;
    font-weight: 700;
    font-size: 1rem;
}

/* Botones de acción del formulario */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .payment-methods-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .payment-method-options {
        grid-template-columns: 1fr;
    }
    
    .payment-footer {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}


/* Estilos para la sección de publicación mejorada */
.publish-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.publish-header {
    text-align: center;
    margin-bottom: 3rem;
}

.publish-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.publish-header h2 i {
    color: #4a90e2;
    margin-right: 0.5rem;
}

.publish-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.publish-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    color: #6c757d;
    line-height: 1.6;
}

.publish-content {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pricing-info h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.pricing-info h3 i {
    color: #4a90e2;
    margin-right: 0.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.pricing-card.sale {
    border-color: #28a745;
}

.pricing-card.rent {
    border-color: #ffc107;
}

.pricing-card.new-project {
    border-color: #dc3545;
}

.pricing-header {
    margin-bottom: 1rem;
}

.pricing-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pricing-card.sale .pricing-header i {
    color: #28a745;
}

.pricing-card.rent .pricing-header i {
    color: #ffc107;
}

.pricing-card.new-project .pricing-header i {
    color: #dc3545;
}

.pricing-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.price-item .label {
    color: #6c757d;
    font-size: 0.9rem;
}

.price-item .price {
    font-weight: 600;
    color: #2c3e50;
}

.price-item .price.free {
    color: #28a745;
    font-weight: 700;
}

.publish-form-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #4a90e2;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.price-input {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input .currency {
    position: absolute;
    left: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    z-index: 1;
}

.price-input input {
    padding-left: 2rem;
    padding-right: 4rem;
}

.price-input .price-suffix {
    position: absolute;
    right: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-group label {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group label a {
    color: #4a90e2;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd, #2c5aa0);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Estilos para modales de autenticación */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: #4a90e2;
}

.close {
    color: #6c757d;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
}

.auth-form .form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form .form-group input,
.auth-form .form-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.btn-social.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-social.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive para formularios */
@media (max-width: 768px) {
    .publish-header h2 {
        font-size: 2rem;
    }
    
    .publish-benefits {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Estilos para la zona de pagos mejorada */
.payment-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.service-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4a90e2;
}

.service-summary h3 {
    color: #4a90e2;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.service-item:last-child {
    border-bottom: none;
}

.service-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.service-value {
    font-weight: 500;
    color: #212529;
    text-align: right;
    flex: 1;
}

.pricing-info {
    background: #fff3cd;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ffc107;
}

.pricing-info h3 {
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0e68c;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item.total {
    border-top: 2px solid #ffc107;
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.pricing-label {
    font-weight: 600;
    color: #856404;
    flex: 1;
}

.pricing-value {
    font-weight: 600;
    color: #212529;
    text-align: right;
    flex: 1;
}

.pricing-value.discount {
    color: #28a745;
}

.pricing-item.total .pricing-value {
    color: #dc3545;
    font-size: 1.2rem;
}

.payment-methods h3 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: #4a90e2;
    background: #f0f8ff;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
}

.payment-card i {
    font-size: 1.5rem;
    color: #4a90e2;
    min-width: 30px;
}

.card-icons {
    display: flex;
    gap: 0.5rem;
}

.card-icons i {
    font-size: 1.2rem;
}

.payment-card span {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.payment-badges {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.secure {
    background: #d4edda;
    color: #155724;
}

.badge.protection {
    background: #cce5ff;
    color: #004085;
}

.badge.verified {
    background: #e2e3e5;
    color: #383d41;
}

.badge.colombia {
    background: #fff3cd;
    color: #856404;
}

.badge.ach {
    background: #d1ecf1;
    color: #0c5460;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-actions button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-info {
    background: #e8f5e8;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.security-badges {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 100px;
}

.security-badge i {
    font-size: 1.5rem;
    color: #28a745;
}

.security-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #155724;
    text-align: center;
}

.security-text {
    font-size: 0.85rem;
    color: #155724;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.security-text i {
    margin-right: 0.5rem;
    color: #28a745;
}

/* Responsive para la zona de pagos */
@media (max-width: 768px) {
    .payment-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .service-item,
    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .service-value,
    .pricing-value {
        text-align: left;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .security-badge {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
}



/* ===== MODAL DE CONTACTO ===== */
.contact-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.contact-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal .modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-modal .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.contact-modal .close:hover {
    opacity: 0.7;
}

/* Resumen de la propiedad */
.property-summary {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.property-summary-image {
    flex-shrink: 0;
}

.property-summary-image img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.property-summary-info {
    flex: 1;
}

.property-summary-info h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.property-summary-info p {
    margin: 4px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.property-type {
    color: #28a745 !important;
    font-weight: 600;
}

.property-id {
    color: #6c757d !important;
    font-size: 0.8rem !important;
}

.property-price {
    color: #007bff !important;
    font-weight: bold;
    font-size: 1.1rem !important;
}

/* Formulario de contacto */
.contact-form {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

/* Input de teléfono */
.phone-input {
    display: flex;
    gap: 10px;
}

.phone-input select {
    flex-shrink: 0;
    width: 120px;
}

.phone-input input {
    flex: 1;
}

/* Contador de caracteres */
.char-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* CAPTCHA */
.captcha-container {
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.captcha-checkbox label {
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

/* Botones del formulario */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mensaje de éxito */
.success-message {
    padding: 40px 30px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-message p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .property-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .property-summary-image img {
        width: 100%;
        height: 200px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .phone-input select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .contact-modal .modal-header {
        padding: 15px 20px;
    }
    
    .contact-modal .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Animaciones */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal.show {
    animation: slideInFromTop 0.3s ease-out;
}

/* Estados de validación */
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
    border-color: #28a745;
}

.form-group.valid::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 35px;
    color: #28a745;
    font-weight: bold;
}


/* ===== MEDIA QUERIES RESPONSIVE MEJORADAS ===== */

/* Tablets grandes y pantallas medianas (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .property-grid,
    .projects-grid,
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .main-header {
        padding: 1rem 2rem;
    }
    
    .search-filters {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 200px;
    }
}

/* Tablets pequeñas y móviles grandes (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .property-grid,
    .projects-grid,
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .content-section h2 {
        font-size: 2.2rem;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

/* Móviles medianos (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .property-grid,
    .projects-grid,
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group select {
        width: 100%;
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Móviles pequeños (320px - 375px) */
@media (min-width: 320px) and (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .main-header {
        padding: 0.8rem 1rem;
        min-height: 56px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .property-card,
    .project-card,
    .agent-card {
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
        max-width: calc(100vw - 20px);
    }
}

/* Móviles muy pequeños (hasta 319px) */
@media (max-width: 319px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .main-header {
        padding: 0.6rem 0.8rem;
        min-height: 52px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 5px;
        padding: 15px;
        max-width: calc(100vw - 10px);
    }
}

/* Media queries específicas para orientación */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .main-nav {
        height: calc(100vh - 50px);
        top: 50px;
    }
    
    .main-header {
        min-height: 50px;
        padding: 0.5rem 1rem;
    }
}

/* Media queries para alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-slide img,
    .property-image,
    .project-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Media queries para modo oscuro */
@media (prefers-color-scheme: dark) {
    .mobile-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .main-nav {
        background: #1a1a1a;
        color: #fff;
    }
    
    .main-nav a {
        color: #fff;
    }
    
    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Media queries para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-slide {
        transition: none;
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%);
    }
    
    .cta-primary:active,
    .cta-secondary:active {
        transform: none;
    }
}


/* ===== OPTIMIZACIONES DE RENDIMIENTO MÓVIL ===== */

/* Lazy loading para imágenes */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Optimización de imágenes responsive */
.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    /* Mejorar renderizado en móviles */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Contenedores de imágenes con aspect ratio */
.image-container {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.image-container::before {
    content: '';
    display: block;
    padding-top: 66.67%; /* Aspect ratio 3:2 */
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder para imágenes que cargan */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Optimización de fuentes */
@font-face {
    font-family: 'Segoe UI';
    font-display: swap; /* Mejorar carga de fuentes */
}

/* Optimización de animaciones para móvil */
@media (max-width: 768px) {
    /* Reducir animaciones complejas en móvil */
    .carousel-slide {
        transition: opacity 0.3s ease;
    }
    
    /* Optimizar transiciones */
    .main-nav {
        transition: left 0.25s ease;
    }
    
    .mobile-overlay {
        transition: opacity 0.25s ease;
    }
    
    /* Optimizar hover effects para touch */
    .cta-primary:hover,
    .cta-secondary:hover {
        transform: none;
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%);
    }
}

/* Optimización de scroll */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimización de contenido crítico */
.above-fold {
    /* Contenido crítico above the fold */
    contain: layout style paint;
}

.below-fold {
    /* Contenido no crítico */
    contain: layout;
}

/* Optimización de GPU para animaciones */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimización de memoria para móviles */
@media (max-width: 768px) {
    .property-grid,
    .projects-grid,
    .agents-grid {
        contain: layout style;
    }
    
    .carousel-container {
        contain: layout;
    }
}

/* Preload crítico */
.preload-critical {
    font-display: swap;
    loading: eager;
}

/* Optimización de imágenes WebP */
.webp .property-image {
    background-image: url('images/property-placeholder.webp');
}

.no-webp .property-image {
    background-image: url('images/property-placeholder.jpg');
}

/* Optimización de viewport para móvil */
@media (max-width: 480px) {
    /* Reducir complejidad visual en pantallas pequeñas */
    .box-shadow-heavy {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .gradient-complex {
        background: #4a90e2;
    }
    
    /* Simplificar bordes redondeados */
    .border-radius-complex {
        border-radius: 8px;
    }
}


/* ===== ESTILOS ESPECÍFICOS POR DISPOSITIVO ===== */

/* Estilos base para dispositivos móviles */
.device-mobile {
    /* Optimizaciones específicas para móvil */
}

.device-mobile .carousel-slide {
    /* Carrusel optimizado para móvil */
    min-height: 300px;
}

.device-mobile .property-card {
    /* Tarjetas más compactas en móvil */
    margin-bottom: 1rem;
}

.device-mobile .property-card img {
    height: 180px; /* Imágenes más pequeñas en móvil */
}

/* Estilos para tablets */
.device-tablet {
    /* Optimizaciones específicas para tablet */
}

.device-tablet .carousel-slide {
    min-height: 350px;
}

.device-tablet .property-card img {
    height: 200px;
}

/* Estilos para desktop */
.device-desktop {
    /* Optimizaciones específicas para desktop */
}

.device-desktop .carousel-slide {
    min-height: 400px;
}

.device-desktop .property-card img {
    height: 220px;
}

/* Efectos hover solo en dispositivos sin touch */
.no-touch .property-card:hover,
.no-touch .project-card:hover,
.no-touch .agent-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.no-touch .cta-primary:hover,
.no-touch .cta-secondary:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Estilos para dispositivos con touch */
.has-touch .property-card,
.has-touch .project-card,
.has-touch .agent-card {
    /* Eliminar efectos hover en dispositivos táctiles */
    transform: none !important;
}

.has-touch .touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: all 0.1s ease;
}

/* Adaptaciones por tamaño de pantalla */
.screen-small {
    /* Pantallas muy pequeñas (≤480px) */
}

.screen-small .carousel-slide h2 {
    font-size: 1.5rem;
}

.screen-small .property-info h3 {
    font-size: 1.1rem;
}

.screen-medium {
    /* Pantallas medianas (481px-768px) */
}

.screen-large {
    /* Pantallas grandes (769px-1024px) */
}

.screen-xlarge {
    /* Pantallas extra grandes (>1024px) */
}

.screen-xlarge .carousel-slide h2 {
    font-size: 3rem;
}

/* Adaptaciones por orientación */
.orientation-portrait {
    /* Estilos para orientación vertical */
}

.orientation-portrait .carousel-slide {
    min-height: 250px;
}

.orientation-landscape {
    /* Estilos para orientación horizontal */
}

/* Reducir animaciones en dispositivos de baja potencia */
.reduce-animations * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

.reduce-animations .carousel-slide {
    transition: none !important;
}

/* Optimizaciones específicas para iOS */
.device-mobile.ios {
    /* Correcciones específicas para iOS */
    -webkit-overflow-scrolling: touch;
}

.device-mobile.ios input,
.device-mobile.ios select,
.device-mobile.ios textarea {
    /* Prevenir zoom en iOS */
    font-size: 16px !important;
}

/* Optimizaciones específicas para Android */
.device-mobile.android {
    /* Correcciones específicas para Android */
}

/* Indicador visual del tipo de dispositivo (solo para desarrollo) */
.device-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 9999;
    display: none; /* Oculto por defecto */
}

/* Mostrar indicador solo en modo desarrollo */
.debug-mode .device-indicator {
    display: block;
}

/* Estilos para diferentes densidades de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Estilos para pantallas de alta densidad (Retina, etc.) */
    .property-card img,
    .project-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Media queries específicas combinadas con clases de dispositivo */
@media (max-width: 480px) {
    .device-mobile .main-nav {
        display: none;
    }
    
    .device-mobile .hamburger-menu {
        display: block;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .device-tablet .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .device-desktop .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .device-desktop .enable-hover .property-card:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }
}


/* ===== VARIABLES CSS PARA ADAPTACIÓN DINÁMICA ===== */

:root {
    --animation-speed: 0.3s;
    --transition-speed: 0.25s;
    --carousel-height-mobile: 300px;
    --carousel-height-tablet: 350px;
    --carousel-height-desktop: 400px;
}

/* Aplicar variables de velocidad a elementos animados */
.carousel-slide,
.property-card,
.project-card,
.agent-card,
.cta-primary,
.cta-secondary {
    transition-duration: var(--transition-speed);
}

/* Estados de interacción mejorados */
.hover-active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.touch-active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Adaptaciones específicas para carrusel por dispositivo */
.device-mobile .carousel-slide {
    min-height: var(--carousel-height-mobile);
}

.device-tablet .carousel-slide {
    min-height: var(--carousel-height-tablet);
}

.device-desktop .carousel-slide {
    min-height: var(--carousel-height-desktop);
}

/* Optimizaciones de rendimiento para móviles de baja potencia */
.reduce-animations .carousel-slide,
.reduce-animations .property-card,
.reduce-animations .project-card {
    transition: none !important;
    animation: none !important;
}

/* Mejoras específicas para iOS */
.device-mobile.ios {
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

.device-mobile.ios input,
.device-mobile.ios select,
.device-mobile.ios textarea {
    -webkit-appearance: none;
    border-radius: 0;
}

/* Mejoras específicas para Android */
.device-mobile.android {
    /* Correcciones específicas para Android si son necesarias */
}

/* Indicador de dispositivo para modo debug */
.device-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 9999;
    display: none;
    font-family: monospace;
}

.debug-mode .device-indicator {
    display: block;
}


/* ===== ESTILOS PARA FILTROS MÚLTIPLES COLOMBIA ===== */

.search-filters-colombia {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Estilos para selectores múltiples */
.filter-multiple {
    position: relative;
}

.multiple-select-container {
    position: relative;
    width: 100%;
}

.selected-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly */
}

.selected-display:hover {
    border-color: #007bff;
}

.selected-display.active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.selected-display .placeholder {
    color: #6c757d;
    font-size: 14px;
}

.selected-display .counter {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.selected-display i {
    color: #6c757d;
    transition: transform 0.3s ease;
}

.selected-display.active i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown-content.show {
    display: block;
}

.search-box {
    padding: 10px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
}

.options-list {
    max-height: 200px;
    overflow-y: auto;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.option-item:hover {
    background-color: #f8f9fa;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.option-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.option-item .option-meta {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
}

.no-selection {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Acciones de filtros */
.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-btn, .clear-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px; /* Touch-friendly */
}

.search-btn {
    background: #007bff;
    color: white;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.clear-btn {
    background: #6c757d;
    color: white;
}

.clear-btn:hover {
    background: #545b62;
}

/* Resumen de filtros */
.filter-summary {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    display: none;
}

.filter-summary.show {
    display: block;
}

.filter-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
    color: #1976d2;
    opacity: 0.7;
}

.filter-tag .remove:hover {
    opacity: 1;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .search-filters-colombia {
        padding: 20px 15px;
        margin: 0 -15px 20px -15px;
        border-radius: 0;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn, .clear-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-content {
        max-height: 250px;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-filters-colombia {
        padding: 15px 10px;
    }
    
    .selected-display {
        padding: 10px;
        font-size: 14px;
    }
    
    .option-item {
        padding: 12px 10px;
    }
    
    .filter-summary {
        padding: 12px;
    }
}


/* ===== SISTEMA DE ORDENAMIENTO ROTATIVO ===== */

.sorting-system {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sorting-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.sorting-tab {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sorting-tab::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;
}

.sorting-tab:hover::before {
    left: 100%;
}

.sorting-tab:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.sorting-tab.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.sorting-tab i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.9;
}

.sorting-tab span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sorting-tab small {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.sorting-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.results-count {
    font-weight: 600;
}

.last-update {
    font-style: italic;
    opacity: 0.8;
}

/* Badges para propiedades destacadas */
.property-card {
    position: relative;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.property-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    animation: pulse-popular 2s infinite;
}

.property-badge.recent {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.property-badge.featured {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: #333;
}

.property-badge.premium {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333;
}

@keyframes pulse-popular {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Efectos de carga para cambio de ordenamiento */
.property-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.property-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

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

/* Animaciones de entrada para propiedades */
.property-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para sistema de ordenamiento */
@media (max-width: 768px) {
    .sorting-system {
        padding: 20px 15px;
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .sorting-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sorting-tab {
        padding: 12px 8px;
    }
    
    .sorting-tab i {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .sorting-tab span {
        font-size: 14px;
    }
    
    .sorting-tab small {
        font-size: 11px;
    }
    
    .sorting-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .sorting-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sorting-tab {
        padding: 10px;
    }
    
    .property-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Indicadores de estado */
.sorting-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    animation: blink 1.5s infinite;
}

.sorting-indicator.active {
    background: #28a745;
}

.sorting-indicator.loading {
    background: #ffc107;
}

.sorting-indicator.error {
    background: #dc3545;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}



/* ===== COMPATIBILIDAD ESPECÍFICA PARA macOS/Safari ===== */

/* Mejorar renderizado de dropdowns en Safari */
.dropdown-container {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.dropdown-header {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Mejorar touch en Safari iOS */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-content {
    /* Mejorar scroll en Safari */
    -webkit-overflow-scrolling: touch;
    /* Forzar aceleración por hardware */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Mejorar renderizado */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Asegurar que aparezca por encima */
    z-index: 1000;
    /* Mejorar bordes en Safari */
    -webkit-border-radius: 0 0 8px 8px;
    border-radius: 0 0 8px 8px;
}

/* Estilos específicos para checkboxes en Safari */
.dropdown-option input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    position: relative;
    cursor: pointer;
    outline: none;
    margin-right: 10px;
    flex-shrink: 0;
    /* Mejorar touch en Safari */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-option input[type="checkbox"]:checked {
    background: #007bff;
    border-color: #007bff;
}

.dropdown-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Mejorar hover en Safari */
.dropdown-option:hover {
    background-color: #f8f9fa;
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

/* Estilos para inputs de búsqueda en Safari */
.dropdown-search input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    width: 100%;
    font-size: 14px;
    outline: none;
    /* Prevenir zoom en iOS Safari */
    font-size: 16px;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-search input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    -webkit-box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

/* Mejorar animaciones en Safari */
.dropdown-arrow {
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform-origin: center;
    transform-origin: center;
}

.dropdown-header.active .dropdown-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Mejorar scroll en dropdowns largos para Safari */
.dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Mejorar performance del scroll */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Estilos específicos para labels en Safari */
.dropdown-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    /* Mejorar touch */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.option-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    /* Mejorar legibilidad en Safari */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejorar botones en Safari */
.search-btn, .clear-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    cursor: pointer;
    /* Mejorar touch */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Mejorar transiciones */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Prevenir zoom accidental en iOS Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select, input[type="text"], input[type="email"], input[type="tel"], textarea {
        font-size: 16px !important;
    }
}

/* Mejorar renderizado en pantallas Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .dropdown-content {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .option-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Estilos específicos para Safari en macOS */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .dropdown-content {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* Mejorar performance en Safari */
.dropdown-container * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Asegurar que los dropdowns funcionen correctamente en Safari */
.dropdown-content.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.dropdown-content:not(.show) {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
}

/* Mejorar accesibilidad en Safari */
.dropdown-option:focus,
.dropdown-header:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Estilos para modo oscuro en Safari */
@media (prefers-color-scheme: dark) {
    .dropdown-content {
        background-color: #2d2d2d;
        border-color: #444;
    }
    
    .dropdown-option {
        color: #fff;
        border-color: #444;
    }
    
    .dropdown-option:hover {
        background-color: #3d3d3d;
    }
    
    .dropdown-search input {
        background-color: #3d3d3d;
        color: #fff;
        border-color: #555;
    }
}



/* Pie de página lineal */
.footer-content-linear {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-navigation {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-navigation a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: #4a90e2;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive para pie de página */
@media (max-width: 768px) {
    .footer-content-linear {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-navigation {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-contact {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-contact span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.8rem;
    }
}


/* Menú de navegación en línea horizontal */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo strong {
    color: #4a90e2;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a:hover {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.user-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn, .register-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-btn {
    color: #4a90e2;
    border: 1px solid #4a90e2;
    background: transparent;
}

.login-btn:hover {
    background: #4a90e2;
    color: #fff;
}

.register-btn {
    background: #4a90e2;
    color: #fff;
    border: 1px solid #4a90e2;
}

.register-btn:hover {
    background: #357abd;
    border-color: #357abd;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .user-options {
        gap: 0.5rem;
    }
    
    .login-btn, .register-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.5rem;
    }
    
    .user-options {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .login-btn, .register-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Ajuste para el contenido principal */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

