/* Webs de zona de De Salas. Negro y azul #104D97, esquinas rectas, Inter. */
@font-face { font-family: "Inter"; src: url(/assets/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
	--ds-primary: #104d97; --ds-primary-dark: #0c3a73;
	--ds-ink: #111; --ds-ink-soft: #55595f; --ds-line: #e6e6e6; --ds-bg-soft: #f5f6f8;
	--ds-ease: cubic-bezier(.22, 1, .36, 1);
	--ancho: 1200px; --texto: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ds-ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ds-primary); }
a:hover { color: var(--ds-primary-dark); }
:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ds-line); backdrop-filter: blur(8px); }
.cab__in { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: flex; flex-direction: column; text-decoration: none; color: var(--ds-ink); line-height: 1.15; }
.marca__zona { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.marca__sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-ink-soft); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ds-ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--ds-primary); color: var(--ds-ink); }
.nav .nav__tel { background: var(--ds-primary); color: #fff; padding: 9px 14px; border: 0; font-weight: 600; }
.nav .nav__tel:hover { background: var(--ds-primary-dark); color: #fff; }
.menu-check, .menu-btn { display: none; }
@media (max-width: 900px) {
	.menu-btn { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
	.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ds-ink); content: ""; }
	.menu-btn span { top: 21px; } .menu-btn span::before { top: -7px; left: 0; } .menu-btn span::after { top: 7px; left: 0; }
	.nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--ds-line); padding: 8px 20px 20px; }
	.nav a { padding: 12px 0; border-bottom: 1px solid var(--ds-line); }
	.nav .nav__tel { margin-top: 12px; text-align: center; }
	.menu-check:checked ~ .nav { display: flex; }
}

/* Portada de página */
.hero { background: #0a0a0a; color: #fff; }
.hero--foto { background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35) 60%, rgba(0,0,0,.2)), var(--hero) center/cover no-repeat, #0a0a0a; }
.hero__in { max-width: var(--ancho); margin: 0 auto; padding: 96px 20px 64px; }
.hero--foto .hero__in { padding-top: 160px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; max-width: 900px; }
.hero__lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; max-width: 760px; margin: 0; color: rgba(255,255,255,.9); }
.hero__meta { margin: 26px 0 0; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.hero__meta a, .migas a { color: #fff; }
.migas { font-size: 13px; margin-bottom: 18px; color: rgba(255,255,255,.75); }

/* Cifras */
.datos { background: var(--ds-bg-soft); border-bottom: 1px solid var(--ds-line); }
.datos__in { max-width: var(--ancho); margin: 0 auto; padding: 28px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.dato strong { display: block; font-size: 30px; line-height: 1.1; color: var(--ds-primary); font-weight: 700; }
.dato span { display: block; font-size: 14px; line-height: 1.4; margin-top: 6px; }
.dato small { display: block; font-size: 11px; color: var(--ds-ink-soft); margin-top: 4px; }

/* Texto */
.cuerpo { max-width: var(--ancho); margin: 0 auto; padding: 56px 20px 24px; display: grid; grid-template-columns: 240px minmax(0, var(--texto)); gap: 56px; justify-content: center; }
.cuerpo--sigue { padding-top: 40px; }
.cuerpo:not(:has(.indice)) { grid-template-columns: minmax(0, var(--texto)); }
.indice { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.indice__t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ds-ink-soft); margin: 0 0 10px; }
.indice ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ds-line); }
.indice li a { display: block; padding: 6px 0 6px 14px; color: var(--ds-ink); text-decoration: none; line-height: 1.4; }
.indice li a:hover { color: var(--ds-primary); }
@media (max-width: 900px) { .cuerpo { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 36px; } .indice { position: static; } }
.texto section + section { margin-top: 44px; }
.texto h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 16px; scroll-margin-top: 90px; }
.texto h3 { font-size: 20px; margin: 28px 0 10px; }
.texto p { margin: 0 0 16px; }
.texto ul, .texto ol { padding-left: 22px; margin: 0 0 18px; }
.texto li { margin-bottom: 6px; }
.texto table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.texto th, .texto td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ds-line); vertical-align: top; }
.texto th { background: var(--ds-bg-soft); font-weight: 600; }
.faqs details { border-bottom: 1px solid var(--ds-line); }
.faqs summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--ds-primary); }
.faqs details[open] summary::after { content: "–"; }
.faqs details p { margin: 0 0 18px; color: var(--ds-ink-soft); }
.fuentes { font-size: 14px; color: var(--ds-ink-soft); }
.fuentes h2 { font-size: 18px; }
.lista-404 { font-size: 18px; }

/* Casas */
.casas { background: var(--ds-bg-soft); border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); margin-top: 48px; }
.casas__in { max-width: var(--ancho); margin: 0 auto; padding: 56px 20px; }
.casas h2 { font-size: clamp(24px, 3vw, 31px); margin: 0 0 6px; }
.casas__sub { margin: 0 0 30px; color: var(--ds-ink-soft); }
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
@media (max-width: 1024px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rejilla { grid-template-columns: minmax(0, 1fr); } }
.casas__mas { text-align: center; margin: 36px 0 0; }

.boton { display: inline-block; padding: 14px 26px; background: var(--ds-primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--ds-primary); }
.boton:hover { background: var(--ds-primary-dark); color: #fff; }
.boton--claro { background: #fff; color: var(--ds-ink); border-color: #fff; }
.boton--claro:hover { background: #e9eef6; color: var(--ds-ink); }
.boton--linea { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.boton--linea:hover { background: rgba(255,255,255,.1); }

/* Oficina */
.oficina { background: var(--ds-primary); color: #fff; margin-top: 56px; }
.oficina__in { max-width: var(--ancho); margin: 0 auto; padding: 48px 20px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.oficina p { margin: 0 0 4px; }
.oficina__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.oficina__t { font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 10px !important; }
.oficina__acc { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pie */
.pie { background: #0a0a0a; color: rgba(255,255,255,.75); font-size: 14px; }
.pie__in { max-width: var(--ancho); margin: 0 auto; padding: 52px 20px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .pie__in { grid-template-columns: 1fr; gap: 26px; } }
.pie a { color: #fff; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: 6px; }
.pie__marca { color: #fff; font-size: 18px; font-weight: 700; margin-top: 0; }
.pie__t { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 0; }
.pie__c { max-width: var(--ancho); margin: 0 auto; padding: 18px 20px 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* ── Tarjeta de inmueble (copia del diseño de desalas.com) ── */
.ds-inm-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ds-inm-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e9e9e9; }
.ds-inm-slider { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.ds-inm-slider__track { display: flex; height: 100%; transition: transform .5s var(--ds-ease); }
.ds-inm-slider__slide { flex: 0 0 100%; display: block; height: 100%; background: #e9e9e9; }
.ds-inm-slider__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ds-ease); }
.ds-inm-card:hover .ds-inm-slider__img { transform: scale(1.04); }
.ds-inm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 38%), linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 25%); pointer-events: none; z-index: 1; }
.ds-inm-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(0,0,0,.35)); transition: transform .25s, opacity .25s; opacity: .85; }
.ds-inm-slider__nav:hover { opacity: 1; transform: translateY(-50%) scale(1.12); }
.ds-inm-slider__nav--prev { left: 12px; } .ds-inm-slider__nav--next { right: 12px; }
.ds-inm-slider__br { position: absolute; bottom: 12px; right: 12px; z-index: 3; }
.ds-inm-slider__counter { font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.4); padding: 3px 9px; }
.ds-inm-card__ribbon { position: absolute; top: 0; left: 0; width: 130px; height: 130px; overflow: hidden; z-index: 4; pointer-events: none; }
.ds-inm-card__ribbon span { position: absolute; left: -42px; top: 26px; display: block; width: 180px; padding: 6px 0; text-align: center; transform: rotate(-45deg); background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-dark)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.ds-inm-card__ribbon--reservada span { background: linear-gradient(135deg, #c0392b, #96281b); }
.ds-inm-card__price-tag { position: absolute; bottom: 14px; left: 14px; z-index: 3; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); line-height: 1.1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ds-inm-card__price-old { font-size: 15px; font-weight: 500; text-decoration: line-through; opacity: .9; }
.ds-inm-card__price-now { font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; }
.ds-inm-card__price-now > span { font-size: 13px; font-weight: 500; opacity: .85; }
.ds-inm-card__price-now .ds-inm-card__price-discount { font-size: 15px; opacity: 1; background: #e74c3c; padding: 4px 10px; text-shadow: none; line-height: 1; }
.ds-inm-card__price-consult { font-size: 15px; font-weight: 600; }
.ds-inm-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; }
.ds-inm-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; max-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-inm-card__title a { color: var(--ds-ink); text-decoration: none; }
.ds-inm-card__title a:hover { color: var(--ds-primary-dark); }
.ds-inm-card__location { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ds-ink-soft); }
.ds-inm-card__location svg { color: var(--ds-primary); flex-shrink: 0; }
.ds-inm-card__features { display: flex; flex-wrap: wrap; align-items: baseline; margin: 4px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--ds-line); }
.ds-inm-feat { font-size: 14px; color: var(--ds-ink-soft); white-space: nowrap; }
.ds-inm-feat + .ds-inm-feat::before { content: "|"; margin: 0 9px; color: #ccc; }
.ds-inm-card__footer { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ds-inm-card__ref { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-ink-soft); font-weight: 700; }
.ds-inm-card__more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ds-ink); text-decoration: underline; text-underline-offset: 3px; }
.ds-inm-card__more:hover { opacity: .65; color: var(--ds-ink); }
@media (max-width: 480px) { .marca__sub { display: none; } .marca__zona { font-size: 18px; } }

/* ── v2: resumen, CTA, mapa, precios, menú «Más», barra móvil ── */
.resumen { background: var(--ds-bg-soft); border-left: 4px solid var(--ds-primary); padding: 20px 24px; margin: 0 0 40px; }
.resumen__t { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ds-primary); margin: 0 0 8px !important; }
.resumen ul { margin: 0; padding-left: 20px; }
.resumen li { margin-bottom: 6px; }
.texto blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ds-ink); font-size: 19px; line-height: 1.55; }
.hero__cta { margin: 28px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.boton--blanco { background: #fff; color: var(--ds-primary); border-color: #fff; }
.boton--blanco:hover { background: #e9eef6; color: var(--ds-primary); }
.nav .nav__val { border: 1px solid var(--ds-primary); color: var(--ds-primary); padding: 8px 12px; font-weight: 600; }
.nav .nav__val:hover { background: var(--ds-primary); color: #fff; }
.nav__mas { position: relative; font-size: 14px; font-weight: 500; }
.nav__mas summary { cursor: pointer; list-style: none; padding: 6px 0; }
.nav__mas summary::-webkit-details-marker { display: none; }
.nav__mas summary::after { content: " ▾"; font-size: 11px; }
.nav__mas div { position: absolute; right: 0; top: 36px; background: #fff; border: 1px solid var(--ds-line); min-width: 230px; padding: 8px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.nav__mas div a { display: block; padding: 8px 0; }
@media (max-width: 900px) { .nav__mas div { position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; } .nav__mas summary { padding: 12px 0; border-bottom: 1px solid var(--ds-line); } .nav .nav__val { margin-top: 12px; text-align: center; } }
.cta { background: var(--ds-bg-soft); border-top: 1px solid var(--ds-line); }
.cta__in { max-width: var(--ancho); margin: 0 auto; padding: 40px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta__t { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.cta p { margin: 0; }
.cta__acc { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .boton--blanco { border-color: var(--ds-primary); }
.oficina { margin-top: 0; }
.casas--tira { margin-top: 32px; }
.mapa { margin-top: 44px; }
.mapa iframe { width: 100%; height: 380px; border: 1px solid var(--ds-line); display: block; }
.mapa__pie { font-size: 12px; color: var(--ds-ink-soft); margin-top: 6px !important; }
.precios-hoy { margin-top: 44px; }
.precios-hoy h3 { font-size: 20px; margin: 0 0 12px; }
.tabla-scroll { overflow-x: auto; }
.precios-hoy table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.precios-hoy th, .precios-hoy td { padding: 10px 12px; border-bottom: 1px solid var(--ds-line); text-align: left; white-space: nowrap; }
.precios-hoy th { font-weight: 600; background: #fff; }
.precios-hoy__nota { font-size: 13px; color: var(--ds-ink-soft); margin: 8px 0 0; }
.barra-movil { display: none; }
@media (max-width: 760px) {
	.barra-movil { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #0a0a0a; height: 56px; }
	.barra-movil a { display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; border-right: 1px solid rgba(255,255,255,.15); }
	.barra-movil a:last-child { background: var(--ds-primary); border: 0; }
	body { padding-bottom: 56px; }
	.nav .nav__tel { display: none; }
}
