:root {
    --primary-color: #0d2c4a; /* Azul oscuro / petróleo */
    --accent-color: #cda434; /* Dorado / cobre */
    --light-bg: #f8f9fa; /* Gris claro */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

/* ==========================================
   NAVIGATION
========================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #b38f2a;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #20b858;
}

/* ==========================================
   HERO
========================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(13, 44, 74, 0.7), rgba(13, 44, 74, 0.8)), url('../images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
    color: #e0e0e0;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 40px;
}

.hero-stat-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
}
.hero-stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #ccc;
}

/* ==========================================
   SECTIONS GENERAL
========================================== */
section {
    padding: 100px 20px;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.bg-light {
    background-color: var(--light-bg);
}

/* ==========================================
   SEARCH / FILTER
========================================== */
.search-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}
.search-box {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}
.search-field {
    display: flex;
    flex-direction: column;
}
.search-field label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.search-field select, .search-field input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}
.search-field select:focus, .search-field input:focus {
    border-color: var(--accent-color);
}
.search-btn-container {
    display: flex;
}

/* ==========================================
   PROPERTIES GRID
========================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}
.property-card:hover {
    transform: translateY(-10px);
}
.property-img {
    height: 220px;
    background-color: #ddd; /* fallback */
    background-size: cover;
    background-position: center;
    position: relative;
}
.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.property-content {
    padding: 25px;
}
.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.property-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 20px;
}
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}
.feature span {
    font-weight: bold;
    color: var(--primary-color);
}
.property-actions {
    display: flex;
    gap: 10px;
}
.property-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* ==========================================
   ABOUT & SERVICES
========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.about-feature h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-color);
}
.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ==========================================
   PROCESS
========================================== */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}
.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 18%;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 10px var(--light-bg);
}
.process-step h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* ==========================================
   TESTIMONIALS & FAQ
========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
}
.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--primary-color);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-light);
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* ==========================================
   CONTACT
========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--accent-color);
}
.contact-info {
    padding: 20px;
}
.info-item {
    display: flex;
    margin-bottom: 25px;
}
.info-icon {
    font-size: 24px;
    color: var(--accent-color);
    margin-right: 20px;
}
.info-text h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}
.map-container {
    margin-top: 30px;
    height: 300px;
    background: #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ==========================================
   FOOTER
========================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 20px 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}
.footer-logo span {
    color: var(--accent-color);
}
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.2rem;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-color);
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--accent-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* ==========================================
   MODAL & WHATSAPP FLOATING
========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff;
    margin: 5vh auto;
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding-bottom: 30px;
}
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.modal-header-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.modal-body {
    padding: 30px;
}
.modal-price-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.modal-price-title h2 {
    color: var(--primary-color);
}
.modal-price-title .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}
.modal-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.modal-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .process-timeline { flex-direction: column; align-items: center; gap: 30px; }
    .process-timeline::before { display: none; }
    .process-step { width: 100%; max-width: 300px; }
    .modal-details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .search-box { grid-template-columns: 1fr; }
    .search-section { margin-top: -30px; }
    .modal-header-img { height: 250px; }
    .modal-price-title { flex-direction: column; align-items: flex-start; gap: 10px; }
}
