/* ============================================================
   URBANO CHILE — Hoja de estilos principal
   Paleta extraída del logo:
     - Azul marino / azul oscuro  (edificios)
     - Celeste / cyan             (circuito)
     - Gris muy claro             (fondo)
   ============================================================ */

/* -------- Variables de color y tipografía -------- */
:root {
  --navy-900: #14293f;   /* azul más oscuro */
  --navy-700: #1b3a5b;   /* azul marino principal */
  --navy-500: #24507a;   /* azul medio */
  --cyan-500: #2fa9d6;   /* celeste principal */
  --cyan-400: #4bbde8;   /* celeste claro */
  --cyan-100: #d9f0f9;   /* celeste muy claro (fondos suaves) */

  --bg:       #f1f1f0;   /* gris muy claro (fondo general) */
  --logo-bg:  #eaeaea;   /* gris del fondo del logo (para fundir el header) */
  --white:    #ffffff;
  --text:     #1b2a3a;   /* texto principal (azul casi negro) */
  --muted:    #5b6b7a;   /* texto secundario */
  --border:   #e0e3e6;

  --radius:   14px;
  --shadow:   0 8px 24px rgba(20, 41, 63, 0.08);
  --shadow-lg:0 16px 40px rgba(20, 41, 63, 0.14);

  --max-width: 1140px;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* -------- Reset básico -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }

/* -------- Utilidades de layout -------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 84px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--cyan-500);
  margin: 0 0 .6em;
}

.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }

.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Texto pendiente / placeholder bien visible */
.pending {
  background: #fff3cd;
  color: #7a5b00;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .92em;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan-500);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(47, 169, 214, 0.35);
}
.btn-primary:hover { background: var(--cyan-400); }

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-500);
}
.btn-ghost:hover { background: var(--navy-700); color: var(--white); }

.btn-block { width: 100%; }

/* ============================================================
   HEADER + NAVEGACIÓN
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--logo-bg);   /* mismo gris que el fondo del logo */
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;   /* más alto para acomodar el logo agrandado */
}

.brand-logo { height: 76px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  color: var(--navy-700);
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--cyan-500); }

.btn-nav { padding: 9px 20px; color: var(--white) !important; }

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy-700);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Detalle decorativo tipo "circuito" del logo */
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(75, 189, 232, 0.25) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner { padding: 96px 0 104px; }

.hero-content { max-width: 720px; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cyan-400);
  margin: 0 0 1em;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .5em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2em;
  max-width: 620px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy-700); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-400);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-500));
  color: var(--white);
  margin-bottom: 20px;
}
.service-icon svg { width: 30px; height: 30px; }

.service-name { font-size: 1.12rem; margin-bottom: .5em; }
.service-desc { color: var(--muted); font-size: .96rem; margin: 0; }

/* ============================================================
   TECNOLOGÍA APLICADA AL SECTOR INMOBILIARIO
   (banda oscura destacada)
   ============================================================ */
.realestate {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-500) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* Detalle decorativo tipo circuito */
.realestate::after {
  content: "";
  position: absolute;
  left: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(75, 189, 232, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

/* Variantes de texto claro para fondos oscuros */
.section-eyebrow--light { color: var(--cyan-400); }
.section-title--light   { color: var(--white); }
.section-lead--light    { color: rgba(255, 255, 255, 0.82); }

.realestate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.re-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.re-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-400);
}

.re-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--cyan-500);
  color: var(--white);
  margin-bottom: 18px;
}
.re-icon svg { width: 28px; height: 28px; }

.re-name { color: var(--white); font-size: 1.08rem; margin-bottom: .5em; }
.re-desc { color: rgba(255, 255, 255, 0.8); font-size: .95rem; margin: 0; }

/* ============================================================
   NOSOTROS / POR QUÉ ELEGIRNOS
   ============================================================ */
.about { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-list { list-style: none; padding: 0; margin: 24px 0 0; }
.about-list li {
  position: relative;
  padding: 0 0 16px 34px;
  color: var(--muted);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 4px var(--cyan-100);
}
.about-list strong { color: var(--navy-900); }

/* Tarjeta de cifras */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--navy-700);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--white);
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 12px 6px; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-400);
}
.stat-label { font-size: .88rem; color: rgba(255,255,255,.82); }
.stat-label em { display: block; font-style: normal; font-size: .78em; opacity: .7; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-data { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-data li { padding: 8px 0; color: var(--muted); border-bottom: 1px dashed var(--border); }
.contact-data strong { color: var(--navy-900); margin-right: 6px; }

/* Formulario */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.form-note { margin: 0 0 20px; font-size: .9rem; }

/* Campo trampa antispam (honeypot): oculto para usuarios reales */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px var(--cyan-100);
}
.form-field textarea { resize: vertical; }

.form-feedback { margin: 16px 0 0; font-weight: 600; min-height: 1.2em; }
.form-feedback.ok    { color: #1b7a3d; }
.form-feedback.error { color: #b3261e; }

/* -------- Íconos de redes sociales -------- */
.social-links {
  display: inline-flex;
  gap: 10px;
  vertical-align: middle;
  margin: 0 8px;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  transition: transform .15s ease, background .2s ease;
}
.social-links a:hover { background: var(--cyan-500); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

/* Variante en el footer (fondo oscuro) */
.social-links--footer { display: flex; margin: 16px 0 0; }
.social-links--footer a { background: rgba(255, 255, 255, 0.12); }
.social-links--footer a:hover { background: var(--cyan-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.82); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 56px 20px 40px;
}

.footer-logo {
  height: 60px;
  width: auto;
  background: var(--logo-bg);   /* mismo gris del logo, se funde con el fondo */
  padding: 6px 10px;
  border-radius: 10px;
}
.footer-tagline { margin: 14px 0 0; font-size: .95rem; }

.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 5px 0; }
.footer-nav a { transition: color .2s ease; }
.footer-nav a:hover { color: var(--cyan-400); }

.footer-contact p { margin: 5px 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  text-align: center;
  font-size: .86rem;
  color: rgba(255,255,255,.6);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services-grid,
  .realestate-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }

  /* Menú móvil desplegable */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: var(--logo-bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .main-nav li { padding: 8px 0; }
  .btn-nav { text-align: center; }

  .services-grid,
  .realestate-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
