@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #FAF8F5;
    --surface-color: #FFFFFF;
    --primary-color: #D17A5A;
    --primary-hover: #B56345;
    --text-dark: #2C2621;
    --text-light: #6E665F;
    --border-color: #EBE5DF;
    --shadow-sm: 0 4px 12px rgba(44, 38, 33, 0.05);
    --shadow-md: 0 12px 30px rgba(44, 38, 33, 0.08);
    --shadow-lg: 0 20px 40px rgba(44, 38, 33, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ================= HEADER ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(235, 229, 223, 0.5);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: var(--transition);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-beige {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-beige:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(44, 38, 33, 0.8) 0%, rgba(44, 38, 33, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    color: #fff;
    padding-top: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

/* ================= CARDS / GRID ================= */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-property {
    padding: 100px 0;
}

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

.property-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.property-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.property-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.property-tag.tag-departamento {
    background: #6b8f71;
}

.property-info {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.property-info .subtitle {
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.features-list-vertical {
    list-style: none;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-grow: 1;
}

.features-list-vertical li {
    font-size: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list-vertical i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.property-info .btn {
    width: 100%;
    margin-top: auto;
}

/* ================= FEATURE SECTION ================= */
.horizontal-card {
    display: flex;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    align-items: center;
    border: 1px solid var(--border-color);
}

.horizontal-card .property-info {
    flex: 1;
    padding: 60px;
    text-align: left;
}

.horizontal-card .card-image {
    flex: 1;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.horizontal-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= CONTACT SECTION ================= */
.section-contacto {
    background: linear-gradient(to bottom, var(--bg-color) 30%, #ecebeb 100%);
    padding: 100px 0 50px;
    border-top: none;
}

.bg-gradient-footer {
    background: linear-gradient(to bottom, var(--bg-color) 60%, #ecebeb 100%);
}

.bg-gradient-footer-white {
    background: linear-gradient(to bottom, var(--surface-color) 60%, #ecebeb 100%);
}

.contacto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: flex-start;
}

.contacto-info h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.contacto-info p {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.contacto-info i {
    color: var(--primary-color);
    font-size: 24px;
    width: 30px;
}

.contacto-form {
    background: var(--bg-color);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid #DFD9D3;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: var(--surface-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(209, 122, 90, 0.1);
}

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

/* ================= FOOTER ================= */
.site-footer {
    background: var(--text-dark);
    color: #fff;
    margin-top: 0;
}

.footer-main {
    padding: 70px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 50px;
}

.footer-logo {
    height: 52px;
    margin-bottom: 20px;
}

.footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 14px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-col p i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-inner p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-bottom-inner a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.footer-bottom-inner a:hover {
    opacity: 0.8;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
}

/* ================= SINGLE PROPERTY PAGES ================= */
.property-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.property-detail-layout h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 24px;
    color: var(--primary-color);
}

.property-detail-layout .desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.property-detail-layout ul li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 500;
}

.property-detail-layout ul li i {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
}

.property-detail-media img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.property-map iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .horizontal-card {
        flex-direction: column;
    }
    .contacto-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .contacto-form {
        padding: 30px;
    }
    .property-detail-layout {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* ---- Header ---- */
    .header-container {
        height: auto;
        padding: 12px 0;
    }
    .logo img {
        height: 36px;
    }
    .logo-text {
        font-size: 14px;
    }
    .menu-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        background: var(--surface-color);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 16px 0;
        font-size: 15px;
    }
    .main-nav a::after {
        display: none;
    }

    /* ---- Hero ---- */
    .hero {
        text-align: center;
        min-height: 560px;
    }
    .hero-content {
        padding-top: 40px;
    }
    .hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* ---- Section titles & spacing ---- */
    .section-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        margin-bottom: 36px;
    }
    .section-property {
        padding: 60px 0;
    }
    main[style*="padding-top: 150px"] {
        padding-top: 100px !important;
    }
    div[style*="text-align: center; margin-bottom: 60px"] {
        margin-bottom: 32px !important;
    }
    h1[style*="font-size: 48px"] {
        font-size: clamp(1.9rem, 9vw, 2.5rem) !important;
    }
    h2[style*="font-size: 40px"] {
        font-size: clamp(1.6rem, 7vw, 2rem) !important;
    }
    h2[style*="font-size: 32px"] {
        font-size: clamp(1.4rem, 6vw, 1.6rem) !important;
    }

    /* ---- Cards / grids: never force a column wider than the screen ---- */
    .property-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }
    .property-image {
        height: 220px;
    }
    .property-info {
        padding: 28px 22px;
    }
    .features-list-vertical {
        grid-template-columns: 1fr;
    }
    .horizontal-card .property-info {
        padding: 36px 22px;
    }

    /* ---- Single property detail pages ---- */
    .property-detail-layout {
        padding: 28px 20px;
        gap: 30px;
    }
    .property-detail-layout .property-info,
    .property-detail-media {
        min-width: 100% !important;
        flex-basis: 100% !important;
    }
    .property-detail-layout h1 {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
    }
    .property-map iframe {
        height: 260px;
    }

    /* ---- Contact form ---- */
    .contacto-form {
        padding: 22px;
    }

    /* ---- Footer ---- */
    .footer-main {
        padding: 45px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-col p {
        justify-content: center;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* ---- Whatsapp float ---- */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   DETAIL PAGE (CASA PEDREGAL)
   ========================================= */
.detail-page {
    padding-top: 120px; /* Leave space for the static header */
    padding-bottom: 80px;
    background-color: #fcfcfc; /* Very light background for the whole page */
}

.detail-container {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1000px;
}

.detail-header {
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
}

.detail-title {
    font-size: 42px;
    color: #b78a70; /* Brownish color from screenshot */
    font-weight: 700;
    line-height: 1.2;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Left Column: Description */
.detail-description p {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
}

.highlight-blue {
    color: #3498db !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px !important;
}

.detail-features-list {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.detail-features-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.detail-features-list li i {
    width: 30px;
    color: #b78a70;
    font-size: 16px;
}

/* Right Column: Gallery (Swiper) */
.detail-gallery {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.main-swiper {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    margin-bottom: 10px;
}

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

.thumbs-swiper {
    width: 100%;
    height: 80px;
    box-sizing: border-box;
}

.thumbs-swiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #b78a70;
}

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

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-container {
        padding: 30px 20px;
    }
}

.header-light { position: relative; background-color: transparent; }
.header-light .main-nav a { color: #000; text-shadow: none; }
.header-light .main-nav a:hover { color: #b78a70; }
