/* ============================================================
   aquimicasa · web-para-inmobiliarias
   Paleta: Azul noche + Verde marca
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta principal */
  --night:      #0F1F3D;
  --night-mid:  #1E3A5F;
  --night-soft: #163354;
  --green:      #3B6D11;
  --green-lt:   #97C459;
  --green-pale: #E8F5E2;
  --off-white:  #F5F4F0;
  --carbon:     #2A2A2A;
  --muted:      #6B7280;
  --hint:       #9CA3AF;
  --border:     rgba(255,255,255,0.08);
  --border-lt:  rgba(0,0,0,0.09);

  /* Tipografía */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--carbon); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section--soft { background: var(--off-white); }
.section--night { background: var(--night); }

/* ---- Tipografía ---- */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-lt); margin-bottom: 12px;
  display: block;
}
.eyebrow--dark { color: var(--green); }
.h1 { font-family: var(--font-display); font-size: 52px; line-height: 1.1; font-weight: 400; }
.h2 { font-family: var(--font-display); font-size: 36px; line-height: 1.2; font-weight: 400; }
.h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 17px; line-height: 1.75; color: var(--muted); }
.text-white { color: #fff; }
.text-white-muted { color: rgba(255,255,255,0.6); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #2d5409; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-mid); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline-dark { background: transparent; color: var(--carbon); border: 1.5px solid var(--border-lt); }
.btn-outline-dark:hover { border-color: var(--carbon); }
.btn-white { background: #fff; color: var(--night); }
.btn-white:hover { background: var(--off-white); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---- Logo ---- */
.logo { display: flex; flex-direction: column; gap: 0; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__name { font-size: 22px; line-height: 1; letter-spacing: -0.5px; }
.logo__aqui { font-family: var(--font-display); font-weight: 400; color: #fff; }
.logo__micasa { font-family: var(--font-body); font-weight: 700; color: var(--green-lt); }
.logo__claim { font-size: 9px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-top: 3px; }
.logo--dark .logo__aqui { color: var(--carbon); }
.logo--dark .logo__micasa { color: var(--green); }
.logo--dark .logo__claim { color: var(--hint); }

/* ---- Subnav ---- */
.subnav {
  background: var(--night);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.subnav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.subnav__links { display: flex; align-items: center; gap: 4px; margin-left: 40px; }
.subnav__link {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55);
  padding: 6px 12px; border-radius: 6px; transition: all .15s;
  text-decoration: none;
}
.subnav__link:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.subnav__link--active { color: var(--green-lt); font-weight: 500; }
.subnav__cta { font-size: 13px; padding: 8px 20px; }

/* ---- Hero ---- */
.hero {
  background: var(--night);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(59,109,17,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151,196,89,0.4), transparent);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; position: relative; }
.hero__title { font-family: var(--font-display); font-size: 50px; line-height: 1.1; color: #fff; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--green-lt); }
.hero__sub { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 32px; max-width: 480px; }
.hero__proof { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.hero__proof-text { font-size: 13px; color: rgba(255,255,255,0.5); }
.hero__proof-text strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars__item {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--night); background: var(--night-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--green-lt);
  margin-left: -8px;
}
.avatars__item:first-child { margin-left: 0; }

/* ---- Formulario hero ---- */
.hero-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero-form__tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: rgba(151,196,89,0.15); color: var(--green-lt);
  border-radius: 20px; padding: 4px 12px; margin-bottom: 14px;
  border: 1px solid rgba(151,196,89,0.25);
}
.hero-form__title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.hero-form__sub { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px;
  color: #fff; transition: border-color .15s;
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group select option { background: var(--night); color: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(151,196,89,0.5);
  background: rgba(255,255,255,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-submit { width: 100%; margin-top: 6px; font-size: 15px; padding: 14px; }
.form-privacy { font-size: 11px; color: rgba(255,255,255,0.25); text-align: center; margin-top: 10px; }
.msg { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin: 12px 0; }
.msg--ok { background: rgba(59,109,17,0.2); border: 1px solid rgba(151,196,89,0.3); color: var(--green-lt); }
.msg--err { background: rgba(200,50,50,0.15); border: 1px solid rgba(200,50,50,0.3); color: #f09595; }

/* ---- Trust bar ---- */
.trust-bar { background: var(--night-mid); border-bottom: 1px solid var(--border); }
.trust-bar__inner { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-item__num { font-family: var(--font-display); font-size: 28px; color: var(--green-lt); line-height: 1; }
.trust-item__label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 5px; line-height: 1.4; }

/* ---- Service cards ---- */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: block; color: inherit; text-decoration: none;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(15,31,61,0.12);
  transform: translateY(-3px);
  border-color: rgba(59,109,17,0.2);
  text-decoration: none;
}
.service-card__num { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .08em; margin-bottom: 14px; }
.service-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.service-card__icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.service-card__title { font-size: 15px; font-weight: 600; color: var(--carbon); margin-bottom: 8px; }
.service-card__desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.service-card__link { font-size: 13px; font-weight: 600; color: var(--green); }

/* ---- Feature ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }
.feature__title { font-family: var(--font-display); font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.feature__sub { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.feature__bullets { display: flex; flex-direction: column; gap: 22px; }
.feature__bullet { display: flex; gap: 16px; align-items: flex-start; }
.feature__bullet-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.feature__bullet-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.feature__bullet-title { font-size: 14px; font-weight: 600; color: var(--carbon); margin-bottom: 3px; }
.feature__bullet-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---- Screen mock ---- */
.screen-mock {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,31,61,0.15);
}
.screen-mock__bar {
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 10px 14px; display: flex; align-items: center; gap: 6px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--r { background: #f09595; }
.dot--y { background: #fac775; }
.dot--g { background: #97c459; }
.screen-mock__url {
  flex: 1; background: var(--off-white); border-radius: 4px;
  padding: 4px 10px; margin-left: 8px;
  font-size: 11px; color: var(--hint); font-family: var(--font-body);
}
.screen-mock__body { padding: 16px; }

/* ---- Proceso ---- */
.process { display: grid; grid-template-columns: repeat(4,1fr); }
.process__step {
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.process__step:last-child { border-right: none; }
.process__num {
  font-size: 11px; font-weight: 700; color: var(--green-lt);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.process__title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.process__desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ---- Testimonios ---- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testi {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg); padding: 28px;
}
.testi__text { font-size: 15px; line-height: 1.7; color: var(--carbon); margin-bottom: 20px; font-style: italic; }
.testi__author { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(0,0,0,0.07); padding-top: 16px; }
.testi__av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: var(--green);
  flex-shrink: 0;
}
.testi__name { font-size: 13px; font-weight: 600; color: var(--carbon); }
.testi__role { font-size: 12px; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { padding: 80px 0; }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band__title { font-family: var(--font-display); font-size: 32px; color: #fff; margin-bottom: 10px; }
.cta-band__sub { font-size: 15px; color: rgba(255,255,255,0.5); }

/* ---- Page hero (subpáginas) ---- */
.page-hero { background: var(--night); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151,196,89,0.3), transparent);
}
.page-hero__title { font-family: var(--font-display); font-size: 42px; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.page-hero__title em { font-style: normal; color: var(--green-lt); }
.page-hero__sub { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 560px; line-height: 1.75; margin-bottom: 28px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.3); }
.breadcrumb a:hover { color: var(--green-lt); }
.breadcrumb span { margin: 0 7px; }

/* ---- Form standalone (subpáginas) ---- */
.form-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: 0 4px 24px rgba(15,31,61,0.07);
}
.form-card .form-group label { color: var(--muted); }
.form-card .form-group input,
.form-card .form-group select,
.form-card .form-group textarea {
  background: var(--off-white); border-color: rgba(0,0,0,0.1);
  color: var(--carbon);
}
.form-card .form-group input::placeholder { color: var(--hint); }
.form-card .form-group input:focus,
.form-card .form-group select:focus { border-color: var(--green); background: #fff; }
.form-card .form-privacy { color: var(--hint); }
.form-card .msg--ok { background: var(--green-pale); border-color: rgba(59,109,17,0.3); color: var(--green); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: 38px; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature--reverse { direction: ltr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process__step { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .trust-bar__inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--border); }
  .cta-band__inner { grid-template-columns: 1fr; gap: 24px; }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h1 { font-size: 34px; }
  .hero__title { font-size: 30px; }
  .section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .subnav__links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar__inner { grid-template-columns: 1fr 1fr; }
}
