/* Variables CSS */
:root {
    --primary: #1a4d2e;
    --primary-light: #4f9d69;
    --secondary: #ff9f29;
    --whatsapp: #25D366;
    --light: #f5f5f5;
    --dark: #333;
    --gray: #777;
    --gray-light: #e9e9e9;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.whatsapp-button {
    background-color: var(--whatsapp);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1973&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Filtros */
.filters {
    background-color: white;
    padding: 30px 0;
    margin-top: -40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.filter-group select, .filter-group input {
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Catálogo */
.catalog {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

/* Tarjetas de Lotes */
.lot-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.lot-card:hover {
    transform: translateY(-10px);
}

.lot-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.lot-badge.destacado {
    background-color: #ffd700;
    color: #333;
}

.lot-badge.vendido {
    background-color: #dc3545;
}

.lot-badge.reservado {
    background-color: #ffc107;
    color: #333;
}

.lot-image {
    height: 200px;
    overflow: hidden;
}

.lot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.lot-info {
    padding: 20px;
}

.lot-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.lot-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    margin-bottom: 15px;
}

.lot-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.feature {
    text-align: center;
}

.feature i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

.caracteristicas-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.caracteristica-tag {
    background-color: var(--gray-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lot-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.lot-actions {
    display: flex;
    gap: 10px;
}

.btn-details, .btn-contact, .btn-whatsapp {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-details {
    background-color: var(--gray-light);
    color: var(--dark);
    border: 1px solid var(--gray-light);
}

.btn-details:hover {
    background-color: var(--gray);
    color: white;
}

.btn-contact {
    background-color: var(--primary);
    color: white;
}

.btn-contact:hover {
    background-color: var(--primary-light);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    z-index: 99;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--gray);
    grid-column: 1 / -1;
}

.loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

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

/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal {
    background-color: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

.modal-form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
}

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

.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.calendar-day {
    text-align: center;
    padding: 10px 5px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background-color: var(--gray-light);
}

.calendar-day.selected {
    background-color: var(--primary);
    color: white;
}

.calendar-day.disabled {
    color: var(--gray-light);
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background-color: transparent;
}

.calendar-day.weekday {
    font-weight: 600;
    color: var(--primary);
    cursor: default;
}

.calendar-day.weekday:hover {
    background-color: transparent;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    background-color: var(--gray-light);
}

.time-slot.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slot.disabled {
    color: var(--gray-light);
    cursor: not-allowed;
}

.time-slot.disabled:hover {
    background-color: transparent;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.submit-btn {
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #ffb85c;
}

/* Contacto */
.contact {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: none;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-column p, .footer-column a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #bbb;
    font-size: 0.9rem;
}

/* Panel Admin Link */
.admin-link {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 99;
    transition: all 0.3s;
    text-decoration: none;
}

.admin-link:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
}

/* Mensaje cuando no hay propiedades */
.no-properties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-properties i {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.no-properties h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.no-properties p {
    color: var(--gray);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para Galería Mejorada */
.gallery-container {
    position: relative;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-image-container img {
    transition: transform 0.5s;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.main-image-container img:hover {
    transform: scale(1.02);
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnails-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.thumbnail {
    transition: all 0.3s;
    position: relative;
    min-width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
}

.thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary), 0 5px 15px rgba(0,0,0,0.3);
}

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

/* Animaciones para tarjetas de información */
.info-card {
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 25px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
}

/* Efectos de botones */
.modal-buttons button {
    transition: all 0.3s !important;
}

.modal-buttons button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

/* Modal de imagen expandida */
#expandModal img {
    transition: transform 0.5s ease;
}

/* Galería de navegación */
.gallery-nav {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gallery-nav:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Modal de detalles mejorado */
.detail-modal {
    max-width: 1000px !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .lot-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .header-buttons {
        display: none;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-container {
        grid-template-columns: 1fr;
    }
    
    .lots-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .modal {
        width: 95%;
        padding: 20px;
    }
    
    .admin-link {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .lot-actions {
        flex-direction: column;
    }
}

/* ============================================ */
/* MODAL FORMAL MEJORADO - DISEÑO PROFESIONAL */
/* ============================================ */

/* Contenedor del Modal */
.formal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    padding: 20px;
}

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

/* Modal Principal - Estilo Formal */
.formal-modal {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #e5e7eb;
}

.formal-modal-overlay.active .formal-modal {
    transform: translateY(0);
}

/* Header del Modal */
.formal-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3b1e 100%);
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
}

.formal-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.formal-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.formal-title-section {
    flex: 1;
    min-width: 300px;
}

.formal-property-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.formal-property-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.formal-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.formal-location-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.formal-location-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formal-location-text {
    font-size: 16px;
    color: white;
    font-weight: 500;
}

/* Status Badges Formales */
.formal-status-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.formal-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.formal-status-badge.featured {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    border-color: rgba(255, 183, 77, 0.4);
}

/* Price Section Formal */
.formal-price-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.formal-price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), #ff8a00);
}

.formal-price-display {
    text-align: center;
}

.formal-price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.formal-price-unit {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formal-price-per-m2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

/* Close Button Formal */
.formal-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.formal-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: rotate(90deg);
}

/* Tabs Navigation Formal */
.formal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.formal-tabs::-webkit-scrollbar {
    display: none;
}

.formal-tab-button {
    padding: 20px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    position: relative;
}

.formal-tab-button:hover {
    color: var(--primary);
    background: rgba(26, 77, 46, 0.05);
}

.formal-tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: linear-gradient(to bottom, rgba(26, 77, 46, 0.05), transparent);
}

.formal-tab-button i {
    font-size: 18px;
}

/* Content Area */
.formal-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #fafafa;
}

/* Overview Section */
.formal-overview-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* Gallery Formal */
.formal-gallery-section {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    background: white;
}

.formal-main-gallery {
    position: relative;
    height: 360px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #f5f5f5;
}

.formal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.formal-main-gallery:hover .formal-main-image {
    transform: scale(1.02);
}

.formal-gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.formal-gallery-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formal-gallery-nav:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.formal-gallery-counter {
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.formal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    border-top: 1px solid #e9ecef;
    background: white;
}

.formal-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.formal-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.formal-thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

/* Quick Stats */
.formal-quick-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.formal-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.formal-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.formal-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.formal-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.formal-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Grid */
.formal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.formal-feature-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.formal-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.formal-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 20px;
}

.formal-feature-content {
    flex: 1;
}

.formal-feature-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.formal-feature-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Details Section */
.formal-details-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e9ecef;
    margin-bottom: 32px;
}

.formal-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.formal-section-title i {
    color: var(--secondary);
}

/* Specifications Table */
.formal-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.formal-spec-row {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.formal-spec-row:hover {
    background-color: #f8f9fa;
}

.formal-spec-label {
    padding: 16px 0;
    color: #666;
    font-weight: 500;
    width: 40%;
    font-size: 15px;
    padding-right: 20px;
}

.formal-spec-value {
    padding: 16px 0;
    color: #333;
    font-weight: 600;
    text-align: right;
    font-size: 15px;
}

/* Description */
.formal-description-content {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* Modal Footer */
.formal-modal-footer {
    padding: 24px 32px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.formal-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.formal-action-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 15px;
    text-decoration: none;
}

.formal-action-btn.whatsapp {
    background: linear-gradient(135deg, var(--whatsapp), #128C7E);
    color: white;
}

.formal-action-btn.favorite {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

.formal-action-btn.print {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.formal-action-btn.share {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.formal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.formal-footer-meta {
    color: #666;
    font-size: 14px;
    text-align: right;
}

.formal-footer-meta span {
    font-weight: 600;
    color: #333;
}

/* Fullscreen Gallery */
.formal-fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.formal-fullscreen-gallery.active {
    opacity: 1;
    visibility: visible;
}

.formal-fullscreen-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.formal-fullscreen-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.formal-fullscreen-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.formal-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: rotate(90deg);
}

/* Document List */
.formal-documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.formal-document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.formal-document-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.formal-document-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 20px;
}

.formal-document-info {
    flex: 1;
}

.formal-document-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 16px;
}

.formal-document-desc {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .formal-overview-section {
        grid-template-columns: 1fr;
    }
    
    .formal-modal {
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .formal-modal-header {
        padding: 24px;
    }
    
    .formal-header-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .formal-price-section {
        width: 100%;
    }
    
    .formal-modal-content {
        padding: 24px;
    }
    
    .formal-tabs {
        padding: 0 16px;
    }
    
    .formal-tab-button {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .formal-main-gallery {
        height: 280px;
    }
    
    .formal-gallery-controls {
        padding: 10px 20px;
        gap: 10px;
    }
    
    .formal-gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .formal-thumbnail {
        width: 70px;
        height: 52px;
    }
    
    .formal-features-grid {
        grid-template-columns: 1fr;
    }
    
    .formal-modal-footer {
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .formal-footer-actions {
        width: 100%;
        justify-content: center;
    }
    
    .formal-footer-meta {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .formal-modal {
        border-radius: 12px;
    }
    
    .formal-property-title {
        font-size: 24px;
    }
    
    .formal-price-amount {
        font-size: 28px;
    }
    
    .formal-action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in-up {
    animation: slideInUp 0.3s ease;
}

/* Loading State */
.formal-gallery-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 12px;
}

.formal-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e9ecef;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltip */
.formal-tooltip {
    position: relative;
}

.formal-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 8px;
}

/* Badge Styles */
.formal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.formal-badge.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.formal-badge.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.formal-badge.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

/* Divider */
.formal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 24px 0;
}

/* Section with Icon */
.formal-section-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.formal-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.formal-section-content {
    flex: 1;
}

/* Price Breakdown */
.formal-price-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

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

.formal-price-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.formal-price-item-label {
    color: #666;
    font-weight: 500;
}

.formal-price-item-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.formal-price-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e9ecef;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Contact Info */
.formal-contact-info {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    padding: 24px;
    color: white;
}

.formal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.formal-contact-item:last-child {
    margin-bottom: 0;
}

.formal-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.formal-contact-text {
    flex: 1;
    font-size: 15px;
}

/* Timeline */
.formal-timeline {
    position: relative;
    padding-left: 24px;
}

.formal-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.formal-timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.formal-timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.formal-timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.formal-timeline-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.formal-timeline-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* Stats Grid */
.formal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.formal-stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.formal-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.formal-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.formal-stat-text {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos para el formulario de contacto */
.contact {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.contact p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    grid-column: 1 / -1;
    background-color: #4a6cf7;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #3a5ce5;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact {
        padding: 60px 15px;
    }
}

.form-group label {
    display: block !important;
    color: red !important; /* Para ver si se aplica */
}