/* ============================================================
   PORTADA 2026 (index.asp)
   Clases con el prefijo p26-. Usa las variables y la cabecera/pie
   de buscador2026.css, que se carga antes.
   ============================================================ */

.p26-oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Secciones ---------- */
.p26-seccion { padding-top: 48px; }
.p26-seccion-cab {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.p26-seccion-cab h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.p26-seccion-cab a { font-size: 15px; font-weight: 700; text-decoration: none; }
.p26-nota { font-size: 13px; color: var(--b26-texto-3); }

/* ---------- Portada y buscador ---------- */
.p26-portada { background: var(--b26-fondo); padding: 32px 0 40px; }
.p26-hero {
  position: relative; overflow: hidden; border-radius: 28px;
  min-height: 520px; display: flex; align-items: flex-end;
  background: #2D4A5C;
}
.p26-hero.p26-sin-foto { background: repeating-linear-gradient(135deg, #2D4A5C 0 18px, #335265 18px 36px); }
.p26-hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p26-hero-in {
  position: relative; width: 100%; padding: 48px;
  display: flex; flex-direction: column; gap: 24px;
  background: linear-gradient(0deg, rgba(16,28,38,.85) 0%, rgba(16,28,38,.4) 70%, rgba(16,28,38,0) 100%);
}
.p26-hero-txt { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.p26-antetitulo {
  margin: 0; font-size: 15px; font-weight: 700; color: #BFE0F2;
  letter-spacing: .04em; text-transform: uppercase;
}
.p26-hero h1 { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: #fff; }

.p26-buscador {
  background: #fff; border-radius: 20px; padding: 10px; max-width: 1100px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.p26-pestanas { border: 0; margin: 0; padding: 4px 4px 0; display: flex; gap: 4px; flex-wrap: wrap; }
.p26-pestanas label { position: relative; cursor: pointer; }
.p26-pestanas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p26-pestanas span {
  display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 700; color: var(--b26-texto-2);
}
.p26-pestanas label:hover span { background: var(--b26-fondo); }
.p26-pestanas input:checked + span { background: var(--b26-azul); color: #fff; }
.p26-pestanas input:focus-visible + span { outline: 3px solid rgba(28,111,154,.45); outline-offset: 2px; }

.p26-campos { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.p26-campo {
  flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px; border: 1px solid var(--b26-borde); border-radius: 14px; min-width: 0;
}
.p26-campo-loc { flex: 2 1 260px; }
.p26-campo span { font-size: 12px; font-weight: 700; color: var(--b26-texto-3); text-transform: uppercase; letter-spacing: .04em; }
.p26-campo select {
  border: 0; padding: 0; margin: 0; width: 100%; min-height: 26px;
  font-size: 16px; color: var(--b26-texto); background: transparent; cursor: pointer;
}
.p26-campo select:focus { outline: none; }
.p26-campo:focus-within { border-color: var(--b26-azul); box-shadow: 0 0 0 3px rgba(28,111,154,.18); }
.p26-campo select[hidden] { display: none; }
.p26-buscar {
  flex: 0 0 auto; min-width: 150px; min-height: 64px; padding: 0 24px;
  border: 0; border-radius: 14px; background: var(--b26-azul); color: #fff;
  font-size: 17px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.p26-buscar:hover { background: var(--b26-azul-osc); }

.p26-populares { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.p26-populares > span { font-size: 14px; font-weight: 600; color: #D6E7F1; margin-right: 4px; }
.b26 .p26-populares a {
  font-size: 14px; font-weight: 600; color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
}
.b26 .p26-populares a:hover { background: rgba(255,255,255,.26); color: #fff; }

.p26-cifras {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.p26-cifras li {
  background: #fff; border: 1px solid var(--b26-borde-claro); border-radius: 18px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 2px;
}
.p26-cifras strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.p26-cifras span { font-size: 14px; color: var(--b26-texto-3); }

/* ---------- Banners (portada/<provincia>.asp) ---------- */
.p26-banner {
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--b26-borde-claro); background: #fff;
}
.p26-banner img { display: block; width: 100%; height: 100%; object-fit: contain; }
.p26-banner-ancho { margin-bottom: 14px; }
.p26-banner-ancho img { height: auto; }
.p26-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p26-banners .p26-banner { aspect-ratio: 745 / 400; }

.p26-anunciate {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: 20px; border: 2px dashed var(--b26-borde);
  text-decoration: none; color: var(--b26-texto);
}
.b26 a.p26-anunciate { color: var(--b26-texto); }
.p26-anunciate-txt { display: flex; flex-direction: column; gap: 4px; }
.p26-anunciate-txt strong { font-size: 18px; }
.p26-anunciate-txt span { color: var(--b26-texto-3); }
.p26-anunciate .p26-btn-claro { background: var(--b26-azul); color: #fff; }

/* ---------- Zonas ---------- */
.p26-zonas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px; gap: 14px;
}
.p26-zona {
  position: relative; overflow: hidden; border-radius: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: #fff;
  background: repeating-linear-gradient(135deg, #2D4A5C 0 16px, #34556A 16px 32px);
}
.p26-zona img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p26-zona:hover img { transform: scale(1.04); }
.p26-zona-grande { grid-column: span 2; grid-row: span 2; }
.p26-zona-ancha { grid-column: span 2; }
.p26-zona-txt {
  position: relative; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(0deg, rgba(16,28,38,.85) 0%, rgba(16,28,38,0) 100%);
}
.p26-zona-txt strong { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.p26-zona-grande .p26-zona-txt strong { font-size: 34px; }
.p26-zona-ancha .p26-zona-txt strong { font-size: 26px; }
.p26-zona-txt span { font-size: 14px; font-weight: 600; color: #D6E7F1; }
.b26 a.p26-zona, .b26 a.p26-zona:hover { color: #fff; }

/* Zonas sin foto (2026): degradado de una paleta fija + inicial grande de la localidad.
   Seis tonos apagados de luminosidad parecida (inspirados en Granada); la costa, azul mar.
   El tono lo pone index.asp por posicion: la capital p26-tono-0, las demas recorren 1 a 5 y la costa p26-tono-costa. */
.p26-zona-sin { --z1: #1F3A52; --z2: #3E6584; background: linear-gradient(145deg, var(--z1) 0%, var(--z2) 100%); isolation: isolate; }
.p26-zona-sin::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
              linear-gradient(0deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 55%); }
.p26-tono-0 { --z1: #6E3326; --z2: #B0634A; }   /* Alhambra: terracota */
.p26-tono-1 { --z1: #1C364D; --z2: #44698A; }   /* Sierra: pizarra */
.p26-tono-2 { --z1: #34421F; --z2: #6F7F45; }   /* Olivo */
.p26-tono-3 { --z1: #45203A; --z2: #7D4766; }   /* Albaicin: ciruela */
.p26-tono-4 { --z1: #5E4318; --z2: #A47E3C; }   /* Vega: ocre */
.p26-tono-5 { --z1: #173F43; --z2: #3D7774; }   /* Genil: verde agua */
.p26-tono-costa { --z1: #0F3352; --z2: #2C7AA3; } /* costa: azul mar */
.p26-zona-ini {
  position: absolute; z-index: -1; right: -6px; top: -34px; pointer-events: none;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 200px; line-height: 1;
  color: rgba(255,255,255,.14); transition: transform .5s ease, color .5s ease;
}
.p26-zona-grande .p26-zona-ini { font-size: 400px; right: 10px; top: -70px; color: rgba(255,255,255,.12); }
.p26-zona-ancha .p26-zona-ini { font-size: 240px; top: -50px; }
.p26-zona-sin:hover .p26-zona-ini { transform: translate(-6px, 4px); color: rgba(255,255,255,.2); }
.p26-zona-sin .p26-zona-txt { background: none; }
.p26-zona-sin .p26-zona-txt strong::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 10px; border-radius: 2px; background: rgba(255,255,255,.55); }
.p26-zona-sin .p26-zona-txt span { color: rgba(255,255,255,.82); }
@media (max-width: 700px) {
  .p26-zona-ini { font-size: 150px; top: -24px; }
  .p26-zona-grande .p26-zona-ini { font-size: 260px; top: -44px; }
  .p26-zona-ancha .p26-zona-ini { font-size: 170px; top: -30px; }
}

/* ---------- Ejemplos de webs para inmobiliarias (provincias que no son Granada) ---------- */
.p26-webs-cab { max-width: 760px; margin-bottom: 26px; }
.p26-webs-eti { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--b26-azul, #1C6F9A); margin-bottom: 8px; }
.p26-webs-cab h2 { margin: 0 0 8px; }
.p26-webs-cab p { margin: 0; color: var(--b26-texto-3, #4F5F6B); font-size: 16px; line-height: 1.55; }
.p26-webs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 18px; align-items: stretch; }
.p26-web { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #DCE4EA;
  box-shadow: 0 10px 30px rgba(16,28,38,.08); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.p26-web:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,28,38,.14); }
.p26-web-barra { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #EEF2F5; border-bottom: 1px solid #DCE4EA; }
.p26-web-barra i { width: 9px; height: 9px; border-radius: 50%; background: #C9D3DB; }
.p26-web-barra em { flex: 1; margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #fff; font-style: normal; font-size: 12px; color: #5B6B78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p26-web img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.p26-web-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; }
.p26-web-pie strong { color: var(--b26-texto, #16232E); font-size: 16px; }
.p26-web-pie span { color: var(--b26-azul, #1C6F9A); font-size: 14px; font-weight: 700; }
.p26-web-tuya { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-radius: 16px; background: var(--b26-azul, #1C6F9A); color: #fff; }
.p26-web-tuya strong { font-size: 22px; line-height: 1.2; font-weight: 800; }
.p26-web-tuya ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.p26-web-tuya li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.92); }
.p26-web-tuya li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.b26 a.p26-web-btn, .p26-web-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px;
  background: #fff; color: var(--b26-azul, #1C6F9A); font-size: 15px; font-weight: 700; text-decoration: none; }
.b26 a.p26-web-btn:hover { background: #E8F2F8; color: var(--b26-azul-osc, #12506F); }
@media (max-width: 980px) { .p26-webs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .p26-web-tuya { grid-column: 1 / -1; } }
@media (max-width: 600px) { .p26-webs-grid { grid-template-columns: 1fr; } }

/* ---------- Tipos ---------- */
.p26-tipos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.p26-tipo {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border: 1px solid var(--b26-borde-claro); border-radius: 18px; background: #fff;
  text-decoration: none;
}
.b26 a.p26-tipo { color: var(--b26-texto); }
.b26 a.p26-tipo:hover { border-color: var(--b26-azul); color: var(--b26-texto); }
.p26-tipo-ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--b26-azul-claro); color: var(--b26-azul);
  display: flex; align-items: center; justify-content: center;
}
.p26-tipo strong { display: block; font-size: 17px; }
.p26-tipo small { display: block; font-size: 13px; color: var(--b26-texto-3); }

/* ---------- Recién publicados ---------- */
.p26-anuncios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p26-anuncio {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--b26-borde-claro); border-radius: 20px; background: #fff; text-decoration: none;
}
.b26 a.p26-anuncio { color: var(--b26-texto); }
.b26 a.p26-anuncio:hover { color: var(--b26-texto); box-shadow: 0 10px 30px rgba(22,35,46,.1); }
.p26-anuncio-foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--b26-borde-claro); }
.p26-anuncio-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Cartel en el texto de la tarjeta, encima del precio (sobre la foto taparía el logo de la agencia) */
.p26-etiqueta {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--b26-azul); padding: 4px 9px; border-radius: 8px;
}
.p26-anuncio-txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.p26-precio { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.p26-anuncio-tit { font-size: 15px; font-weight: 600; }
.p26-specs { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 14px; color: var(--b26-texto-3); }

/* ---------- Localidades ---------- */
.p26-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.p26-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--b26-borde); border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.b26 .p26-chips a { color: var(--b26-texto); }
.b26 .p26-chips a:hover { border-color: var(--b26-azul); color: var(--b26-azul); }
.p26-chips span { font-size: 13px; font-weight: 600; color: var(--b26-texto-3); }

/* ---------- Inmobiliarias ---------- */
.p26-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.p26-logo {
  height: 96px; padding: 12px 16px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--b26-borde-claro); border-radius: 16px; background: #fff;
}
.p26-logo:hover { border-color: var(--b26-azul); }
.p26-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.p26-contador { margin: 14px 0 0; font-size: 14px; color: var(--b26-texto-3); display: flex; gap: 8px; align-items: center; }
.p26-contador svg { color: #1F7A4D; }

.p26-empresas {
  border-radius: 26px; background: var(--b26-texto); color: #fff; padding: 40px;
  display: flex; gap: 24px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.p26-empresas > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.p26-empresas h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.p26-empresas p { margin: 0; font-size: 16px; line-height: 1.6; color: #C9D6DF; max-width: 620px; }
.p26-empresas-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.p26-btn-claro, .p26-btn-borde {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.b26 a.p26-btn-claro, .p26-btn-claro { background: #fff; color: var(--b26-texto); }
.b26 a.p26-btn-borde { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.b26 a.p26-btn-borde:hover { border-color: #fff; color: #fff; }

/* ---------- Texto del portal ---------- */
.p26-texto { background: var(--b26-fondo); margin-top: 48px; padding: 40px 0; }
.p26-texto-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.p26-texto h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.p26-texto p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--b26-texto-2); }
.p26-enlaces { line-height: 1.9; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .p26-tipos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p26-anuncios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p26-hero h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .p26-zonas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .p26-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p26-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p26-texto-in { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .p26-portada { padding: 16px 0 28px; }
  .p26-hero { border-radius: 20px; min-height: 0; }
  .p26-hero-in { padding: 120px 16px 16px; gap: 18px; }
  .p26-hero h1 { font-size: 32px; }
  .p26-antetitulo { font-size: 13px; }
  .p26-buscar { width: 100%; min-height: 54px; }
  .p26-seccion { padding-top: 36px; }
  .p26-seccion-cab h2 { font-size: 24px; }
  .p26-cifras strong { font-size: 22px; }
  .p26-cifras li { padding: 14px 16px; }
  .p26-banners { grid-template-columns: minmax(0, 1fr); }
  .p26-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p26-tipo { padding: 16px; }
  .p26-anuncios { grid-template-columns: minmax(0, 1fr); }
  .p26-zona-grande .p26-zona-txt strong { font-size: 26px; }
  .p26-zona-txt strong { font-size: 17px; }
  .p26-zona-txt { padding: 14px; }
  .p26-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p26-empresas { padding: 28px 20px; }
  .p26-empresas h2 { font-size: 26px; }
}
