/* =========================================================
   Corretajes Nuevo Mundo — Design System
   ========================================================= */

/* --- Variables ------------------------------------------ */
:root {
    --teal:        #0d9488;
    --teal-dark:   #0f766e;
    --teal-light:  #99f6e4;
    --navy:        #0f172a;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Base ----------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: 5rem; }

/* --- Header ─ glass morphism ---------------------------- */
.header-glass {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    transition: color 0.2s;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: width 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* --- Hero ----------------------------------------------- */
.hero-bg {
    background-image:
        linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.65) 55%, rgba(13,148,136,0.28) 100%),
        url('/assets/img/banner.jpg');
    background-size: cover;
    background-position: center 35%;
    position: relative;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
    pointer-events: none;
}

/* Search bar inside hero */
.search-glass {
    background: rgba(255,255,255,0.98);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.9);
}

/* --- Stats strip ---------------------------------------- */
.stat-item { text-align: center; padding: 1.5rem 1rem; }
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0d9488, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.8rem; color: #64748b; font-weight: 500; letter-spacing: 0.01em; }

/* --- Section title decoration --------------------------- */
.section-title { display: inline-block; }
.section-title::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #0891b2);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* --- Property cards ------------------------------------- */
.property-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid #e8edf2;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.property-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 13rem;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.property-card:hover .card-img-wrap img {
    transform: scale(1.07);
}

/* Badges on image */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.card-badge-venta    { background: var(--teal);   color: #fff; }
.card-badge-arriendo { background: #0891b2;        color: #fff; }
.card-badge-arrendada{ background: #d97706;        color: #fff; }
.card-badge-vendido  { background: #64748b;        color: #fff; }

/* Card body */
.card-body { padding: 1.1rem 1.3rem 1.4rem; }

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.card-location {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.card-location i { color: var(--teal); }

.card-features {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    color: #475569;
}
.card-features span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}
.card-features i { color: var(--teal); font-size: 0.85rem; }

/* --- Primary button ------------------------------------- */
.btn-primary {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.83rem;
    letter-spacing: 0.01em;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    margin-top: 1rem;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(13,148,136,0.22);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.35);
}

/* --- Feature cards (Nosotros) --------------------------- */
.feature-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.09);
    transform: translateY(-4px);
}
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ccfbf1, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    font-size: 1.3rem;
    color: var(--teal);
}

/* --- Form inputs ---------------------------------------- */
.form-input {
    display: block;
    width: 100%;
    padding: 0.72rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input::placeholder { color: #b0bbcc; }
.form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

/* --- Contact info cards --------------------------------- */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 0.875rem;
    transition: box-shadow 0.25s;
}
.contact-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* --- WhatsApp floating button --------------------------- */
@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(34,197,94,0.35), 0 4px 6px -2px rgba(34,197,94,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 30px -5px rgba(34,197,94,0.4), 0 10px 10px -5px rgba(34,197,94,0.3);
    }
}
.animate-pulse-whatsapp { animation: pulse-whatsapp 2.5s infinite; }

/* --- Gallery / Property pages --------------------------- */
.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0.7; transform: scale(0.98); }
    to   { opacity: 1;   transform: scale(1); }
}

/* --- Hero banner only (index.html) ---------------------- */
/* scroll-margin ya cubierto con section[id] */
