/* ============================================
   INMOPACHECO - Estilos principales
   Colores corporativos: Azul (#1a3a5c) + Naranja (#ff6635)
   Rediseño: tonos claros, menos azul, más luminoso
   ============================================ */


/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5580;
    --primary-soft: #e8eef4;
    --primary-dark: #0f2640;
    --accent: #ff6635;
    --accent-light: #ff8a65;
    --accent-dark: #e55a2b;
    --accent-soft: #fff0eb;
    --white: #ffffff;
    --off-white: #fafbfc;
    --light-gray: #f3f4f6;
    --gray: #e5e7eb;
    --mid-gray: #9ca3af;
    --dark-gray: #4b5563;
    --text: #1f2937;
    --text-light: #6b7280;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 53, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-full {
    width: 100%;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--off-white);
    color: var(--text-light);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-contact a,
.top-bar-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dark-gray);
}

.top-bar-contact a:hover {
    color: var(--accent);
}

.top-bar-location {
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    background: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    line-height: 0;
}

.lang-flag:hover {
    opacity: 1;
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--accent);
}

.lang-flag svg {
    display: block;
    border-radius: 2px;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    touch-action: manipulation;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-link.active {
    font-weight: 600;
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Slider --- */
.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 90vh;
}

/* Individual slide */
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 38, 64, 0.4) 0%,
        rgba(15, 38, 64, 0.5) 50%,
        rgba(15, 38, 64, 0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 40px 0 180px;
    max-width: 780px;
    margin: 0 auto;
    z-index: 2;
}

/* Text entrance animations */
.hero-slide .hero-subtitle,
.hero-slide .hero-title,
.hero-slide .hero-text,
.hero-slide .hero-buttons {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.hero-slide.active .hero-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.hero-slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.75s;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dot:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    width: 28px;
    border-radius: 6px;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 148px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Property Search Bar (overlaid on hero) --- */
.hero-search {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding-bottom: 24px;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 24px 28px 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mid-gray);
}

.search-field select {
    width: 100%;
    padding: 12px 36px 12px 14px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--off-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
}

.search-field select:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 102, 53, 0.1);
}

.search-field select:hover {
    border-color: var(--mid-gray);
}

.search-field-btn {
    flex: 0 0 auto;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-search:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 53, 0.3);
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 102, 53, 0.1);
}

.search-input:hover {
    border-color: var(--mid-gray);
}

.search-input::placeholder {
    color: var(--mid-gray);
}

/* --- Section commons --- */
.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 48px;
    line-height: 1.2;
}

/* --- Gallery (Horizontal Scroll) --- */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.gallery-section .section-title {
    margin-bottom: 32px;
}

.gallery-scroll-wrapper {
    position: relative;
    padding: 0 24px;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll:active {
    cursor: grabbing;
}

.gallery-item {
    flex: 0 0 320px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.gallery-arrow:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.gallery-arrow-left {
    left: 8px;
}

.gallery-arrow-right {
    right: 8px;
}

/* --- Services --- */
.services {
    padding: 80px 0;
    background: var(--off-white);
}

.services .section-title {
    text-align: center;
}

.services .section-subtitle {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 14px;
    color: var(--accent);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--white);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.service-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Properties --- */
.properties {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.properties .section-subtitle,
.properties .section-title {
    text-align: center;
}

.properties-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--gray);
    border-radius: 50px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.properties-scroll-wrapper {
    position: relative;
    padding: 0 24px;
}

.properties-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.properties-grid::-webkit-scrollbar {
    display: none;
}

.properties-grid:active {
    cursor: grabbing;
}

.properties-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.properties-arrow:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.properties-arrow-left {
    left: 8px;
}

.properties-arrow-right {
    right: 8px;
}

.properties-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.property-card {
    display: block;
    flex: 0 0 300px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.property-card.hidden {
    display: none;
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.property-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-venta {
    background: var(--accent);
    color: var(--white);
}

.badge-alquiler {
    background: var(--primary-light);
    color: var(--white);
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.property-features {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 14px;
}

.property-features span {
    font-size: 0.82rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.property-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: color var(--transition);
}

.property-link:hover {
    color: var(--accent);
}

/* --- About --- */
.about {
    padding: 80px 0;
    background: var(--off-white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-quote {
    padding: 20px 24px;
    margin: 24px 0 28px;
    border-left: 3px solid var(--accent);
    background: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact .section-subtitle,
.contact .section-title {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 12px;
    color: var(--accent);
}

.contact-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-card a {
    color: var(--text-light);
}

.contact-card a:hover {
    color: var(--accent);
}

/* Form */
.contact-form {
    background: var(--off-white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 53, 0.1);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* --- Location / Map --- */
.location {
    padding: 80px 0 0;
    background: var(--off-white);
}

.location .section-subtitle,
.location .section-title {
    text-align: center;
}

.map-container {
    width: 100%;
    margin-top: 40px;
    border-top: 3px solid var(--accent);
}

.map-container iframe {
    display: block;
}

/* --- Footer --- */
.footer {
    background: #1c1c1c;
    color: rgba(255, 255, 255, 0.65);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.88rem;
    padding: 2px 0;
}

.footer-contact a:hover {
    color: var(--accent-light);
}

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

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   WHATSAPP FLOATING WIDGET
   ============================================ */
.whatsapp-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Chat popup */
.whatsapp-chat {
    width: 340px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom left;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-wrapper.open .whatsapp-chat {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--whatsapp-dark);
    color: var(--white);
}

.wa-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-chat-avatar img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.wa-chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wa-chat-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.wa-chat-status {
    font-size: 0.75rem;
    opacity: 0.85;
}

.wa-chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    transition: opacity var(--transition);
}

.wa-chat-close:hover {
    opacity: 1;
}

.wa-chat-body {
    padding: 20px 16px;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    min-height: 120px;
}

.wa-chat-bubble {
    background: var(--white);
    padding: 10px 14px;
    border-radius: 0 10px 10px 10px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wa-chat-bubble p {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 4px;
}

.wa-chat-bubble p:last-of-type {
    margin-bottom: 2px;
}

.wa-chat-time {
    font-size: 0.68rem;
    color: var(--mid-gray);
    display: block;
    text-align: right;
    margin-top: 4px;
}

.wa-chat-footer {
    padding: 10px 12px;
    background: var(--light-gray);
    border-top: 1px solid var(--gray);
}

.wa-chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wa-chat-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray);
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}

.wa-chat-form input:focus {
    border-color: var(--whatsapp);
}

.wa-chat-form button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}

.wa-chat-form button:hover {
    background: var(--whatsapp-dark);
}

/* Floating button */
.whatsapp-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all var(--transition);
    position: relative;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn .wa-icon-close {
    display: none;
}

.whatsapp-wrapper.open .whatsapp-btn .wa-icon-open {
    display: none;
}

.whatsapp-wrapper.open .whatsapp-btn .wa-icon-close {
    display: block;
}

/* Pulse animation on load */
.whatsapp-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    animation: waPulse 2s ease-in-out infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.whatsapp-wrapper.open .whatsapp-btn::after {
    display: none;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 38, 64, 0.55) 0%,
        rgba(15, 38, 64, 0.7) 100%
    );
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span:last-child {
    color: var(--white);
    font-weight: 500;
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   EMPRESA PAGE (About / Quienes somos)
   ============================================ */
.empresa-intro {
    padding: 80px 0;
    background: var(--off-white);
}

.empresa-valores {
    padding: 80px 0;
    background: var(--white);
}

.empresa-equipo {
    padding: 80px 0;
    background: var(--off-white);
}

/* Team card */
.team-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-md);
}

.team-card-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

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

.team-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.team-card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* CTA section */
.empresa-cta {
    padding: 60px 0;
    background: var(--primary);
    color: var(--white);
}

.empresa-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.empresa-cta-text {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 28px;
}

.empresa-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.empresa-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

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

/* ============================================
   LOCATION PAGE
   ============================================ */
.location-info {
    padding: 80px 0;
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

.location-info .section-title {
    margin-bottom: 28px;
}

.location-detail-card {
    background: var(--off-white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray);
    margin-bottom: 20px;
}

.location-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray);
}

.location-detail-row:first-child {
    padding-top: 0;
}

.location-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.location-detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 10px;
    color: var(--accent);
}

.location-detail-text p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.location-detail-text a {
    color: var(--text-light);
    transition: color var(--transition);
}

.location-detail-text a:hover {
    color: var(--accent);
}

.location-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--accent);
}

.location-detail-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.horario-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray);
}

.horario-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.horario-day {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.horario-time {
    font-size: 0.88rem;
    color: var(--text-light);
    text-align: right;
}

.horario-time.closed {
    color: var(--accent);
    font-weight: 600;
}

.location-cta {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

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

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.25);
}

.location-right .section-title {
    margin-bottom: 20px;
}

.location-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.location-map {
    padding: 0;
}

.location-map .map-container {
    margin-top: 0;
}

/* ============================================
   LISTING PAGES (Venta / Alquiler)
   ============================================ */
.page-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.listing-page {
    padding: 60px 0;
}

.listing-page-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.listing-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.listing-sidebar form {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.listing-sidebar form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.filter-group select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--off-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
}

.filter-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 53, 0.1);
}

.filter-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-custom {
    display: none;
}

/* Quick contact card */
.quick-contact {
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
}

.quick-contact-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.quick-contact-text {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.5;
}

.quick-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--white) !important;
    opacity: 0.9;
    transition: opacity var(--transition);
}

.quick-contact-link:hover {
    opacity: 1;
}

/* Listing header */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.listing-count {
    font-size: 0.95rem;
    color: var(--text-light);
}

.listing-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.listing-sort select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    outline: none;
}

/* Listing grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Property ref badge */
.property-ref {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    backdrop-filter: blur(4px);
    letter-spacing: 0.03em;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 40px 0 20px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.pagination .dots {
    border: none;
    background: none;
    cursor: default;
    min-width: 24px;
    padding: 0;
    color: var(--mid-gray);
}

.pagination .pagination-arrow {
    color: var(--dark-gray);
}

.pagination .pagination-arrow:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Suggestions section */
.suggestions-section {
    padding: 80px 0;
    background: var(--off-white);
}

.suggestions-section .section-subtitle,
.suggestions-section .section-title {
    text-align: center;
}

.suggestions-section p.suggestions-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 560px;
    margin: -32px auto 32px;
    line-height: 1.7;
}

.suggestion-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact map */
.contact-map {
    padding: 0;
}

.contact-map .map-container {
    margin-top: 0;
}

.contact-map iframe {
    display: block;
}

/* ============================================
   DETAIL PAGE (Detalle inmueble)
   ============================================ */
.detail-section {
    padding: 80px 0;
    background: var(--off-white);
}

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

.detail-grid > * {
    min-width: 0;
}

/* Gallery */
.detail-gallery {
    margin-bottom: 32px;
}

.detail-gallery-main {
    width: 100%;
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-gallery-main:hover img {
    transform: scale(1.03);
}

.detail-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.detail-gallery-thumbs img {
    flex: 0 0 100px;
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity var(--transition), border-color var(--transition);
}

.detail-gallery-thumbs img:hover {
    opacity: 1;
}

.detail-gallery-thumbs img.active {
    border-color: var(--accent);
    opacity: 1;
}

/* Info Card */
.detail-info-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 32px;
}

.detail-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.detail-badge-ref {
    background: var(--primary-soft);
    color: var(--primary);
}

.detail-badge-status {
    background: #dcfce7;
    color: #166534;
}

.detail-info-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.detail-location svg {
    flex-shrink: 0;
}

.detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--light-gray);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.detail-feature-pill svg {
    color: var(--primary);
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.detail-price-label {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Description */
.detail-description {
    margin-bottom: 32px;
}

.detail-description h3,
.detail-amenities h3,
.detail-calendar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.detail-description p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 14px;
}

.detail-description .detail-note {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 8px;
}

/* Amenities */
.detail-amenities {
    margin-bottom: 40px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text);
}

.amenity-item svg {
    color: #16a34a;
    flex-shrink: 0;
}

/* Energy Certification */
.detail-energy-cert {
    margin-bottom: 40px;
}

.detail-energy-cert h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 20px;
}

.energy-cert-container {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.energy-cert-status {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray);
}

.energy-cert-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 4px;
}

.energy-cert-header-empty {
    /* empty first column */
}

.energy-cert-header-col {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-medium);
    text-align: center;
    padding: 8px 4px;
    border-bottom: 2px solid var(--gray);
}

.energy-cert-header-col span {
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.energy-cert-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid #f0f0f0;
}

.energy-cert-row:last-child {
    border-bottom: none;
}

.energy-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    margin: 2px 0;
}

.energy-letter {
    font-size: 1rem;
    font-weight: 800;
    min-width: 14px;
}

.energy-label {
    font-size: 0.65rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.95;
    white-space: nowrap;
}

.energy-a { background: #00a651; width: 30%; min-width: 80px; }
.energy-b { background: #4cb848; width: 37%; min-width: 60px; }
.energy-c { background: #bdd62e; width: 44%; min-width: 60px; }
.energy-d { background: #fff200; width: 51%; min-width: 60px; color: #333; }
.energy-e { background: #f5a623; width: 58%; min-width: 60px; }
.energy-f { background: #ef6a20; width: 65%; min-width: 60px; }
.energy-g { background: #e2001a; width: 75%; min-width: 120px; }

.energy-val {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    padding: 4px;
}

@media (max-width: 480px) {
    .energy-cert-container {
        padding: 16px;
    }
    .energy-cert-header-col {
        font-size: 0.72rem;
    }
    .energy-arrow {
        font-size: 0.8rem;
        padding: 4px 10px 4px 8px;
    }
}

/* Calendar */
.detail-calendar {
    margin-bottom: 32px;
}

.calendar-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--dark-gray);
}

.calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.calendar-legend-dot.dot-available {
    background: #22c55e;
}

.calendar-legend-dot.dot-occupied {
    background: #ef4444;
}

.calendar-legend-dot.dot-past {
    background: #d1d5db;
}

.calendar-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.calendar-year-nav span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.calendar-year-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text);
}

.calendar-year-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.calendar-month {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 12px;
    padding: 16px;
}

.calendar-month h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary);
}

.calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 4px;
}

.calendar-day-names span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mid-gray);
    text-transform: uppercase;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-days span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.day-empty {
    visibility: hidden;
}

.day-available {
    background: #dcfce7;
    color: #166534;
}

.day-occupied {
    background: #fee2e2;
    color: #991b1b;
}

.day-past {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Detail Sidebar */
.detail-contact-card {
    background: var(--off-white);
    border: 1px solid var(--gray);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
    position: sticky;
    top: 100px;
}

.detail-contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.detail-contact-card > p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.detail-contact-card .form-group {
    margin-bottom: 14px;
}

.detail-contact-card input,
.detail-contact-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}

.detail-contact-card input:focus,
.detail-contact-card textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 53, 0.1);
}

.detail-contact-card textarea {
    resize: vertical;
    min-height: 90px;
}

.detail-contact-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--mid-gray);
    position: relative;
}

.detail-contact-divider::before,
.detail-contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--gray);
}

.detail-contact-divider::before { left: 0; }
.detail-contact-divider::after { right: 0; }

.detail-direct-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-direct-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--transition);
}

.detail-phone-link {
    background: var(--primary-soft);
    color: var(--primary);
}

.detail-phone-link:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white) !important;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Location mini card */
.detail-location-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 14px;
    overflow: hidden;
}

.detail-location-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.detail-location-card-body {
    padding: 18px;
}

.detail-location-card-body p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.detail-location-card-body a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-location-card-body a:hover {
    color: var(--accent-dark);
}

/* ============================================
   ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        gap: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-field {
        flex: 1 1 30%;
    }

    .search-field-btn {
        flex: 1 1 100%;
    }

    .btn-search {
        width: 100%;
    }

    /* Listing page tablet */
    .listing-page-inner {
        grid-template-columns: 260px 1fr;
        gap: 28px;
    }

    /* Detail page tablet */
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-contact-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
    }

    .top-bar-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .top-bar-location {
        display: none;
    }

    .lang-flag svg {
        width: 20px;
        height: 14px;
    }

    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--white);
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition), visibility 0s linear 0.3s;
        z-index: 999;
        visibility: hidden;
        pointer-events: none;
    }

    .nav.open {
        right: 0;
        visibility: visible;
        pointer-events: auto;
        transition: right var(--transition), visibility 0s linear 0s;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* Hide slider on mobile */
    .hero-slider,
    .hero-arrow,
    .hero-dots,
    .hero-scroll-hint {
        display: none;
    }

    .hero {
        min-height: auto;
        overflow: visible;
    }

    /* Search directly after menu */
    .hero-search {
        position: relative;
        bottom: auto;
        padding: 20px 0;
    }

    .search-box {
        padding: 20px;
        background: var(--white);
        backdrop-filter: none;
        box-shadow: var(--shadow-md);
    }

    .search-form {
        flex-direction: column;
    }

    .search-field {
        flex: none;
        width: 100%;
    }

    .search-field select,
    .search-input {
        width: 100%;
    }

    .search-field-btn {
        flex: none;
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    .gallery-item {
        flex: 0 0 260px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .property-card {
        flex: 0 0 calc(100vw - 96px);
        scroll-snap-align: center;
    }

    .properties-grid {
        touch-action: auto;
        scroll-snap-type: x mandatory;
    }

    .properties-arrow {
        display: flex;
        width: 36px;
        height: 36px;
        top: 40%;
    }

    .properties-arrow-left {
        left: 0;
    }

    .properties-arrow-right {
        right: 0;
    }

    .properties-scroll-wrapper {
        padding: 0 16px;
    }

    .properties-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        max-height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-text {
        max-width: 100%;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 4px;
    }

    .gallery-arrow {
        display: none;
    }

    /* Page hero responsive */
    .page-hero {
        padding: 80px 0 40px;
        min-height: 200px;
    }

    /* Listing page mobile */
    .listing-page {
        padding: 32px 0;
    }

    .listing-page-inner {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .listing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        flex-wrap: wrap;
    }

    /* Detail page mobile */
    .detail-section {
        padding: 48px 0;
    }

    .detail-gallery-main {
        height: 300px;
    }

    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .detail-features {
        gap: 8px;
    }

    .detail-feature-pill {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    /* Suggestions section mobile */
    .suggestions-section {
        padding: 60px 0;
    }

    /* Location page responsive */
    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-info {
        padding: 60px 0;
    }

    .location-detail-card {
        padding: 24px;
    }

    .location-cta {
        flex-wrap: wrap;
    }

    .location-cta .btn {
        flex: 1;
        min-width: 140px;
        text-align: center;
    }

    /* Empresa page responsive */
    .empresa-intro,
    .empresa-valores,
    .empresa-equipo {
        padding: 60px 0;
    }

    .empresa-valores .services-grid {
        grid-template-columns: 1fr !important;
    }

    .team-card {
        padding: 32px 20px;
    }

    .team-card-image {
        width: 120px;
        height: 120px;
    }

    /* WhatsApp responsive */
    .whatsapp-chat {
        width: calc(100vw - 48px);
        max-width: 340px;
    }

    .whatsapp-wrapper {
        bottom: 16px;
        left: 16px;
    }
}

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

    .search-box {
        padding: 16px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .gallery-item {
        flex: 0 0 220px;
    }

    .contact-form {
        padding: 20px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    /* Calendar smallest screens */
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .detail-gallery-thumbs img {
        flex: 0 0 70px;
        width: 70px;
        height: 50px;
    }

    .listing-page {
        padding: 24px 0;
    }
}

/* ===== Legal Pages ===== */
.legal-section {
    padding: 60px 0 80px;
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a3a5c;
    margin: 32px 0 12px;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: #1a3a5c;
    margin: 20px 0 8px;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.legal-content ul {
    padding-left: 20px;
    margin: 8px 0 16px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: #ff6635;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-updated {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a3a5c;
    color: #fff;
    z-index: 9999;
    padding: 16px 24px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-accept {
    background: #ff6635;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.cookie-accept:hover {
    background: #e55a2d;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
