/* ============================================================
   VITRIOL INMOBILIARIA — Páginas en inglés (/en/)
   Negro y dorado. Se carga después de index.css.
============================================================ */

body.en-page {
  background: #0c0c0c;
  color: #e9e4d8;
}

.en-page .navbar-links { gap: 1.6rem; }
.en-page .navbar-links a { font-size: 15px; }
.en-page .idioma-switch {
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 4px 10px !important;
}
.en-page .idioma-switch::after { display: none; }
/* 21/11/2026: con FAQ y dos idiomas en el menú, el rótulo del centro no entra por debajo de unos
   1.780 px (lo oculta botones.css) y en alemán, con palabras más largas, por debajo de 1.850 px. */
/* 21/11/2026 (tarde): con "Properties" / "Immobilien" en el menú, el rótulo se pisa más abajo de
   unos 1.850 px en inglés y 1.950 px en alemán (medido en las páginas nuevas). */
@media (max-width: 1870px) {
  .en-page .navbar::after { display: none; }
}
@media (max-width: 1970px) {
  html[lang="de"] .en-page .navbar::after { display: none; }
}
/* 21/11/2026: el menú suma un segundo idioma (Español + Deutsch / Español + English). */
@media (min-width: 901px) and (max-width: 1280px) {
  .en-page .navbar-links { gap: 1.1rem; }
  .en-page .navbar-links a { font-size: 14px; letter-spacing: 0.05em; }
  .en-page .idioma-switch { padding: 3px 8px !important; }
}
@media (max-width: 900px) {
  .en-page .navbar-links { overflow-y: auto; }
}

.en-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 118px 24px 64px;
}

.en-contenido {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 64px;
}

.en-inicio .en-contenido { padding-top: 48px; }

/* ── Cabecera de zona ─────────────────────────────────── */
.en-cabecera {
  border-radius: 16px;
  padding: 72px 48px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(201, 168, 76, 0.35);
  margin-bottom: 8px;
}
.en-cabecera h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  line-height: 1.15;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.en-cabecera p {
  max-width: 760px;
  font-size: 17px;
  color: #f2ede2;
}

/* ── Secciones ────────────────────────────────────────── */
.en-seccion { margin-top: 48px; }
.en-seccion > h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.en-seccion-texto {
  color: #b9b2a3;
  margin-bottom: 22px;
  max-width: 820px;
}
.en-ver-mas { margin-top: 18px; }
.en-ver-mas a, .en-info a { color: var(--gold-light); text-decoration: underline; }

.en-info {
  background: #141414;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 14px;
  padding: 28px 30px;
}
.en-info > h2 { font-size: 24px; }
.en-info p, .en-info li { color: #d9d3c5; }
.en-info ul { padding-left: 20px; margin: 8px 0 18px; }
.en-info .en-hero-btns { justify-content: flex-start; }

/* ── Tarjetas ─────────────────────────────────────────── */
.en-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.en-card {
  display: flex;
  flex-direction: column;
  background: #151515;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.en-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.en-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.en-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
  flex: 1;
}
.en-card-precio {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
}
.en-card-precio span {
  font-size: 13px;
  font-weight: 400;
  color: #9d9686;
}
.en-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}
.en-card-lugar { font-size: 14px; color: #b9b2a3; }
.en-card-fichas { font-size: 13px; color: #d9d3c5; }
.en-card-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 7px 16px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.en-card:hover .en-card-btn { background: var(--gold); color: #0a0a0a; }

/* ── Botones ──────────────────────────────────────────── */
.en-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.en-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease;
}
.en-btn:hover { filter: brightness(1.08); }
.en-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.en-btn-wa { background: #25d366; border-color: #25d366; color: #ffffff; }
.en-btn-linea { background: rgba(10, 10, 10, 0.55); color: var(--gold-light); }
.en-btn-linea:hover { background: var(--gold); color: #0a0a0a; }

/* ── Ficha de propiedad ───────────────────────────────── */
.en-breadcrumb {
  font-size: 13px;
  color: #9d9686;
  margin-bottom: 16px;
}
.en-breadcrumb a { color: var(--gold-light); text-decoration: none; }
.en-breadcrumb span { margin: 0 4px; }

.en-prop-foto img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.en-prop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  margin-top: 30px;
  align-items: start;
}

.en-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.en-tags span {
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.en-prop-izq h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 10px;
}
.en-lugar { color: #b9b2a3; margin-bottom: 12px; }
.en-precio {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.en-conv { font-size: 16px; font-weight: 400; color: #9d9686; }

.en-fichas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.en-ficha {
  background: #151515;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
}
.en-ficha strong {
  display: block;
  font-size: 20px;
  color: var(--gold-light);
}
.en-ficha span { font-size: 13px; color: #b9b2a3; }

.en-lead { font-size: 17px; color: #f2ede2; }
.en-prop-izq h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--gold-light);
  margin: 28px 0 10px;
}
.en-prop-izq p { margin-bottom: 10px; }
.en-prop-izq ul { padding-left: 20px; margin-bottom: 10px; }
.en-prop-izq li { margin-bottom: 6px; }

.en-video {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  background: #000000;
}
.en-nota {
  font-size: 13px;
  font-style: italic;
  color: #9d9686;
  margin-top: 10px;
}

.en-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.en-fotos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}
.en-fotos a:hover img { opacity: 0.85; }

.en-contacto {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #141414;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
}
.en-contacto-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #ffffff;
}
.en-contacto-precio { font-size: 22px; font-weight: 700; color: var(--gold-light); }
.en-contacto-nota { font-size: 13px; color: #9d9686; }
.en-mapa, .en-es { color: var(--gold-light); font-size: 14px; text-decoration: underline; }

/* ── Por qué Vitriol ──────────────────────────────────── */
.en-porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.en-porque-grid > div {
  background: #151515;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 22px;
}
.en-porque-grid h3 { color: var(--gold-light); font-size: 18px; margin-bottom: 8px; }
.en-porque-grid p { color: #d9d3c5; font-size: 15px; }

.en-contacto-final { text-align: center; }
.en-contacto-final p { color: #d9d3c5; }

/* ── Celular ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .en-prop { grid-template-columns: 1fr; gap: 24px; }
  .en-contacto { position: static; }
  .en-porque-grid { grid-template-columns: 1fr; }
  .en-cabecera { padding: 48px 24px; }
  .en-cabecera h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .en-main { padding: 104px 16px 48px; }
  .en-contenido { padding: 8px 16px 48px; }
  .en-prop-izq h1 { font-size: 27px; }
  .en-precio { font-size: 25px; }
  .en-seccion > h2 { font-size: 25px; }
  .en-cabecera h1 { font-size: 28px; }
  .en-btn { width: 100%; }
}

/* ============================================================
   21/11/2026 — Buscador, listado de todas las propiedades y ficha genérica
   (js/buscador_idiomas.js). Martín: "operación, tipo, buscar propiedad… quiero ver
   si puedo comprar o alquilar todo", en inglés y en alemán.
============================================================ */

/* Inicio: el buscador va en el hero, como en español; las zonas quedan como botones chicos */
.en-inicio .hero-content { max-width: 760px; }
.en-inicio .hero-content > p { margin-bottom: 22px; }
.en-inicio .buscador { margin: 0 auto; }
.en-inicio .buscador select,
.en-inicio .buscador input { min-width: 0; }
@media (min-width: 901px) { .en-inicio .buscador select { flex: 1 1 150px; } }
.en-hero-btns.compactos { margin-top: 18px; gap: 10px; }
.en-hero-btns.compactos .en-btn {
  padding: 7px 14px;
  font-size: 13px;
  background: rgba(10, 10, 10, 0.55);
  color: var(--gold-light);
}
.en-hero-btns.compactos .en-btn:hover { background: var(--gold); color: #0a0a0a; }

/* Listado */
.bi-lista .bi-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  line-height: 1.2;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.bi-intro { color: #b9b2a3; margin-bottom: 22px; max-width: 820px; }

.bi-btn-filtros {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #141414;
  color: var(--gold-light);
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
}

.bi-barra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  background: #141414;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}
.bi-barra select,
.bi-barra input,
.bi-control {
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  background: #0c0c0c;
  color: #e9e4d8;
  font: 500 14px Inter, sans-serif;
  outline: none;
}
.bi-barra select:focus,
.bi-barra input:focus,
.bi-control:focus { border-color: var(--gold); }
.bi-barra select { flex: 1 1 150px; cursor: pointer; }
.bi-barra select option { background: #141414; color: #e9e4d8; }
.bi-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 140px;
  cursor: pointer;
  white-space: nowrap;
}
.bi-control::after { content: '▾'; color: var(--gold-light); font-size: 12px; }
.bi-control.activo { border-color: var(--gold); color: var(--gold-light); }

.bi-precio { position: relative; flex: 1 1 150px; display: flex; }
.bi-precio .bi-control { flex: 1; }
.bi-precio-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 300px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #141414;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.bi-precio-panel[hidden] { display: none; }
.bi-precio-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #b9b2a3; }
.bi-precio-panel label input,
.bi-precio-panel label select { width: 100%; }
.bi-precio-fila { display: flex; gap: 10px; }
.bi-precio-fila label { flex: 1; }
.bi-precio-nota { font-size: 12px; color: #9d9686; }
.bi-precio-btns { display: flex; gap: 10px; justify-content: flex-end; }
.bi-precio-btns button {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font: 600 13px Inter, sans-serif;
  cursor: pointer;
}
.bi-precio-btns button:last-child { background: var(--gold); color: #0a0a0a; }

.bi-lugar { position: relative; flex: 2 1 220px; display: flex; }
.bi-lugar input { flex: 1; width: 100%; }
.bi-lugar input::placeholder { color: #8f887a; }
.bi-sug {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 55;
  background: #141414;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 8px;
  overflow: hidden;
  display: none;
}
.bi-sug.abierta { display: block; }
.bi-sug .sugerencia { color: #e9e4d8; }

.bi-cuenta { color: #b9b2a3; font-size: 14px; margin-bottom: 14px; }
.bi-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9b2a3;
}
.bi-cargando { color: #b9b2a3; padding: 40px 0; text-align: center; grid-column: 1 / -1; }
.bi-vacio { grid-column: 1 / -1; text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bi-vacio p { color: #d9d3c5; font-size: 17px; }

.bi-paginas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0 8px; }
.bi-paginas button,
.bi-paginas span {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font: 600 14px Inter, sans-serif;
}
.bi-paginas button {
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: #141414;
  color: #e9e4d8;
  cursor: pointer;
}
.bi-paginas button.activa { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.bi-paginas button:disabled { opacity: 0.35; cursor: default; }
.bi-paginas span { display: inline-flex; align-items: center; justify-content: center; color: #9d9686; }

/* Ficha genérica */
.bi-desc { white-space: pre-line; color: #e9e4d8; line-height: 1.65; }
.bi-desc-auto { font-style: italic; color: #d9d3c5; }
.bi-volver { margin-top: 22px; }
.bi-volver a { color: var(--gold-light); text-decoration: underline; }

@media (max-width: 900px) {
  .bi-btn-filtros { display: inline-flex; }
  .bi-barra { display: none; flex-direction: column; }
  .bi-barra.abierta { display: flex; }
  .bi-barra select, .bi-precio, .bi-lugar { flex: none; width: 100%; }
  .bi-precio-panel { width: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .bi-lista .bi-h1 { font-size: 28px; }
  .en-hero-btns.compactos .en-btn { width: auto; }
  .en-inicio .hero-content { margin-top: 4vh; }
}
.en-card-precio span { white-space: nowrap; }
