/* MiCJB · estilos del sitio. Azul #0B3C5D + naranja #FF7A1A. Pensado primero para celular. */

:root {
  --azul: #0B3C5D;
  --azul-hondo: #082B43;
  --azul-claro: #E6EFF6;
  --naranja: #FF7A1A;
  --naranja-texto: #C2540A;
  --naranja-suave: #FFF1E6;
  --fondo: #F4F7FA;
  --tinta: #0F2233;
  --apagado: #5B6B7A;
  --linea: #E3E9EF;
  --blanco: #FFFFFF;
  --verde: #0F7B4F;
  --verde-suave: #E3F5EC;
  --rojo: #B3261E;
  --rojo-suave: #FDECEA;
  --radio: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.45;
  font-size: 16px;
}
a { color: var(--azul); }
a:hover { color: var(--naranja-texto); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: var(--tinta); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }

.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.estrecho { max-width: 560px; }
.medio { max-width: 820px; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Encabezado ---------- */
.encabezado { background: var(--blanco); border-bottom: 1px solid var(--linea); }
.encabezado .contenedor { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--azul); font-size: 27px; letter-spacing: -0.02em; }
.logo b { font-weight: 800; }
.logo span { font-weight: 500; }
.logo:hover { color: var(--azul); }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.menu a, .menu button.enlace { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: none; color: var(--tinta); background: none; border: 0; cursor: pointer; font-size: 16px; }
.menu a:hover, .menu button.enlace:hover { color: var(--naranja-texto); }
.menu form { margin: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.1; }
.btn-primario { background: var(--naranja); color: var(--azul); }
.btn-primario:hover { background: #ff8c3a; color: var(--azul); }
.btn-secundario { background: var(--blanco); color: var(--azul); border-color: var(--azul); }
.btn-secundario:hover { background: var(--azul-claro); color: var(--azul); }
.btn-fantasma { background: transparent; color: var(--azul); }
.btn-fantasma:hover { background: var(--azul-claro); color: var(--azul); }
.btn-peligro { background: var(--blanco); color: var(--rojo); border-color: var(--rojo); }
.btn-peligro:hover { background: var(--rojo-suave); color: var(--rojo); }
.btn-grande { min-height: 56px; padding: 0 30px; font-size: 18px; }
.btn-chico { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-bloque { display: flex; width: 100%; }

/* ---------- Mensajes ---------- */
.mensajes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mensaje { padding: 14px 18px; border-radius: var(--radio); font-weight: 600; background: var(--azul-claro); color: var(--azul-hondo); }
.mensaje.success { background: var(--verde-suave); color: #0A5638; }
.mensaje.error, .mensaje.warning { background: var(--rojo-suave); color: #8A1C16; }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; background: var(--azul); color: var(--blanco); padding: 56px 0 96px; text-align: center; }
.portada h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.portada h1 em { font-style: normal; color: var(--naranja); }
.portada p { margin: 16px auto 0; max-width: 560px; font-size: 18px; color: #D5E3EE; }
.portada .acciones { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.portada .btn-secundario { background: transparent; color: var(--blanco); border-color: #7FA2BC; }
.portada .btn-secundario:hover { background: rgba(255, 255, 255, 0.1); color: var(--blanco); }
.portada .ciudad { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; pointer-events: none; }
.portada .contenedor { position: relative; }
.puntos { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 15px; font-weight: 600; color: #D5E3EE; }
.puntos li::before { content: "✓"; color: var(--naranja); font-weight: 800; margin-right: 8px; }

.seccion { padding: 56px 0 0; }
.seccion h2 { font-size: 30px; font-weight: 800; }
.pasos { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.paso { background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; padding: 22px; }
.paso .numero { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--naranja); color: var(--azul); font-weight: 800; }
.paso h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; }
.paso p { margin: 0; color: var(--apagado); font-size: 15px; }
.aviso-proximo { margin-top: 40px; padding: 18px 22px; border-radius: 18px; background: var(--naranja-suave); color: #6B2D00; font-weight: 600; }

/* ---------- Tarjetas y formularios ---------- */
.principal { padding: 32px 0 72px; }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 28px; box-shadow: 0 2px 12px rgba(11, 60, 93, 0.06); }
.tarjeta h1 { font-size: 30px; font-weight: 800; }
.tarjeta .sub { margin: 8px 0 0; color: var(--apagado); }
.formulario { margin-top: 22px; display: grid; gap: 18px; }
.campo { display: grid; gap: 6px; }
.campo > label, .campo > .etiqueta { font-weight: 700; font-size: 15px; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="password"], .campo input[type="tel"],
.campo input[type="number"], .campo input[type="file"], .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--linea); border-radius: 12px; background: var(--blanco);
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.35); }
.campo.con-error input, .campo.con-error select, .campo.con-error textarea { border-color: var(--rojo); }
.ayuda { margin: 0; font-size: 14px; color: var(--apagado); }
.error-campo { margin: 0; font-size: 14px; font-weight: 700; color: var(--rojo); }
.errores-generales { padding: 14px 18px; border-radius: var(--radio); background: var(--rojo-suave); color: #8A1C16; font-weight: 600; }
.errores-generales ul { margin: 0; padding-left: 20px; }
.pie-form { margin-top: 24px; font-size: 15px; color: var(--apagado); }
.fila-campos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.escribir-a-mano { padding: 14px 16px; border-radius: 12px; background: var(--naranja-suave); display: grid; gap: 10px; }
.escribir-a-mano .ayuda { color: #6B2D00; }

/* ---------- Formulario de anuncio ---------- */
.bloque { background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 24px; }
.bloque + .bloque { margin-top: 16px; }
.bloque h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.bloque .sub { margin: 0 0 16px; color: var(--apagado); font-size: 15px; }
.opciones { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcion-texto { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 14px; text-align: center; font-weight: 800; border: 2px solid var(--linea); border-radius: 14px; background: var(--blanco); }
.opcion input:checked + .opcion-texto { border-color: var(--azul); background: var(--azul); color: var(--blanco); }
.opcion input:focus-visible + .opcion-texto { outline: 3px solid var(--naranja); outline-offset: 2px; }
.etiqueta-privada { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--azul-claro); color: var(--azul); font-size: 12px; font-weight: 800; }
.fotos-actuales { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 16px; }
.foto-item { border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; background: var(--fondo); }
.foto-item img { display: block; width: 100%; height: 110px; object-fit: cover; }
.foto-item .controles { display: grid; gap: 4px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.foto-item label { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.barra-guardar { position: sticky; bottom: 0; margin-top: 20px; padding: 14px 0; background: linear-gradient(to top, var(--fondo) 70%, transparent); display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Mis anuncios ---------- */
.cabecera-pagina { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.cabecera-pagina h1 { font-size: 32px; font-weight: 800; }
.cupo { margin-top: 18px; padding: 16px 20px; border-radius: var(--radio); background: var(--blanco); border: 1px solid var(--linea); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; }
.cupo .barra { flex: 1 1 200px; height: 10px; border-radius: 999px; background: var(--linea); overflow: hidden; }
.cupo .barra span { display: block; height: 100%; background: var(--naranja); }
.lista-anuncios { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.anuncio { display: grid; gap: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 10px rgba(11, 60, 93, 0.06); }
.anuncio .foto { height: 180px; background: #D6E4EF; display: flex; align-items: center; justify-content: center; color: #4A5E70; font-weight: 600; font-size: 14px; }
.anuncio .foto img { width: 100%; height: 100%; object-fit: cover; }
.anuncio .cuerpo { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.anuncio h2 { font-size: 20px; font-weight: 800; }
.anuncio .precio { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.anuncio .precio small { font-size: 14px; font-weight: 600; color: var(--apagado); }
.anuncio .lugar { margin: 0; color: var(--apagado); font-size: 15px; }
.anuncio .acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.anuncio .acciones form { margin: 0; }
.estado { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; width: fit-content; }
.estado-pendiente { background: var(--naranja-suave); color: #8A3B00; }
.estado-publicada { background: var(--verde-suave); color: #0A5638; }
.estado-pausada, .estado-alquilada, .estado-vendida { background: #E9EEF2; color: #3B4B59; }
.estado-reservada { background: var(--azul-claro); color: var(--azul); }
.estado-rechazada { background: var(--rojo-suave); color: #8A1C16; }
.nota-estado { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--fondo); font-size: 14px; color: var(--apagado); }
.nota-estado.mala { background: var(--rojo-suave); color: #8A1C16; font-weight: 600; }
.vacio { margin-top: 24px; padding: 36px 24px; text-align: center; border: 2px dashed #C5D3DF; border-radius: 20px; background: var(--blanco); }
.vacio h2 { font-size: 22px; font-weight: 800; }
.vacio p { margin: 8px 0 18px; color: var(--apagado); }

/* ---------- Pie ---------- */
.pie { background: var(--azul-hondo); color: #AFC3D3; padding: 32px 0 36px; font-size: 14px; }
.pie .logo { color: var(--blanco); font-size: 22px; }
.pie p { margin: 12px 0 0; max-width: 720px; }

@media (min-width: 720px) {
  .anuncio { grid-template-columns: 240px 1fr; }
  .anuncio .foto { height: auto; min-height: 180px; }
  .tarjeta { padding: 36px; }
}

/* ---------- Sitio público: buscador y ficha ---------- */
.titulo-pagina { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.filtros { background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 2px 10px rgba(11, 60, 93, 0.06); }
.filtros-fila { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.filtros select, .filtros input { width: 100%; min-height: 48px; padding: 0 12px; border: 2px solid var(--linea); border-radius: 12px; background: var(--blanco); }
.filtros-acciones { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.filtros-acciones .orden { margin-left: auto; min-width: 200px; }
.conteo { margin: 18px 0 0; color: var(--apagado); font-weight: 700; }
.lista-anuncios.rejilla { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.tarjeta-publica .foto { position: relative; height: 200px; text-decoration: none; }
.tarjeta-publica h2 { font-size: 18px; }
.tarjeta-publica h2 a { text-decoration: none; color: var(--tinta); }
.tarjeta-publica h2 a:hover { color: var(--naranja-texto); }
.cinta { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: var(--azul); color: #fff; font-size: 13px; font-weight: 800; }
.cinta.destacada { left: auto; right: 12px; background: var(--naranja); color: var(--azul); }
.datos { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 700; color: var(--azul); }
.paginas { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: var(--apagado); font-weight: 600; }
.migas { margin: 0 0 14px; font-weight: 700; }
.ficha { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .ficha { grid-template-columns: 1.25fr 1fr; } }
.galeria-principal { background: #D6E4EF; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.galeria-principal img { width: 100%; height: 100%; object-fit: cover; }
.sin-foto { color: #4A5E70; font-weight: 600; padding: 20px; text-align: center; }
.miniaturas { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; }
.mini { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; width: 84px; height: 64px; cursor: pointer; background: none; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini.activa { border-color: var(--naranja); }
.cinta-linea { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--azul-claro); color: var(--azul); font-size: 13px; font-weight: 800; }
.ficha-info h1 { font-size: 28px; font-weight: 800; margin: 12px 0 8px; }
.precio-grande { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.precio-grande small { font-size: 16px; font-weight: 600; color: var(--apagado); }
.ficha-info .lugar { margin: 8px 0 0; color: var(--apagado); font-weight: 600; }
.datos-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 20px 0 0; }
.datos-ficha div { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 12px 14px; }
.datos-ficha dt { font-size: 13px; color: var(--apagado); font-weight: 600; }
.datos-ficha dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.sub-titulo { font-size: 20px; margin: 24px 0 8px; }
.descripcion { margin: 0; line-height: 1.6; }
.contacto { margin-top: 26px; padding: 20px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; display: grid; gap: 12px; }
.contacto-quien { margin: 0; }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178A45; color: #fff; }
.seccion .lista-anuncios.rejilla { margin-top: 18px; }

/* Portada: anuncios recientes */
.buscador-portada { margin: 28px auto 0; max-width: 760px; display: grid; gap: 10px; grid-template-columns: 1fr; background: #fff; padding: 12px; border-radius: 22px; text-align: left; }
@media (min-width: 700px) { .buscador-portada { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.buscador-portada select { width: 100%; min-height: 52px; padding: 0 12px; border: 2px solid var(--linea); border-radius: 14px; background: #fff; }
.buscador-portada label { color: var(--azul); font-weight: 700; font-size: 14px; }
.buscador-portada .campo { gap: 4px; }
.ver-todos { margin-top: 22px; text-align: center; }

/* Tarjetas del sitio publico: siempre en vertical (foto arriba) */
.rejilla .anuncio, .rejilla .tarjeta-publica { grid-template-columns: 1fr; }
.rejilla .anuncio .foto { height: 200px; min-height: 0; }
.tarjeta-publica .cuerpo { gap: 6px; }
.tarjeta-publica .cuerpo p, .tarjeta-publica .cuerpo h2 { margin: 0; }
.tarjeta-publica .precio small { display: inline; }
.filtros-resumen { display: none; }
@media (max-width: 699px) {
  .filtros-resumen { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 800; cursor: pointer; list-style: none; }
  .filtros-resumen::-webkit-details-marker { display: none; }
  .filtros-resumen::after { content: "▾"; }
  details.filtros-caja:not([open]) .filtros-contenido { display: none; }
  .filtros-acciones .orden { margin-left: 0; width: 100%; }
}
.filtros-caja { background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 18px; box-shadow: 0 2px 10px rgba(11, 60, 93, 0.06); }
.filtros-caja .filtros { border: 0; box-shadow: none; padding: 0; border-radius: 0; }

/* ---------- Planes y pagos ---------- */
.planes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { background: var(--blanco); border: 2px solid var(--linea); border-radius: 20px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.plan.actual { border-color: var(--naranja); }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan-precio { margin: 0; font-size: 26px; font-weight: 800; }
.plan-precio small { font-size: 14px; color: var(--apagado); font-weight: 600; }
.plan-linea { margin: 0; }
.lista-pagos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.lista-pagos li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 12px 16px; }
.aviso-proximo { margin-top: 18px; }

.aviso-correo { background: var(--naranja-suave); color: #6B2D00; font-size: 15px; font-weight: 600; }
.aviso-correo .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.aviso-correo form { margin: 0; }
.aviso-correo .enlace { color: #6B2D00; text-decoration: underline; font-weight: 800; }

/* ---------- Estadisticas ---------- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 20px; }
.kpi { background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; box-shadow: 0 2px 10px rgba(11, 60, 93, 0.06); }
.kpi-titulo { font-weight: 700; color: var(--apagado); font-size: 14px; }
.kpi strong { font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-sub { font-size: 13px; color: var(--apagado); }
.grafica { min-width: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 20px; margin-top: 18px; }
.grafica h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.rejilla-graficas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rejilla-graficas .grafica { margin-top: 18px; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.barras-dias { height: 120px; gap: 3px; }
.barra-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.barra-col i { display: block; width: 100%; background: var(--azul); border-radius: 6px 6px 0 0; min-height: 2px; }
.barras-dias .barra-col i { background: var(--naranja); }
.barra-col b { font-size: 11px; color: var(--apagado); font-weight: 700; margin-bottom: 2px; }
.barra-col em { font-style: normal; font-size: 10px; text-align: center; color: var(--apagado); margin-top: 4px; white-space: nowrap; }
.barras:has(.con-etiqueta) { height: 200px; }
.barras:has(.con-etiqueta) .barra-col { justify-content: flex-end; }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.ranking li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--fondo); border-radius: 12px; }
.ranking a { flex: 1; min-width: 0; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anuncio .vistas { margin: 0; font-size: 14px; color: var(--apagado); }

/* ---------- Favoritos ---------- */
.anuncio.tarjeta-publica { position: relative; }
.corazon-form { margin: 0; }
.tarjeta-publica > .corazon-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.tarjeta-publica .cinta.destacada { right: 60px; }
.corazon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--azul); cursor: pointer; box-shadow: 0 1px 6px rgba(11, 60, 93, 0.25); }
.corazon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.corazon:hover { color: var(--naranja-texto); }
.corazon.activo { color: #D6336C; }
.corazon.activo svg { fill: currentColor; }
.corazon:disabled { opacity: 0.6; cursor: wait; }
.fila-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fila-titulo .corazon { box-shadow: none; border: 2px solid var(--linea); background: var(--blanco); }
.contador-fav { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--naranja); color: var(--azul); font-size: 13px; font-weight: 800; text-align: center; }
.contador-fav[hidden] { display: none; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vacio { text-align: center; }
.no-disponibles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.no-disponibles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px dashed var(--linea); border-radius: var(--radio); background: var(--blanco); color: var(--apagado); }
.no-disponibles em { font-style: normal; }
.mi-lista { margin-top: 32px; }
.mi-lista h2 { margin-top: 0; }
.mi-lista .codigo, .dlg-codigo { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.fila-correo, .dlg-correo { display: flex; gap: 8px; flex-wrap: wrap; }
.fila-correo input, .dlg-correo input { flex: 1 1 200px; min-height: 44px; padding: 0 14px; border: 2px solid var(--linea); border-radius: 12px; font: inherit; }
.borrar-lista { margin: 18px 0 8px; }
.borrar-lista summary { cursor: pointer; color: var(--apagado); font-weight: 600; }

.dlg { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(8, 43, 67, 0.35); }
.dlg::backdrop { background: rgba(8, 43, 67, 0.6); }
.dlg h2 { margin: 12px 0 6px; font-size: 24px; }
.dlg p { margin: 8px 0; color: var(--apagado); }
.dlg-icono { width: 64px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #FDE7EF; color: #D6336C; font-size: 30px; }
.dlg-codigo { margin: 14px 0 !important; padding: 16px; border-radius: 16px; background: var(--naranja); color: var(--azul) !important; font-size: 30px; font-weight: 800; }
.dlg-ayuda { font-size: 14px; }
.dlg-correo { margin: 14px 0 6px; }
.dlg-recuperar { font-size: 14px; }
.dlg form[method="dialog"] { margin-top: 8px; }

/* ---------- Pie y paginas legales ---------- */
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0; }
.pie-enlaces a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: inherit; }
.acepta { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; line-height: 1.45; cursor: pointer; }
.acepta input { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--linea); }
.legal th { background: var(--azul-claro); }
.legal .tabla-scroll { overflow-x: auto; }
.legal-aviso { margin: 16px 0 24px; padding: 14px 18px; border-radius: var(--radio); background: var(--naranja-suave); color: #7A3B06; font-weight: 600; }
mark.pendiente { background: #FFE3A3; color: var(--tinta); padding: 0 4px; border-radius: 4px; }

/* ---------- Contacto ---------- */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.denunciar { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--apagado); }
.resumen-confirmar { margin: 18px 0 4px; padding: 14px 16px; border-radius: var(--radio); background: var(--azul-claro); }
.resumen-confirmar p { margin: 2px 0; }
