/* ============================================================
   Inmobiliarios Santa Rosa — hoja de estilos
   Identidad moderna tipo proptech: violeta, blanco, tipografía
   geométrica en negrita para titulares.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --violet: #6C4FD6;
    --violet-dark: #4B32A3;
    --violet-light: #F1EEFC;
    --ink: #14121F;
    --ink-soft: #5B5770;
    --line: #E4E1EE;
    --white: #FFFFFF;
    --bg: #FAF9FC;
    --teal: #12A594;
    --teal-dark: #0B6E62;
    --amber: #F0A93B;
    --amber-dark: #8C5E10;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--violet-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.4em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.85rem; line-height: 1.12; font-weight: 700; }
h1 b, h1 strong { color: var(--violet); font-weight: 700; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.rule {
    height: 1px;
    background: var(--line);
    border: none;
    margin: 3rem 0;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------- Header -------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
}

.brand span { color: var(--violet); }

.nav-links a {
    margin-left: 1.75rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--violet-dark); text-decoration: none; }

/* -------- Buttons -------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--violet);
    color: var(--white);
}
.btn-primary:hover { background: var(--violet-dark); text-decoration: none; }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-dark); text-decoration: none; }

/* -------- Hero -------- */
.hero {
    padding: 4.5rem 0 3rem;
    text-align: left;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 580px;
}

.hero-actions { margin-top: 1.85rem; display: flex; gap: 1rem; }

/* -------- Stats strip -------- */
.stats-strip {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}
.stats-strip .stat-block .num {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--violet);
    line-height: 1;
}
.stats-strip .stat-block .label {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.3rem;
}

/* -------- Cards -------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 720px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 2.1rem; }
    .stats-strip { gap: 2rem; }
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem;
}

.card .icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--violet-light);
    color: var(--violet-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* -------- Property cards -------- */
.property-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.property-card .cover {
    height: 160px;
    background: var(--violet-light) center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0.6rem;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

.badge-network { background: var(--teal); color: var(--white); }
.badge-private { background: var(--ink-soft); color: var(--white); }
.badge-venta { background: var(--violet); color: var(--white); }
.badge-alquiler { background: var(--amber); color: var(--amber-dark); }

.property-card .body { padding: 1rem 1.1rem 1.25rem; }
.property-card .price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0.3rem 0; }
.property-card .address { color: var(--ink-soft); font-size: 0.9rem; }
.property-card .agency { font-size: 0.8rem; color: var(--violet-dark); margin-top: 0.5rem; font-weight: 500; }

/* -------- Logos strip -------- */
.logos-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.logos-strip .agency-chip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
}

/* -------- Forms -------- */
.form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.25rem;
    max-width: 460px;
    margin: 3rem auto;
}

.form-panel.wide { max-width: 680px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 1rem 0 0.35rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-light);
}

textarea { min-height: 110px; resize: vertical; }

.field-row { display: flex; gap: 1rem; }
.field-row > div { flex: 1; }

.radio-visibility {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.radio-visibility label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-weight: 400;
    font-size: 0.85rem;
    margin: 0;
    cursor: pointer;
}

.radio-visibility input { width: auto; }

/* -------- Alerts -------- */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.alert-success { background: #E7F6F3; color: var(--teal-dark); border: 1px solid var(--teal); }
.alert-error { background: #FDECE0; color: var(--amber-dark); border: 1px solid var(--amber); }

/* -------- Dashboard -------- */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
}
.stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--violet); }
.stat .label { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }

table.list {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
table.list th, table.list td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}
table.list th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    background: var(--bg);
}
table.list tr:last-child td { border-bottom: none; }

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
    border-top: 1px solid var(--line);
    margin-top: 2rem;
}
