:root {
  --blue:#123f63;
  --blue2:#0b2c46;
  --green:#1fa463;
  --green2:#0e7a45;
  --gold:#d9a441;
  --bg:#f4f7f9;
  --text:#182633;
  --muted:#667789;
  --card:#fff;
  --line:#dce5ec;
  --shadow:0 18px 42px rgba(18,63,99,.11);
  --radius:22px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55
}
a {
  text-decoration:none;
  color:inherit
}
img {
  max-width:100%;
  display:block
}
.container {
  width:min(1180px,calc(100% - 32px));
  margin:auto
}
.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px)
}
.nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0
}
.brand img {
  width:220px;
  height:auto
}
.main-menu {
  display:flex;
  align-items:center;
  gap:20px;
  font-weight:800;
  color:#2d4053
}
.main-menu a:hover {
  color:var(--green)
}
.nav-cta {
  background:var(--green);
  color:#fff!important;
  padding:10px 15px;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(31,164,99,.22)
}
.menu-toggle {
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:8px 12px;
  font-size:22px
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:14px;
  padding:12px 17px;
  background:var(--green);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(31,164,99,.22);
  font:inherit;
  text-align:center
}
.btn-blue {
  background:var(--blue);
  box-shadow:0 12px 26px rgba(18,63,99,.18)
}
.btn-soft {
  background:#eef7f2;
  color:var(--green2);
  box-shadow:none
}
.btn-white {
  background:#fff;
  color:var(--blue);
  box-shadow:none
}
.btn-line {
  background:#fff;
  color:var(--blue);
  border:1px solid var(--line);
  box-shadow:none
}
.hero {
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(135deg,rgba(11,44,70,.98),rgba(18,63,99,.95)),radial-gradient(circle at 82% 10%,rgba(31,164,99,.55),transparent 32%);
  padding:70px 0 86px
}
.hero-grid {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:center
}
.kicker,.page-kicker {
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:rgba(31,164,99,.12);
  color:#0e7a45;
  font-weight:950;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em
}
.hero .kicker {
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#d3ffe8
}
.hero h1 {
  font-size:clamp(38px,5.5vw,66px);
  line-height:.98;
  margin:14px 0 18px;
  letter-spacing:-.045em
}
.hero p {
  font-size:19px;
  color:#e6f0f6;
  max-width:650px
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px
}
.hero-highlights {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:20px;
  color:#dff7eb;
  font-weight:800
}
.hero-panel {
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  border-radius:28px;
  padding:24px;
  box-shadow:0 30px 70px rgba(0,0,0,.18)
}
.hero-panel h2 {
  margin-top:0
}
.market-card {
  background:#fff;
  color:var(--text);
  border-radius:22px;
  padding:20px;
  margin-top:16px
}
.market-row {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px
}
.market-row div {
  background:#f4f7f9;
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px
}
.market-row strong {
  display:block;
  color:var(--blue);
  font-size:24px
}
.mini-gallery {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:10px;
  margin-top:14px
}
.mini-gallery img {
  height:100px;
  width:100%;
  object-fit:cover;
  border-radius:16px
}
.mini-gallery img:first-child {
  grid-row:span 2;
  height:210px
}
.search-wrap {
  margin-top:-45px;
  position:relative;
  z-index:5
}
.search-box,.panel,.content,.content-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow)
}
.search-form {
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr auto;
  gap:12px
}
.field label {
  display:block;
  font-weight:900;
  font-size:13px;
  margin-bottom:6px;
  color:#34485c
}
.field input,.field select,.field textarea,.filters input,.filters select {
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 13px;
  background:#fff;
  color:var(--text);
  font:inherit
}
.field textarea {
  min-height:145px;
  resize:vertical
}
.section {
  padding:54px 0
}
.section-soft {
  background:#eaf1f5
}
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px
}
.section-head h2,.content h2,.panel h2,.content-card h2 {
  color:var(--blue);
  margin-top:0
}
.section-head h2 {
  font-size:clamp(27px,3vw,38px);
  margin-bottom:0;
  letter-spacing:-.03em
}
.section-head p {
  color:var(--muted);
  margin:6px 0 0
}
.property-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.property-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:.18s
}
.property-card:hover {
  transform:translateY(-2px)
}
.property-media {
  position:relative;
  height:220px;
  background:linear-gradient(135deg,#dbeafe,#dcfce7);
  display:block
}
.property-media img {
  width:100%;
  height:100%;
  object-fit:cover
}
.no-photo {
  height:100%;
  display:grid;
  place-items:center;
  color:var(--blue);
  font-weight:950
}
.featured-badge {
  position:absolute;
  top:14px;
  left:14px;
  background:var(--gold);
  color:#fff;
  font-weight:950;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px
}
.property-body {
  padding:18px
}
.chips {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px
}
.chips span {
  background:#eef6ff;
  color:var(--blue);
  font-size:12px;
  font-weight:950;
  border-radius:999px;
  padding:5px 9px
}
.chips span:first-child {
  background:#e9f8f0;
  color:var(--green2)
}
.property-card h3 {
  font-size:20px;
  line-height:1.22;
  margin:0 0 8px
}
.card-price {
  font-size:23px;
  font-weight:950;
  color:var(--blue);
  margin:8px 0
}
.card-location {
  margin:0;
  color:var(--muted);
  font-size:14px
}
.features {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0
}
.features span {
  border:1px solid var(--line);
  background:#f7fafc;
  border-radius:11px;
  padding:6px 8px;
  color:#415366;
  font-size:13px;
  font-weight:750
}
.icon-grid,.benefits-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px
}
.icon-card,.benefit,.plan-card,.location-link,.gallery-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:var(--shadow)
}
.icon-wrap {
  width:48px;
  height:48px;
  border-radius:16px;
  background:#e9f8f0;
  color:var(--green);
  display:grid;
  place-items:center;
  font-size:22px;
  margin-bottom:14px
}
.icon-card strong {
  display:block;
  color:var(--blue);
  font-size:20px
}
.icon-card p,.benefit p {
  color:var(--muted);
  margin-bottom:0
}
.gallery-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.gallery-card {
  padding:0;
  overflow:hidden;
  position:relative
}
.gallery-card img {
  height:230px;
  width:100%;
  object-fit:cover
}
.gallery-card span {
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  background:rgba(11,44,70,.82);
  color:#fff;
  border-radius:13px;
  padding:10px;
  font-weight:900
}
.split,.split-alt {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.list-clean {
  list-style:none;
  padding:0;
  margin:16px 0;
  display:grid;
  gap:10px
}
.list-clean li {
  display:flex;
  gap:10px;
  color:#34485c
}
.list-clean li:before {
  content:'\f00c';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
  color:var(--green)
}
.location-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}
.location-link strong {
  display:block;
  color:var(--blue)
}
.location-link span {
  color:var(--muted);
  font-size:14px
}
.page-hero {
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:42px 0
}
.page-hero h1 {
  font-size:clamp(34px,4.5vw,54px);
  margin:8px 0;
  color:var(--blue);
  letter-spacing:-.04em
}
.page-hero p {
  color:var(--muted);
  font-size:18px;
  max-width:830px
}
.filters {
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  margin:26px 0;
  box-shadow:var(--shadow)
}
.filters form {
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr 1fr auto auto;
  gap:10px
}
.results-bar {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin:18px 0;
  color:var(--muted)
}
.property-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:25px
}
.gallery-main {
  height:470px;
  background:#dbeafe;
  border-radius:28px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  color:var(--blue);
  font-weight:950
}
.gallery-main img {
  width:100%;
  height:100%;
  object-fit:cover
}
.thumb-row {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:12px 0
}
.thumb-card img,.thumb-row img {
  height:90px;
  width:100%;
  object-fit:cover;
  border-radius:14px;
  border:2px solid #fff;
  box-shadow:0 8px 18px rgba(18,63,99,.12)
}
.property-title h1 {
  font-size:clamp(32px,4vw,50px);
  line-height:1.03;
  margin:22px 0 10px;
  color:var(--blue)
}
.price-large {
  font-size:34px;
  font-weight:950;
  color:var(--green2);
  margin:14px 0
}
.detail-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:20px 0
}
.detail {
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px
}
.detail span {
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:800
}
.detail strong {
  display:block;
  color:var(--blue);
  font-size:24px
}
.contact-card {
  position:sticky;
  top:92px
}
.contact-card .btn {
  width:100%;
  margin-top:10px
}
.breadcrumb {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
  margin-bottom:14px
}
.mini-points {
  display:grid;
  gap:10px;
  color:#3a5064
}
.plans-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.plan-card.featured {
  border:2px solid var(--green);
  transform:translateY(-6px)
}
.plan-price {
  font-size:34px;
  font-weight:950;
  color:var(--blue);
  margin:10px 0
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.span-2 {
  grid-column:1/-1
}
.notice {
  padding:13px;
  border-radius:14px;
  background:#e9f8f0;
  color:#12683d;
  border:1px solid #bdebcf
}
.error {
  padding:13px;
  border-radius:14px;
  background:#fff1f2;
  color:#9f1239;
  border:1px solid #fecdd3
}
.admin-layout {
  display:grid;
  grid-template-columns:235px 1fr;
  gap:22px
}
.admin-sidebar {
  background:#0b2c46;
  color:#fff;
  border-radius:24px;
  padding:18px;
  height:max-content
}
.admin-sidebar a {
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#dceaf3;
  font-weight:800
}
.admin-sidebar a:hover {
  background:rgba(255,255,255,.1)
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:20px
}
.stat {
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow)
}
.stat strong {
  display:block;
  color:var(--blue);
  font-size:30px
}
.table-wrap {
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow)
}
.admin-table {
  width:100%;
  border-collapse:collapse;
  min-width:900px
}
.admin-table th,.admin-table td {
  padding:13px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px
}
.admin-table th {
  background:#f7fafc;
  color:#415366
}
.admin-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.admin-actions .btn {
  padding:8px 10px;
  font-size:13px
}
.admin-photo-grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:10px 0
}
.admin-photo-grid img {
  height:85px;
  width:100%;
  object-fit:cover;
  border-radius:12px
}
.site-footer {
  background:#0b2235;
  color:#c9d8e2;
  padding:42px 0 0;
  margin-top:54px
}
.footer-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:30px
}
.footer-brand img {
  width:230px
}
.site-footer h3 {
  color:#fff;
  margin:0 0 12px
}
.site-footer a {
  display:block;
  margin:8px 0;
  color:#c9d8e2
}
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1);
  padding:18px 0;
  margin-top:30px;
  color:#92a7b5;
  font-size:14px
}
.faq {
  display:grid;
  gap:12px
}
.faq details {
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow)
}
.faq summary {
  font-weight:950;
  color:var(--blue);
  cursor:pointer
}
@media(max-width:1020px) {
  .hero-grid,.property-layout,.split,.admin-layout {
    grid-template-columns:1fr
  }
  .property-grid,.gallery-grid,.plans-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .filters form {
    grid-template-columns:1fr 1fr
  }
  .icon-grid,.benefits-grid,.location-grid,.stats-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .contact-card {
    position:static
  }
}
@media(max-width:760px) {
  .main-menu {
    display:none;
    position:absolute;
    left:16px;
    right:16px;
    top:72px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:14px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:stretch
  }
  .main-menu.open {
    display:flex
  }
  .menu-toggle {
    display:block
  }
  .brand img {
    width:190px
  }
  .hero {
    padding:46px 0 64px
  }
  .hero h1 {
    font-size:38px
  }
  .search-wrap {
    margin-top:-28px
  }
  .search-form,.filters form,.form-grid,.property-grid,.gallery-grid,.plans-grid,.footer-grid {
    grid-template-columns:1fr
  }
  .detail-grid,.thumb-row,.admin-photo-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .btn {
    width:100%
  }
  .hero-actions .btn {
    width:auto
  }
}
@media(max-width:480px) {
  .container {
    width:calc(100% - 24px)
  }
  .market-row,.icon-grid,.benefits-grid,.location-grid,.stats-grid {
    grid-template-columns:1fr
  }
  .hero h1 {
    font-size:34px
  }
  .gallery-main {
    height:300px
  }
}
.account-layout {
  display:grid;
  grid-template-columns:260px 1fr;
  gap:22px
}
.account-sidebar {
  background:#0b2c46;
  color:#fff;
  border-radius:24px;
  padding:18px;
  height:max-content;
  position:sticky;
  top:90px
}
.account-sidebar h3 {
  margin:0 0 14px;
  color:#fff
}
.account-sidebar a {
  display:block;
  padding:11px 12px;
  border-radius:12px;
  color:#dceaf3;
  font-weight:800
}
.account-sidebar a:hover {
  background:rgba(255,255,255,.1)
}
.account-main h1 {
  margin-top:0;
  color:var(--blue)
}
.auth-card {
  max-width:760px;
  margin:auto
}
.muted {
  color:var(--muted)
}
.status {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-weight:900;
  font-size:12px
}
.status-publicado {
  background:#e9f8f0;
  color:#0e7a45
}
.status-pendiente {
  background:#fff7ed;
  color:#c2410c
}
.status-rechazado {
  background:#fff1f2;
  color:#be123c
}
.admin-thumb {
  width:72px;
  height:54px;
  object-fit:cover;
  border-radius:10px
}
.thumb-row.gallery-thumbs {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:10px;
  margin:12px 0 22px
}
.thumb-btn {
  border:2px solid transparent;
  background:#fff;
  border-radius:14px;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  height:74px
}
.thumb-btn img {
  width:100%;
  height:100%;
  object-fit:cover
}
.thumb-btn.active {
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(31,164,99,.14)
}
@media(max-width:900px) {
  .account-layout {
    grid-template-columns:1fr
  }
  .account-sidebar {
    position:static
  }
  .account-sidebar a {
    display:inline-flex;
    margin:4px
  }
}
.pagination {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:24px 0
}
.page-link,.page-gap {
  min-width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  font-weight:900
}
.page-link.active {
  background:var(--blue);
  border-color:var(--blue);
  color:#fff
}
.page-gap {
  border-color:transparent;
  background:transparent;
  color:var(--muted)
}
