/* ==========================================================================
   Sebastián Alonso Inmobiliaria — Hoja de estilos principal (sitio público)
   Paleta: azul oscuro / gris / negro — estética tech, minimalista.
   ========================================================================== */

:root {
  /* Azules oscuros (base) */
  --navy-950: #04070d;
  --navy-900: #070f1c;
  --navy-800: #0b1626;
  --navy-700: #101f35;
  --navy-600: #172b46;
  --navy-500: #203a5c;

  /* Grises */
  --grey-100: #f4f6f9;
  --grey-200: #e4e8ef;
  --grey-300: #c7cedb;
  --grey-400: #a3adc0;
  --grey-500: #7c879c;
  --grey-600: #5b6478;
  --grey-700: #3e4658;

  /* Negro */
  --black: #000000;
  --white: #ffffff;

  /* Acento tecnológico (dentro de la familia de azules) */
  --accent: #2f6fed;
  --accent-2: #4fd6ff;
  --accent-glow: rgba(47, 111, 237, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px rgba(2, 6, 16, 0.45);
  --shadow-glow: 0 0 0 1px rgba(79, 214, 255, 0.15), 0 12px 40px rgba(47, 111, 237, 0.25);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--grey-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--accent-2);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--grey-400); font-size: 16px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1c4fc4);
  color: var(--white);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 32px var(--accent-glow); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.18);
  color: var(--grey-100);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--grey-100);
  border-color: rgba(255,255,255,.08);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: #7a2333; color: var(--white); }
.btn-danger:hover { background: #93293d; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 132px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { height: 96px; width: auto; }
.brand-text { display: flex; align-items: center; line-height: 1.15; white-space: nowrap; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--white); letter-spacing: .01em; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grey-300);
  position: relative;
  padding: 6px 0;
  transition: color .18s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 26px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  margin-top: -132px;
  padding: 162px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(47,111,237,.25), transparent 60%),
    radial-gradient(700px 400px at 5% 10%, rgba(79,214,255,.12), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 70%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

/* ---------------- Hero photo carousel ---------------- */
.hero-carousel { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,7,13,.55) 0%, rgba(4,7,13,.72) 55%, var(--navy-950) 100%),
    radial-gradient(1100px 520px at 80% -10%, rgba(47,111,237,.28), transparent 60%);
}

.hero-logo {
  height: 160px;
  width: auto;
  margin: 0 auto 30px;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.45));
  animation: heroLogoIn .9s ease both;
}
@media (max-width: 640px) {
  .hero-logo { height: 100px; margin-bottom: 20px; }
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); }
.hero h1 .accent-text {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 17.5px; color: var(--grey-400); max-width: 560px; margin: 0 auto 40px; }

/* Search widget */
.search-card {
  position: relative;
  margin-top: 10px;
  background: rgba(16, 31, 53, .8);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: 20px;
  backdrop-filter: blur(18px);
}
.search-tabs { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.search-tabs a {
  padding: 9px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--grey-400);
}
.search-tabs a.active { background: linear-gradient(135deg, var(--accent), #1c4fc4); color: var(--white); }

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  text-align: left;
}
.field label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--grey-500); margin-bottom: 6px; font-weight: 600;
}
.field select, .field input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  appearance: none;
}
.field select:focus, .field input:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(79,214,255,.15);
}
.search-grid .btn { height: 46px; margin-top: auto; padding-inline: 22px; }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--white); }
.hero-stats span { font-size: 12.5px; color: var(--grey-500); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- Property Cards ---------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.property-card {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.property-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79,214,255,.35);
  box-shadow: var(--shadow-card);
}
.property-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-600); }
.property-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .thumb img { transform: scale(1.07); }
.thumb .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.badge-venta { background: rgba(47,111,237,.85); color: #fff; }
.badge-alquiler { background: rgba(79,214,255,.85); color: #06121f; }
.badge-estado { background: rgba(0,0,0,.55); color: var(--grey-200); border: 1px solid rgba(255,255,255,.15); }
.thumb .no-photo { display:flex; align-items:center; justify-content:center; height:100%; color: var(--grey-600); font-size: 13px; }

.property-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-card .price { font-family: var(--font-display); font-size: 20px; color: var(--white); }
.property-card .title { font-size: 15px; font-weight: 600; color: var(--grey-100); }
.property-card .loc { font-size: 13px; color: var(--grey-500); display: flex; align-items: center; gap: 6px; }
.property-card .specs {
  display: flex; gap: 14px; margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12.5px; color: var(--grey-400);
}
.property-card .specs span { display: flex; align-items: center; gap: 5px; }

/* ---------------- Filters bar (listado) ---------------- */
.filters-bar {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 34px;
}
.filters-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.filters-grid .field.wide { grid-column: span 2; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.results-bar .count { color: var(--grey-400); font-size: 14px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; color: var(--grey-400); border: 1px solid rgba(255,255,255,.08);
}
.pagination a:hover { color: var(--white); border-color: var(--accent-2); }
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--grey-500); }
.empty-state h3 { color: var(--grey-200); }

/* ---------------- About / servicios ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: rgba(79,214,255,.3); transform: translateY(-3px); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,111,237,.25), rgba(79,214,255,.15));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent-2); font-size: 20px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--grey-500); font-size: 14.5px; margin: 0; }

.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat-row div strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--white); }
.stat-row div span { font-size: 12.5px; color: var(--grey-500); text-transform: uppercase; letter-spacing: .06em; }

.cta-band {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(47,111,237,.25), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band .btn { margin-top: 8px; }

/* ---------------- Property detail ---------------- */
.breadcrumbs { font-size: 13px; color: var(--grey-500); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent-2); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 34px; }
.gallery .main-image { aspect-ratio: 16/11; background: var(--navy-700); overflow: hidden; cursor: pointer; }
.gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery .side-grid { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery .side-grid > div { position: relative; overflow: hidden; background: var(--navy-700); cursor: pointer; }
.gallery .side-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more-overlay {
  position: absolute; inset: 0; background: rgba(4,7,13,.65);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-display); font-size: 20px;
}

.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-head h1 { font-size: 28px; margin-bottom: 6px; }
.detail-head .loc { color: var(--grey-500); font-size: 14.5px; }
.detail-price { font-family: var(--font-display); font-size: 30px; color: var(--white); white-space: nowrap; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.spec-box {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-sm);
  padding: 16px; text-align: center;
}
.spec-box strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--white); }
.spec-box span { font-size: 11.5px; color: var(--grey-500); text-transform: uppercase; letter-spacing: .05em; }

.detail-section { margin-bottom: 34px; }
.detail-section h2 { font-size: 19px; margin-bottom: 14px; }
.detail-section p { color: var(--grey-400); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--grey-300); font-size: 14.5px; }
.check-list li::before { content: '✓'; color: var(--accent-2); font-weight: 700; }

.video-embed { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: var(--navy-800); margin-bottom: 16px; }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; }

.map-embed {
  aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.07);
  filter: grayscale(.15) contrast(1.05);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-card {
  position: sticky; top: 104px;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md); padding: 26px;
}
.contact-card h3 { font-size: 17px; }
.contact-card .agent { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.contact-card .agent .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: #fff; font-weight: 700;
}
.contact-card form .field { margin-bottom: 12px; }
.contact-card textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 90px;
}
.contact-card textarea:focus, .contact-card input:focus { outline: none; border-color: var(--accent-2); }
.contact-card .actions { display: grid; gap: 10px; margin-top: 14px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(3,6,12,.94); z-index: 300;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 10px; object-fit: contain; }
.lightbox .lb-controls { display: flex; align-items: center; gap: 26px; margin-top: 18px; color: var(--grey-300); }
.lightbox button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; }
.lightbox .lb-close { position: absolute; top: 24px; right: 28px; }

/* ---------------- Forms genéricos (contacto) ---------------- */
.form-card {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: 14.5px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(79,214,255,.15); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(46, 178, 121, .12); border: 1px solid rgba(46,178,121,.4); color: #6be3b1; }
.alert-error { background: rgba(220, 70, 70, .12); border: 1px solid rgba(220,70,70,.4); color: #ff9a9a; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.06); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 46px; }
.footer-grid h4 { font-size: 14px; color: var(--grey-200); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid p { color: var(--grey-500); font-size: 14px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: var(--grey-500); font-size: 14px; transition: color .18s ease; }
.footer-grid ul a:hover { color: var(--accent-2); }
.footer-brand .brand { margin-bottom: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; color: var(--grey-300); font-size: 15px;
}
.social-row a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 22px;
  display: flex; justify-content: space-between; color: var(--grey-600); font-size: 12.5px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--grey-300); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ba851);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid .btn { grid-column: span 2; }
  .filters-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-cards { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .side-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 148px; }
  .brand img { height: 56px; }
  .brand-text strong { font-size: 15px; white-space: normal; line-height: 1.2; }
  .brand-text { white-space: normal; min-width: 0; }
  .brand { min-width: 0; flex-shrink: 1; }
  .header-actions .btn { display: none; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 13.5px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; background: rgba(4,7,13,.98); z-index: 250;
  display: none; flex-direction: column; padding: 28px 26px; gap: 4px;
}
.mobile-nav.active { display: flex; }
.mobile-nav .close-btn { align-self: flex-end; background: none; border: none; color: #fff; font-size: 28px; margin-bottom: 20px; }
.mobile-nav a { padding: 14px 4px; font-size: 18px; color: var(--grey-200); border-bottom: 1px solid rgba(255,255,255,.06); }
