:root {
    --primary-color: #1a1a1a;
    --secondary-color: #252525;
    --accent-color: #c5a059;
    /* Dorado */
    --accent-hover: #b08e4d;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', 'Segoe UI', serif;
    /* Toque elegante */
}

p,
a,
button,
input,
label {
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    /* Más aire arriba y abajo */
}

/* --- Header --- */
#main-header {
    background: rgba(255, 255, 255, 0.98);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=80&w=2053&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 16px 45px;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* --- Secciones Generales --- */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

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

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.section-title.white-text h2 {
    color: var(--white);
}

.section-title.white-text p {
    color: #ccc;
}

/* --- SERVICIOS PREMIUM (NUEVO DISEÑO) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    padding: 60px 40px;
    /* Más espacio interno */
    background: var(--white);
    /* Sombra sutil y elegante en lugar de borde */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Transición suave profesional */
    z-index: 1;
    border-bottom: 3px solid transparent;
    /* Prepara el borde inferior */
}

/* Efecto fondo oscuro al pasar el mouse */
.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
    /* Invisible al inicio */
    transition: opacity 0.4s ease;
}

/* Estados Hover (Interacción Premium) */
.service-item:hover {
    transform: translateY(-15px);
    /* Se eleva más */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    /* Sombra difusa grande */
    border-bottom-color: var(--accent-color);
    /* Borde dorado abajo */
}

.service-item:hover::after {
    opacity: 1;
    /* Aparece el fondo negro */
}

/* Tipografía Servicios */
.service-item h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-item p {
    color: #666;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

/* Cambio de color de texto al hacer hover */
.service-item:hover h3 {
    color: var(--accent-color);
    /* Título se vuelve dorado */
}

.service-item:hover p {
    color: #ddd;
    /* Texto se vuelve gris claro */
}

/* --- Filtros --- */
#filtros {
    text-align: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 30px;
    margin: 5px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* --- Propiedades --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

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

.property-img-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

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

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

.card-info {
    padding: 25px;
}

.card-info h3 {
    font-size: 1.4rem;
    margin: 10px 0;
}

.tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.price {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 15px;
    display: block;
    font-weight: bold;
}

/* --- Testimonios --- */
#testimonios {
    background-color: var(--primary-color);
    padding: 100px 0;
    margin-top: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--secondary-color);
    padding: 40px;
    border-left: 3px solid var(--accent-color);
    color: #ddd;
}

.testimonial-card cite {
    display: block;
    margin-top: 20px;
    color: var(--accent-color);
    font-style: normal;
    font-weight: bold;
}

/* --- Contacto --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
}

.contact-info h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.info-item {
    margin-top: 30px;
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
}

#contact-form {
    flex: 1.5;
    min-width: 300px;
    padding: 60px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #888;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

/* --- Footer --- */
#main-footer {
    background: #111;
    color: #999;
    padding: 80px 0 0;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-logo {
    filter: grayscale(100%) brightness(200%);
    height: 45px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-form {
    display: flex;
    margin: 20px 0;
}

.footer-form input {
    padding: 10px;
    border: none;
    background: #222;
    color: white;
    width: 100%;
    outline: none;
}

.footer-form button {
    padding: 10px 15px;
    background: var(--accent-color);
    border: none;
    color: white;
    cursor: pointer;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-bottom {
    background: #080808;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
}

/* --- Responsive --- */
@media screen and (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: 0;
        height: calc(100vh - 80px);
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-form {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}