:root {
    --bg-color: #222222;
    --card-bg: #2d2d2d;
    --gold: #D4AF37;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --transition: all 0.3s ease;
}

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

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

/* Navigation */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: #1a1a1a; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--gold); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--text-white); text-decoration: none; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--gold); }

/* Property Grid - Responsive */
.container { width: 90%; max-width: 1200px; margin: 40px auto; }
.grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card-bg); border-radius: 8px; overflow: hidden; transition: var(--transition); border: 1px solid #333; }
.card:hover { transform: translateY(-10px); border-color: var(--gold); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 20px; }
.card-price { color: var(--gold); font-size: 1.2rem; font-weight: bold; }

/* Slideshow */
.slideshow { position: relative; width: 100%; height: 400px; overflow: hidden; border-radius: 12px; margin-bottom: 20px; }
.slide { width: 100%; height: 100%; object-fit: cover; display: none; }
.slide.active { display: block; animation: fade 0.5s; }
@keyframes fade { from { opacity: 0.4; } to { opacity: 1; } }

/* Form Styling */
.form-group { margin-bottom: 20px; }
input, textarea { width: 100%; padding: 12px; background: #333; border: 1px solid #444; color: white; border-radius: 4px; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; }
.btn { background: var(--gold); color: #000; padding: 12px 24px; border: none; cursor: pointer; font-weight: bold; width: 100%; text-transform: uppercase; transition: var(--transition); }
.btn:hover { background: #b8962d; }

/* Responsive Nav Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #1a1a1a; padding: 20px; border-top: 1px solid #333; }
    .nav-links.active { display: flex; }
    .slideshow { height: 300px; }
}

/*details page  */


/* Home Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

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

.card-content {
    padding: 20px;
}

.card-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
}

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

/* Details Page Styles */
.details-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

@media (max-width: 900px) {
    .details-layout {
        grid-template-columns: 1fr;
    }
}

/* Slideshow */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    border: 1px solid var(--gold);
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--gold);
    color: #000;
}

.prev { left: 20px; border-radius: 0 5px 5px 0; }
.next { right: 20px; border-radius: 5px 0 0 5px; }

/* Buttons */
.gold-button {
    background-color: var(--gold);
    color: #000;
    padding: 15px 30px;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.gold-button:hover {
    background-color: var(--gold-hover);
    letter-spacing: 1px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Utility */
.mb-20 { margin-bottom: 20px; }


/* ---------------- Contact form ---------------------------------------------*/

:root {
    --primary-bg: #222222;
    --gold: #D4AF37;
    --white: #ffffff;
    --input-bg: #2d2d2d;
}

/* Base styles for the contact page */
.contact-section {
    padding: 80px 20px;
    background-color: var(--primary-bg);
    color: var(--white);
    text-align: center;
}

.elegant-form {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
}

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

.elegant-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elegant-form input,
.elegant-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid #444;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.elegant-form input:focus,
.elegant-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-gold {
    background-color: var(--gold);
    color: black;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-gold:hover {
    background-color: #b8952d;
}

/* ---------------- Aviso de privacidad  -------------------------------------*/


div#privacidad h1, h2, h3, h4, h5, h6 {color:var(--gold); text-align:center;}

div#privacidad{margin:50px;}

div#privacidad hr {color:var(--gold); text-align:center; width:50%; margin-left:25%; margin-top:30px; margin-bottom:30px;}


div#privacidad p{margin-top:30px;}

div#privacidad p.c{ text-align:center;}

div#privacidad ul {list-style: none; margin-left:50px; }

div#privacidad li::marker
{
    content:"\2B50";

}

div#privacidad li
{
    margin:5px;

}

span.inm_txt {color:var(--gold); font-weight:bold;}