/* ===== FONTS ===== */
@font-face {
    font-family: 'Fira Sans';
    src: url('../FiraSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Slab';
    src: url('../RobotoSlab-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & ROOT ===== */
:root {
    --verde-oscuro: #2c5e2e;
    --verde-musgo: #4a6b3c;
    --marrón-claro: #d4c4b0;
    --marrón-medio: #8b7355;
    --marrón-oscuro: #5a3e2b;
    --crema: #faf7f2;
    --blanco: #ffffff;
    --gris-suave: #f5f0e8;
    --texto-oscuro: #2d2a24;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-primary: 'Fira Sans', sans-serif;
    --font-secondary: 'Roboto Slab', serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--crema);
    color: var(--texto-oscuro);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, 
.logo, .nav a, .slogan, .footer-col h4 {
    font-family: var(--font-secondary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--verde-oscuro);
    border-radius: 2px;
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    background: var(--verde-oscuro);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: var(--marrón-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--verde-oscuro);
    color: var(--verde-oscuro);
    box-shadow: none;
}

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

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(5px);
}

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

.hero .btn { /* Especialización hero solo si difiere en sombra */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.logo .logo-bw, .logo:hover .logo-color { display: none; }
.logo:hover .logo-bw { display: block; }

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: var(--marrón-oscuro);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-oscuro);
    transition: width 0.3s ease;
}

.nav a:hover:after, .nav a.active:after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--verde-oscuro); }

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--marrón-oscuro);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--blanco);
        box-shadow: var(--shadow-md);
        transition: left 0.4s ease;
        padding: 2rem;
    }
    .nav.active { left: 0; }
    .nav-list { flex-direction: column; gap: 1.5rem; }
}

/* ===== FEATURES EXPOSICIÓN ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--blanco);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px; height: 70px;
    background: rgba(44, 94, 46, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i { font-size: 2rem; color: var(--verde-oscuro); }

/* ===== FILTROS PROPIEDADES ===== */
.filter-section {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    font-weight: 600;
    color: var(--marrón-oscuro);
    white-space: nowrap;
}

.filter-select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0d6cc;
    border-radius: 12px;
    font-family: inherit;
    color: var(--texto-oscuro);
    background: var(--crema);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--verde-oscuro);
    box-shadow: 0 0 0 3px rgba(44, 94, 46, 0.1);
}

@media (max-width: 768px) {
    .filter-section { flex-direction: column; align-items: stretch; padding: 1.2rem; }
    .filter-group { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ===== PROPIEDADES GRID ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.property-img { height: 220px; overflow: hidden; }
.property-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-img img { transform: scale(1.05); }

.property-info { padding: 1.5rem; }
.property-info h3 { color: var(--marrón-oscuro); margin-bottom: 0.5rem; }

.property-location {
    color: var(--verde-oscuro);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-price {
    font-weight: 700;
    color: var(--marrón-oscuro);
    font-size: 1.3rem;
}

.property-type {
    display: inline-block;
    background: rgba(44, 94, 46, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--verde-oscuro);
    margin-top: 0.8rem;
}

/* ===== STAFF GRID ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.staff-img {
    width: 150px; height: 150px;
    border-radius: 50%;
    margin: 2rem auto 1rem;
    overflow: hidden;
}

.staff-img img { width: 100%; height: 100%; object-fit: cover; }
.staff-position { color: var(--verde-oscuro); font-weight: 500; margin-bottom: 1rem; }

.staff-social { padding-bottom: 1.5rem; display: flex; justify-content: center; gap: 1rem; }
.staff-social a { color: var(--marrón-medio); transition: var(--transition); font-size: 1.2rem; }
.staff-social a:hover { color: var(--verde-oscuro); }

/* ===== CONTACTO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info, .contact-form, .detail-info {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.contact-icon {
    width: 50px; height: 50px;
    background: rgba(44, 94, 46, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--verde-oscuro);
}

.form-group { margin-bottom: 1.2rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0d6cc;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--verde-oscuro);
    box-shadow: 0 0 0 3px rgba(44, 94, 46, 0.1);
}

/* ===== DETALLE PROPIEDAD ===== */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.detail-gallery { background: var(--blanco); border-radius: 20px; overflow: hidden; }
.detail-main-img { width: 100%; height: 400px; object-fit: cover; }
.detail-thumbnails { display: flex; gap: 0.5rem; padding: 1rem; }
.detail-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; cursor: pointer; opacity: 0.6; transition: var(--transition); }
.detail-thumb.active, .detail-thumb:hover { opacity: 1; }

.detail-price { font-size: 2rem; font-weight: 700; color: var(--verde-oscuro); margin: 1rem 0; }
.detail-features { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; padding: 1.5rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.feature-item { display: flex; align-items: center; gap: 0.5rem; }
.feature-item i { color: var(--verde-oscuro); }

/* ===== FOOTER ===== */
.footer {
    background: var(--marrón-oscuro);
    color: var(--crema);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { margin-bottom: 1.2rem; color: var(--blanco); }
.footer-col a { color: var(--marrón-claro); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--blanco); }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: var(--marrón-claro); }

/* ===== UTILIDADES ===== */
.section { padding: 5rem 0; }
.section-light { background: var(--gris-suave); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.fade-in { animation: fadeInUp 0.8s ease forwards; }

/* ===== LIGHTBOX / GALERÍA ===== */
.lightbox-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 9999; opacity: 0; transition: opacity 0.3s ease;
    align-items: center; justify-content: center;
}
.lightbox-modal.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; width: 90%; height: 90%; display: flex; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: 90vh; object-fit: contain; animation: zoomIn 0.3s ease; transition: transform 0.1s ease; cursor: zoom-in; }
.lightbox-image.zoomed { cursor: zoom-out; }

.lightbox-close, .lightbox-prev, .lightbox-next, .share-btn, .autoplay-btn {
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.6); color: white; border-radius: 50%;
    cursor: pointer; transition: var(--transition); z-index: 10000; border: none;
}

.lightbox-close { position: absolute; top: 20px; right: 30px; width: 40px; height: 40px; font-size: 30px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 24px; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--verde-oscuro); transform: scale(1.1); }

.lightbox-counter, .lightbox-share, .lightbox-autoplay, .zoom-indicator {
    position: absolute; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
    color: white; border-radius: 40px; z-index: 10000;
}
.lightbox-counter { bottom: 20px; left: 50%; transform: translateX(-50%); padding: 8px 16px; font-size: 14px; }
.lightbox-share { bottom: 20px; right: 20px; display: flex; gap: 10px; padding: 8px 15px; }
.lightbox-autoplay { bottom: 20px; left: 20px; display: flex; gap: 10px; padding: 8px 15px; align-items: center; }

.share-btn { width: 35px; height: 35px; background: rgba(255, 255, 255, 0.2); }
.share-btn:hover { background: white; color: var(--verde-oscuro); transform: scale(1.1); }

@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== HERO SLIDER ===== */
.hero {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    overflow: hidden; background: var(--marrón-oscuro); color: white;
}

.hero-slider, .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { 
    background-size: cover; background-position: center; opacity: 0; 
    transition: opacity 1s ease-in-out; z-index: 1; 
}
.slide.active { opacity: 1; z-index: 2; }
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 1; }

.hero-content {
    position: relative; z-index: 4; width: 100%; display: flex; flex-direction: column;
    gap: 2rem; align-items: flex-start; animation: fadeInUp 1s ease;
}

.hero-logo img { max-width: 250px; height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2)); }

.hero h1 { 
    font-size: 3rem; margin-bottom: 1rem; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(90, 62, 43, 0.6); 
}

.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.95); margin-bottom: 2rem; }

.hero-btns { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.slogan {
    font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); margin-top: 1.5rem;
    padding: 0.5rem 1.2rem; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px);
    border-radius: 40px; border: 1px solid rgba(255,255,255,0.1);
}

.slider-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.dot.active { background: white; width: 24px; border-radius: 10px; box-shadow: 0 0 10px rgba(255,255,255,0.5); }

.slider-arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 10; pointer-events: none; }
.slider-arrow { 
    width: 45px; height: 45px; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    cursor: pointer; pointer-events: auto; color: white; transition: var(--transition);
}
.slider-arrow:hover { background: var(--verde-oscuro); transform: scale(1.1); }

@media (min-width: 992px) {
    .hero-content { flex-direction: row; align-items: center; gap: 4rem; }
    .hero-logo img { max-width: 320px; }
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero-content { gap: 1.5rem; }
    .hero-logo img { max-width: 180px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    .slider-arrows { display: none; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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