/* ============================================================
   ALTA EN EL DIRECTORIO 2026 (alta-inmobiliaria.asp)
   Prefijo alt-. Se carga después de buscador2026.css, portada2026.css y anunciantes2026.css
   ============================================================ */

.alt-sec { padding-top: 32px; }
.alt-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }

.alt-tarjeta {
  background: #fff; border: 1px solid var(--b26-borde-claro); border-radius: 22px; padding: 32px;
}

/* ---------- Formulario ---------- */
.alt-form { display: flex; flex-direction: column; gap: 24px; }
.alt-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.alt-form legend { padding: 0; margin-bottom: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.alt-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.alt-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.alt-campo label { font-size: 14px; font-weight: 700; }
.alt-opcional { font-weight: 500; color: var(--b26-texto-3); }
.alt-campo input[type="text"], .alt-campo input[type="email"], .alt-campo input[type="tel"], .alt-campo input[type="password"], .alt-campo select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--b26-borde); border-radius: 12px; background: #fff;
  font-size: 16px; color: var(--b26-texto);
}
.alt-campo input::placeholder { color: #7A8994; }
.alt-campo input:focus, .alt-campo select:focus { outline: none; border-color: var(--b26-azul); box-shadow: 0 0 0 3px rgba(28,111,154,.18); }
.alt-campo [aria-invalid="true"] { border-color: #B42318; }
.alt-campo input[type="file"] { font-size: 15px; padding: 10px 0; max-width: 100%; }
.alt-ayuda { margin: 0; font-size: 13px; color: var(--b26-texto-3); }
.alt-error { margin: 0; font-size: 14px; font-weight: 600; color: #B42318; }

.alt-logo { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.alt-logo-vista {
  flex: 0 0 200px; height: 110px; padding: 12px; border: 1px dashed var(--b26-borde); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; background: #fff;
  font-size: 13px; color: var(--b26-texto-3);
}
.alt-logo-vista.alt-con-logo { border-style: solid; border-color: var(--b26-borde-claro); }
.alt-logo-vista img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.alt-logo .alt-campo { flex: 1 1 240px; }

.alt-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--b26-texto-2); cursor: pointer; }
.alt-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--b26-azul); }

.alt-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alt-enviar {
  align-self: flex-start; min-height: 54px; padding: 0 28px; border: 0; border-radius: 14px;
  background: var(--b26-azul); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer;
}
.alt-enviar:hover { background: var(--b26-azul-osc); }
.alt-enviar[disabled] { opacity: .6; cursor: wait; }

/* 2026: formulario por partes (js/alta2026.js) */
.alt-guia { display: flex; flex-direction: column; gap: 6px; }
.alt-guia-barra { height: 8px; border-radius: 8px; background: #E4E9EE; overflow: hidden; }
.alt-guia-barra span { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--b26-azul); transition: width .3s; }
.alt-guia-txt { margin: 2px 0 0; font-size: 15px; color: var(--b26-texto-2); }
.alt-guia-txt b { color: var(--b26-texto, #16232e); }
.alt-guia-borrador { margin: 0; font-size: 13px; color: var(--b26-texto-3, #6b7682); }
.alt-form fieldset[hidden], .alt-form > [hidden] { display: none !important; }
.alt-guia-botones { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.alt-guia-sig { margin-left: auto; min-height: 50px; padding: 0 30px; border: 0; border-radius: 14px; background: var(--b26-azul); color: #fff; font-size: 16.5px; font-weight: 700; cursor: pointer; }
.alt-guia-sig:hover { background: var(--b26-azul-osc); }
.alt-guia-atras { min-height: 50px; padding: 0 22px; border: 1.5px solid #D5DCE3; border-radius: 14px; background: #fff; color: var(--b26-texto-2); font-size: 15.5px; font-weight: 700; cursor: pointer; }
.alt-logo-ok { color: #14532D !important; font-weight: 600; }

.alt-aviso {
  padding: 14px 16px; border-radius: 12px; background: #FEF3F2; border: 1px solid #FDA29B;
  color: #912018; font-size: 15px; font-weight: 600;
}

/* ---------- Pasos ---------- */
.alt-paso { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--b26-azul); }
.alt-tit { margin: -16px 0 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.alt-texto { margin: -12px 0 0; font-size: 16px; line-height: 1.6; color: var(--b26-texto-2); }
.alt-campo-tel { max-width: 320px; }
.alt-encontrada {
  padding: 14px 16px; border-radius: 12px; background: #E7F5EC; border: 1px solid #A6DBBA;
  color: #14532D; font-size: 15px; line-height: 1.5;
}
.alt-encontrada.alt-nueva { background: var(--b26-azul-claro); border-color: #B7D6E8; color: var(--b26-azul-osc); }
.alt-tel-fijo {
  display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; margin-top: -12px;
  padding: 12px 16px; border-radius: 12px; background: var(--b26-fondo); font-size: 15px;
}
.alt-tel-fijo a { font-weight: 700; text-decoration: none; }

/* ---------- Mensajes ---------- */
.alt-mensaje { display: flex; flex-direction: column; gap: 12px; }
.alt-mensaje h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.alt-mensaje p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--b26-texto-2); }
.alt-ok-ico {
  width: 56px; height: 56px; border-radius: 50%; background: #E7F5EC; color: #1F7A4D;
  display: flex; align-items: center; justify-content: center;
}
.alt-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Cómo funciona ---------- */
.alt-pasos h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.alt-pasos ol { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: flex; flex-direction: column; gap: 18px; }
.alt-pasos li { counter-increment: paso; position: relative; padding-left: 46px; display: flex; flex-direction: column; gap: 2px; }
.alt-pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--b26-azul-claro); color: var(--b26-azul);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.alt-pasos strong { font-size: 16px; }
.alt-pasos span { font-size: 14px; color: var(--b26-texto-3); line-height: 1.5; }
.alt-nota { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--b26-borde-claro); font-size: 14px; color: var(--b26-texto-3); line-height: 1.5; }

/* ---------- Administración (admin-altas.asp) ---------- */
.adm-pagina { min-height: 100vh; }
.adm-mensaje { margin: 16px 0 0; }
.adm-vacio { margin-top: 20px; }
.adm-lista { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.adm-sol { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 22px; }
.adm-logo {
  height: 100px; padding: 10px; border: 1px solid var(--b26-borde-claro); border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--b26-texto-3);
}
.adm-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.adm-logo:has(.adm-orig) { flex-direction: column; gap: 8px; height: auto; min-height: 100px; }
.adm-logo:has(.adm-orig) img { max-height: 70px; }
.adm-orig { font-size: 12px; font-weight: 700; text-align: center; }
.adm-tipo { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--b26-azul); }
.adm-tipo-reac { color: #8A3208; }
.adm-datos h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.adm-datos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--b26-texto-2); }
.adm-nota { margin: 8px 0 0; font-size: 13px; color: var(--b26-texto-3); }
.adm-botones { display: flex; flex-direction: column; gap: 8px; }
.adm-botones form { margin: 0; }
.adm-btn { width: 100%; justify-content: center; cursor: pointer; background: #fff; font-family: inherit; }
.b26 .adm-btn.a26-btn-prin { background: var(--b26-azul); color: #fff; }
.adm-subtit { margin: 40px 0 12px; font-size: 20px; font-weight: 800; }
.adm-historial { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.adm-historial span { display: inline-block; min-width: 150px; font-weight: 700; }
.adm-historial small { color: var(--b26-texto-3); }

@media (max-width: 760px) {
  .adm-sol { grid-template-columns: minmax(0, 1fr); }
  .adm-logo { max-width: 220px; }
  .adm-botones { flex-direction: row; }
}

@media (max-width: 960px) {
  .alt-rejilla { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .alt-tarjeta { padding: 20px; border-radius: 18px; }
  .alt-dos { grid-template-columns: minmax(0, 1fr); }
  .alt-logo-vista { flex-basis: 100%; }
  .alt-enviar { align-self: stretch; }
}

/* ---------- Administración: comparación con la ficha que ya teníamos ---------- */
.adm-senal { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.adm-ok { background: #E7F5EC; color: #14532D; }
.adm-ojo { background: #FEF3F2; color: #912018; }
.adm-tabla-caja { overflow-x: auto; }
.adm-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-tabla th, .adm-tabla td { padding: 7px 10px; border-bottom: 1px solid var(--b26-borde-claro); text-align: left; vertical-align: top; }
.adm-tabla thead th { font-size: 13px; color: var(--b26-texto-3); font-weight: 700; }
.adm-tabla tbody th { width: 100px; color: var(--b26-texto-3); font-weight: 600; }
.adm-tabla tr.adm-cambia td:last-child { background: #FFF4E5; font-weight: 700; color: #8A3208; }
.adm-mini { display: block; max-width: 120px; max-height: 50px; }
.adm-sol-coincide { grid-template-columns: 160px minmax(0, 1fr) 240px; }
.adm-botones .adm-btn { white-space: normal; text-align: center; min-height: 44px; padding: 8px 14px; }
@media (max-width: 760px) {
  .adm-sol-coincide { grid-template-columns: minmax(0, 1fr); }
  .adm-botones { flex-direction: column; }
}

/* ---------- Código SMS ---------- */
.alt-pruebas { padding: 12px 14px; border-radius: 12px; background: #FFF4E5; border: 1px dashed #E8A13A; color: #7A4A06; font-size: 15px; }
.alt-otro { margin: -8px 0 0; font-size: 14px; color: var(--b26-texto-3); }
.alt-otro a { font-weight: 700; text-decoration: none; }
#alt-codigo { letter-spacing: .3em; font-size: 22px; font-weight: 700; }

/* Pegar los datos de contacto copiados de la web (js/contacto2026.js) */
.alt-pegar { margin: 0 0 18px; padding: 14px 16px; border: 1px dashed var(--b26-borde, #CBD5DD); border-radius: 12px; background: var(--b26-fondo, #F3F6F8); }
.alt-pegar summary { cursor: pointer; font-weight: 700; color: var(--b26-azul); }
.alt-pegar[open] summary { margin-bottom: 10px; }
.alt-pegar textarea { width: 100%; box-sizing: border-box; margin: 8px 0 6px; padding: 10px 12px; border: 1px solid var(--b26-borde, #CBD5DD); border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; background: #fff; }
.alt-pegar textarea:focus { outline: none; border-color: var(--b26-azul); box-shadow: 0 0 0 3px rgba(28,111,154,.18); }
.alt-campo .alt-relleno { border-color: #1F7A4D; background: #F2FAF5; }

/* ---------- Modo "Activar mi agencia" (alta-inmobiliaria.asp?modo=activar) ---------- */
.act-opciones { display: grid; gap: 10px; margin: 6px 0 14px; }
.act-planes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.act-opcion { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--b26-borde); border-radius: 12px;
  background: #fff; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--b26-texto-2); }
.act-opcion input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--b26-azul); }
.act-opcion:has(input:checked) { border-color: var(--b26-azul); background: var(--b26-azul-claro); color: var(--b26-texto); }
.act-opcion b { color: var(--b26-texto); }
.act-nota { margin: 4px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFF6E5; color: #6B4A0A; font-size: 14px; line-height: 1.5; }
.act-siguientes { margin: 16px 0 20px; padding-left: 20px; display: grid; gap: 10px; text-align: left; font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .act-planes { grid-template-columns: 1fr; } }
