/* DASER Soluciones Inmobiliarias
   Tokens de marca en un solo lugar. Para cambiar color o tipografía,
   edite este bloque :root y, si cambia el rojo, el fill de los SVG
   en assets/brand/ (el logo se usa como imagen). Ver README. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/outfit-light.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-bold.woff2") format("woff2");
}

:root {
  --color-red: #e00e31;
  --color-red-deep: #941935;
  --color-red-bright: #df1e32;
  --color-slate: #54697f;
  --color-blue-gray: #698291;
  --color-white: #ffffff;
  --gradient-highlight: linear-gradient(115deg, var(--color-red-deep) 0%, var(--color-red-bright) 100%);
  --font-family: "Outfit", "Avenir Next", "Century Gothic", sans-serif;
  --font-weight-title: 700;
  --font-weight-text: 300;
  --rule-width: 1px;
  --rule: var(--rule-width) solid var(--color-red);
  --page: 1120px;
  --header-logo: 12.5rem;
  --header-logo-min: 8.5rem;
  --space-section: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-slate);
  font-family: var(--font-family);
  font-weight: var(--font-weight-text);
  font-size: 1.125rem;
  line-height: 1.7;
  font-synthesis: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.eyebrow,
.btn,
.nav a,
.service-kicker,
.footer-label,
.phone {
  font-weight: var(--font-weight-title);
}

h1,
h2 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-slate);
}

h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.15rem);
  max-width: 14em;
}

h1 span {
  display: block;
  color: var(--color-red);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  max-width: 18em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-slate);
}

p {
  max-width: 42rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-weight: var(--font-weight-title);
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-red);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 3rem;
  height: var(--rule-width);
  margin-bottom: 1rem;
  background: var(--color-red);
}

.section {
  padding: var(--space-section) 0;
}

.intro {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.btn:hover {
  background: var(--color-red-deep);
  border-color: var(--color-red-deep);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-red);
  display: block;
}

/* Header. El imagotipo horizontal no baja de 8.5rem (136px), por encima del mínimo de 84px. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-white);
  border-bottom: var(--rule);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  position: relative;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: var(--header-logo-min);
  height: auto;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: var(--rule);
  background: var(--color-white);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--color-red);
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-white);
  border-bottom: var(--rule);
  flex-direction: column;
  padding: 0.25rem 0 0.75rem;
}

.nav.is-open {
  display: flex;
}

.nav a {
  text-decoration: none;
  color: var(--color-slate);
  font-size: 1rem;
  padding: 0.9rem 0;
  border-top: var(--rule);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-red);
}

/* Hero */
.hero {
  padding: 3.25rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  border-left: var(--rule);
  padding-left: 1.25rem;
}

.lead {
  margin-top: 1.35rem;
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 36rem;
}

.hero .btn {
  margin-top: 1.75rem;
}

.hero-art {
  position: relative;
  margin-right: 0.75rem;
}

.hero-art-back {
  position: absolute;
  z-index: 0;
  inset: 1.1rem -0.7rem -0.7rem 1.4rem;
  background: var(--color-blue-gray);
}

.hero-art-sheet {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border: var(--rule);
  padding: 1.25rem 1.1rem 0.9rem;
}

.sketch {
  width: 100%;
  height: auto;
  display: block;
  color: var(--color-red);
}

.hero-art figcaption {
  margin-top: 0.85rem;
  color: var(--color-slate);
  font-size: 0.75rem;
  font-weight: var(--font-weight-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  border-top: var(--rule);
  border-left: var(--rule);
}

.service-card {
  padding: 1.5rem 1.25rem 1.75rem;
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--color-white);
}

.service-kicker {
  margin: 0 0 1rem;
  color: var(--color-red);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 0.85rem 0 0.45rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Propiedades — fondo pizarra */
.slate {
  background: var(--color-slate);
  color: var(--color-white);
}

.slate h2,
.slate p,
.slate .eyebrow {
  color: var(--color-white);
}

.slate .rule {
  background: var(--color-white);
}

.portal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.portal-list .btn {
  flex: 1 1 12rem;
}

.slate .btn:hover {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-white);
}

/* Enfoque — banda en degradado de marca */
.band {
  background: var(--gradient-highlight);
  color: var(--color-white);
}

.band h2,
.band p,
.band .eyebrow {
  color: var(--color-white);
}

.band .rule {
  background: var(--color-white);
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.steps article {
  border-top: 1px solid var(--color-white);
  padding-top: 1rem;
}

.steps h3 {
  color: var(--color-white);
  margin-bottom: 0.45rem;
}

.steps p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Contacto */
.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card {
  border: var(--rule);
  padding: 1.5rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card .actions {
  margin-top: auto;
  padding-top: 0.25rem;
}

.contact-card h3 {
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.phone {
  margin: 0.85rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--color-slate);
}

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

.phone a:hover {
  color: var(--color-red);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
}

.social h3 {
  margin-bottom: 1rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--color-red);
  text-decoration: none;
  font-weight: var(--font-weight-title);
}

.social-list a:hover {
  text-decoration: underline;
}

.social-list svg {
  width: 1.35rem;
  height: 1.35rem;
}

.location {
  margin-top: 2.5rem;
}

.location h3 {
  margin-bottom: 0.6rem;
}

.map {
  position: relative;
  margin-top: 1rem;
  height: 17.5rem;
  border: var(--rule);
  background: var(--color-white);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map-cover {
  position: absolute;
  inset: 0;
  text-decoration: none;
}

.map-cover span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: var(--color-white);
  color: var(--color-red);
  font-weight: var(--font-weight-title);
  font-size: 0.875rem;
  padding: 0.55rem 0.75rem;
  border: var(--rule);
}

.review {
  margin-top: 2rem;
}

.review p {
  margin-bottom: 0.75rem;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-red);
  text-decoration: none;
  font-weight: var(--font-weight-title);
  min-height: 2.75rem;
}

.review-link:hover {
  text-decoration: underline;
}

.stars {
  letter-spacing: 0.12em;
  font-size: 1.35rem;
  line-height: 1;
}

/* Footer */
.site-footer {
  background: var(--color-slate);
  color: var(--color-white);
  border-top: var(--rule);
  padding: 2.75rem 0;
}

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.site-footer img {
  width: 10.5rem;
  height: auto;
}

.site-footer p {
  margin-top: 0.85rem;
  color: var(--color-white);
  font-size: 1rem;
}

.footer-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
}

/* Aviso y página simple */
.page-intro {
  padding: 3rem 0 1rem;
}

.back {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--color-red);
  font-weight: var(--font-weight-title);
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

.legal {
  padding-bottom: 4.5rem;
}

.aviso {
  max-width: 46rem;
}

.aviso h2 {
  font-size: 1.3rem;
  max-width: none;
  letter-spacing: -0.02em;
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: var(--rule);
}

.aviso p,
.aviso li {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.aviso ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.aviso li::marker {
  color: var(--color-red);
}

.aviso a {
  color: var(--color-red);
}

.missing {
  padding: 4rem 0 5rem;
}

.missing h1 {
  max-width: 14ch;
}

.missing p {
  margin-top: 1rem;
}

.missing .btn {
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  :root {
    --space-section: 5.5rem;
  }

  .wrap {
    width: min(var(--page), calc(100% - 4rem));
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-copy {
    padding-left: 1.5rem;
  }
}

@media (min-width: 980px) {
  :root {
    --space-section: 6.5rem;
  }

  .brand img {
    width: var(--header-logo);
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .nav a {
    border: 0;
    padding: 0.25rem 0;
    font-size: 0.95rem;
  }

  .hero {
    padding: 5.25rem 0 6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4rem;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1.4fr 0.8fr;
    gap: 2.5rem;
  }

  .map {
    height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-art,
  .map iframe {
    display: none;
  }

  .site-header {
    position: static;
  }

  body {
    font-size: 12pt;
  }

  .slate,
  .band,
  .site-footer {
    background: var(--color-white);
    color: var(--color-slate);
  }

  .slate h2,
  .slate p,
  .slate .eyebrow,
  .band h2,
  .band p,
  .band .eyebrow,
  .steps h3,
  .site-footer,
  .site-footer a,
  .site-footer p {
    color: var(--color-slate);
  }
}
