/*
Theme Name: Wp Theme Firma
Author: Jose Ayala
Description: Premium Real Estate theme for Puerto Rico
Version: 1.8
Text Domain: wp-theme-firma
*/

/* ============================================
   FIRMA REAL ESTATE — Design System
   Sellers-First Premium Web (Puerto Rico)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors - Modern Navy & Gold Palette */
    --brand-blue: #0f172a;
    --brand-red: #9f1239;
    /* Subtler version of the brand red */
    --brand-red-dark: #881337;
    --brand-black: #020617;

    --navy: var(--brand-blue);
    --navy-light: #1e293b;
    --navy-mid: #0f172a;
    --gold: #c9a84c;
    /* Modern Champagne Gold */
    --gold-light: #d4b766;
    --gold-dark: #b08d33;
    --blue: #475569;
    --blue-light: #64748b;
    --teal: #0f766e;

    --white: #ffffff;
    --off-white: #f8f9fa;
    --pure-white: #ffffff;
    --pure-black: #000000;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-50: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-400: #64748b;
    --gray-500: #475569;
    --gray-600: #334155;
    --gray-700: #1e293b;
    --gray-800: #0f172a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --whatsapp: #25d366;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --header-h: 100px;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --duration: 0.3s;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-navy {
    color: var(--navy);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-link-gold {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, .3);
    padding-bottom: 2px;
    transition: all var(--duration);
}

.btn-link-gold:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: all var(--duration) var(--ease-out);
}

.header--transparent,
.header--solid {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: var(--header-h);
}

.header--transparent .header__logo-img,
.header--solid .header__logo-img {
    height: 120px;
    transform: translateY(10px);
}

@media (max-width: 768px) {

    .header--transparent .header__logo-img,
    .header--solid .header__logo-img {
        height: 80px;
        transform: translateY(5px);
    }
}

.header--transparent .header__nav a,
.header--transparent .header__phone,
.header--solid .header__nav a,
.header--solid .header__phone {
    color: var(--navy);
}

.header--transparent .header__nav a:hover,
.header--transparent .header__nav a.active,
.header--solid .header__nav a:hover,
.header--solid .header__nav a.active {
    color: var(--brand-red);
}

.header--transparent .menu-toggle span,
.header--solid .menu-toggle span {
    background: var(--navy);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    transition: all var(--duration) var(--ease-out);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--duration);
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--gold);
}

.header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header__phone {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header__phone svg {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav a {
    color: var(--white);
    font-size: 1.75rem;
    font-family: var(--font-serif);
    font-weight: 500;
    transition: all var(--duration) var(--ease-out);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--gold);
    transform: scale(1.05);
}

.mobile-nav .btn {
    margin-top: var(--space-lg);
    width: 80%;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e3a5f 100%);
    color: var(--white);
    padding-top: calc(var(--header-h) + var(--space-xl));
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    padding: var(--space-4xl) 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__badge svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.hero__title {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero__title .highlight {
    color: var(--gold);
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: var(--space-2xl);
}

.hero__ctas {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.hero__trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--brand-red);
    /* Keep brand hint here */
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__card {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 440px;
}

.hero__card-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.hero__card-header h3 {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.hero__card-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hero__card .form-group {
    margin-bottom: var(--space-md);
}

.hero__card .form-group label {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__card input,
.hero__card select {
    width: 100%;
    padding: 0.875rem var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.95rem;
    transition: all var(--duration) var(--ease-out);
}

.hero__card input:focus,
.hero__card select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
}

.hero__card input::placeholder {
    color: var(--gray-400);
}

.hero__card input:focus,
.hero__card select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
}

.hero__card select option {
    background: var(--navy);
    color: var(--white);
}

.hero__card .btn-primary {
    width: 100%;
    margin-top: var(--space-sm);
}

.hero__card-footer {
    text-align: center;
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, .6);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.hero__card-footer svg {
    width: 12px;
    height: 12px;
}

/* ---------- SUCCESS MESSAGE ---------- */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.form-success.show {
    display: block;
}

.form-success__icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--success);
}

.form-success__icon svg {
    width: 32px;
    height: 32px;
}

.form-success h3 {
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--gray-400);
}

/* ---------- STATS ---------- */
.stats {
    background: var(--off-white);
    padding: var(--space-3xl) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stats__number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--navy);
    display: block;
}

/* ---------- PILLARS ---------- */
.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.pillar-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: 0.3s;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pillar-card__icon {
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.pillar-card__icon svg {
    width: 40px;
    height: 40px;
}

/* ---------- PROCESS ---------- */
.process {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(201, 168, 76, .06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 50%, rgba(37, 99, 235, .06) 0%, transparent 50%);
}

.process .section-header h2 {
    color: var(--white);
}

.process .section-header p {
    color: rgba(255, 255, 255, .6);
}

.process .section-header .overline {
    color: var(--gold);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    padding: var(--space-xl) var(--space-md);
}

.process-step__number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy);
    margin: 0 auto var(--space-lg);
    box-shadow: 0 4px 15px rgba(201, 168, 76, .3);
}

.process-step h3 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.process-step p {
    color: rgba(255, 255, 255, .6);
    font-size: 0.9rem;
}

.process__cta {
    text-align: center;
    margin-top: var(--space-3xl);
    position: relative;
    z-index: 1;
}

/* ---------- SERVICES ---------- */
.services {
    background: var(--off-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-item {
    display: flex;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--duration) var(--ease-out);
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.service-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

.service-item__icon svg {
    width: 22px;
    height: 22px;
}

.service-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.service-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--gray-400);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background: var(--white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration) var(--ease-out);
}

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

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.testimonial-card__quote {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-card__info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
}

.testimonial-card__info span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ---------- FAQ ---------- */
.faq {
    background: var(--off-white);
}

.faq__grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    gap: var(--space-md);
}

.faq-item__question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold);
    transition: transform var(--duration) var(--ease-out);
}

.faq-item.active .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-item__answer-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, .08) 0%, transparent 70%);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, .7);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ---------- PAGE HERO (INNER PAGES) ---------- */
.page-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(51, 65, 85, 0.92) 100%), url('images/luxury-banner.png') center/cover no-repeat;
    padding: calc(var(--header-h) + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, .08) 0%, transparent 60%);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255, 255, 255, .7);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .breadcrumb {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: var(--space-lg);
}

.page-hero .breadcrumb a {
    color: var(--gold);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--brand-blue);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__eho {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__eho svg {
    width: 20px;
    height: 20px;
}

/* ---------- FLOATING ELEMENTS ---------- */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: var(--space-sm);
    z-index: 2000;
}

.floating-cta__inner {
    display: flex;
    gap: var(--space-sm);
}

.floating-cta__inner .btn {
    flex: 1;
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--whatsapp);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ---------- ABOUT PAGE ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-photo__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--gold);
}

.about-photo__placeholder svg {
    width: 80px;
    height: 80px;
    opacity: .5;
}

.about-photo__placeholder span {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    margin-bottom: var(--space-md);
}

.credentials-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.credential-item {
    display: flex;
    gap: var(--space-sm);
    align-items: start;
    padding: var(--space-md);
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.credential-item svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.credential-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
}

.credential-item span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--brand-black);
    font-size: 0.95rem;
    transition: all var(--duration) var(--ease-out);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .1);
}

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

.form-group .hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: var(--space-xs);
}

.contact-info-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    align-items: start;
    margin-bottom: var(--space-xl);
}

.contact-info-item__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}

.contact-info-item__icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.contact-info-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- SUCCESS MESSAGE ---------- */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.form-success.show {
    display: block;
}

.form-success__icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--success);
}

.form-success__icon svg {
    width: 32px;
    height: 32px;
}

.form-success h3 {
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root {
        --header-h: 80px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero__content {
        padding: var(--space-2xl) 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__ctas {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__visual {
        margin-top: 0;
    }

    .pillars__grid,
    .process__steps,
    .stats__grid,
    .testimonials__grid,
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .header__nav,
    .header__cta {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    .mobile-nav {
        display: flex !important;
    }

    .floating-cta {
        display: block !important;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: var(--space-sm) var(--space-md);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }

    .process__steps,
    .stats__grid,
    .pillars__grid,
    .testimonials__grid,
    .services__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .stats__number {
        font-size: 2.5rem;
    }

    .whatsapp-float {
        bottom: 90px;
        right: var(--space-md);
        width: 50px;
        height: 50px;
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero__card {
        padding: var(--space-lg);
    }
}


/* ============================================
   PROPIEDADES / MLS LISTINGS
   ============================================ */

/* ------ Page Hero variant ------ */
.page-hero--propiedades {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a2f4e 100%);
}

/* ------ Search & Filter Bar ------ */
.prop-search-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-lg) 0;
    position: sticky;
    top: var(--header-h);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.prop-filters {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.prop-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 150px;
    min-width: 130px;
}

.prop-filter-group--wide {
    flex: 2 1 240px;
}

.prop-filter-group label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-filter-group label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gold);
}

.prop-filter-group input,
.prop-filter-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    font-size: 0.9rem;
    color: var(--navy);
    transition: all var(--duration) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}

.prop-filter-group input:focus,
.prop-filter-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

.prop-filter-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 1.75rem;
    white-space: nowrap;
}

/* ------ Demo Notice ------ */
.prop-demo-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, rgba(201, 168, 76, .08), rgba(201, 168, 76, .04));
    border: 1px solid rgba(201, 168, 76, .3);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
    font-size: 0.88rem;
    color: var(--gray-600);
}

.prop-demo-notice svg {
    flex-shrink: 0;
    color: var(--gold);
}

/* ------ Results Header ------ */
.prop-listings {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.prop-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.prop-results-count {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.prop-results-count strong {
    color: var(--navy);
    font-size: 1.1rem;
}

.prop-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--gray-400);
}

.prop-sort select {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.85rem;
    color: var(--navy);
    cursor: pointer;
}

/* ------ Property Cards Grid ------ */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* ------ Individual Card ------ */
.prop-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
    border-color: rgba(201, 168, 76, .25);
}

/* Card Image */
.prop-card__image {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.prop-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.prop-card:hover .prop-card__image img {
    transform: scale(1.05);
}

.prop-card__image--placeholder {
    background: var(--gray-50);
}

.prop-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-200);
}

/* Status Badge */
.prop-card__status {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prop-card__status--active {
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
}

.prop-card__status--pending {
    background: rgba(245, 158, 11, 0.9);
    color: var(--white);
}

/* Type Badge */
.prop-card__type {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(15, 23, 42, 0.75);
    color: var(--white);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

/* Card Body */
.prop-card__body {
    padding: var(--space-lg);
    flex: 1;
}

.prop-card__price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: var(--space-xs);
}

.prop-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.prop-card__title a {
    color: inherit;
    transition: color var(--duration);
}

.prop-card__title a:hover {
    color: var(--gold-dark);
}

.prop-card__address {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.prop-card__address svg {
    flex-shrink: 0;
    color: var(--gold);
}

/* Specs Row */
.prop-card__specs {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    border-top: 1px solid var(--gray-100);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
}

.prop-card__spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

.prop-card__spec svg {
    color: var(--gold);
}

/* Card Footer */
.prop-card__footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gray-50);
}

.prop-card__mls-id {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--gray-300);
    font-family: monospace;
}

/* WhatsApp inline button */
.btn-outline-contact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.9rem;
    border: 1.5px solid var(--whatsapp);
    border-radius: var(--radius-full);
    color: var(--whatsapp);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
}

.btn-outline-contact:hover {
    background: var(--whatsapp);
    color: var(--white);
}

/* ------ No Results ------ */
.prop-no-results {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    color: var(--gray-300);
}

.prop-no-results svg {
    color: var(--gray-200);
    margin: 0 auto var(--space-lg);
}

.prop-no-results h3 {
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.prop-no-results p {
    margin-bottom: var(--space-xl);
}

/* ------ Pagination ------ */
.prop-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
    flex-wrap: wrap;
}

.prop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-100);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    transition: all var(--duration) var(--ease-out);
}

.prop-pagination .page-numbers:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.prop-pagination .current {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: var(--white);
}

.prop-pagination .prev,
.prop-pagination .next {
    width: auto;
    padding: 0 var(--space-md);
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    .prop-search-bar {
        position: static;
        padding: var(--space-md) 0;
    }

    .prop-filters {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

    .prop-filter-group,
    .prop-filter-group--wide {
        width: 100%;
        flex: none;
    }

    .prop-filter-btn {
        width: 100%;
        height: 50px;
    }

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

    .prop-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .prop-card__image {
        height: 200px;
    }

    .prop-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .prop-card__footer .btn {
        width: 100%;
    }

    .prop-card__mls-id {
        margin: var(--space-xs) auto 0;
    }
}